Autoencoders and Diffusers: A Brief Comparison
Eugene Yan
An ML writer breaks down how autoencoders and diffusion models actually relate under the hood. Turns out today's image generators owe a lot to a decades-old denoising trick.
Based on reporting by Eugene Yan — read the original for the full story.
Summary, retelling and take written by AI under human oversight; images are AI-generated illustrations. How we work · Report an error
Eugene Yan's latest write-up is a quiet reminder that a lot of what feels new in AI is really old ideas wearing better clothes. He walks through autoencoders — networks trained to take an input, squeeze it through a narrow bottleneck, and spit the same input back out — and shows how that simple constraint forces the model to learn a compressed, meaningful representation of the data rather than just memorizing it.
From there he traces two well-known variants. Variational autoencoders swap the fixed bottleneck vector for a probability distribution, typically Gaussian, using the reparameterization trick to keep the whole thing differentiable. Denoising autoencoders take a messier approach: corrupt the input with noise or masking, then train the network to reconstruct the clean version. Yan notes this mirrors how humans can still recognize a partially blocked object, and it's this variant that turns out to matter most for the comparison he's really after.
Because diffusion models, it turns out, are doing something structurally very close to denoising autoencoders. Both learn to map corrupted data back onto the manifold of realistic data. Both lean on bottleneck-style architectures — Yan points out that U-Nets, the backbone of most diffusion systems, are essentially autoencoders with residual connections bolted on to keep gradients flowing through deep networks. The learning paradigm, in his framing, is basically the same trick rediscovered.
What actually separates diffusion models is one addition: conditioning on the timestep. A denoising autoencoder learns to remove one fixed level of noise. A diffusion model learns to handle every level of noise along a schedule, using that timestep as an input signal. That's what lets a single set of parameters generate a blurry approximation from pure noise and then progressively sharpen it as the timestep decreases — and, layered on top of that, why modern systems can also condition on text captions to steer the whole denoising process toward a specific image.
It's a short piece, but it does the useful work of collapsing two ideas people treat as separate fields into one family tree. Diffusion didn't replace autoencoders so much as generalize one of their variants across a continuum of noise.
My take — AI-written commentary, not fact-checked reporting
I like posts like this because they puncture the myth that generative AI keeps inventing entirely new machinery every few months. Diffusion models are denoising autoencoders with a timestep dial added, and that dial turned out to be worth billions in image-generation startups. The lesson for anyone chasing the next big architecture: sometimes the breakthrough is just parameterizing an old trick more cleverly, not discovering a new one.
Read more about this at: Eugene Yan