NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

The Value of Covariance Matching in Gaussian DDPMs and the Lanczos Sampler

Md Sahil Akhtar, Aymane El Gadarri, Vivek Farias, Adam Daniel JozefiakNeurIPS 2026

TL;DR

Standard diffusion models take a massive shortcut during generation by pretending pixels are completely uncorrelated at each denoising step—a simplification that fundamentally caps how fast they can generate accurate trajectories. This paper proves that capturing the full covariance between features breaks this mathematical speed limit, slashing trajectory error from $\Omega(1/T)$ down to $O(1/T^2)$. Better yet, the authors show how to do this on any pretrained model without storing massive matrices or training auxiliary networks, using a classic linear algebra trick that takes just three extra backward passes.

What Problem Does This Paper Address?

Denoising Diffusion Probabilistic Models (DDPMs) generate images by reversing a gradual noise-addition process over $T$ steps. Each reverse step is modeled as a Gaussian distribution, which requires a mean and a covariance matrix. While neural networks are great at predicting the mean, dealing with a full covariance matrix in high dimensions is a nightmare: for a modest $64 \times 64$ RGB image ($d = 12,288$), storing a dense $d \times d$ covariance matrix takes $O(d^2)$ memory, and training a network to predict it is notoriously unstable.

To survive this, standard DDPMs assume the covariance is isotropic (a simple scalar multiplied by the identity matrix) or, in more advanced methods like OCM-DDPM, diagonal (ignoring correlations between different pixels).

This simplification comes with a hidden tax on the path-space KL divergence—a measure of how closely the entire generated trajectory matches the true reverse process. Getting the whole path right (not just the final endpoint) is critical for techniques like classifier guidance, which nudge the generation trajectory at every single step. Prior work showed that isotropic covariances hit a hard error floor of $\Omega(1/T)$. The authors show that even the best possible diagonal covariance is stuck at this exact same $\Omega(1/T)$ barrier. Can we break this barrier, and can we do it practically at image scale?

Methods

First, using information-theoretic tools (specifically, higher-order I-MMSE identities from Gaussian channel theory), the authors prove that matching the full optimal posterior covariance drops the path-KL error to $O(1/T^2)$—an order-of-magnitude improvement in step complexity.

To actually realize this without $O(d^2)$ memory or auxiliary covariance networks, they introduce the Lanczos Gaussian Sampler (LGS). The core insight is that we never need to build or store the covariance matrix $\Sigma$; we only need to draw a sample, which boils down to computing $\Sigma^{1/2}Z$ for a standard Gaussian vector $Z$.

Here is how LGS pulls this off in a completely matrix-free, training-free way:

  1. Tweedie’s Identity + Autodiff: By Tweedie's formula, the optimal posterior covariance $\Sigma$ is proportional to the Jacobian (the matrix of partial derivatives) of the pretrained denoiser's mean network. While forming the full Jacobian is expensive, multiplying $\Sigma$ by any vector $v$ is just a Jacobian-vector product—which modern autodiff computes in $O(d)$ memory via a single backward pass!
  2. Krylov-Lanczos Approximation: Armed with an oracle that computes $\Sigma v$, LGS runs $m$ steps of the classical Lanczos algorithm to project the problem onto a tiny $m \times m$ tridiagonal matrix, computes the matrix square root there, and maps it back to approximate $\Sigma^{1/2}Z$.
Algorithm 1: Krylov-Lanczos approximation

To keep wall-clock inference fast, the authors also introduce batching—computing $l$ noise samples in parallel at step $t$ and reusing that slightly "stale" covariance over the next $l$ steps—as well as LGSb-DDPM, which only turns on LGS for the final 25% of denoising steps where covariance accuracy matters most.

Datasets

No new benchmarks were introduced. The authors evaluate their theory and sampler on:

  • 2D Toy Mixture of 40 Gaussians: Used to compute exact, closed-form path-KL divergences.
  • Standard Image Benchmarks: CIFAR-10, CelebA $64\times64$, and ImageNet $64\times64$ (used for both unguided generation and conditional classifier-guided generation), evaluated via Fréchet Inception Distance (FID) using existing pretrained score networks.

Key Insights and Ideas

  • Diagonal isn't enough for trajectory accuracy: Moving from isotropic to optimal diagonal covariance lowers error in absolute terms, but fails to change the $\Omega(1/T)$ scaling law. Off-diagonal pixel correlations are mathematically required to hit $O(1/T^2)$.
Path KL scaling across covariance types on a 2D Gaussian mixture
  • Near-isotropy makes Lanczos exponentially fast: Because the true reverse covariance is close to a scaled identity matrix when $T$ is reasonably large, its condition number is tiny ($\kappa \le 2$). As a result, the Lanczos approximation error decays exponentially as $O(3^{-m})$. Setting $m = 3$ (just three backward passes) is practically indistinguishable from $m = 5$.
  • Path KL governs classifier guidance: The authors formally prove that unconditional path KL bounds the endpoint error of classifier-guided sampling. Because LGS applies the full covariance to both the injected noise and the classifier gradient direction, its advantages shine brightest in guided generation.
  • Stale covariances can actually help: Counterintuitively, batching across $l = 2$ steps (using a slightly stale covariance on the second step) beat $l = 1$ in 5 out of 9 unguided benchmarks—possibly due to an implicit averaging effect, though the exact theoretical reason remains an open question.

Key Results

Across CIFAR-10, CelebA $64\times64$, and ImageNet $64\times64$ at $T \in \{25, 50, 100\}$ steps, a variant of LGS-DDPM consistently achieves the best (lowest) FID, outperforming isotropic DDPMs and the state-of-the-art diagonal baseline OCM-DDPM—without needing OCM's auxiliary covariance network:

  • Unguided Generation: At $T = 25$, LGS-DDPM ($m=3, l=1$) drops FID relative to OCM-DDPM from 9.39 to 5.06 on CIFAR-10, 12.66 to 9.58 on CelebA, and 27.82 to 22.13 on ImageNet. With batching ($l=2$) at $T=50$, CIFAR-10 FID drops further to 3.85 (vs. 5.83 for OCM).
  • Matched Wall-Clock Compute: When OCM-DDPM is given extra denoising steps ($T = 118$) to match the exact per-sample wall-clock runtime of LGS-DDPM ($m=3, l=2$ at $T = 50$), LGS still wins on CIFAR-10 (3.85 vs. 5.45) and CelebA (6.38 vs. 6.67), though OCM takes the lead on ImageNet (17.60 vs. 22.28).
  • Classifier Guidance: On guided ImageNet $64\times64$, LGS-DDPM ($m=3, l=1$) beats OCM-DDPM across the board, cutting FID by 18.8% at $T=25$ (19.05 vs. 23.45), 7.9% at $T=50$ (16.15 vs. 17.53), and 3.8% at $T=100$ (15.60 vs. 16.22).

Limitations and Future Work

While the authors defer their dedicated Limitations and Future Work section to Appendix H (not included in the main text), several practical boundaries are evident in the paper:

  • Per-step compute overhead: Even with $m=3$, LGS requires 3 backward passes per step (unless amortized via batching), making it slower per step than a two-forward-pass auxiliary method like OCM-DDPM—a trade-off visible in the matched wall-clock ImageNet results.
  • Imperfect learned Jacobians: While the true optimal covariance $\Sigma_{\theta^*}$ is symmetric positive semi-definite (PSD), the Jacobian of a learned neural network is only approximately symmetric and PSD (requiring eigenvalue clamping in the tiny projected matrix $T_m$).
  • No direct likelihoods & open batching theory: Because LGS draws samples implicitly without forming the density, exact likelihood evaluation is infeasible. Additionally, theoretically explaining why covariance batching ($l=2$) improves FID over exact per-step evaluation ($l=1$) remains an open problem.

Summary updated

BibTeX
@inproceedings{akhtar2026value,
  author = {Md Sahil Akhtar and Aymane El Gadarri and Vivek Farias and Adam Daniel Jozefiak},
  title = {{The Value of Covariance Matching in Gaussian DDPMs and the Lanczos Sampler}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=zfgaE5LyWU},
}
Figure