SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2407.07093 · 2024

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

arXiv · PDF · Open in the Atlas

Code that ran

11 of 14 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 9 failures of our instrument; 3 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2407.07093.json · badge: /api/ran/2407.07093.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
liqunma/fbi-llm canonical (classifier label)
classifier basis: census
11 ran · 3 no recorded run
FunctionStatusWhere it lives
apply_rotary_pos_emb Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
liqunma/fbi-llm/model_utils/modeling_llama.py
pointer only (licence: NONE) · get_code("f725bc2d76076485")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liqunma/fbi-llm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

cal_flip_rate Ran
ran, honoured the contract we drafted
liqunma/fbi-llm/analysis.py
pointer only (licence: NONE) · get_code("06a11aeead10da89")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liqunma/fbi-llm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

collate_fn Ran
ran; our contract draft was wrong, not the code
liqunma/fbi-llm/analysis.py
pointer only (licence: NONE) · get_code("7895ceb853a24341")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liqunma/fbi-llm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_cosine_lr_decay_fn Ran
ran; our contract draft was wrong, not the code
liqunma/fbi-llm/main_utils.py
pointer only (licence: NONE) · get_code("35a07ea1a83582da")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liqunma/fbi-llm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_grad_norm Ran
ran, honoured the contract we drafted
liqunma/fbi-llm/main_utils.py
pointer only (licence: NONE) · get_code("e9353db1655d860d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liqunma/fbi-llm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_jsonl Ran
ran; our contract draft was wrong, not the code
liqunma/fbi-llm/datautils.py
pointer only (licence: NONE) · get_code("f79ef099baf027c2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liqunma/fbi-llm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_json Ran
ran; our contract draft was wrong, not the code
liqunma/fbi-llm/utils.py
pointer only (licence: NONE) · get_code("c7c652c2a1cbf982")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liqunma/fbi-llm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_jsonl_examples Ran
ran; our contract draft was wrong, not the code
liqunma/fbi-llm/main_utils.py
pointer only (licence: NONE) · get_code("a7387837542ca8a3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liqunma/fbi-llm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

prepare_model_for_eval Ran
ran; our contract draft was wrong, not the code
liqunma/fbi-llm/utils.py
pointer only (licence: NONE) · get_code("5cc6ee4fff500d54")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liqunma/fbi-llm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

prepare_model_for_training Ran
ran; our contract draft was wrong, not the code
liqunma/fbi-llm/utils.py
pointer only (licence: NONE) · get_code("dfbbf527543890a1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liqunma/fbi-llm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

rotate_half Ran
ran; our contract draft was wrong, not the code
liqunma/fbi-llm/model_utils/modeling_llama.py
pointer only (licence: NONE) · get_code("b99eea6376d1e212")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liqunma/fbi-llm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

binarylinear_to_regularlinear Not yet run
unverified (harvested, no recorded run)
liqunma/fbi-llm/qat/replace_module.py
pointer only (licence: NONE) · get_code("93d038e23f97f61b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liqunma/fbi-llm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_tokenizer Not yet run
unverified (harvested, no recorded run)
liqunma/fbi-llm/datautils.py
pointer only (licence: NONE) · get_code("7282a242e1279742")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liqunma/fbi-llm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

replace_with_learnable_binarylinear Not yet run
unverified (harvested, no recorded run)
liqunma/fbi-llm/qat/replace_module.py
pointer only (licence: NONE) · get_code("b035d07aea65196d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liqunma/fbi-llm when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 2 the same month, 2 later) and 10 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
rotate_half 360 other papers
157 dated earlier, 12 the same month, 182 later, 6 same year, order not determinable, 3 undated · 30 only as an assembly brick
1901.02860 (2019-01)
Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context
2203.08913 (2022-03)
Memorizing Transformers
2302.13971 (2023-02)
LLaMA: Open and Efficient Foundation Language Models
and 357 more not named here
apply_rotary_pos_emb 83 other papers
46 dated earlier, 4 the same month, 31 later, 2 same year, order not determinable · 6 only as an assembly brick
2306.15595 (2023-06)
Extending Context Window of Large Language Models via Positional Interpolation
2307.05695 (2023-07)
ReLoRA: High-Rank Training Through Low-Rank Updates
2307.06945 (2023-07)
In-context Autoencoder for Context Compression in a Large Language Model
and 80 more not named here
collate_fn 1 other paper
1 dated earlier
2402.16840 (2024-02)
MobiLlama: Towards Accurate and Lightweight Fully Transparent GPT
prepare_model_for_eval 1 other paper
1 dated earlier
2310.00034 (2023-10)
PB-LLM: Partially Binarized Large Language Models

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2407.07093")
get_code_for_paper("2407.07093")
have("2407.07093")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2407.07093.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2407.07093.svg)](https://syntology.ai/paper/2407.07093)

Connect an agent — have() is free.