Research map / Architectures and efficiency / Quantization
Bitnet.cpp: Efficient Edge Inference for Ternary LLMs
Jinheng Wang, Hansong Zhou, Ting Song, Shijie Cao, Yan Xia, Ting Cao, Jianyu Wei, Shuming Ma, Hongyu Wang, Furu Wei
Microsoft · Peking University · University of Science and Technology of China · University of Chinese Academy of Sciences
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use I2_S kernel instead of llama.cpp Float16 | Bitnet.cpp · end-to-end token generation speed | speedup: up to 6.25x | Improved |
| use element-wise LUT kernel TL2_0 instead of bit-wise LUT T-MAC | Bitnet.cpp · Intel i7-13700H | speedup: up to 2.32x | Improved |
| use TL2_0 instead of T-MAC | Bitnet.cpp · Apple M2 Ultra | speedup: up to 1.19x | Improved |
| use LUT-based TL2_0 instead of MAD-based TQ1_0 (similar bpw) | Bitnet.cpp · Intel i7-13700H / Apple M2 Ultra | speedup: up to 1.33x / 1.65x | Improved |
| use pack-and-unpack int16 sums (TL1_1, TL2_1) instead of int8 quantized sums (TL1_0, TL2_0) (ablation) | TL kernels · WikiText2 | perplexity: 11.30 -> 11.29 | Improved |
| I2_S aligned with BitNet b1.58 training scheme (per-tensor int8 activations) | I2_S · WikiText2, WinoGrande, HellaSwag | perplexity/accuracy: identical to Float16: 11.29, 55.32, 43.0 | No clear effect |
| use TL2_0 instead of TQ2_0 on Apple M2 Ultra 1.5B model | Bitnet.cpp · Apple M2 Ultra, 1.5B | tokens/s: 145.68 -> 138.28 | Hurt |
| increase thread count to 5 (ablation) | TL2_0 vs T-MAC · multi-threaded 3.8B, Intel i7-13700H | tokens/s | Improved |
| table lookup plus add and convert instead of a single MAD instruction | ELUT on Intel i5-13400F · instruction time | ns: 3.77 ns (MAD) vs 6.20 ns (TBL+ADD+CVT) | Hurt |
Open problems in post-training quantization of LLMs
Can post-training quantization reach 2-bit and activation-level compression with real speedups on large models?
- Speedups are simulated or lack optimized kernels and real hardware. · 22 papers state it
- A gap to full precision remains at 2-bit and other ultra-low settings. · 16 papers state it
- Calibration and quantization take hours and more memory than baselines. · 14 papers state it
Closest papers by meaning
- Agile-Quant: Activation-Guided Quantization for Faster Inference of LLMs on the Edge (AAAI 2024 · similarity 0.90)
- BlockDialect: Block-wise Fine-grained Mixed Format Quantization for Energy-Efficient LLM Inference (ICML 2025 · similarity 0.88)
- Learning from Students: Applying t-Distributions to Explore Accurate and Efficient Formats for LLMs (ICML 2024 · similarity 0.88)
- An Efficient Matrix Multiplication Algorithm for Accelerating Inference in Binary and Ternary Neural Networks (ICML 2025 · similarity 0.88)
- xLSTM 7B: A Recurrent LLM for Fast and Efficient Inference (ICML 2025 · similarity 0.88)
- PB-LLM: Partially Binarized Large Language Models (ICLR 2024 · similarity 0.88)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.