BitDistiller: Unleashing the Potential of Sub-4-Bit LLMs via Self-Distillation

Dayou Du, Yijia Zhang, Shijie Cao, Jiaqi Guo, Ting Cao, Xiaowen Chu, Ningyi Xu

Abstract

Large Language Models (LLMs) face significant deployment challenges due to their memory and computational demands. While 4-bit quantization is effective, sub-4-bit regimes often suffer from severe performance degradation. We present BitDistiller, a framework that combines tailored asymmetric weight clipping with a novel Confidence-Aware Knowledge Distillation (CAKLD) loss. BitDistiller enables 2-bit and 3-bit models to maintain high performance on complex reasoning tasks while remaining training-efficient. Our results demonstrate state-of-the-art performance across various benchmarks, establishing more favorable scaling laws for ultra-low precision LLMs.

Introduction

The scaling of LLMs has led to unprecedented capabilities but also prohibitive hardware requirements. Weight quantization is a standard compression technique, yet pushing below 4 bits typically results in a "performance cliff," especially for reasoning-intensive tasks like coding and mathematics. Existing Post-Training Quantization (PTQ) methods often fail at these levels, while standard Quantization-Aware Training (QAT) is computationally expensive and data-hungry. BitDistiller addresses these gaps by synergizing QAT with self-distillation.

Methodology

BitDistiller introduces two primary innovations to stabilize ultra-low precision training:

Tailored Asymmetric Quantization and Clipping

Unlike standard symmetric quantization, BitDistiller utilizes an asymmetric approach that better aligns with the actual weight distributions of LLMs. A key component is the initialization-time clipping strategy, which removes outlier weights that would otherwise disproportionately expand the quantization scale. This preserves higher fidelity for the majority of the weights. Furthermore, the authors observed that while NormalFloat (NF) formats excel at 3-bit, standard integer (INT) formats are more effective for 2-bit quantization due to the limited representational space.

Confidence-Aware Knowledge Distillation (CAKLD)

The framework employs a full-precision teacher model to guide the quantized student. The proposed CAKLD objective dynamically adjusts the distillation behavior based on the teacher's confidence. When the teacher is certain, the student adopts a "mode-seeking" behavior to focus on the most likely tokens. Conversely, when the teacher is uncertain, the student employs a "mode-covering" strategy to capture the broader distribution.

The BitDistiller framework utilizes a full-precision teacher to guide a quantized student via CAKLD loss and asymmetric quantization.

Experimental Setup

BitDistiller was evaluated using LLaMA-2 (7B, 13B), WizardCoder (3B to 34B), and MetaMath (7B, 13B) models. Benchmarks included WikiText-2 for perplexity, MMLU and common sense QA for general language tasks, and HumanEval and GSM8K for reasoning. Training utilized small subsets of specialized datasets like Alpaca and Evol-Instruct-Code.

Results

BitDistiller consistently outperforms existing methods like GPTQ, AWQ, and OmniQuant in sub-4-bit settings.

Performance and Scaling

On LLaMA-2-7B at 2-bit precision, BitDistiller achieved an average accuracy of 49.18% across general tasks, significantly outperforming previous QAT methods like LLM-QAT (45.64%). In mathematical reasoning (GSM8K), the 2-bit 13B model reached 61.33% accuracy, surpassing the 3-bit versions of several competitors. As shown in Figure 1, BitDistiller establishes a superior scaling law, where increasing the base model size yields greater performance gains at low bit-widths compared to prior art.

BitDistiller follows a superior bit-level scaling law for code generation (HumanEval Pass@1) compared to other quantization methods.

Training Efficiency

BitDistiller is highly efficient; quantizing a 7B model requires approximately 3 hours on a single A100 GPU. This is a substantial improvement over previous state-of-the-art QAT methods that often require hundreds of GPU hours.

Discussion and Conclusion

BitDistiller demonstrates that sub-4-bit LLMs can remain highly capable through targeted architectural and loss-function innovations. Key findings include the effectiveness of self-distillation over ground-truth data and the importance of initialization-time clipping. Future work will explore vector quantization to further improve compression ratios and investigate the extension of this framework to 1-bit quantization for edge deployment.

Summary updated

BibTeX
@inproceedings{du2024bitdistiller,
  author = {Dayou Du and Yijia Zhang and Shijie Cao and Jiaqi Guo and Ting Cao and Xiaowen Chu and Ningyi Xu},
  title = {{BitDistiller: Unleashing the Potential of Sub-4-Bit LLMs via Self-Distillation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.7},
}
Figure