近无损 HiF8 W8A8 量化感知训练的最大窗口尺度估计
Max-Window Scale Estimation for Near-Lossless HiF8 W8A8 Quantization-Aware Training
AI总结:
针对 HiF8 W8A8 量化感知训练中的两种正交失效模式(amax 饱和与灾难性遗忘),提出保守的 64 步历史窗口最大算法 DTS 策略和 500 步 BF16 预热加低学习率 QAT 的修复方案,在 OpenPangu-Embedded-1B 上实现接近 BF16 基线的性能。
摘要:
使用低位浮点格式的量化感知训练(QAT)能够实现高效的 LLM 部署,但会引入标准训练指标无法察觉的微妙失效模式。我们通过延迟张量缩放(DTS)的视角,对 OpenPangu-Embedded-1B 的 HiF8 W8A8 QAT 进行了系统研究。在八个受控实验中,我们识别并解耦了两种正交的失效模式:(i) amax 饱和,其中延迟的尺度估计通过前向传播裁剪静默地破坏知识敏感表示,以及 (ii) 灾难性遗忘,其中激进的学习率独立于量化覆盖预训练的常识知识。两者都无法仅从训练损失中检测到。我们通过保守的 64 步历史窗口最大算法 DTS 策略解决 amax 饱和,并通过 500 步 BF16 预热后以 lr=10^{-5} 进行 QAT 来缓解遗忘。两种修复都是必要且充分的:我们的最终配置在匹配的 BF16 基线上实现了 0.43% MMLU 下降、0.58% HellaSwag 下降和 0.22% ARC-Challenge 下降,训练损失 APE 在 10,000 步内仅为 0.11%。
英文摘要:
Quantization-aware training (QAT) with low-bit floating-point formats enables efficient LLM deployment, yet introduces subtle failure modes invisible to standard training metrics. We present a systematic study of HiF8 W8A8 QAT for OpenPangu-Embedded-1B through the lens of Delayed Tensor Scaling (DTS). Across eight controlled experiments, we identify and disentangle two orthogonal failure modes: (i)amax saturation, where delayed scale estimates silently corrupt knowledge-sensitive representations via forward-pass clipping, and (ii)catastrophic forgetting, where an aggressive learning rate overwrites pretrained commonsense knowledge independently of quantization. Neither is detectable from training loss alone. We address amax saturation with a conservative max-algorithm DTS strategy over a 64-step history window, and mitigate forgetting via a 500-step BF16 warmup followed by QAT at lr=10^{-5}. Both fixes are necessary and sufficient: our final configuration achieves 0.43% MMLU drop, 0.58% HellaSwag drop, and 0.22% ARC-Challenge drop versus a matched BF16 baseline, with a training loss APE of only 0.11% over 10,000 steps.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。