Skip to main content
QUICK REVIEW

[Paper Review] Gotta Go Fast When Generating Data with Score-Based Models

Alexia Jolicoeur‐Martineau, Ke Li|arXiv (Cornell University)|May 28, 2021
Generative Adversarial Networks and Image SynthesisComputer Science37 references19 citations
TL;DR

This paper proposes a novel adaptive step-size SDE solver for score-based generative models that reduces the number of score function evaluations by up to 10× while maintaining or improving sample quality. By using only two score evaluations per step and leveraging extrapolation for precision, the method accelerates data generation without tuning, achieving 2–10× faster sampling than Euler-Maruyama with superior results on high-resolution images.

ABSTRACT

Score-based (denoising diffusion) generative models have recently gained a lot of success in generating realistic and diverse data. These approaches define a forward diffusion process for transforming data to noise and generate data by reversing it (thereby going from noise to data). Unfortunately, current score-based models generate data very slowly due to the sheer number of score network evaluations required by numerical SDE solvers. In this work, we aim to accelerate this process by devising a more efficient SDE solver. Existing approaches rely on the Euler-Maruyama (EM) solver, which uses a fixed step size. We found that naively replacing it with other SDE solvers fares poorly - they either result in low-quality samples or become slower than EM. To get around this issue, we carefully devise an SDE solver with adaptive step sizes tailored to score-based generative models piece by piece. Our solver requires only two score function evaluations, rarely rejects samples, and leads to high-quality samples. Our approach generates data 2 to 10 times faster than EM while achieving better or equal sample quality. For high-resolution images, our method leads to significantly higher quality samples than all other methods tested. Our SDE solver has the benefit of requiring no step size tuning.

Motivation & Objective

  • To address the slow inference speed of score-based generative models, which rely on iterative numerical solvers with high computational cost.
  • To develop an SDE solver tailored to the unique characteristics of score-based models, such as high-dimensional data and expensive score evaluations.
  • To eliminate the need for manual step size tuning while achieving faster sampling and higher-quality samples than existing methods.
  • To enable efficient, high-fidelity generation of high-resolution images using score-based models.

Proposed method

  • Design an adaptive step-size SDE solver that uses the ℓ₂ norm to measure error across high-dimensional components, avoiding single-pixel dominance.
  • Limit score function evaluations to two per step to minimize computational overhead, even with adaptive steps.
  • Use extrapolation to achieve high-precision solutions without additional score evaluations.
  • Set relative tolerance (ε_rel) as the only hyperparameter, with ε_rel = 0.01 for high quality and ε_rel = 0.05 for speed, ensuring stable performance across settings.
  • Integrate the solver into the reverse diffusion process of score-based models, replacing Euler-Maruyama for faster, higher-quality sampling.
  • Optimize for both VE and VP diffusion processes, handling the high noise in VE by starting with small steps and increasing them over time.

Experimental results

Research questions

  • RQ1Can an adaptive step-size SDE solver outperform Euler-Maruyama in speed and sample quality for score-based generative models?
  • RQ2Why do standard SDE solvers fail in score-based modeling despite their theoretical advantages?
  • RQ3How can we minimize score function evaluations while maintaining high-precision solutions in high-dimensional score-based generation?
  • RQ4Does the proposed solver generalize across different diffusion processes (VE vs. VP) and data modalities?
  • RQ5Can the solver achieve better FID scores than ODE-based alternatives like Probability Flow at comparable computational budgets?

Key findings

  • The proposed SDE solver generates data 2 to 10 times faster than Euler-Maruyama while achieving better or equal Fréchet Inception Distance (FID) scores.
  • For high-resolution image generation, the method produces significantly higher-quality samples than all other tested methods, including ODE solvers and DDIM.
  • On CIFAR-10 with VE processes, the solver achieves better FID than Euler-Maruyama when the number of function evaluations (NFE) is sufficiently large (≥270).
  • The solver outperforms Probability Flow in high-resolution settings, where the latter fails to converge and yields poor FID scores.
  • DDIM maintains lower FID at extremely low NFE (<50), but the proposed method is superior at moderate to high NFEs and offers better trade-offs between speed and quality.
  • The method requires no step size tuning and shows stable performance across different relative tolerance values (ε_rel), with ε_rel = 0.01 and 0.05 being effective defaults.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.