Attend to Your Own Thoughts: Breaking the Barrier for Post-Training Quantization of Reasoning LLMs through the Lens of 1.58-Bit Quantization

Shigeng Wang, Chao Li, Yangyuxuan Kang, Jiawei Fan, Anbang YaoarXiv 2026 · arXiv

TL;DR

ScaleQ-1.58 introduces a highly efficient post-training quantization (PTQ) framework that compresses reasoning large language models down to 1.58 bits (ternary weights) without destroying their complex problem-solving capabilities. By introducing a novel calibration strategy called "Attend to Your Own Thoughts" (AYOT), which utilizes a model's own self-generated chain-of-thought traces during quantization, the method achieves state-of-the-art reasoning performance while requiring 1,000,000× fewer tokens than traditional quantization-aware training.

What Problem Does This Paper Address?

Ternary quantization (specifically 1.58-bit, where weights are restricted to $\{-1, 0, 1\}$) is incredibly attractive for deploying LLMs on resource-constrained hardware. It drastically reduces memory footprints and replaces power-hungry floating-point multiplications with simple integer additions and subtractions.

However, compressing a model so aggressively usually results in severe performance degradation—especially for complex, multi-step tasks like mathematics and coding. To combat this, current state-of-the-art 1.58-bit models rely on Quantization-Aware Training (QAT), which requires training a model from scratch or extensively fine-tuning it on trillions of tokens. This is prohibitively expensive and scales poorly to massive models.

While Post-Training Quantization (PTQ) is a much cheaper alternative, existing PTQ methods suffer a total performance collapse on reasoning tasks. The authors discover that this collapse is caused by conventional calibration schemes: they use generic web text (like the C4 dataset) that completely ignores the model's internal logical reasoning process, effectively wiping out its chain-of-thought (CoT) capabilities.

Methods

The authors present ScaleQ-1.58, which integrates a differentiable ternarization technique (CAT-Q) with a novel calibration approach called Attend to Your Own Thoughts (AYOT).

Instead of calibrating the quantization process using random web text, AYOT follows two core principles:

  1. Domain-Specific Calibration: It selects calibration samples directly from mathematics and coding datasets.
  2. Self-Generated Chain-of-Thought Traces: For each calibration question, the unquantized, high-precision target LLM generates its own step-by-step reasoning traces and final answers.

These triplets—[question, self-generated reasoning traces, generated answer]—are fed into the model as context during the quantization process. This forces the quantized weights to preserve the specific, internal logical pathways the model naturally uses to solve problems.

Figure 2: Post-training ternarization of LLMs under CoT-agnostic calibration (left) vs. CoT-aware calibration AYOT (right). For the question Q, A denotes the ground-truth answer, and T and A’ denote the reasoning traces and final answer generated by the pre-trained target LLM, respectively.

Datasets

  • Calibration Datasets: MetaMathQA (mathematics) and OpenCodeInstruct (coding). Subsets of the training sets for GSM8K, MBPP, and ProofWriter were also utilized for task-specific calibration experiments.
  • Evaluation Benchmarks:
  • Mathematics: Math-500, GSM8K, Omni-MATH
  • Coding: HumanEval+, MBPP+
  • Scientific Logic & Commonsense: ProofWriter, PIQA, ARC (Easy/Challenge), HellaSwag, Winogrande, MMLU
  • Language Modeling: WikiText2, C4

Key Insights and Ideas

  • Generic Text Destroys Logic: Calibrating a ternary model with generic text corpora (like C4) results in near-zero accuracy on math and coding benchmarks. Generic text captures local word-to-word relationships but lacks explicit logical reasoning patterns.
  • Don't Borrow Thoughts: Surprisingly, using chain-of-thought traces generated by a stronger model (like DeepSeek-R1-671B) for calibration yields poor results. A quantized model performs best when it "attends to its own thoughts," aligning the quantization process with its own unique architectural capacity and reasoning style.
  • Excellent Scaling Behavior: ScaleQ-1.58 demonstrates strong scaling properties. Unlike previous ternary methods that struggle beyond 10B parameters, ScaleQ-1.58 scales seamlessly up to 235B parameters across both dense and Mixture-of-Experts (MoE) architectures.

Key Results

  • Massive Data Efficiency: With only 4 million calibration tokens, a ternary Qwen3-4B model quantized via ScaleQ-1.58 outperforms BitNet b1.58 2B4T (the previous gold standard trained from scratch on 4 trillion tokens) by an absolute 8.97% on average across math and coding tasks. This represents a 1,000,000× reduction in required tokens.
Figure 1: Performance comparison of 1.58-bit Qwen3-4B models obtained via differentiable ternariza- tion under different calibration schemes across five challenging mathematics and coding tasks. Using our calibration method, Attend to Your Own Thoughts (AYOT, i.e., CoT-aware: self-generated), with only 4M calibration tokens, the resulting 1.58-bit Qwen3-4B in the PTQ regime yields an absolute gain of 8.97% (averaged over Math-500, GSM8K, HumanEval+ and MBPP+) compared to BitNet b1.58 2B4T (highlighted in orange), the prior best 1.58-bit reasoning LLM trained from scratch on 4T tokens in the QAT regime, while achieving a reduction of 1,000,000× in training tokens. More accurate 1.58-bit LLMs spanning different architectures and model scales are reported in Table 1.
  • Token Budget Scaling: The performance of the quantized model scales continuously with the number of calibration tokens, showing no signs of plateauing up to 16M tokens.
Figure 4: Accuracy vs. number of calibration tokens for Qwen3-4B ternarized by ScaleQ-1.58.
  • Bit-Width Generalization: AYOT isn't just for 1.58-bit models; it also consistently improves performance when applied to 2-bit (W2A16) and 4-bit (W4A16) post-training quantization schemes.
  • Hardware Acceleration: Real-world deployment tests using llama.cpp show that ScaleQ-1.58 models achieve the lowest memory footprint and highest decoding throughput on both CPU and GPU compared to standard 2-bit and 4-bit baselines.

Limitations and Future Work

  • Kernel Optimization Gap: While the quantized models are theoretically highly efficient, existing open-source 1.58-bit hardware kernels (CPU/GPU) are mostly custom-tailored to specific model families (like BitNet). Broad, highly optimized kernel support for diverse architectures remains limited.
  • Remaining Performance Gap: Although ScaleQ-1.58 narrows the gap significantly compared to prior PTQ methods, a noticeable performance deficit still exists between the 1.58-bit quantized models and their full-precision (FP16) baselines on the most challenging olympiad-level reasoning tasks.
BibTeX
@misc{wang2026attend,
  author = {Shigeng Wang and Chao Li and Yangyuxuan Kang and Jiawei Fan and Anbang Yao},
  title = {{Attend to Your Own Thoughts: Breaking the Barrier for Post-Training Quantization of Reasoning LLMs through the Lens of 1.58-Bit Quantization}},
  year = {2026},
  eprint = {2608.01078},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.01078},
}
Figure