Generative AI / Model Families
Two fundamentally different ways to generate.
Reviewed by Yuvaraj
Almost every modern generative model belongs to one of two families, distinguished not by what they produce but by how they build a sample. Autoregressive (AR) models write the output one piece at a time, each new element conditioned on everything already produced. Diffusion models take the opposite route: they start from pure noise and refine it over many passes until a coherent sample emerges. Once you internalize this split, you can reason about almost any new generative system you meet, including ones that do not exist yet.
An autoregressive model factorizes the probability of a whole sequence into a product of conditionals:
Ask about this lesson, or about anything in AI. Answers cite the lessons they draw on.
Finished this lesson?
Mark it complete to earn XP, keep your streak, and schedule a review.
Each factor is a distribution over the next element given the prefix . Generation is therefore inherently sequential, you cannot sample element until element exists. This maps naturally onto discrete sequences such as text and code, where GPT-style transformers dominate.
A diffusion model instead defines a forward process that gradually corrupts data into Gaussian noise, then learns to reverse it. During training the network sees a noised sample and predicts the noise . At generation time you start from and apply the learned denoiser repeatedly, each pass removing a little noise. Every pixel is updated in parallel, yet you still need many sequential denoising steps. This fits continuous data, images, audio, video, extremely well.
For a curious beginner
How it is actually used
The underlying mechanism
The AR trace grows its conditioning context one element per step; the diffusion trace keeps the whole canvas and improves it globally each step.
AR and diffusion are not the only options. GANs generate in a single forward pass by pitting a generator against a discriminator, and VAEs learn a compressed latent distribution to sample from; both predate today's diffusion dominance for images. Hybrids are common, latent diffusion runs the denoising process inside a VAE's latent space, and some systems generate discrete tokens autoregressively, then decode them with diffusion.
Common mistakes