ARB-LLM: Alternating Refined Binarizations for Large Language Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Li, Zhiteng, Yan, Xianglong, Zhang, Tianao, Qin, Haotong, Xie, Dong, Tian, Jiang, shi, zhongchao, Kong, Linghe, Zhang, Yulun, Yang, Xiaokang
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911409652105216
author Li, Zhiteng
Yan, Xianglong
Zhang, Tianao
Qin, Haotong
Xie, Dong
Tian, Jiang
shi, zhongchao
Kong, Linghe
Zhang, Yulun
Yang, Xiaokang
author_facet Li, Zhiteng
Yan, Xianglong
Zhang, Tianao
Qin, Haotong
Xie, Dong
Tian, Jiang
shi, zhongchao
Kong, Linghe
Zhang, Yulun
Yang, Xiaokang
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2410_03129
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle ARB-LLM: Alternating Refined Binarizations for Large Language Models
Li, Zhiteng
Yan, Xianglong
Zhang, Tianao
Qin, Haotong
Xie, Dong
Tian, Jiang
shi, zhongchao
Kong, Linghe
Zhang, Yulun
Yang, Xiaokang
Computer Vision and Pattern Recognition
Artificial Intelligence
Computation and Language
Machine Learning
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.
title ARB-LLM: Alternating Refined Binarizations for Large Language Models
topic Computer Vision and Pattern Recognition
Artificial Intelligence
Computation and Language
Machine Learning
url https://arxiv.org/abs/2410.03129