GO TO A SECTION

↑ ↓ to navigate · Enter to openExplore all sections →
FDEInterviews logo
arXiv preprint

BitNet: Scaling 1-bit Transformers for Large Language Models

Microsoft trained Transformers whose weights are only +1 or -1 from scratch. At 6.7B they came within 2 points of FP16 on zero-shot tasks, far ahead of post-training quantization to 1 or 2 bits.

Breakdown by FDE Interviews · 11 min read · Updated

About the original · 2023
AUTHORS
Wang, Ma, Dong, Huang, et al.
FROM
Microsoft Research, University of Chinese Academy of Sciences, Tsinghua University
PUBLISHED
Oct 2023 · arXiv preprint
CITED BY
291Semantic Scholar · Nov 2026
IN THIS BREAKDOWN · 10 SECTIONS

You can read 23% of this breakdown.

01

The paper in one minute

Post-training quantization squeezes a trained model's weights into fewer bits, and it works well down to about 4 bits. Below that, rounding after the fact destroys too much: on the paper's 6.7B model, GPTQ at 2 bits scored a perplexity of 1,032 against 15.19 in FP16, and absmax at 1 bit produced numbers in the 10^23 range. BitNet takes the opposite route. If weights are going to be one bit, train them as one bit from the start, so the rest of the network learns around that constraint.

The building block is BitLinear, a drop-in replacement for a linear layer. It normalizes its input (a LayerNorm in the SubLN position) so the output keeps unit variance after quantization, quantizes activations to 8 bits by their absolute maximum, and binarizes the weights to +1 or −1 by the sign of each weight minus the matrix mean. The matrix multiply then needs only additions and subtractions, followed by one rescale. Training keeps a full-precision copy of every weight (the latent weights) that accumulates gradient updates, uses a straight-through estimator to pass gradients through the sign function, and uses a large learning rate, because small updates to the latent weights rarely flip any sign.

Trained on the same data as FP16 baselines from 125M to 30B parameters, BitNet's loss falls with model size following a power law like the FP16 curve, and the gap narrows as models grow. Fitting the law on models up to 6.7B predicted the 13B and 30B losses accurately. At 6.7B, BitNet's zero-shot average was within 2 points of FP16 and above every post-training method at 4 bits or fewer. An energy model puts its matrix-multiply energy 28 to 38 times below FP16. The successor, BitNet b1.58, adds a zero to the weight values.

THE IDEA, VISUALLY
BITLINEAR (SECTION 2.1) LayerNorm (SubLN) keep output variance ~1 absmax to 8 bits activations in [-128, 128] sign(W - mean W) weights become +1 / -1 add and subtract no multiplies in the matmul rescale by beta and gamma / Q_b training only: fp latent weights, straight-through gradients, large LR Example: weights 0.31, -0.02, 0.07, -0.40 with mean -0.01 become +1, -1, +1, -1; the product with x is x1 - x2 + x3 - x4, scaled once by beta. ENERGY ESTIMATE, 7NM, 512 TOKENS (TABLE 1) 6.7B: FP16 1.68 J vs BitNet 0.06 J (28x) 30B: FP16 7.66 J vs BitNet 0.20 J (38x) from per-operation energies, not measured on hardware 6.7B MODELS, ZERO-SHOT MEAN (TABLE 3) Winogrande, Winograd, StoryCloze, HellaSwag FP16 57.8 8-bit SmoothQuant 56.7 1-bit BitNet (trained) 55.9 4-bit GPTQ 52.9 2-bit QuIP 49.0 1-bit absmax (PTQ) 44.6 bars start at 40; chance is 43.8 PERPLEXITY, SAME MODELS FP16 15.19 1-bit BitNet 17.07 2-bit GPTQ 1,032 1-bit absmax 3.5e23 train the constraint in, don't round to it: post-training methods collapse below 4 bits arXiv 2310.11453, Microsoft Research, October 2023
BitLinear replaces each linear layer: normalize the input, quantize activations to 8 bits, binarize the weights to +1 or -1 around their mean, multiply with additions only, then rescale. Training keeps full-precision latent weights and passes gradients straight through the sign function.
Research notes: the problem, approach and results
55.9 vs 57.8

zero-shot average of 1-bit BitNet and the FP16 Transformer at 6.7B (Table 3)

49.0

best post-training result at 2 bits (QuIP) on the same 6.7B comparison; 1-bit PTQ was near chance (Table 3)

38.8x

estimated matrix-multiplication energy reduction against FP16 at 30B, 7nm, 512 tokens (Figure 1)

THE PROBLEM

Post-training quantization works down to about 4 bits and then falls apart; at 2 or 1 bit, models quantized after training are close to useless. Large language models are expensive to serve mostly because of their matrix multiplications and memory traffic.

THE IDEA

Train the model with 1-bit weights from the start. BitLinear binarizes weights with the sign function around their mean, quantizes activations to 8 bits with absmax, normalizes inputs (SubLN) to keep output variance stable, and trains with full-precision latent weights, a straight-through estimator and a large learning rate.

THE RESULT

From 125M to 30B parameters, BitNet's loss follows a power law like FP16 Transformers', with the gap shrinking as size grows. At 6.7B, its four-task zero-shot average was 55.9 against 57.8 for FP16, while post-training methods scored 49.0 at 2 bits and near chance at 1 bit. Estimated matrix-multiply energy fell by 28x to 38x.

02

Why it matters to an FDE

BitNet is a research direction, not a tool you can apply to a customer's existing model, and that distinction is the main thing to carry into conversations.

It requires pretraining. BitNet's quality comes from training with 1-bit weights from scratch. You cannot convert a downloaded Llama to BitNet the way you can quantize it with GPTQ. Unless a 1-bit model of the size and quality the customer needs has been released, this paper changes nothing about today's deployment.

The savings are in arithmetic and memory traffic. With ±1 weights, matrix multiplication becomes addition; the paper's energy model says multiply-heavy FP16 matmuls cost tens of times more energy. Realizing that needs kernels or hardware built for it. On today's GPUs, the paper reports no measured speed, only estimated energy.

It sets expectations for "extreme quantization" claims. The comparison that matters is BitNet against post-training methods at the same bits: 55.9 against 49.0 at 2 bits. If a vendor offers a 1- or 2-bit version of a normal model, this paper is the evidence that post-training methods at those widths lose a lot.

THE FULL BREAKDOWN

Understand the mechanism. Try it on a real problem.

Unlock this breakdown and 290 more papers.

Premium opens every paper in full, plus every answer, concept, course and guide on the site. One payment for six months of access.

6 months · One payment · No auto-renewal

Get Premium · ₹2,000 / $25
  • ◇1 architecture diagram
  • </>1 runnable code experiment
  • ▦2 results tables
  • ?5 interview questions with answers
  1. 03Key takeaways

    BitLinear's parts, the training recipe, the scaling result, the energy model and two misreadings

    Free account
  2. 04How it works

    BitLinear step by step, why the normalization matters, the training tricks and group quantization

    Premium
  3. 05The numbers that matter

    The 6.7B comparison table, scaling results, energy estimates and the training recipe

    Premium
  4. 06Try it yourself

    Rebuild the energy table, train a 1-bit classifier with straight-through gradients, recheck Table 3

    Premium
  5. 07Where it breaks

    Training cost, no released models in the paper, estimated energy only, narrow evaluation

    Premium
  6. 08Using it on a deployment

    How to evaluate a 1-bit model offer and what to ask before planning around one

    Premium
  7. 09Interview angles

    Five questions this paper prepares you for, with answer hints

    Premium
Back to the paper library →