← All publications

How Much is Enough? A Study on Diffusion Times in Score-based Generative Models

  • Diffusion Models
  • Generative Modeling

We characterize the trade-off between score approximation and reverse-process initialization, then learn an auxiliary distribution that enables shorter diffusion horizons.

Paper Entropy 2023

Giulio Franzese1, Simone Rossi1, Lixuan Yang2, Alessandro Finamore2, Dario Rossi2, Maurizio Filippone1, Pietro Michiardi1

  1. EURECOM
  2. Huawei Technologies Paris

A diffusion model learns to reverse the gradual corruption of data into noise. The diffusion horizon determines both how close the corrupted data become to the noise distribution and how much denoising the model must learn. We characterize this trade-off and fit an auxiliary density to the partially corrupted data. This learned starting distribution supports shorter reverse trajectories, with measurable trade-offs between likelihood, image quality, and computation.

Why the diffusion horizon matters

Let p(x,t)p(\mathbf{x},t) be the marginal density of an affine forward diffusion, with p(x,0)=pdata(x)p(\mathbf{x},0)=p_{\mathrm{data}}(\mathbf{x}). Exact reversal requires its score ∇log⁡p(x,t)\nabla\log p(\mathbf{x},t) and samples from p(x,T)p(\mathbf{x},T). In practice, we learn sθ\mathbf{s}_\theta and initialize from a Gaussian pnoisep_{\mathrm{noise}}. Our evidence lower bound (ELBO) separates these approximations:

Epdatalog⁡q(x,T)≥LELBO(sθ,T),LELBO(sθ,T)=Cdata−G(sθ,T)−KL⁡ ⁣[p(x,T) ∥ pnoise].\begin{aligned} \mathbb{E}_{p_{\mathrm{data}}}\log q(\mathbf{x},T) &\geq \mathcal{L}_{\mathrm{ELBO}}(\mathbf{s}_\theta,T),\\ \mathcal{L}_{\mathrm{ELBO}}(\mathbf{s}_\theta,T) &= C_{\mathrm{data}}-\mathcal{G}(\mathbf{s}_\theta,T)\\ &\quad-\operatorname{KL}\!\left[p(\mathbf{x},T)\,\|\,p_{\mathrm{noise}}\right]. \end{aligned}

Here q(x,T)q(\mathbf{x},T) is the generated density and Cdata=Epdatalog⁡pdataC_{\mathrm{data}}=\mathbb{E}_{p_{\mathrm{data}}}\log p_{\mathrm{data}} is constant. With likelihood weighting g2(t)g^2(t), where gg is the forward diffusion coefficient, the score gap is

G(sθ,T)=12∫0Tg2(t) Ep(x,t)∥sθ(x,t)−∇log⁡p(x,t)∥2 dt.\mathcal{G}(\mathbf{s}_\theta,T) =\frac12\int_0^T g^2(t)\, \mathbb{E}_{p(\mathbf{x},t)} \left\|\mathbf{s}_\theta(\mathbf{x},t)-\nabla\log p(\mathbf{x},t)\right\|^2\,dt.

For a fixed score-model family, its globally optimized gap is nondecreasing in TT. For variance-preserving (VP) and variance-exploding (VE) processes, the Gaussian mismatch decreases with TT under the smoothness and finite-KL assumptions of the analysis. These opposing trends make the horizon part of the model choice. For a one-dimensional Gaussian mixture, both processes have finite ELBO-maximizing horizons. The general existence of a finite optimum depends on how the score gap grows.

Four plots show score-gap growth, decreasing Gaussian mismatch, and finite ELBO maxima for variance-exploding and variance-preserving toy diffusions.
On a one-dimensional Gaussian mixture, VE (top) and VP (bottom) diffusion show the same tension: a longer horizon reduces initialization mismatch while increasing the score gap. The resulting ELBO peaks below the conventional horizon T=1T=1 in these experiments.

Learning where reverse diffusion starts

We fit a density νϕ\nu_\phi to the endpoint of the shortened forward process. Although p(x,T)p(\mathbf{x},T) is unknown, its samples are available by corrupting training examples with the known Gaussian conditional p(x,T∣x0)p(\mathbf{x},T\mid\mathbf{x}_0). The auxiliary model must support sampling and density evaluation:

ϕ∗=arg⁡max⁡ϕ Ex0∼pdataEp(x,T∣x0)log⁡νϕ(x),LELBOϕ=Cdata−G(sθ,T)−KL⁡ ⁣[p(x,T) ∥ νϕ].\begin{aligned} \phi^*&=\arg\max_\phi\, \mathbb{E}_{\mathbf{x}_0\sim p_{\mathrm{data}}} \mathbb{E}_{p(\mathbf{x},T\mid\mathbf{x}_0)}\log\nu_\phi(\mathbf{x}),\\ \mathcal{L}^{\phi}_{\mathrm{ELBO}} &=C_{\mathrm{data}}-\mathcal{G}(\mathbf{s}_\theta,T)\\ &\quad-\operatorname{KL}\!\left[p(\mathbf{x},T)\,\|\,\nu_\phi\right]. \end{aligned}

Generation samples from νϕ\nu_\phi, then runs the standard learned reverse diffusion. Its two models can train independently and concurrently. If the auxiliary family contains pnoisep_{\mathrm{noise}}, globally optimizing ϕ\phi weakly improves the endpoint term at the same horizon. With optimal scores, continuity of the auxiliary ELBO, and a baseline optimum T∗T^*, the comparison gives

∃ τ≤T∗:LELBOϕ∗(s^θ,τ)≥LELBO(s^θ,T∗).\exists\,\tau\leq T^*:\qquad \mathcal{L}_{\mathrm{ELBO}}^{\phi^*}(\widehat{\mathbf{s}}_\theta,\tau) \geq \mathcal{L}_{\mathrm{ELBO}}(\widehat{\mathbf{s}}_\theta,T^*).

The bound concerns the ELBO under these optimization assumptions. The useful reduction in horizon depends on how well the auxiliary family fits the endpoint. For the affine diffusion parametrization and scaled auxiliary families used in the analysis, the optimal ELBO depends on the terminal corruption level. This fixes the corruption level as the relevant quantity when comparing a shorter horizon with a faster noise schedule.

Diagram connects data, the forward endpoint, Gaussian noise, and an auxiliary density through exact and approximate reverse trajectories.
The blue route first samples an auxiliary density close to the forward endpoint, then follows reverse diffusion. This reduces the initialization error relative to the red route from Gaussian noise. The labeled discrepancies track the score and initialization contributions to the bound.

Shorter horizons leave more structure in the endpoint distribution and require greater auxiliary capacity. We use a Dirichlet-process Gaussian mixture on MNIST and the Glow normalizing flow on CIFAR10 and CelebA.

The number of fitted Dirichlet-process Gaussian-mixture components decreases as diffusion time increases.
The fitted mixture uses more components at shorter diffusion times, showing how endpoint complexity shifts work into the auxiliary model. Points and shading report the median and 95% quantiles over four seeds.

Image quality, likelihood, and sampling cost

On MNIST and CIFAR10, we keep the VP noise schedule fixed and train the score over [0,T][0,T], using a reduced U-Net and NCSN++, respectively. On MNIST, the auxiliary model at T=0.4T=0.4 obtains 1.17 bits per dimension (BPD) with 235 ordinary differential equation (ODE) evaluations; the T=1T=1 baseline obtains 1.16 with 300.

For CIFAR10, T=0.6T=0.6 reduces stochastic sampling from 1000 to 600 neural function evaluations (NFE), with Fréchet Inception Distance (FID) changing from 3.64 to 3.72. At T=0.4T=0.4, the auxiliary model achieves FID 5.44 versus 24.91 for direct Gaussian initialization at the same horizon.

CIFAR10 results table compares FID, bits per dimension, and stochastic and deterministic sampling evaluations across diffusion horizons and published baselines.
Shortening the baseline damages FID much faster than BPD. The auxiliary density recovers much of the lost sample quality, while the lowest tested horizon still has FID 14.38. Lower BPD and FID indicate better performance; NFE counts neural function evaluations.
Three CIFAR10 sample grids compare real data, direct Gaussian initialization, and auxiliary initialization at diffusion time 0.4.
At T=0.4T=0.4, auxiliary initialization produces more recognizable CIFAR10 objects than the baseline at the same horizon. The displayed samples are selected examples from each model.

The CIFAR10 training curves reach the baseline's final BPD sooner. In our four-GPU training comparison, the runs take approximately 6.4 days for the baseline, two days for the shortened score model, and 2.3 days for Glow. With resources for concurrent training, the latter two take 2.3 elapsed days.

CIFAR10 training curves show auxiliary models at diffusion times 0.2, 0.4, and 0.6 reaching the baseline bits-per-dimension threshold sooner.
Across 1.3 million training iterations, shorter-horizon models cross the fully trained baseline's BPD threshold earlier. This comparison concerns likelihood convergence; auxiliary-model training contributes additional work.

For CelebA at 64×6464\times64, we use VE diffusion and Glow. Reusing a score pretrained at T=1T=1, then sampling at T=0.2T=0.2, gives BPD 2.32 with nine ODE evaluations, versus 2.13 with 68 for the full-horizon baseline.

CelebA results table compares likelihood and ODE evaluation counts for full diffusion, shortened diffusion, auxiliary initialization, pretrained scores, and Glow.
On CelebA, the auxiliary density makes shortened trajectories usable, while likelihood remains below the full diffusion baseline. Reusing the pretrained score improves the auxiliary model's BPD, exposing a practical interaction between training strategy and horizon.

The likelihood calculation also depends on the sampling dynamics. An approximate probability-flow ODE has its own endpoint distribution; fitting an auxiliary density to those endpoints requires sequential training and yields modest likelihood gains on MNIST. Across these experiments, a shorter diffusion trajectory shifts computation into the auxiliary model. The resulting benefit depends on its capacity to represent the partially corrupted data and on whether training targets stochastic or deterministic endpoints.

For trajectory prediction, our joint trajectory diffusion model uses an informative Gaussian to start reverse sampling at an earlier diffusion time.