[Paper Review] PB-LLM: Partially Binarized Large Language Models
This paper proposes PB-LLM, a partially binarized large language model that preserves high linguistic reasoning capacity under extreme 1-bit quantization by selectively retaining salient weights in higher precision. By combining Hessian-guided reconstruction in post-training quantization and a derived scaling strategy in quantization-aware training, PB-LLM achieves state-of-the-art performance at 4-bit and shows strong potential for full 1-bit LLMs.
This paper explores network binarization, a radical form of quantization, compressing model weights to a single bit, specifically for Large Language Models (LLMs) compression. Due to previous binarization methods collapsing LLMs, we propose a novel approach, Partially-Binarized LLM (PB-LLM), which can achieve extreme low-bit quantization while maintaining the linguistic reasoning capacity of quantized LLMs. Specifically, our exploration first uncovers the ineffectiveness of naive applications of existing binarization algorithms and highlights the imperative role of salient weights in achieving low-bit quantization. Thus, PB-LLM filters a small ratio of salient weights during binarization, allocating them to higher-bit storage, i.e., partially-binarization. PB-LLM is extended to recover the capacities of quantized LMMs, by analyzing from the perspective of post-training quantization (PTQ) and quantization-aware training (QAT). Under PTQ, combining the concepts from GPTQ, we reconstruct the binarized weight matrix guided by the Hessian matrix and successfully recover the reasoning capacity of PB-LLM in low-bit. Under QAT, we freeze the salient weights during training, explore the derivation of optimal scaling factors crucial for minimizing the quantization error, and propose a scaling mechanism based on this derived scaling strategy for residual binarized weights. Those explorations and the developed methodologies significantly contribute to rejuvenating the performance of low-bit quantized LLMs and present substantial advancements in the field of network binarization for LLMs.The code is available at https://github.com/hahnyuan/BinaryLLM.
Motivation & Objective
- To address the failure of naive binarization in maintaining LLM reasoning capabilities under extreme low-bit quantization.
- To investigate the role of salient weights in enabling effective low-bit quantization of large language models.
- To develop a partially binarized framework that balances model compression and performance retention.
- To recover reasoning capacity in quantized LLMs through advanced post-training quantization (PTQ) and quantization-aware training (QAT) techniques.
- To enable efficient training and deployment of 1-bit LLMs while preserving linguistic reasoning performance.
Proposed method
- Introduces Partially-Binarized LLM (PB-LLM), which stores a small ratio of salient weights in higher-bit precision while binarizing the rest.
- Applies Hessian matrix-guided reconstruction in post-training quantization (PTQ) to recover performance, inspired by GPTQ.
- Derives optimal scaling factors for binarized weights to minimize quantization error, enabling effective scaling in QAT.
- Freezes salient weights during QAT to maintain their integrity and improve training stability.
- Uses a hybrid approach combining salient weight preservation and adaptive scaling to balance compression and performance.
- Employs a 10K-iteration fine-tuning schedule with AdamW optimizer and cosine decay for efficient QAT.
Experimental results
Research questions
- RQ1Why do standard binarization methods fail when applied directly to LLMs?
- RQ2What is the role of salient weights in enabling effective low-bit quantization of LLMs?
- RQ3How can reasoning capacity be recovered in extremely low-bit quantized LLMs?
- RQ4What scaling strategy minimizes quantization error in binarized LLMs under QAT?
- RQ5Can PB-LLM achieve competitive performance at 4-bit and near-1-bit levels with minimal fine-tuning?
Key findings
- PB-LLM 30% (preserving 30% salient weights) achieves an average zero-shot accuracy of 66.9 on common sense reasoning tasks, outperforming LLM-QAT under the same 4-bit setting.
- PB-LLM 10% achieves 60.6 average zero-shot accuracy, demonstrating strong potential for 1-bit LLMs despite only 10% of weights being in higher precision.
- PB-LLM converges in just 10K iterations under QAT, significantly faster than LLM-QAT, which required 100K iterations.
- Perplexity on C4 drops to 8.1466 under PB-GPTQ 50% (50% salient weights preserved), showing effective compression with manageable performance loss.
- PB-GPTQ with 10% salient weights shows a sharp performance drop (perplexity 72.1115 on C4), highlighting the necessity of sufficient salient weight retention.
- The derived scaling strategy in QAT effectively minimizes quantization error, enabling high performance even with aggressive binarization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.