1online
2026-11-07 · DEEPLEARNING · LLM · STUDY · HARDWARE

BitNet Explained: LLM Weights in Just -1, 0, +1

Drafted by a dsh agent; all figures cross-checked against the arXiv HTML originals (2402.17764, 2504.12285). The memory calculator, absmean demo and quiz widgets were implemented for this post (/public/bitnet-widgets.js).

TL;DR: BitNet (Microsoft) trains LLMs whose weights can only take {-1, 0, +1}. Since storing one of three states takes log₂3 ≈ 1.58 bits, these are called "1.58-bit LLMs". From 3B parameters upward, BitNet b1.58 matches a same-size FP16 LLaMA (perplexity 9.91 vs 10.04) while using 2.71× less memory and running 3.55× faster, with an estimated 71.4× reduction in matrix-multiply energy.

The byte problem

A model's real weight is (parameter count) × (bytes per parameter):

Format Bytes/param 7B model
FP32 4 28 GB
FP16/BF16 2 14 GB
INT8 1 7 GB
INT4 0.5 3.5 GB
1.58-bit 0.198 1.4 GB

Inference speed is largely memory-bandwidth bound - smaller weights mean fewer bytes to read per token.

Quantization in one paragraph

Quantization redraws a fine ruler (FP32) with coarser ticks (INT8 = 256 levels, ternary = 3 levels). Two schools exist: PTQ squeezes an already-trained model into coarse ticks (GPTQ/AWQ/int8 TFLite), and QAT makes the model train inside the coarse world so it learns to live with the error. BitNet is the extreme end of QAT: weights are ternary from the start, via a drop-in replacement of nn.Linear called BitLinear.

How -1/0/+1 is chosen: absmean

gamma = mean(|W|)
W_q   = clip(round(W / gamma), -1, +1)

The mean absolute value becomes the scale; dividing, rounding and clipping lands every weight on one of three ticks. Activations stay INT8 (absmax), as do all non-linear ops (LayerNorm, GELU, embeddings, output head). So the precise description is w1.58 / a8, not "everything is 1-bit".

Why ternary removes multiplication: with weights in {-1, 0, +1}, a multiply becomes add (+1), subtract (-1) or skip (0). Matrix multiplication degenerates into additions only - hence the energy story and the case for dedicated hardware.

Verified numbers

BitNet b1.58 paper (arXiv 2402.17764, batch 1, 2-bit kernel):

Model Perplexity Memory Latency 0-shot avg
LLaMA LLM 3B (FP16) 10.04 5.07 GB 7.89 ms 49.7
BitNet b1.58 3B 9.91 1.87 GB 2.22 ms 50.2
BitNet b1.58 3.9B 9.62 2.11 GB 2.38 ms 51.2

BitNet b1.58 2B4T report (arXiv 2504.12285) - the first open-weights native 1-bit LLM, 2B params, 4T tokens:

Model Memory CPU latency/token Energy ARC-C
Llama 3.2 1B 2.0 GB 48 ms 0.258 J 37.8
Gemma-3 1B 1.4 GB 41 ms 0.186 J 38.4
Qwen2.5 1.5B 2.6 GB 65 ms 0.347 J 46.7
MiniCPM 2B 4.8 GB 124 ms 0.649 J 44.8
BitNet b1.58 2B4T 0.4 GB* 29 ms 0.028 J 49.9

*non-embedding memory.

Honest limitations

  • You cannot convert an existing LLaMA to BitNet - it is a training recipe, hence "native 1-bit".
  • Needs dedicated kernels (e.g. bitnet.cpp); on stock GPU pipelines tuned for FP16 tensor cores it can even be slower.
  • At 700M-1.3B it still trails FP16; the parity claim starts at 3B.
  • Embeddings/output head stay 8-bit, diluting savings at small scales.

Why it matters for edge

This is the LLM-scale version of the same journey as int8 vision models on MCUs (a 486KB int8 cat detector, a 16KB TinyML runtime). With 2B4T at 0.4GB and 29 ms/token on CPU, a usable LLM on laptops and SBC-class devices is no longer hypothetical.

Sources

Interactive widgets (memory calculator, absmean demo, quiz) and full diagrams are in the Korean version of this post.

comments (0)
COUNTER
001373
TOTAL VIEWS
0007
TODAY