跳到主要导航 跳到搜索 跳到主要内容

BiLLM: Pushing the Limit of Post-Training Quantization for LLMs

  • Wei Huang
  • , Yangdong Liu
  • , Haotong Qin*
  • , Ying Li
  • , Shiming Zhang
  • , Xianglong Liu
  • , Michele Magno
  • , Xiaojuan Qi
  • *此作品的通讯作者
  • The University of Hong Kong
  • Beihang University
  • Swiss Federal Institute of Technology Zurich

科研成果: 期刊稿件 › 会议文章 › 同行评审

摘要

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, for the first time, achieves high-accuracy inference (e.g. 8.41 perplexity on LLaMA2-70B) with only 1.08-bit weights across various LLM families and evaluation metrics, outperforms SOTA quantization methods of LLM by significant margins. Moreover, BiLLM enables the binarization process of a 7-billion LLM within 0.5 hours on a single GPU, demonstrating satisfactory time efficiency. Our code is available at https://github.com/Aaronhuang-778/BiLLM.

源语言英语
页(从-至)20023-20042
页数20
期刊Proceedings of Machine Learning Research
卷235
出版状态已出版 - 2024
活动41st International Conference on Machine Learning, ICML 2024 - Vienna, 奥地利
期限: 21 7月 2024 → 27 7月 2024

学术指纹

探究 'BiLLM: Pushing the Limit of Post-Training Quantization for LLMs' 的科研主题。它们共同构成独一无二的学术指纹。

引用此