arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.18095cs.CVcs.LG
收藏

Q-Drift:扩散模型采样中的量化感知漂移校正

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

Department of Computer Science and Engineering, Seoul National University, Seoul, South Korea(计算机科学与工程系,首尔国立大学,韩国首尔);School of Computer and Communication Sciences, EPFL, Lausanne, Switzerland(计算机与通信科学学院,瑞士洛桑联邦理工学院);Meta Reality Labs, Redmond, USA(Meta现实实验室,美国西雅图)

Sooyoung Ryu, Mathieu Salzmann, Saqib Javed

AI总结:

本文提出Q-Drift,一种在采样端校正量化噪声的方法,通过将量化误差视为隐含的随机扰动,提升扩散模型生成质量,实验显示在多种模型和方法上均有效。

摘要:

后训练量化(PTQ)是部署大型扩散模型的实用途径,但量化噪声会在去噪轨迹中累积并降低生成质量。我们提出了Q-Drift,一种原理性的采样端校正方法,将量化误差视为每个去噪步骤的隐含随机扰动,并推导出保持边际分布的漂移调整。Q-Drift从校准中估计时间步的方差统计,在实践中仅需5次配对的高精度/量化校准运行即可。所得到的采样器校正可与常见采样器、扩散模型和PTQ方法无缝集成,且在推理时开销极小。在六个多样本的文本到图像模型(涵盖DiT和U-Net)、三种采样器(Euler、flow-matching、DPM-Solver++)和两种PTQ方法(SVDQuant、MixDQ)上,Q-Drift在大多数设置中提高了FID,例如在PixArt-Sigma(SVDQuant W3A4)上FID减少达4.59,同时保持CLIP分数。

英文摘要:

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. 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑