TempQuant: Learning Adaptive Temperatures for Quantized Language Models
Not on the map. Why?
Abstract (arXiv)
Large language models are increasingly deployed at low precision, yet quantization can degrade their performance. We study how quantization interacts with decoding settings such as the sampling temperature and top-p by examining how it distorts the model's next-token probabilities. Measuring entropy during generation across deployed temperatures, we find that quantization warms the model on average, and that temperature matters much more for the performance of a quantized model than for its full-precision counterpart. Because quantization and temperature both shape the next-token distribution, we investigate how much the sampling settings can undo what quantization changes, through our method TempQuant, which learns the quantized model's temperature and top-p to bring its next-token probabilities closer to the full-precision model's. We learn these settings at two granularities. The first is a single global setting per requested temperature, which finds nearly the same temperatures that tuning on labeled answers would, without any labels. Model cards typically recommend sampling a quantized model with the same settings as its full-precision counterpart, while we find that different settings can substantially improve its accuracy. On 3-bit Qwen3-4B, for example, global TempQuant raises MATH accuracy from 34% under the configuration recommended for Qwen's quantized releases to 51%. The second sets the temperature and top-p for every token, motivated by our finding that tokens whose rankings flip under quantization tend to need warming, while tokens whose rankings are preserved tend to need cooling. When quantization degrades accuracy substantially, TempQuant recovers much of it, and when degradation is lighter, it still brings the quantized model's behavior closer to the full-precision model's.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 33 of its 44 references that are in the map. Submitted 17 Nov 2026, announced 18 Nov 2026.
Builds on
33 of 44 references.
References · 33
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,866
- 2021Training Verifiers to Solve Math Word Problemscited by 11,055
- 2015Distilling the Knowledge in a Neural Networkcited by 10,967
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 6,685
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,852
- 2017On Calibration of Modern Neural Networkscited by 5,356
- 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 3,191
- 2019The Curious Case of Neural Text Degenerationcited by 3,022
- 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 2,115
- 2018A Call for Clarity in Reporting BLEU Scorescited by 1,851
- 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,349
- 2024Qwen2.5-Math Technical Report: Toward Mathematical Expert Model via Self-Improvementcited by 1,155
21 more
- 2019CTRL: A Conditional Transformer Language Model for Controllable Generationcited by 799
- 2023LLM-QAT: Data-Free Quantization Aware Training for Large Language Modelscited by 355
- 2021Does Knowledge Distillation Really Work?cited by 202
- 2024The Effect of Sampling Temperature on Problem Solving in Large Language Modelscited by 183
- 2024Turning Up the Heat: Min-p Sampling for Creative and Coherent LLM Outputscited by 164
- 2024A Thorough Examination of Decoding Methods in the Era of LLMscited by 119
- 2022Locally Typical Samplingcited by 115
- 2022Learning to Break the Loop: Analyzing and Mitigating Repetitions for Neural Text Generationcited by 106
- 2024Is Temperature the Creativity Parameter of Large Language Models?cited by 104
- 2025Quantization Hurts Reasoning? An Empirical Study on Quantized Reasoning Modelscited by 86
- 2024Evaluating Quantized Large Language Modelscited by 85
- 2024Calibrating Language Models with Adaptive Temperature Scalingcited by 64
- 2024Thermometer: Towards Universal Calibration for Large Language Modelscited by 44
- 2019Calibration, Entropy Rates, and Memory in Language Modelscited by 33
- 2025Your Pre-trained LLM is Secretly an Unsupervised Confidence Calibratorcited by 23
- 2026Quantized Reasoning Models Think They Need to Think Longer, but They Do Notcited by 20
- 2024To Cool or not to Cool? Temperature Network Meets Large Foundation Models via DROcited by 12
- 2025The End of Manual Decoding: Towards Truly End-to-End Language Modelscited by 7
- 2026The Well-Tempered Classifier: Some Elementary Properties of Temperature Scalingcited by 3
- 2026Unlocking the Pre-Trained Model as a Dual-Alignment Calibrator for Post-Trained LLMscited by 2
- 2026ReSET: Accurate Latency-Critical NVFP4 Reasoning via Step-Aware Temperature Scalingcited by 2
Built on by
Not cited yet.