Command Palette
Search for a command to run...
Hochgenaues Sampling für Diffusionsmodelle und log-konkave Verteilungen
Hochgenaues Sampling für Diffusionsmodelle und log-konkave Verteilungen
Fan Chen Sinho Chewi Constantinos Daskalakis Alexander Rakhlin
Zusammenfassung
Wir präsentieren Algorithmen für das Sampling von Diffusionsmodellen, die δ-Genauigkeit in polylog(1/δ) Schritten erreichen, unter der Voraussetzung, dass O(δ)-genaue Score-Schätzungen in L2 verfügbar sind. Dies stellt eine exponentielle Verbesserung gegenüber allen bisherigen Ergebnissen dar. Insbesondere beträgt die Komplexität unter minimalen Datenannahmen O(d⋆polylog(1/δ)), wobei d⋆ die intrinsische Dimension der Daten ist. Darüber hinaus reduziert sich die Komplexität unter einer nicht-uniformen L-Lipschitz-Bedingung auf O(Lpolylog(1/δ)). Unser Ansatz liefert zudem den ersten Sampler mit polylog(1/δ)-Komplexität für allgemeine log-konkave Verteilungen, der ausschließlich Score-Auswertungen verwendet.
One-sentence Summary
Researchers from MIT and Yale present a diffusion sampling method that obtains δ-error in polylog(1/δ) steps using O(δ)-accurate score estimates in L2, an exponential speedup over all previous results, with complexity O(d⋆polylog(1/δ)) or O(Lpolylog(1/δ)) under a non-uniform L-Lipschitz condition, and further achieve the first polylog(1/δ) sampler for log-concave distributions via gradient evaluations.
Key Contributions
- Given O(δ)-accurate score estimates in L2, the sampling algorithm achieves complexity O(d⋆polylog(1/δ)) under minimal data assumptions, where d⋆ is the intrinsic dimension, an exponential improvement in accuracy dependence over prior methods.
- Under a non-uniform L-Lipschitz score condition, the complexity reduces to O(Lpolylog(1/δ)), replacing the dimension dependence with the Lipschitz constant.
- The framework yields the first polylog(1/δ)-complexity sampler for general log-concave distributions using only gradient evaluations.
Introduction
The authors tackle a central question in diffusion-based generative modeling: can sampling be performed with high accuracy—meaning only polylogarithmic steps in the inverse target error—using only gradient (score) evaluations, without access to the density? Standard high-accuracy samplers rely on accept/reject methods that require density evaluations, while score-only discretizations of stochastic processes suffer from a bias that forces a polynomial dependence on 1/δ. Existing diffusion samplers, even with higher-order discretizations, achieve at best sub-polynomial but still polynomially bounded query complexity. The authors overcome this barrier by introducing first-order rejection sampling (FORS), a meta-algorithm that simulates rejection sampling using only gradient queries. Applied to diffusion models, FORS yields a query complexity of O(d⋆log3((d+M22)/δ)) under minimal data assumptions, and near-dimension-free guarantees under a Lipschitz score condition, representing an exponential improvement over prior work in the dependence on the accuracy parameter.
Method
The authors develop a unified high-accuracy sampling framework that operates solely with first-order (gradient) queries. The central building block is a novel subroutine called first-order rejection sampling (FORS), which allows exact sampling from a tilted distribution p(x)∝q(x)ew(x) without ever evaluating the log‑density w(x). Instead, for each candidate x, FORS draws i.i.d. unbiased estimates W1,W2,… such that E[W1∣x]=w(x), and uses a Bernoulli‑factory technique to accept or reject x with the correct probability. Concretely, writing ew(x)=e−1eE[1+W1] and sampling a Poisson random variable J, the probability of acceptance is recovered as E∏j=1J21+Wj. The number of gradient queries per acceptance is bounded with high probability, making the procedure efficient when the estimates are suitably bounded.
This FORS subroutine is then specialised to Gaussian tilt distributions of the form
ν(x)∝exp(−f(x)−2η∥x−x0∥2),which arise naturally in both diffusion model sampling and log‑concave sampling. The key idea is to choose a Gaussian proposal q=N(x0−η∇f(x+),ηI) that approximates ν via a local linearisation of f. A path‑integral representation expresses the log‑ratio logν(x)−logq(x) as an expectation:
w(x)=Er∼Unif,z∼P⟨γ˙z,r(x),∇f(x+)−∇f(γz,r(x))⟩,where γz,r(x) is a carefully designed curve with γz,1(x)=x and γz,0(x)=γˉ(z) independent of x. Under a Hölder‑smoothness assumption ∥∇f(x)−∇f(y)∥≤βs∥x−y∥s, the estimators are clipped to a constant interval [−B,B], and Theorem 3.3 guarantees that the resulting law ν is very close to the true tilt in χ2 divergence provided the step size η is chosen appropriately (e.g., η−1≫β1dlog(1/δ) in the smooth case).
The framework is then lifted to diffusion sampling. The backward transition kernel of the diffusion can be written as a Gaussian tilt, so each reverse step becomes an application of FORS with a score estimate sk. The proposal distribution is chosen as
ρˉk(⋅∣Xk+1)=N(αk−1Xk+1+αkηksk+1(Xk+1),ηˉkI),which corresponds to an exponential integrator approximation and is almost the KL‑minimiser to the true transition. The “corrector” distribution that supplies the unbiased estimates is built from a path function γz,r,x(x) with coefficients ar,br that satisfy a norm preservation identity, ensuring dimension‑free variance bounds.
A central concept is the intrinsic dimension of the data distribution:
dimσ2(p)=1∨r≥0inf(logN(p;r)+σ2r2)∧d,and d⋆=dimσ02/α02(pdata). This quantity captures low‑dimensional structure, small support size, or bounded radius, and is never larger than the ambient dimension d. Using d⋆, the step size condition becomes σk2/ηk≫d⋆log(1/δ)+log2(1/δ), leading to a diffusion sampling complexity of order
d⋆⋅log3(δ2d+M22)for the bounded‑Lipschitz metric. When the data distribution is log‑smooth the same scheme yields a KL guarantee with d replacing d⋆.
A further refinement uses non‑uniform Lipschitz conditions. Under the assumption that the score Jacobian ∇mτ(Yτ) has bounded operator norm with high probability (which holds unconditionally with Lop,δ=O(d⋆+log(1/δ)) and becomes constant for log‑concave or mixture models), the effective Frobenius norm bound LF,δ can be substantially smaller than d. This reduces the required step size condition to σk2/ηk≫LF,δlog(d⋆/δ)+log2(1/δ), resulting in a complexity as low as min{dLop,d⋆2/3Lop1/3} times polylogarithmic factors. The analysis also verifies that the same Lipschitz parameter controls the smoothness of the score under the one‑step DDPM distribution, closing the loop of the induction.
Finally, the authors apply the same Gaussian tilt technique to log‑concave sampling via the proximal sampler. The restricted Gaussian oracle (RGO) that appears in the Gibbs step is exactly a tilt distribution, so FORS replaces zeroth‑order queries with first‑order ones. Under log‑concavity, strong log‑concavity, or isoperimetric assumptions, the resulting outer loop of the proximal sampler combined with FORS yields high‑accuracy guarantees whose complexities scale with dimension only through d (for smooth potentials) or are dimension‑free in the Lipschitz case. This unifies the treatment of diffusion models and classical log‑concave sampling within a single first‑order query framework.
Experiment
The evaluation applies the proximal sampler, where the restricted Gaussian oracle is realized via FORS, to sampling from log-concave and isoperimetric targets using only first-order queries. For smooth potentials (s=1), it attains high-accuracy guarantees in chi-squared or KL divergence under log-Sobolev, Poincaré, or log-concavity, with query complexity that scales polynomially with the condition number, dimension (often d^{1/2}), and the initial distributional distance. For Lipschitz potentials (s=0), analogous guarantees are derived under Poincaré and log-concavity, requiring no zeroth-order queries and avoiding discretization-error degradation. Overall, the results demonstrate that first-order sampling can achieve high precision without the limitations of diffusion-based discretization or zeroth-order oracles.