BitNet Distillation
Xun Wu, Shaohan Huang, Wenhui Wang, Ting Song, Li Dong, Yan Xia, Furu Wei
TL;DR
The paper tackles the challenge of deploying large LLMs on resource-constrained devices by aiming for $1.58$-bit quantization. It proposes BitDistill, a three-stage distillation framework—modeling refinement with SubLN, continued pre-training on a compact corpus, and logits plus attention distillation—to bridge the gap between ultra-low-bit weights and full-precision performance. Across multiple tasks and model sizes, BitDistill achieves performance comparable to FP16 baselines while delivering up to $10×$ memory savings and $2.65×$ faster CPU inference, and demonstrates robustness to different backbones and quantization methods. These results provide a scalable, deployment-friendly approach for efficient LLMs on CPU-bound and edge hardware.
Abstract
In this paper, we present BitNet Distillation (BitDistill), a lightweight pipeline that fine-tunes off-the-shelf full-precision LLMs (e.g., Qwen) into 1.58-bit precision (i.e., ternary weights {-1, 0, 1}) for specific downstream tasks, achieving strong task-specific performance with minimal computational cost. Specifically, BitDistill incorporates three key techniques: the SubLN module, as introduced in BitNet; multi-head attention distillation, based on MiniLM; and continual pre-training, which serves as a crucial warm-up step to mitigate the scalability issue of the performance gap between finetuned full-precision and 1.58-bit LLMs on specific tasks. Experimental results show that BitDistill achieves performance comparable to the full-precision counterpart models across model size, while enabling up to 10x memory savings and 2.65x faster inference on CPUs. Code is available at https://github.com/microsoft/BitNet.
