Skip to main content
QUICK REVIEW

[Paper Review] BiLLM: Pushing the Limit of Post-Training Quantization for LLMs

Wei Huang, Yangdong Liu|arXiv (Cornell University)|Feb 6, 2024
Semantic Web and OntologiesComputer Science25 citations
TL;DR

BiLLM introduces a 1-bit post-training quantization framework for pretrained LLMs that structurally selects salient weights and applies a bell-shaped distribution split for non-salient weights, achieving ultra-low average bit-width (~1.08) with competitive perplexity on multiple LLM families.

ABSTRACT

Pretrained large language models (LLMs) exhibit exceptional general language processing capabilities but come with significant demands on memory and computational resources. As a powerful compression technology, binarization can extremely reduce model weights to a mere 1 bit, lowering the expensive computation and memory requirements. However, existing quantization techniques fall short of maintaining LLM performance under ultra-low bit-widths. In response to this challenge, we present BiLLM, a groundbreaking 1-bit post-training quantization scheme tailored for pretrained LLMs. Based on the weight distribution of LLMs, BiLLM first identifies and structurally selects salient weights, and minimizes the compression loss through an effective binary residual approximation strategy. Moreover, considering the bell-shaped distribution of the non-salient weights, we propose an optimal splitting search to group and binarize them accurately. BiLLM achieving for the first time high-accuracy inference (e.g. 8.41 perplexity on LLaMA2-70B) with only 1.08-bit weights across various LLMs families and evaluation metrics, outperforms SOTA quantization methods of LLM by significant margins. Moreover, BiLLM enables the binarization process of the LLM with 7 billion weights within 0.5 hours on a single GPU, demonstrating satisfactory time efficiency. Our code is available at https://github.com/Aaronhuang-778/BiLLM.

Motivation & Objective

  • Motivate aggressive model compression for LLMs to enable deployment on memory-constrained devices.
  • Investigate weight distributions in LLMs and how to leverage saliency for effective binarization.
  • Develop a 1-bit PTQ framework that preserves performance by treating salient and non-salient weights differently.
  • Show that ultra-low-bit binarization can outperform prior SOTA PTQ methods on multiple LLM families.

Proposed method

  • Use Hessian-based metrics to structurally identify salient weights per layer via column-wise salience and Optimize a binary residual approximation for these salient weights.
  • Apply a binary residual approximation to preserve salient weights with minimal loss using a second binarization on the residual.
  • For non-salient weights, split the weight distribution at an optimal break-point and binarize two groups (concentrated and sparse) separately to reduce error.
  • Incorporate block-wise activation of error compensation (OBC) with per-block calibration to further reduce quantization error.
  • Report an average weight bit-width around 1.07–1.11 bits and validate on OPT, LLaMA, LLaMA2, and Vicuna families using perplexity metrics.

Experimental results

Research questions

  • RQ1Can ultra-low-bit (1-bit) post-training quantization preserve LLM performance across diverse families (OPT, LLaMA, LLaMA2, Vicuna)?
  • RQ2How can weight saliency and distribution characteristics be exploited to minimize quantization error in PTQ for LLMs?
  • RQ3Does distinguishing salient vs. non-salient weights and applying different binarization strategies significantly outperform existing PTQ baselines?
  • RQ4What are the practical time and hardware overheads for BiLLM when binarizing large-scale LLMs on a single GPU?

Key findings

  • BiLLM achieves perplexity improvements on WikiText2 with 1.08-bit weights for LLaMA-65B and LLaMA2-70B, outperforming certain full-precision baselines in some cases.
  • BiLLM attains an average weight bit-width of approximately 1.07–1.11 bits across OPT, LLaMA, and LLaMA2 families, surpassing PB-LLM at 1.70 bits and approaching GPTQ-style performance at lower bits on several models.
  • Binarization with BiLLM maintains reasonable linguistic capability at ultra-low bits where RTN and GPTQ collapse (e.g., outperforming 1-bit RTN and 2–4 bit GPTQ baselines in several settings).
  • The binarization process is efficient, binarizing a 7B-parameter model within about 30 minutes and a 7B LLM weighing around 1.08–1.11 bits on a single 80 GB A100 GPU.
  • Salient-weight residual approximation plus bell-shaped non-salient splitting jointly contribute to performance gains, with ablations showing both components improve results across OPT and LLaMA.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.