AewolFlowRead in AewolFlow →

arXiv:2407.07093 · cs.CL · 2024

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

Liqun Ma, Mingjie Sun, Zhiqiang Shen

15 citations · 3 influential citations— Semantic Scholar

TL;DR · Semantic Scholar

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 to match the performance of its full-precision counterparts in transformer-based LLMs.

Saved summary

AI-generated while a reader studied this paper. Check the original source for accuracy.

Problem: Large Language Models (LLMs) have immense parameter scales that create substantial storage and computational demands, limiting their practical deployment. Although weight binarization can alleviate these issues, extreme 1-bit quantization typically suffers from significant accuracy degradation. Furthermore, existing low-bit methods like BitNet b1.58, PB-LLM, and OneBit either utilize ternary representations, retain salient weights in full precision, or rely on existing full-precision models, which restricts flexibility in model architecture and vocabulary size.

Method: The authors present FBI-LLM, a framework to train fully binarized LLMs from scratch using FBI-Linear modules that binarize weight matrices to 1-bit while scaling them with column-wise learnable vectors a and b to form W_{b} = \text{sign}(W) \odot a + b. To stabilize training, they employ a streamlined autoregressive distillation (AD) loss where the binarized student model matches the soft predicted probability distribution of a full-precision teacher model (such as LLaMA2-7B). The embedding, causal head, and normalization layers are maintained in full precision, and backpropagation is handled using the Straight-Through Estimator (STE).

Results: Evaluated across 130M, 1.3B, and 7B parameter scales on the Amber dataset, FBI-LLM achieves competitive perplexity and downstream task accuracy compared to other binary baselines on benchmarks like BoolQ and HellaSwag. The 1.3B model achieves up to 87% of the performance of its full-precision counterpart, while the 7B model consistently improves with further training. Trajectory analysis through the flip-flop ratio demonstrates that initializing from pretrained weights is unnecessary, as training from scratch achieves similar optimization stability and equivalent training loss.

Limitations: Despite these advances, FBI-LLM still suffers from an unavoidable performance gap compared to full-precision counterparts. Additionally, the training process requires knowledge distillation from a teacher model, which introduces extra computational overhead. Finally, current hardware lacks direct support to achieve real inference speedups with fully binarized LLMs, activation quantization is not addressed, and the binarized models may still retain ethical concerns and biases from the pretraining data.

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/).

Source: https://arxiv.org/abs/2407.07093 — Thank you to arXiv for use of its open access interoperability.

Papers citing this work · Semantic Scholar

  • LBLLM: Lightweight Binarization of Large Language Models via Three-Stage Distillation (2026) · 1 citations
  • Bit-by-Bit: Progressive QAT Strategy with Outlier Channel Splitting for Stable Low-Bit LLMs (2026) · 5 citations
  • pQuant: Towards Effective Low-Bit Language Models via Decoupled Linear Quantization-Aware Training (2026) · 0 citations
  • A Survey on Binary and Ternary Neural Networks and Their Realization in Compute-in-Memory for Edge Intelligence (2026) · 8 citations
  • Assessing the Performance and Efficiency of Mamba ASR in Low-Resource Scenarios (2025) · 4 citations

Read the original paper, explore key passages and ask questions in AewolFlow.