Breaking the 1.58-bit Barrier for Ternary LLMs
cs.AI, cs.LG
Submitted: 2026-09-14
Updated: 2026-09-14
Code: https://github.com/PrismML-Eng/llama.cpp
License: http://creativecommons.org/licenses/by/4.0/
The gist: Ternary Large Language Models (LLM) store every weight as one of three symbols-1,0,+1, so the cost of a ternary model is conventionally referenced to the information-theoretic 2 3 about 1.585 bits
Terminology
Abstract
Ternary Large Language Models (LLM) store every weight as one of three symbols-1,0,+1, so the cost of a ternary model is conventionally referenced to the information-theoretic 2 3 about 1.585 bits per weight. The prevailing deployment format packs five ternary weights into one byte (five-trit packing), and due to the power-of-two group sizes used in practice this rounds up to 1.625 bits per weight. This effective storage bit-width treats the three symbols-1,0,+1 as equiprobable. We measure the actual symbol distribution of 29 ternary LLM models and find that zeros account for up to 51.5% of all weights. Motivated by this finding, we introduce BITCOS, a simple distribution-adaptive layout comprised of a dense presence bitmap plus a compacted sign vector, and costs 2 - z bits per weight element given a zero density z in the model's weights. BITCOS stores weights more compactly than the five-trit packing in 26 of the 29 tested models, and reaches 1.485 bits per weight on the sparsest of them. BITCOS is amenable to efficient unpacking on modern processors and GPUs, and we present optimized unpacking sequences for AVX-512, AVX2 and Intel Xe2 GPUs. Measured against production state-of-the-art ternary matrix-vector multiplication kernels, at the zero densities real-world ternary models exhibit, the realized gain with our proposed layout is up to 1.28 times. Finally, we illustrate end-to-end LLM inference results on 5 different platforms (client and server CPUs, integrated and discrete Xe2 GPUs) where decode throughput improves by up to 1.18 times on CPUs and 1.27 times on GPUs.
Sources
- The Era of 1-bit LLMs: All Large Language Models are in 1.58 Bits
- BitNet b1.58 2B4T Technical Report
- CAT-Q: Cost-efficient and Accurate Ternary Quantization for LLMs
- ParetoQ: Improving Scaling Laws in Extremely Low-bit LLM Quantization
- Spectra: Surprising Effectiveness of Pretraining Ternary Language Models at Scale
- Pushing the Envelope of LLM Inference with Ultra-Low-Bit Quantized Models
- Small Language Models are the Future of Agentic AI
- Scaling Laws for Precision
- Tequila: Trapping-free Ternary Quantization for Large Language Models
- TWLA: Achieving Ternary Weights and Low-Bit Activations for LLMs via Post-Training Quantization
- Sparse-BitNet: 1.58-bit LLMs are Naturally Friendly to Semi-Structured Sparsity
- Sherry: Hardware-Efficient 1.25-Bit Ternary Quantization via Fine-grained Sparsification
Related papers
- MAVEN-T: Reinforced Heterogeneous Distillation for Real-Time Multi-Agent Trajectory Prediction
- Model Discovery Agent: LLM-assisted Bayesian experiment design for data-efficient discovery of mechanistic world models
- The Clinician's Veto: Navigating Trust, Liability, and Uncertainty in Autonomous AI Prescribing
- MindHelper: Closed-Loop Embodied Mental-State Reasoning for Precision Intervention
- Incumbent Advantage: Brand Bias and Cognitive Manipulation Dynamics in LLM Recommendation Systems
- VSAL: A Vision Solver with Adaptive Layouts for Graph Property Detection