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

当平坦极小值失效:在FP32收敛后INT4量化崩溃的特征化

When Flat Minima Fail: Characterizing INT4 Quantization Collapse After FP32 Convergence

Department of Computer Science(计算机科学系);University of Houston(休斯顿大学)

Marcus Armstrong

AI总结:

研究揭示了在FP32收敛后INT4量化崩溃的三阶段结构,并通过实验表明学习率调度策略对崩溃的影响。

摘要:

后训练量化(PTQ)假设一个良好收敛的模型是可量化模型。我们展示这一假设在结构化、可测量且此前未特征化的形式下失效。使用无校准的每组INT4探针对所有154个公开可用的Pythia-160m训练检查点进行分析,我们识别出三种阶段的发散结构:快速学习阶段中FP32困惑度和量化鲁棒性共同改善,一个持续约70,000步的meta稳定平台期,其中FP32困惑度停滞但INT4差距保持有界,以及一个爆炸发散阶段,其中INT4差距从11%增加到517%,而FP32困惑度几乎不变。关键的是,这种发散开始并非在学习率开始衰减时,而是恰好在FP32困惑度收敛的一个更精细的起始预测器时,该预测器暗示了在收敛后的权重更新,而非衰减幅度本身是近因。我们进一步表明,INT8量化在整个三个阶段都完全免疫,限制了机制仅限于16级INT4网格的粗细,且通过直接测量峰度排除了权重异常值积累作为机制。最后,我们从发散前的检查点进行受控分支实验,比较三种学习率调度策略(余弦延续、SGDR暖重启和我们提出的Oscillatory Lock-In)在九次独立运行中的表现。SGDR均匀加速发散(0/9对对比胜利对抗余弦),而OLI的冷却阶段平均将INT4差距减少2.2个百分点(t = -5.46,p < 0.0001),证明了调度幅度校准,而非振荡本身,决定了扰动是有帮助还是有害。我们的代码、探针实现和所有154个检查点的审计结果已公开发布。

英文摘要:

Post-training quantization (PTQ) assumes that a well-converged model is a quantization-ready model. We show this assumption fails in a structured, measurable, and previously uncharacterized way. Using a calibration-free per-group INT4 probe applied to all 154 publicly available Pythia-160m training checkpoints, we identify a three-phase divergence structure: a rapid-learning phase where both FP32 perplexity and quantization robustness improve together, a meta-stable plateau lasting roughly 70,000 steps where FP32 perplexity stagnates but INT4 gap remains bounded, and an explosive divergence phase where the INT4 gap compounds from 11% to 517% while FP32 perplexity barely moves. Critically, this divergence begins not when the learning rate starts decaying, but precisely when FP32 perplexity converges a finer-grained onset predictor that implies post-convergence weight updates, rather than decay magnitude alone, are the proximate cause. We further show that INT8 quantization is entirely immune throughout all three phases, constraining the mechanism to the coarseness of the 16-level INT4 grid specifically, and rule out weight outlier accumulation as the mechanism via direct kurtosis measurement. Finally, we conduct a controlled fork experiment from the pre-divergence checkpoint comparing three learning rate schedules (cosine continuation, SGDR warm restarts, and our proposed Oscillatory Lock-In) across nine independent runs. SGDR uniformly accelerates divergence (0/9 pairwise wins against cosine), while OLI's settled cool phases reduce the INT4 gap by 2.2 percentage points on average (t = -5.46, p < 0.0001), demonstrating that schedule amplitude calibration, not oscillation alone, determines whether perturbation helps or hurts. Our code, probe implementation, and all 154-checkpoint audit results are released publicly.

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

↑