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

ARB-LLM: 交替精炼二值化用于大语言模型

ARB-LLM: Alternating Refined Binarizations for Large Language Models

Shanghai Jiao Tong University(上海交通大学);ETH Zürich(苏黎世联邦理工学院);Lenovo Research(联想研究院)

Zhiteng Li, Xianglong Yan, Tianao Zhang, Haotong Qin, Dong Xie, Jiang Tian, zhongchao shi, Linghe Kong, Yulun Zhang, Xiaokang Yang

AI总结:

ARB-LLM通过交替精炼二值化技术,有效解决LLM二值化中的分布偏移和列偏差问题,实现性能超越现有SOTA方法。

摘要:

大语言模型(LLMs)极大地推动了自然语言处理的进步,但其高内存和计算需求阻碍了实际部署。二值化作为一种有效的压缩技术,可以将模型权重压缩到1位,显著降低对计算和内存的高需求。然而,当前的二值化方法难以缩小二值化与全精度权重之间的分布差距,同时忽视了LLM权重分布中的列偏差。为了解决这些问题,我们提出ARB-LLM,一种针对LLM的新型1位后训练量化(PTQ)技术。为了缩小二值化与全精度权重之间的分布偏移,我们首先设计了一种交替精炼二值化(ARB)算法,逐步更新二值化参数,从而显著减少量化误差。此外,考虑到校准数据的枢纽作用以及LLM权重中的列偏差,我们进一步将ARB扩展为ARB-X和ARB-RC。此外,我们通过列组位图(CGB)优化权重分区策略,进一步提升性能。将ARB-X和ARB-RC与CGB结合,分别获得ARB-LLM_X和ARB-LLM_RC,显著优于当前最先进的(SOTA)二值化方法。作为一种二进制PTQ方法,我们的ARB-LLM_RC是首个超越相同规模FP16模型的方法。代码和模型将在https://github.com/ZHITENGLI/ARB-LLM上提供。

英文摘要:

Large Language Models (LLMs) have greatly pushed forward advancements in natural language processing, yet their high memory and computational demands hinder practical deployment. Binarization, as an effective compression technique, can shrink model weights to just 1 bit, significantly reducing the high demands on computation and memory. However, current binarization methods struggle to narrow the distribution gap between binarized and full-precision weights, while also overlooking the column deviation in LLM weight distribution. To tackle these issues, we propose ARB-LLM, a novel 1-bit post-training quantization (PTQ) technique tailored for LLMs. To narrow the distribution shift between binarized and full-precision weights, we first design an alternating refined binarization (ARB) algorithm to progressively update the binarization parameters, which significantly reduces the quantization error. Moreover, considering the pivot role of calibration data and the column deviation in LLM weights, we further extend ARB to ARB-X and ARB-RC. In addition, we refine the weight partition strategy with column-group bitmap (CGB), which further enhance performance. Equipping ARB-X and ARB-RC with CGB, we obtain ARB-LLM$_\text{X}$ and ARB-LLM$_\text{RC}$ respectively, which significantly outperform state-of-the-art (SOTA) binarization methods for LLMs. As a binary PTQ method, our ARB-LLM$_\text{RC}$ is the first to surpass FP16 models of the same size. The code and models will be available at https://github.com/ZHITENGLI/ARB-LLM.

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

↑