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

逐位训练:带有异常通道分割的渐进式QAT策略以稳定低比特LLM

Bit-by-Bit: Progressive QAT Strategy with Outlier Channel Splitting for Stable Low-Bit LLMs

Zhejiang University(浙江大学);Hong Kong University of Science and Technology(香港科技大学);City University of Hong Kong(香港城市大学)

Binxing Xu, Hao Gu, Lujun Li, Hao Wang, Bei Liu, Jiacheng Liu, Qiyuan Zhu, Xintong Yang, Chao Li, Sirui Han, Yike Guo

AI总结:

本文提出Bit-by-Bit方法,通过渐进式QAT策略和异常通道分割,解决低比特LLM训练中的收敛不稳定和训练成本问题,实现多比特宽支持。

摘要:

训练超低精度LLM仍是一个严峻挑战。直接低比特QAT常因量化噪声和层间误差累积导致收敛不稳定和训练成本高。为此,我们提出了Bit-by-Bit,一种带有异常通道分割的渐进式QAT框架。我们的方法集成了三个关键组件:(1)分块逐步训练,逐步降低精度阶段,确保低比特优化的稳定初始化;(2)整数量化网格的嵌套结构,实现“训练一次,部署任意精度”的范式,允许单个模型支持多种比特宽而无需重新训练;(3)具有舍入意识的异常通道分割,减少量化误差同时作为身份变换保留量化输出。此外,我们遵循微缩放组与E4M3规模,捕捉动态激活范围以符合OCP/NVIDIA标准。为解决缺乏高效2比特内核的问题,我们开发了定制运算符,针对W2A2和W2A16配置实现了高达11倍于BF16的速度提升。在W2A2设置下,Bit-by-Bit在Llama2/3上显著优于BitDistiller和EfficientQAT等基线方法,仅比全精度模型损失2.25 WikiText2 PPL。

英文摘要:

Training LLMs at ultra-low precision remains a formidable challenge. Direct low-bit QAT often suffers from convergence instability and substantial training costs, exacerbated by quantization noise from heavy-tailed outlier channels and error accumulation across layers. To address these issues, we present Bit-by-Bit, a progressive QAT framework with outlier channel splitting. Our approach integrates three key components: (1) block-wise progressive training that reduces precision stage by stage, ensuring stable initialization for low-bit optimization; (2) nested structure of integer quantization grids to enable a "train once, deploy any precision" paradigm, allowing a single model to support multiple bit-widths without retraining; (3) rounding-aware outlier channel splitting, which mitigates quantization error while acting as an identity transform that preserves the quantized outputs. Furthermore, we follow microscaling groups with E4M3 scales, capturing dynamic activation ranges in alignment with OCP/NVIDIA standards. To address the lack of efficient 2-bit kernels, we developed custom operators for both W2A2 and W2A16 configurations, achieving up to 11$\times$ speedup over BF16. Under W2A2 settings, Bit-by-Bit significantly outperforms baselines like BitDistiller and EfficientQAT on both Llama2/3, achieving a loss of only 2.25 WikiText2 PPL compared to full-precision models.

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

↑