TL;DR
PTQTP (Post-Training Quantization to Trit-Planes) introduces the first post-training ternary quantization framework for large language models, compressing weights into two structured $\{-1, 0, 1\}$ trit-planes. It enables multiplication-free inference with 1.58-bit representations in just minutes to hours of GPU time—bypassing the massive retraining overhead of quantization-aware training (QAT). Crucially, while previous ultra-low-bit schemes catastrophically collapse on mathematical reasoning, PTQTP retains over 82% accuracy on Math-500 and rivals full-precision baselines across the LLaMA and Qwen model families.
What Problem Does This Paper Address?
Running state-of-the-art LLMs demands immense GPU memory and bandwidth. Pushing model weights down to ultra-low bit-widths (1 to 2 bits) drastically cuts memory and replaces expensive floating-point multiplications with simple additions and bit shifts.
However, existing approaches face a sharp dilemma:
- Quantization-Aware Training (QAT) (e.g., BitNet b1.58) delivers high accuracy with ternary weights, but requires pretraining from scratch or days of costly retraining.
- Binary Post-Training Quantization (PTQ) (e.g., BiLLM, ARB-LLM) operates without retraining, but suffers from severe representational collapse—especially on complex reasoning tasks—and relies on messy, unstructured mixed-precision masks to protect "salient" weights.
PTQTP bridges this gap by delivering the representational benefits of ternary weights purely via post-training quantization, with uniform, structured, and hardware-friendly representations.
Methods
PTQTP decomposes each weight matrix $W \in \mathbb{R}^{n \times d}$ into two scaled ternary planes (trit-planes): $$\hat{W} = \text{diag}(\alpha^{(1)})T^{(1)} + \text{diag}(\alpha^{(2)})T^{(2)}, \quad T^{(1)}, T^{(2)} \in \{-1, 0, 1\}^{n \times d}$$
To solve this mixed discrete-continuous optimization problem efficiently without backpropagation, the authors introduce:
- Group-Wise Decomposition: Weight rows are partitioned into sub-vectors of group size $G = 128$, balancing local distribution sensitivity with minimal scaling factor overhead.
- Closed-Form Adaptive Ridge Regression: For a fixed set of ternary patterns, the continuous scaling factors $\alpha = [\alpha^{(1)}, \alpha^{(2)}]^T$ are solved analytically via a $2 \times 2$ regularized normal equation. The regularization parameter $\lambda$ dynamically adapts based on the condition number ($\kappa_{\text{approx}}$) of the local basis matrix, avoiding both singularity and excessive coefficient shrinkage.
- Exhaustive Trit-Plane Search: With continuous scales fixed, each matrix entry selects the optimal pair $(T^{(1)}_{ij}, T^{(2)}_{ij})$ from the $3 \times 3 = 9$ possible combinations in $\{-1, 0, 1\}^2$ that minimizes the squared Frobenius error.
- Convergence Guarantee: The alternating optimization monotonically decreases the approximation error, reliably converging in fewer than 50 iterations (typically under 30).
Unlike competing methods, PTQTP is bias-free and mask-free, requiring no specialized outlier-weight channels or architecture-specific interventions.
Datasets
The authors evaluated PTQTP across standard benchmarks without task-specific calibration or fine-tuning:
- Perplexity & Language Modeling: WikiText-2, Penn Treebank (PTB), and C4.
- Commonsense & General Reasoning: ARC-Easy, ARC-Challenge, BoolQ, HellaSwag, PIQA, Winogrande, and MMLU.
- Mathematical Reasoning: GSM8K and Math-500.
- Code Generation: HumanEval and MBPP.
No new datasets were introduced; evaluation adhered to the standard LM Evaluation Harness.
Key Insights and Ideas
- Decoupling Bit-Width from Mathematical Reasoning: Prior ultra-low-bit PTQ methods (such as GPTQ-3bit or BiLLM) suffered a catastrophic collapse on multi-step math—dropping to near 0% on Math-500. PTQTP proves that ultra-low-bit weights can retain deep deductive reasoning, achieving 82.40% on Math-500 with zero retraining.
- Uniformity Over Heuristics: Rather than maintaining a patchwork of FP16 salient columns and binary groups (which complicates hardware design), an auxiliary, symmetric second trit-plane provides sufficient capacity to absorb weight outliers naturally.
- QAT Quality at PTQ Cost: PTQTP completes quantization in single-digit minutes to hours per model (achieving a $17.7\times\text{--}28.8\times$ speedup over ARB-LLM), yet matches or exceeds models trained from scratch with 1.58-bit QAT (BitNet).
Key Results
- Reasoning Retention (Qwen3-14B): PTQTP-b1.58 reaches 82.40% on Math-500 and 85.44% on GSM8K, trailing the FP16 baseline (86.60% / 89.39%) by less than 5%. In contrast, GPTQ-b3, PBLLM, and BiLLM scored 0.00% on Math-500, and ARB-LLM achieved only 1.80%.
- Broad Benchmarking: On Qwen3-32B, PTQTP scores 80.6% on MMLU (FP16 baseline is 81.2%), vastly outperforming 2-bit GPTQ/AWQ (~28%) and 1-bit BiLLM (57.5%).
- Scale and Universality: Evaluated successfully from 0.6B to 70B parameters across LLaMA 1/2/3/3.1/3.2 and Qwen 2.5/3.
- Inference Speed: A custom CUDA kernel evaluated on an RTX 4090 delivers up to a 1.14× decode speedup on linear projection layers and 1.16× speedup on LLaMA2-70B attention blocks.
Limitations and Future Work
- Hardware Storage Gap: Because conventional hardware lacks native 3-state data types, each ternary state currently requires 2 physical storage bits (or custom bit-packing), meaning practical memory footprints are slightly higher than pure 1-bit formats until dedicated hardware packing is utilized.
- Hardware Ecosystem: Full exploitation of multiplication-free ternary operations relies on emerging neuromorphic chips, FPGAs, or custom ASICs; off-the-shelf GPUs still execute operations via standard instruction pipelines.
- Future Tuning: The authors propose combining PTQTP with lightweight post-quantization alignment techniques like Direct Preference Optimization (DPO) or Supervised Fine-Tuning (SFT) to close the remaining margin to FP16 performance on challenging coding tasks.