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

Consistency Models

  • Problem Diffusion models need many sequential network evaluations per sample, which makes generation slow and limits real-time use.
  • Method Trains a network to map any point on a probability flow ODE trajectory directly to that trajectory's starting point, either by distilling a pre-trained diffusion model or in isolation.
  • Results Reached an FID of 3.55 on CIFAR-10 and 6.20 on ImageNet 64ˆ64 with one-step generation under consistency distillation.

Why iterative sampling is slow

Diffusion sampling is iterative, and that loop is what gives the method its flexibility: spending more evaluations usually yields samples of better quality. The same loop is the cost. Compared with single-step models such as GANs, VAEs and normalizing flows, diffusion sampling typically needs 10–2000 times more compute per sample. Faster ODE solvers shorten the loop but still need more than 10 evaluation steps to produce competitive samples, and most distillation methods first generate a large synthetic dataset from the teacher, which is itself expensive.

The goal is a model that produces samples in a single step while keeping what iterative sampling offers, namely a compute-quality trade-off and zero-shot data editing. The starting point is the probability flow ODE of continuous-time diffusion models, whose trajectories move data into a tractable noise distribution. Neither of the proposed training routes requires adversarial training, and both place only minor constraints on the network architecture.

A consistency function on the PF ODE

The diffusion SDE is set with zero drift and a diffusion coefficient from the Karras et al. settings, so the marginal at time t is the data distribution convolved with a Gaussian of scale t. Replacing the true score with a learned score model s_φ gives the empirical PF ODE, dx_t/dt = -t s_φ(x_t, t), and the authors integrate it backwards from noise to data.

The model is trained to be a consistency function that maps any point on a trajectory to its origin, so that a point at time t and a point at time t' on the same trajectory receive the same output.

The authors do not require the consistency model to be invertible, which separates it from neural flows that use a similar definition. Every consistency function must satisfy the boundary condition, which fixes the output at the smallest time to the input itself. Two parameterizations meet this condition. The first sets the output to the input at time epsilon and to a network output otherwise; the second uses skip connections, f_θ(x,t) = c_skip(t) x + c_out(t) F_θ(x,t), with c_skip(ε) = 1 and c_out(ε) = 0.

The authors use the skip-connection form in all experiments, because it borrows the architectures of successful diffusion models.

Sampling in one step or several

A single-step sample is drawn by starting from noise at the largest time T and evaluating the model once at that point.

Multistep sampling alternates a model evaluation with fresh noise. After each evaluation, noise at the next time point is added with scale sqrt(τ_n² − ε²) and the model is evaluated again at that time. Each extra evaluation lets the sample be refined, which is how the method trades compute for quality. The time points are chosen greedily, one at a time, using ternary search to minimize FID.

This relies on the assumption that FID is unimodal in the next time point, which the authors find to hold empirically.

Because each sample is a single noise-to-data map, interpolating between latent noise vectors and denoising at several noise levels are available without extra training. Iterative replacement, as used for diffusion models, turns the multistep procedure into a way to solve inverse problems such as inpainting, colorization and stroke-guided editing.

Distilling a diffusion teacher

The time horizon is split into N minus 1 intervals whose boundaries follow the Karras et al. schedule with rho equal to 7. Consider the time points t_n and t_{n+1}. The estimate of x at t_n is obtained from x at t_{n+1} by one step of an ODE solver, \\(\\hat x^{\\phi}_{t_n} = x_{t_{n+1}} + (t_n - t_{n+1})\\Phi(x_{t_{n+1}}, t_{n+1}; \\phi)\\), where Φ is the update of the one-step solver.

For the Euler solver, Φ reduces to minus t times the learned score, so the estimate is built from the teacher's score at the later time.

A training pair is produced by sampling a data point x, adding Gaussian noise at time t_{n+1} to get x_{t_{n+1}}, and then computing the teacher-based estimate at t_n. The consistency distillation loss is \\(\\mathcal{L}^N_{CD}(\\theta,\\theta^-;\\phi)=\\mathbb{E}[\\lambda(t_n)\\,d(f_\\theta(x_{t_{n+1}},t_{n+1}),f_{\\theta^-}(\\hat x^{\\phi}_{t_n},t_n))]\\), which compares the online model at t_{n+1} with the target model at t_n.

The metric d can be the squared ℓ2 distance, the ℓ1 distance or LPIPS, and the authors find that λ equal to 1 works well across tasks and datasets.

The target network θ^- is an exponential moving average of the online network, updated after each step as θ^- ← stopgrad(μθ^- + (1 − μ)θ) with 0 ≤ μ < 1. The authors report that this update, compared with setting θ^- equal to θ, greatly stabilizes training and improves the final model. Their asymptotic result says that if the distillation loss is zero and the model is Lipschitz in x, then the gap to the teacher's consistency function is of order Δt^p, where p is the order of the ODE solver's local error.

Training without a teacher

The score of the noised distribution can be written as the negative conditional expectation of (x_t − x)/t² given x_t, so an unbiased estimate of the score needs only a data point and its noisy version. Substituting this estimate for the teacher's score in the distillation loss, with an Euler solver and in the limit of many steps, removes the dependence on any pre-trained model.

The authors show that the distillation loss equals the consistency training loss plus a term of order o(Δt), where the consistency training loss uses z drawn from a standard Gaussian to form x plus t z at each time.

The number of time steps N grows during training, and the EMA rate μ is scheduled together with N. Small N gives a loss with less variance and more bias, which speeds up early training. Large N reverses this trade-off, which suits the end of training.

Hyperparameter choices on CIFAR-10

With the same N, Heun's second-order solver beats Euler's first-order solver at every point in the comparison, which fits the authors' error bound for higher-order solvers. Heun's solver with N equal to 18 is the best setting. Once N is large enough, performance changes little with N, consistent with the recommendations of Karras et al.

Consistency training is highly sensitive to N: a smaller N converges faster but gives worse samples, whereas a larger N converges more slowly and gives better samples. Adaptive schedules for N and μ speed up convergence and improve sample quality relative to fixed constants.

Few-step results against progressive distillation

Progressive distillation is the closest comparison, since both methods avoid building a synthetic dataset before distillation.

Across sampling steps and datasets, consistency distillation outperforms progressive distillation, with one exception: at one step on LSUN Bedroom 256ˆ256, consistency distillation with ℓ2 slightly trails progressive distillation with ℓ2.

On CIFAR-10, consistency distillation reaches an FID of 3.55 at one step and 2.93 at two steps, against 8.34 and 5.58 for progressive distillation. On LSUN Bedroom 256ˆ256, consistency distillation gets 7.80 and 5.22, while progressive distillation gets 16.92 and 8.47, and on LSUN Cat 256ˆ256 the values are 11.0 and 8.84 against 29.6 and 15.5.

Methods that build a synthetic dataset before distillation also score worse on CIFAR-10 at one step: knowledge distillation reaches 9.36 and DFNO 4.12, while consistency distillation reaches 3.55.

Standalone consistency training results

Against single-step non-adversarial VAE and normalizing flow models, the authors report a large margin: Glow reaches 48.9 and DC-VAE 17.9 in the same table. Consistency training at one step is close to progressive distillation's one-step FID of 8.34, which the authors describe as comparable quality without distillation.

Some GAN baselines in these tables score much better, for example StyleGAN2 reaches 2.35 on LSUN Bedroom 256ˆ256, so the claim is about non-adversarial single-step models rather than GANs.

Samples from EDM, one-step consistency training and two-step consistency training share structure when generated from the same initial noise, which the authors take as a sign that consistency training is less prone to mode collapse than EDM.

Zero-shot editing

None of these tasks were used in training, so the editing is zero-shot, and the stroke-guided case follows the diffusion-model procedure of SDEdit.

The appendix adds inpainting, interpolation and denoising results, together with more examples of colorization, super-resolution and stroke-guided generation.

Limitations

Consistency training depends strongly on N, so the schedules for N and μ are needed to reach good samples at reasonable speed. The continuous-time objectives involve Jacobian-vector products and need forward-mode automatic differentiation, which some deep learning frameworks do not support well.

When the target network is a stop-gradient copy of the online network, the continuous-time distillation objective is a pseudo-objective. Only its gradient is meaningful for training, so its value cannot be used to track progress. The authors use the empirical choice of the unimodal FID search for time points, and they leave better strategies for choosing time points to future work.

Only one-step ODE solvers are considered; the authors leave generalization to multistep solvers as future work.

The distillation results depend on an EDM teacher that the authors pre-trained in-house, and the reported experiments cover CIFAR-10, ImageNet 64ˆ64 and LSUN Bedroom and Cat at 256ˆ256. Consistency training trails GAN baselines on the LSUN tables, for example 16.0 against 2.35 for StyleGAN2 on Bedroom 256ˆ256, which limits its claims to non-adversarial single-step models.

Paper info

Authors
Yang Song, Prafulla Dhariwal, Mark Chen, Ilya Sutskever
Venue
arXiv · Preprint
First published
2023-3-2
Added
2026-10-20
Updated
2023-5-31
Version
v2
arXiv
2303.01469
Category
cs.LG · cs.CV · 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

Yang Song, Prafulla Dhariwal, Mark Chen, Ilya Sutskever (2023). Consistency Models. arXiv:2303.01469v2. https://arxiv.org/abs/2303.01469v2

BibTeX
@misc{song2023consistency,
  title = {{Consistency Models}},
  author = {Yang Song and Prafulla Dhariwal and Mark Chen and Ilya Sutskever},
  year = {2023},
  eprint = {2303.01469},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.01469v2}
}

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