Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

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

About

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

Liqun Ma, Mingjie Sun, Zhiqiang Shen• 2024

Related benchmarks

TaskDatasetResultRank
Language ModelingWikiText-2 (test)
PPL9.1
2333
Language ModelingC4
Perplexity13.8
1688
Commonsense ReasoningWinoGrande
Accuracy54
1442
Language ModelingPTB
Perplexity39.3
1234
Language ModelingC4 (val)
PPL10.5
737
Question AnsweringPIQA
Accuracy69
505
Question AnsweringOBQA
Accuracy29.6
347
Language ModelingWiki2
PPL12.6
326
Question AnsweringBoolQ
Accuracy62.1
201
Language ModelingPenn Treebank (PTB) (test)
Perplexity29.6
130
Showing 10 of 22 rows

Other info

Follow for update