Diffusion Evolution

Toy implementation of Diffusion Models are Evolutionary Algorithms

A genetic algorithm with deep ties to diffusion models. Rather than using crossover and mutation, candidates evolve toward high-fitness regions through iterative denoising — making it a natural bridge between score-based generative modeling and evolutionary optimization. The result is a simple, elegant method for distribution matching on arbitrary fitness landscapes.