O&O ConsultingBook a free call

Home / Insights / AI Foundations

Generative Models: From GANs to Diffusion

How machines create new images and audio, and the two ideas that drove the field.

O&O Consulting · · 2 min read

Laboratory equipment

Most early machine learning answered questions about data: is this a cat, will this customer leave? Generative models answer a different one: can you make a new example?

Adversarial networks

Ian Goodfellow and colleagues proposed generative adversarial networks in 2014. A generator turns random numbers into samples. A discriminator tries to tell them from real data. Each improves by competing with the other. GANs produced strikingly realistic faces, but training could be unstable, and a generator might produce only a narrow range of outputs, a failure called mode collapse.

How a diffusion model generates an imageIllustrative diagram, not data
Start with random noiseEstimate the noise presentRemove a little of itRepeat many timesA clean image appears
Start with random noiseEstimate the noise presentRemove a little of itRepeat many timesA clean image appears

Diagram by O&O Consulting.

Diffusion

Diffusion models take a different route. During training, noise is added to an image in many small steps until nothing recognisable remains. A network learns to predict the noise added at each stage. To generate, the process runs in reverse, starting from pure noise and removing it step by step. The 2020 paper on denoising diffusion probabilistic models showed high image quality with a comparatively stable training objective.

Guiding with text

Generation becomes useful when it can be directed. Models that learn a shared representation of pictures and captions, such as CLIP, help connect a written description to visual content, and a diffusion process can be conditioned on that description. Related techniques generate audio, video and molecular structures.

Provenance

Realistic synthetic media creates problems of impersonation, false evidence and confusion about what is authentic. Responses include watermarking generated content, recording the origin of files through content credential standards, and laws requiring disclosure. None is complete: watermarks can be weakened, and unmarked tools exist.

Limitations and open questions

Generative models can reproduce biases in their training sets and occasionally near-copies of training examples. Disputes about the use of copyrighted work as training data are before courts in several countries. Diffusion also needs many network evaluations per image, so much research aims to reach the same quality in fewer steps.

References

This article is general information, not financial, legal or investment advice. AI research and rules change quickly; check the cited sources for the current position.