CAT-Q: Cost-efficient and Accurate Ternary Quantization for LLMs
Shigeng Wang (Intel Labs China), Chao Li, Yangyuxuan Kang, Jiawei Fan, Anbang Yao
Overview
Modern Large Language Models (LLMs) have scaled to massive parameter counts, driving up the memory footprint and making decoding computationally expensive. While quantization offers a direct route to reducing these costs, extreme low-bit compression remains a challenge. This talk presents CAT-Q (Cost-efficient and Accurate Ternary Quantization), a novel framework designed to compress LLMs into a ternary format where each weight is restricted to one of three discrete values: $-1$, $0$, or $+1$. This approach drastically reduces weight memory requirements and yields hardware-friendly computation by replacing costly multiplications with sign flips, skips, and additions.

Key moments
- 0:00 Introduction to CAT-Q and ternary quantization for LLMs
- 2:00 Addressing challenges with learnable modulation and soft ternarization
- 4:00 Calibration framework and performance comparison with QAT baselines
- 6:00 Scalability results across diverse model sizes and architectures
- 8:00 Real deployment benefits and system implementation in llama.cpp
- 10:00 Conclusion, takeaways, and audience Q&A session
CAT-Q: Cost-efficient and Accurate Ternary Quantization for LLMs
Speakers: Shigeng Wang (Intel Labs China); Chao Li; Yangyuxuan Kang; Jiawei Fan; Anbang Yao
Conference: ICML
YouTube: https://slideslive.com/39083649
Overview
Modern Large Language Models (LLMs) have scaled to massive parameter counts, driving up the memory footprint and making decoding computationally expensive. While quantization offers a direct route to reducing these costs, extreme low-bit compression remains a challenge. This talk presents CAT-Q (Cost-efficient and Accurate Ternary Quantization), a novel framework designed to compress LLMs into a ternary format where each weight is restricted to one of three discrete values: $-1$, $0$, or $+1$. This approach drastically reduces weight memory requirements and yields hardware-friendly computation by replacing costly multiplications with sign flips, skips, and additions.
The core contribution of CAT-Q is demonstrating that highly accurate ternary quantization can be achieved entirely in a post-training quantization (PTQ) setting using only a small calibration dataset, circumventing the massive computational overhead of quantization-aware training (QAT). Shigeng Wang outlines how CAT-Q successfully bridges the gap between low-cost calibration and competitive accuracy across diverse model architectures ranging from 17 billion to 235 billion parameters. By combining learnable modulation and soft ternarization, the framework matches or exceeds QAT-based baselines while operating with approximately $100,000\times$ fewer training tokens.
Background
▶ Watch: Introduction to CAT-Q and ternary quantization for LLMs (0:00)
As LLMs grow in scale, deploying them efficiently requires pushing bits-per-weight down to extreme limits. Ternary quantization (often referred to as a 1.58-bit format, representing $\log_2(3) \approx 1.58$ bits per weight) is particularly attractive because zero values allow networks to achieve sparsity, while negative one and positive one values eliminate general floating-point multiplication in favor of basic arithmetic operations (sign flips and additions).
Historically, however, obtaining high-accuracy ternary LLMs has relied heavily on QAT approaches like the BitNet 1.58B family. While QAT yields strong downstream accuracy, it requires immense compute and data resources, often ingesting tens or hundreds of billions of training tokens. This high data and compute requirement makes QAT impractical for rapidly adapting new model families or repeatedly quantizing massive proprietary and open checkpoints.
Transitioning ternary compression to a PTQ paradigm introduces two primary technical bottlenecks:
- Distribution Mismatch: A direct, aggressive ternary mapping drastically alters the underlying weight distribution, leading to severe quantization error when no long training stage is available to correct it.
- Optimization Instability: Hard ternarization functions are inherently non-smooth, resulting in unstable gradients during calibration and preventing standard optimizers from effectively aligning the quantized weights.
Key Findings
▶ Watch: Calibration framework and performance comparison with QAT baselines (4:00)
CAT-Q demonstrates that PTQ can successfully match or outperform compute-intensive QAT methodologies for ternary LLM compression. Evaluated across 10 pretrained LLMs ranging from 17 billion to 235 billion parameters—including both dense architectures and Mixture-of-Experts (MoE) models—CAT-Q requires a calibration dataset of only 512 samples (roughly 1 million tokens).
Key findings and performance highlights include:
- Data Efficiency: Compared to the BitNet 1.58B training paradigm, CAT-Q utilizes approximately $100,000\times$ fewer training tokens while achieving parity with or surpassing QAT baselines.
- Scalability: The framework scales seamlessly across model families and massive scales, with execution times ranging between 1 to 30 hours on an 8-GPU A100 cluster.
- Component Synergy: Ablation studies confirm that both learnable modulation and soft ternarization are strictly necessary; while each individual component improves alignment and stability, peak accuracy is achieved only when both are deployed concurrently.
- Real-World Inference: Implementation in llama.cpp demonstrates that the 1.58-bit ternary format yields tangible system-level benefits, reducing weight memory and increasing decoding throughput on both CPU and GPU hardware.
Technical Deep Dive
▶ Watch: Scalability results across diverse model sizes and architectures (6:00)
CAT-Q tackles distribution mismatch and optimization instability through two core algorithmic innovations: Learnable Modulation (LM) and Soft Ternarization (ST), integrated within a multi-layer sliding window optimization framework.
Learnable Modulation (LM)
To resolve distribution mismatch without full retraining, LM operates in three distinct phases:
- Static Initialization: Extract baseline static parameters from the original weight tensors, yielding initial scaling and shifting factors ($\mu_0, \alpha_0, \delta_0$).
- Modulation via Calibration: Utilizing a small calibration set, LM learns a minimal set of scaling factors to adjust these weight parameters into a refined redistribution proxy ($\mu, \alpha, \delta$) prior to hard ternarization.
- Inference Optimization: Crucially, the learned shift parameter ($\mu$) is stripped away during real inference, ensuring that the final ternary computation remains completely hardware-friendly and free of complex runtime overheads.
Visualizations confirm that LM-derived proxies exhibit significantly lower reconstruction error compared to static approximations or direct learning approaches. Furthermore, ablations show that explicitly learning the boundary parameter ($\delta$) is vital, as optimal ternary boundaries vary significantly across individual layers and model architectures.
Soft Ternarization (ST)
To combat the unstable gradients caused by non-smooth hard ternarization, ST introduces a continuous, differentiable relaxation during the calibration phase:
- Identity-Like Beginning: The function behaves almost like an identity mapping initially, allowing standard gradient-based optimization to proceed stably.
- Progressive Sharpening: Over the course of calibration, the function progressively sharpens based on a carefully tuned scheduler governed by hyperparameters $\gamma$ (controlling the duration of the soft phase) and $S_0$ (determining the final function sharpness).
- Deployment Hardening: At the conclusion of calibration, the function transitions fully into the standard hard ternary form required for deployment.
Switching to hard ternarization too early results in training instability, while switching too late prevents the model from adequately adapting to the discrete target values. A balanced scheduler strikes the optimal balance for downstream accuracy.
Sliding Layer Reconstruction Framework
CAT-Q adopts a sliding layer reconstruction pipeline originally introduced in Sign-Quant (ICLR 2024). Instead of quantizing and optimizing each layer in complete isolation, CAT-Q optimizes a small window of consecutive layers jointly, allowing LM and ST to compensate for cascading error propagation across deep network blocks.
Experimental Setup & Results
▶ Watch: Real deployment benefits and system implementation in llama.cpp (8:00)
The evaluation of CAT-Q spans a rigorous suite of large-scale configurations:
- Model Scale: 10 distinct pretrained LLMs spanning 17B to 235B parameters, covering both dense transformers and MoE architectures.
- Hardware Infrastructure: Calibration and optimization executed on a cluster of 8 A100 GPUs, with wall-clock running times scaling from 1 to 30 hours depending on model size.
- Calibration Budget: 512 calibration samples (approximately 1 million tokens).
- Baselines: Compared against strong QAT-based ternary methods (such as the BitNet 1.58B family) and static PTQ approximations.
While standard CAT-Q successfully matches QAT accuracy on general benchmarks, the authors note an important limitation: on complex, reasoning-heavy mathematical and coding tasks, basic 1.58-bit ternary models struggle to maintain fidelity. To address this, the authors introduce a specialized calibration data generation technique tailored for hard reasoning tasks, which substantially improves structured reasoning outputs and prevents the degraded, unstable responses typically observed under aggressive low-bit compression.
Practical Implications
▶ Watch: Conclusion, takeaways, and audience Q&A session (10:00)
For infrastructure teams, model builders, and deployment engineers, CAT-Q lowers the barrier to adopting aggressive low-bit quantization. By replacing QAT with a rapid PTQ workflow, organizations can convert massive 17B to 235B checkpoint models into efficient 1.58-bit ternary formats in hours rather than weeks, without provisioning massive GPU clusters for full retraining tokens.
From a systems deployment perspective, the integration of CAT-Q into frameworks like llama.cpp proves that ternary weights are not merely a theoretical construct. By eliminating multiplications for zero-valued weights and substituting sign flips for $\pm 1$ weights, deployed models achieve reduced memory bandwidth consumption and higher token decoding throughput across both CPU and GPU execution targets. However, deployers must exercise caution when applying basic ternary PTQ to reasoning-intensive domains (such as advanced mathematics or code generation), where specialized calibration data generation is required to preserve cognitive performance.
Key Takeaways
- Efficient PTQ Compression: CAT-Q successfully ternarizes diverse LLMs ranging from 17 billion to 235 billion parameters entirely within a post-training quantization setting, avoiding the massive data and compute costs of QAT.
- Algorithmic Synergy: Learnable Modulation (LM) corrects distribution mismatch prior to ternarization, while Soft Ternarization (ST) ensures stable gradient optimization through progressive function hardening.
- Extreme Data Efficiency: Operating on just 512 calibration samples (about 1 million tokens), CAT-Q matches or beats QAT baselines while utilizing roughly $100,000\times$ fewer training tokens.
- Hardware-Friendly Deployment: By stripping modulation offsets at inference time and utilizing sparse ternary representations (-1, 0, +1), CAT-Q delivers real memory and throughput gains on standard CPU and GPU runtimes like llama.cpp.
- Reasoning Domain Adaptations: Standard ternary PTQ struggles with complex mathematical and coding tasks, requiring specialized calibration data generation strategies to unlock structured reasoning performance in 1.58-bit models.
About the Speaker(s)
- Shigeng Wang (Intel Labs China): Shigeng Wang is from Intel Labs China and presented this work on cost-efficient and accurate ternary quantization for large language models on behalf of all authors.
Co-authors: Chao Li, Yangyuxuan Kang, Jiawei Fan, Anbang Yao.
Reviews
→ Top-rated talks at International Conference on Machine Learning 2026
All talks from International Conference on Machine Learning 2026