Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Improved Denoising Diffusion Probabilistic Models

Learned variances cut diffusion sampling steps

  • Problem Denoising diffusion models produced strong image samples but their log-likelihoods lagged behind autoregressive models and VAEs. A weak likelihood score could hide poor coverage of the data's modes.
  • Method Improved DDPM learns the reverse variances and trains with a hybrid of the simple loss and the variational bound. A cosine noise schedule replaces the linear one, and importance sampling reduces noise in the bound.
  • Results The cosine hybrid model reached NLL 3.62 on ImageNet 64×64 after 200K iterations, compared with 3.99 for the original setup. Learned variances allow sampling with far fewer forward passes at negligible loss in sample quality.

Why DDPM likelihoods were the open problem

Denoising diffusion probabilistic models had shown strong image samples, but their log-likelihoods had not been shown to be competitive with autoregressive models or VAEs. The gap matters because maximizing log-likelihood is generally believed to push a model to capture every mode of the data, so a weak score could hide poor mode coverage.

Ho et al. had reported 3.99 bits/dim on ImageNet 64×64 with the fixed-variance setup, T=1000 and 200K iterations. Raising T from 1000 to 4000 alone brought this to 3.77, so the number of steps was one lever worth pulling. The authors then asked which other changes could close the rest of the gap, and they tested them on ImageNet 64×64 and CIFAR-10.

How the forward and reverse chains are trained

A DDPM defines a forward chain that adds Gaussian noise at each of T steps, with variance β_t, and a learned reverse chain that removes that noise step by step. Each reverse step is a Gaussian \(p_\theta(x_{t-1}\mid x_t)=\mathcal{N}(x_{t-1};\mu_\theta(x_t,t),\Sigma_\theta(x_t,t))\), so the network predicts a mean while the variance is either fixed or learned.

Training never needs the full chain, because the noisy latent at a random step can be drawn in closed form from x_0 as \(x_t=\sqrt{\bar\alpha_t}\,x_0+\sqrt{1-\bar\alpha_t}\,\epsilon\). The variational lower bound splits into a sum of per-step terms, and every term except L_0 is a closed-form KL divergence between Gaussians.

Ho et al. found that predicting the noise ε and training on the simple squared-error loss L_simple gave better samples than optimizing the VLB directly. The catch is that L_simple gives no learning signal to Σ_θ, so the variance has to be fixed in that setup.

Learning the reverse variance inside a narrow band

The network chooses each reverse variance inside the band set by the two fixed extremes, and the VLB trains that choice. Figure 1 of the paper shows that the two extremes are almost equal except near t=0, so the band is narrow. Because the valid range is so narrow, predicting the variance directly would be hard, even in the log domain. So the network outputs a per-dimension vector v, and the variance is \(\Sigma_\theta(x_t,t)=\exp\big(v\log\beta_t+(1-v)\log\tilde{\beta}_t\big)\).

The output is not clamped, so in principle the model could leave the band, but the authors did not see this in practice.

Since L_simple doesn't depend on Σ_θ, the authors add the VLB with weight λ=0.001 to form \(L_{\text{hybrid}}=L_{\text{simple}}+\lambda L_{\text{vlb}}\). A stop-gradient on the mean output inside the VLB term means the VLB trains the variance while L_simple still controls the mean. On ImageNet 64×64 with equal training time, the hybrid objective gave better training log-likelihood than the VLB, although both curves were noisy.

At 200K iterations with the cosine schedule, L_hybrid gave NLL 3.62 and FID 28.0, compared to 3.68 and 27.0 for L_simple. The authors describe this as better likelihood with similar FID.

Importance sampling for the VLB

The authors found that optimizing L_vlb directly was hard, and gradient noise scales showed that its gradient was noisier than the hybrid objective's. The VLB terms differ greatly in size, so drawing timesteps uniformly adds noise that the large terms don't need. The fix draws t with probability p_t proportional to the square root of E[L_t²], and it divides each sampled term by its probability, as \(L_{\text{vlb}}=\mathbb{E}_{t\sim p_t}[L_t/p_t]\).

Because E[L_t²] is unknown and drifts during training, the authors keep the previous 10 values per term and update them as training runs. At the start of training they draw uniformly until they have 10 samples for every t.

The resampled objective was considerably less noisy than the uniformly sampled one, and it gave the best log-likelihoods when optimized as L_vlb. Importance sampling did not help L_hybrid, which was already less noisy. So the importance-sampled VLB is the route to the best likelihood, while the hybrid objective remains the default the authors prefer.

Changing the noise schedule

The linear schedule from Ho et al. worked for high-resolution images but was suboptimal at 64×64 and 32×32. Its problem is at the end of the forward process, where the latent is so noisy that it adds little to sample quality. A model trained with the linear schedule did not get much worse in FID when up to 20% of the reverse process was skipped.

The cosine schedule defines ᾱ_t through a squared cosine of the normalized timestep, with a small offset s, so that ᾱ_t drops roughly linearly in the middle and changes little near t=0 and t=T. β_t is then derived from consecutive ᾱ values and clipped at 0.999 near the end of the process. The offset s is 0.008, chosen so that √β_0 is slightly smaller than the pixel bin size 1/127.5, because tiny noise at the start made ε hard to predict.

The authors chose cos² because it has the shape they wanted, and they expect other similar shapes to work too.

Likelihood and sample quality against prior models

The VLB model at the same iterations gave NLL 3.53 and FID 40.1. So optimizing the VLB buys a lower NLL at a much higher FID, which is why the authors generally prefer the hybrid objective.

On CIFAR-10 at 500K iterations, the VLB model gave NLL 2.94 and FID 11.47, while the hybrid gave NLL 3.17 and FID 3.19. The same trade-off appears on the second dataset, with the VLB better on NLL and far worse on FID.

In the comparison table, Improved DDPM scored 3.53 bits/dim on unconditional ImageNet 64×64 and 2.94 on CIFAR-10, compared to 3.77 and 3.70 for the original DDPM row. The authors call this competitive with the best convolutional models on ImageNet, but worse than fully transformer-based architectures. The prior-model values are taken as reported in that table, so these rows compare separate systems rather than one controlled experiment.

Sampling with fewer steps

Sampling through the full chain takes several minutes per image on a modern GPU, because all main models were trained with 4000 diffusion steps. The sampler runs over K evenly spaced real numbers from 1 to T, rounded to the nearest integer, and it keeps the learned variances. Because Σ_θ is parameterized as a range between the bounds of the shorter chain, it rescales automatically.

The fixed-variance L_simple models lose much sample quality as the number of steps shrinks, while the hybrid model keeps it. With the hybrid model, 100 sampling steps were enough for near-optimal FIDs on the fully trained models.

DDIM, from Song et al., produced better samples than the hybrid model with fewer than 50 sampling steps, but worse samples at 50 or more. Constant striding hurt DDIM badly, so the reported DDIM results use a striding with the final timestep shifted. DDIM was worse at the start of training but closed the gap as training went on.

Recall against BigGAN-deep

Likelihood is hard to compare with GANs, so the authors used precision and recall on class-conditional models. The class label is added as an embedding to the timestep embedding, and the models are trained with the hybrid objective and sampled with 250 steps. The authors trained a small model with 100M parameters for 1.7M steps and a large one with 270M parameters for 250K iterations, plus one BigGAN-deep with 100M parameters.

On class-conditional ImageNet 64×64, Improved Diffusion (large) scored FID 2.92 with precision 0.82 and recall 0.71. BigGAN-deep scored FID 4.06, with precision 0.86 and recall 0.59. The small diffusion model scored FID 6.92 with recall 0.72, so BigGAN-deep led on FID while the small diffusion model had higher recall. The authors suggest that diffusion models cover the modes of the distribution better than comparable GANs, though this rests on one BigGAN-deep run evaluated with 50K samples.

Scaling with training compute

The authors trained four models on ImageNet 64×64 with L_hybrid, applying a depth multiplier to all layers so the first layer has 64, 96, 128 or 192 channels. The Adam learning rate was scaled by one over the square root of the channel multiplier, so the 128-channel model kept 0.0001. Parameter counts run from 30M to 270M, and the compute axis is in FLOPs, assuming full hardware utilization.

FID falls roughly linearly on a log-log plot, which the authors read as a power law in compute. The NLL curve fits a power law less cleanly and scales less favorably than FID. The fitted trends have exponents of -0.22 for FID and -0.17 for NLL. The authors list two possible causes: an unexpectedly high irreducible loss for this kind of diffusion model, or overfitting to the training distribution.

Where this work sits among fast sampling methods

Song et al. (2020b) treat diffusion as a discretized SDE and use an ODE solver to sample with fewer function evaluations. The authors' method samples directly from the ancestral process, so it avoids those extra hyperparameters.

Chen et al. (2020b) and Kong et al. (2020) use DDPMs to produce audio conditioned on mel-spectrograms. The authors hypothesize that the strong conditioning signal in audio makes sampling with fewer steps easier than for unconditional images. Gao et al. (2020) model the reverse steps with an energy-based model, which could imply that fewer steps are needed, a potential implication the paper does not measure.

Limitations

The ablation tables cover only ImageNet 64×64 and CIFAR-10. The best likelihoods come from optimizing L_vlb, but the authors trained most models with L_hybrid to keep sample quality.

The scaling study covers four channel widths on one dataset, and its NLL fit is less clean than the FID fit. The GAN comparison rests on one BigGAN-deep run, trained for 125K iterations without truncation. The cause of the weaker NLL scaling remains open.

Paper info

Authors
Alex Nichol, Prafulla Dhariwal
Venue
arXiv · Preprint
First published
2021-2-18
Added
2026-11-6
Updated
2021-2-18
Version
v1
arXiv
2102.09672
Category
cs.LG · cs.AI · stat.ML
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Alex Nichol, Prafulla Dhariwal (2021). Improved Denoising Diffusion Probabilistic Models. arXiv:2102.09672v1. https://arxiv.org/abs/2102.09672v1

BibTeX
@misc{nichol2021improved,
  title = {{Improved Denoising Diffusion Probabilistic Models}},
  author = {Alex Nichol and Prafulla Dhariwal},
  year = {2021},
  eprint = {2102.09672},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.09672v1}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up