arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2607.08241cs.CVcs.LG
收藏

消除零空间:用于无分类器扩散的引导感知量化

Closing the Null Space: Guidance-Aware Quantization for Classifier-Free Diffusion

Abdullah Al Shafi, Sumaiya Rahim Suma

AI总结:

研究在实际计算预算下部署CFG扩散模型的量化问题,针对现有方法忽略其结构导致的问题,提出引导感知混合精度方法,通过直接校准引导预测等操作防止无条件分支漂移,实现更好量化效果。

摘要:

在实际计算预算下部署无分类器引导(CFG)扩散模型需要量化,但现有的训练后量化(PTQ)方法将CFG模型视为单分支网络,忽略了CFG推理所依赖的配对条件/无条件结构。这种结构盲点有两个后果。在系统层面,两次通过的CFG执行模式带来了延迟开销,商品INT8推理堆栈无法实现BOPs计算所承诺的理论效率提升。在算法层面,仅针对引导间隙进行校准会产生一个精确的零空间。本文提出了引导感知混合精度(GAMP),通过直接在引导预测上进行校准,从引导输出退化中得出每层激活位敏感性,并通过贪婪背包分配位,从而防止无条件分支漂移。

英文摘要:

Deploying classifier-free guidance (CFG) diffusion models under real-world compute budgets requires quantization, yet existing post-training quantization (PTQ) methods treat CFG models as single-branch networks, ignoring the paired conditional/unconditional structure that CFG inference fundamentally relies on. This structural blind spot has two consequences. At the system level, the two-pass CFG execution pattern imposes a latency overhead that parameter-count and bit-operation metrics conceal entirely, and commodity INT8 inference stacks fail to realize the theoretical efficiency gains that BOPs calculations promise. At the algorithmic level, calibrating against the guidance gap alone admits an exact null space: a quantized model can achieve perfect gap-fidelity diagnostics while the unconditional branch drifts arbitrarily, corrupting every guided prediction at inference time. This paper terms this the branch-drift trap, proves its existence analytically, and confirms it empirically through a false-positive result in which the best-calibrated model by standard diagnostics simultaneously produces the worst sample quality. To close the trap, Guidance-Aware Mixed Precision (GAMP) is proposed, which calibrates directly on the guided prediction, derives per-layer activation-bit sensitivity from guided-output degradation, and allocates bits via a greedy knapsack -- provably preventing unconditional branch drift by construction.

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

↑