Diffusion Sampling Correction via Approximately 10 Parameters

Guangyi Wang, Wei Peng, lijiang Li, Wenyu Chen, Yuren Cai, Song-Zhi Su

Introduction

Diffusion Probabilistic Models (DPMs) are renowned for producing high-quality images, but they are notoriously slow, often requiring hundreds of iterations to generate a single sample. While "fast solvers" like DDIM or DPM-Solver can reduce this to 10–20 steps, they suffer from truncation errors—the mathematical gap between the estimated discrete step and the true continuous probability flow. When the number of function evaluations (NFE) drops below 10, these errors accumulate rapidly, leading to severe degradation in image quality.

Existing solutions to this problem usually involve knowledge distillation. However, distillation is computationally expensive (often requiring hundreds of GPU hours), adds millions of parameters to the model, and frequently destroys the model's inherent ability to interpolate between different prompts or noise vectors.

To address this, researchers have introduced PCA-based Adaptive Search (PAS), a "plug-and-play" method that corrects the sampling trajectories of diffusion models using as few as 10 learnable parameters. By identifying that sampling errors are concentrated in specific high-curvature regions of a low-dimensional subspace, PAS achieves state-of-the-art image quality at very low sampling steps (NFE < 10) with sub-minute training times.

Methodology: PCA-based Adaptive Search (PAS)

The PAS method is built upon two clever geometric observations regarding the behavior of diffusion sampling trajectories.

1. Low-Dimensional Trajectories

While the image space itself is highly dimensional, the sampling trajectory for any single image actually lies in a very low-dimensional subspace (typically just 3 dimensions capture the vast majority of the variance). PAS uses Principal Component Analysis (PCA) to extract a few basis vectors that span this specific space.

Instead of predicting a massive, high-dimensional correction vector for each step, the model only needs to learn a few coordinates (coefficients) corresponding to these basis vectors to nudge the trajectory back on track.

Illustration of the PCA-based trajectory correction using orthogonal basis vectors.

The authors observed that truncation errors are not distributed uniformly across the sampling process. Instead, they follow an "S-shape": errors are relatively low at the very beginning and end of the generation process but spike dramatically in the middle steps where the trajectory exhibits high curvature.

Truncation errors exhibit an S-shape over time (left), which are significantly reduced after applying PAS correction (right).

Rather than applying corrections at every single step, PAS employs an adaptive search strategy to identify and correct only these high-curvature steps. This targeted approach is what allows the method to reduce the total number of required learnable parameters to roughly 10–12 per dataset.

The training process is remarkably lightweight. It involves using a "teacher" solver (e.g., running at 100 steps) to generate ground truth trajectories. Then, Stochastic Gradient Descent (SGD) is used to optimize the low-dimensional coordinates for a "student" solver (e.g., running at 10 steps).

Key Insights and Results

The method was rigorously evaluated across a wide range of resolutions and model types, including CIFAR10 (32x32), FFHQ & ImageNet (64x64), LSUN Bedroom (256x256), and Stable Diffusion v1.4 (512x512).

  • Individual vs. Global Subspaces: A critical insight of PAS is that while the entire dataset's trajectories do not fit into a single low-dimensional space, individual sample trajectories do. Because the geometric shape of these trajectories is consistent across the dataset, PAS can learn a single set of coordinates that generalizes across all samples.
  • Massive Quality Boost at Minimal Cost: On CIFAR10, PAS improved DDIM’s FID score (where lower is better) from 15.69 to 4.37 at NFE=10. Astonishingly, the entire correction is stored in just 12 parameters, and the optimization takes less than one minute on a single A100 GPU.
  • Preserving Latent Properties: Because PAS only adjusts the sampling direction and does not retrain the underlying U-Net weights, it preserves the original model's interpolation capabilities—a major advantage over traditional distillation methods.
  • Latent Diffusion Compatibility: Even in complex latent diffusion models like Stable Diffusion, PAS consistently improved FID and image detail at low step counts (e.g., NFE=6).

Limitations and Future Directions

While highly efficient, PAS does have some limitations. The method requires generating a small set of "ground truth" trajectories (e.g., 5,000 samples at 100 steps) to train the coordinates. While this is orders of magnitude cheaper than distillation, it remains a prerequisite step. Additionally, the learned coordinates are specific to a given dataset and a specific NFE count; changing the number of sampling steps requires re-running the sub-minute optimization.

Looking forward, the authors suggest investigating whether there is a universal analytical form for these trajectories. Discovering such a form could potentially lead to "one-step" sampling without the need for any training or optimization at all.

Summary updated

BibTeX
@inproceedings{wang2025diffusion,
  author = {Guangyi Wang and Wei Peng and lijiang Li and Wenyu Chen and Yuren Cai and Song-Zhi Su},
  title = {{Diffusion Sampling Correction via Approximately 10 Parameters}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=yPhAbeQxbJ},
}
Figure