Alex Nichol and Prafulla Dhariwal at OpenAI showed that learning the reverse-process variance in Denoising Diffusion Probabilistic Models (DDPMs) cuts sampling forward passes by roughly an order of magnitude (from 4,000 training steps down to 50 to 100 steps) with negligible FID loss, while closing the negative log-likelihood (NLL) gap against autoregressive and flow models. Pairing learned variances with a cosine noise schedule and a hybrid objective also beat BigGAN-deep on both FID (2.92 vs 4.06) and distribution recall (0.71 vs 0.59) on class-conditional ImageNet 64x64.
- ImageNet 64x64 likelihood and FID gains: Switching from Ho et al.’s
T = 1,000linear baseline (3.99 bits/dim NLL, 32.5 FID) toT = 4,000with a cosine schedule andL_hybriddropped NLL to 3.62 and FID to 28.0 at 200K steps, reaching 3.57 NLL / 19.2 FID at 1.5M steps (and 3.53 NLL under importance-sampledL_vlb). - CIFAR-10 parity with likelihood models: Unconditional NLL fell from 3.73 bits/dim (
T = 1,000linearL_simple) to 3.17 (L_hybrid) and 2.94 (importance-sampledL_vlb), competitive with PixelCNN (3.14), Flow++ (3.08), and Glow (3.35). - 100-step sampling without retraining: Models trained on 4,000 steps with learned variance achieved near-optimal FID in 100 strided steps (and strong samples at 50 steps), where fixed-variance DDPMs degraded sharply.
- Superior mode coverage vs GANs: On class-conditional ImageNet 64x64 (50K samples, 250 steps), the 270M diffusion model hit 2.92 FID and 0.71 recall versus BigGAN-deep’s 4.06 FID and 0.59 recall.
Why learned variance and cosine scheduling matter
Original DDPMs trained a UNet to predict noise eps under L_simple, fixing reverse-step variance to either beta_t or beta_tilde_t because naive variance prediction destabilized training and L_simple provides zero gradient for variance. Nichol and Dhariwal noticed why fixing variance barely hurt 1,000-step FID yet crippled log-likelihood: beta_t and beta_tilde_t are nearly equal everywhere except near t = 0, and those first few steps near t = 0 contribute most of the variational lower bound (L_vlb) penalty.
Because the valid range between beta_tilde_t and beta_t is tiny, the authors parameterize variance as a log-space interpolation Sigma_theta = exp(v log beta_t + (1 - v) log beta_tilde_t) predicted by an unconstrained vector v, trained with L_hybrid = L_simple + 0.001 * L_vlb (stopping gradients from L_vlb into the mean mu_theta). That interpolation stays well-conditioned and automatically rescales when sampling along any strided subset of K timesteps instead of all T = 4,000 steps.
A second bottleneck was the linear noise schedule itself. On 64x64 and 32x32 images, linear beta_t destroys recognizable structure too early, leaving the final quarter of steps near pure noise so that skipping up to 20% of the reverse chain barely changed FID. Their cosine schedule defines alpha_bar_t via cos^2(((t/T + s)/(1 + s)) * pi/2) with offset s = 0.008 (ensuring sqrt(beta_0) stays smaller than the 8-bit pixel bin width 1/127.5) and beta_t clipped at 0.999. That distributes signal decay smoothly through the middle of the trajectory.
Gradient noise, fast sampling, and scaling behavior
Optimizing L_vlb directly with uniform timestep sampling initially lost to L_hybrid because early L_t terms span orders of magnitude larger values than late terms, creating huge gradient noise. Sampling t proportional to sqrt(E[L_t^2]) from a 10-step rolling history fixed the noise and delivered the best NLL (3.53 on ImageNet 64x64, 2.94 on CIFAR-10), though at worse FID (40.1 vs 19.2). In Appendix D, combining L_vlb only at the first and last 100 steps with L_hybrid in between recovered both (3.52 NLL, 19.9 FID).
Sweeping UNet channel multipliers (30M to 270M parameters) also showed FID following a predictable power law in training FLOPs (4.00 + (2.5e-25 * C)^(-0.22)), similar to language scaling laws and foundational for later diffusion pipelines like DiffusionART.
Caveats and builder takeaway
Several findings in the appendices bound where these defaults help most:
- Cosine is not universal across resolutions: While cosine helped 32x32 and 64x64 models, it overfit faster on CIFAR-10 (requiring dropout 0.3 vs 0.1) and lost to the linear schedule on 256x256 ImageNet, where the authors kept linear noise for both single-stage (31.5 FID) and two-stage 64-to-256 upsampling (12.3 FID).
- Sub-50-step regime favors DDIM: Below 50 sampling steps, deterministic DDIM beat strided
L_hybridon both ImageNet 64x64 and LSUN 256x256;L_hybridonly pulled ahead at 50 steps and above. - Overfitting and NLL evaluation quirks: Class-conditional ImageNet 64x64 degraded on FID if trained past its peak without early stopping, and uniform striding wrecked NLL unless dense early steps
1..T/Kwere kept.
For practitioners training diffusion models from scratch, log-interpolated variance with L_hybrid is a low-overhead upgrade that buys fast ancestral sampling without tuning external ODE solvers, while high-resolution pixel pipelines still merit checking linear versus cosine noise schedules empirically.


