FBI-LLM: Scaling Up Fully Binarized LLMs from Scratch via Autoregressive Distillation

Liqun Ma, Mingjie Sun, Zhiqiang Shen
7/9/2024
cs.CLcs.AIcs.LG

Official code: LiqunMa/FBI-LLM (52 stars, last commit 2025-08-24).

Abstract

This work presents a Fully BInarized Large Language Model (FBI-LLM), demonstrating for the first time how to train a large-scale binary language model from scratch (not the partial binary or ternary LLM like BitNet b1.58) to match the performance of its full-precision counterparts (e.g., FP16 or BF16) in transformer-based LLMs. It achieves this by employing an autoregressive distillation (AD) loss with maintaining equivalent model dimensions (130M, 1.3B, 7B) and training data volume as regular LLM pretraining, while delivering competitive results in terms of perplexity and task-specific effectiveness. Intriguingly, by analyzing the training trajectory, we find that the pretrained weight is not necessary for training binarized LLMs from scratch. This research encourages a new computational framework and may facilitate the future design of specialized hardware tailored for fully 1-bit LLMs. We make all models, code, and training dataset fully accessible and transparent to support further research (Code: https://github.com/LiqunMa/FBI-LLM. Model: https://huggingface.co/LiqunMa/).

View on arXivView PDF

Code Implementations(1)

LiqunMa/FBI-LLMOfficial100%

FBI-LLM: Scaling Up Fully Binarized LLMs from Scratch via Autoregressive Distillation

521Shell, PythonJul 9, 20241 years ago

Similar Papers

Cite this paper

@article{ma2024fbillm,
  title  = {FBI-LLM: Scaling Up Fully Binarized LLMs from Scratch via Autoregressive Distillation},
  author = {Liqun Ma and Mingjie Sun and Zhiqiang Shen},
  year   = {2024},
  eprint = {2407.07093},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.07093v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.07093.svg)](https://codeofpaper.com/paper/2407.07093)

Discussion