Q-Drift: Quantization-Aware Drift Correction for Diffusion Model Sampling

Sooyoung Ryu, Mathieu Salzmann, Saqib Javed
3/18/2026
5 citations
cs.CVcs.LG
diffusion-flowquantization-pruning

Official code: sooyoung-ryu/Q-Drift (4 stars, Python, Apache-2.0, last commit 2026-10-12).

Abstract

Post-training quantization (PTQ) is a practical path to deploy large diffusion models, but quantization noise can accumulate over the denoising trajectory and degrade generation quality. We propose Q-Drift, a sampler-side correction that aims to preserve the intended sampling marginals through a deterministic drift adjustment motivated by generalized marginal-preserving SDEs.

Show full abstract

Q-Drift uses the calibrated conditional residual variance of quantization error to determine a correction factor at each step. Our SDXL study shows that calibration with as few as 10 paired full-precision/quantized runs remains effective. The resulting sampler correction is plug-and-play with common samplers, diffusion models, and PTQ methods, while incurring negligible overhead at inference. Across six diverse text-to-image models (spanning DiT and U-Net), three samplers (Euler, flow-matching, DPM-Solver++), and two PTQ methods (SVDQuant, MixDQ), Q-Drift improves FID over the corresponding quantized baseline in all seven settings of our main evaluation, with up to 4.79 FID reduction on PixArt-Sigma (SVDQuant W3A4), while preserving CLIP scores. Code is available at https://github.com/sooyoung-ryu/Q-Drift.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
40Python, ShellSep 24, 20261 months agoApache-2.0

Similar Papers

Cite this paper

@article{ryu2026qdrift,
  title  = {Q-Drift: Quantization-Aware Drift Correction for Diffusion Model Sampling},
  author = {Sooyoung Ryu and Mathieu Salzmann and Saqib Javed},
  year   = {2026},
  eprint = {2603.18095},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.18095v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2603.18095.svg)](https://codeofpaper.com/paper/2603.18095)

Discussion