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

Quantizing Diffusion Models from a Sampling-Aware Perspective

Qian Zeng, Jie Song, Yuanyu Wan, Huiqiong Wang, Mingli Song · DOI

Diffusion models, such as Stable Diffusion, have revolutionized generative AI but remain notoriously difficult to deploy on edge devices. Their high computational cost stems from two factors: the massive size of the underlying neural networks and the iterative nature of the denoising process. While quantization (reducing bit-precision) and advanced samplers (reducing steps) are standard solutions, they often conflict. This paper introduces a Sampling-Aware Quantization framework that harmonizes these two approaches, enabling high-fidelity generation even at ultra-low 4-bit precision.

The Challenge: Quantization-Induced Trajectory Drift

Standard quantization techniques often fail when paired with fast, high-order samplers (like DPM-Solver). High-order samplers rely on evaluating multiple intermediate points to estimate a precise "probability flow" direction. However, quantization introduces noise that disrupts these directional estimates. In sparse-step regimes (e.g., 20 steps), this error accumulates rapidly, causing the sampling trajectory to deviate from the ideal path. This often results in complete generation failure at low bit-widths, where the output becomes unrecognizable noise.

Methodology: Mixed-Order Trajectory Alignment (MOTA)

The core innovation of this work is Mixed-Order Trajectory Alignment (MOTA). Rather than simply minimizing weight reconstruction error, the authors focus on the sampling trajectory itself. They force the quantized model—which is inherently noisier—to follow the "ideal" path calculated by a high-order sampler using the full-precision (FP32) model.

Geometric interpretation of sampling trajectories and the proposed alignment strategies (a-d) to maintain stability under quantization.

The framework is implemented in two primary variants:

  • SA-PTQ (Sampling-Aware Post-Training Quantization): Optimized for 8-bit quantization, this training-free method uses "Dual-Order Trajectory Sampling" to collect calibration data that captures both first-order and second-order sampling directions.
  • SA-QLoRA: Designed for ultra-low bit-widths (e.g., 4-bit). It integrates the MOTA strategy into a fine-tuning process using Low-Rank Adaptation (LoRA). It employs a directional constraint based on Cosine Similarity and a trajectory alignment loss to "teach" the 4-bit model to stay on the correct path.

Experimental Results

The authors evaluated the framework across standard benchmarks including ImageNet, LSUN, and MS-COCO. The results demonstrate significant resilience in the "danger zone" of 4-bit quantization (W4A4/W4A8).

Qualitative comparison of generation results across different quantization methods. SA-QLoRA maintains high fidelity where other methods fail.

Key Performance Metrics:

  • Outperforming Full Precision: On ImageNet (W4A8), SA-QLoRA achieved an FID score of 8.55, surpassing the full-precision baseline of 9.45. This suggests that the trajectory alignment process acts as a beneficial regularizer.
  • 4-bit Resilience: While existing methods like PTQ4DM or Q-diffusion often produce noise at W4A4 precision, SA-QLoRA maintained high-quality generation with an FID of 13.73.
  • Efficiency Gains: The quantized models achieved up to 46.67x acceleration in bit-operations compared to FP32, alongside a drastically reduced memory footprint.

Conclusion

By shifting the focus from weight reconstruction to sampling-aware trajectory alignment, this research provides a robust path for deploying diffusion models in resource-constrained environments. While SA-QLoRA requires a brief fine-tuning stage, the resulting efficiency and quality gains represent a significant step forward for the practical application of generative AI.

Summary updated

BibTeX
@inproceedings{zeng2026quantizing,
  author = {Qian Zeng and Jie Song and Yuanyu Wan and Huiqiong Wang and Mingli Song},
  title = {{Quantizing Diffusion Models from a Sampling-Aware Perspective}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=JGRQPX2NPQ},
}
Figure