arXiv AI

One Temperature to Rule Them All?

The paper examines the role of temperature in inference-time sampling for large language models, comparing fixed-temperature approaches to multi-temperature schemes in the pass@K setting. It analyzes how per-question success probabilities vary with temperature across models and datasets, finding that harder questions have less shared efficient temperatures, though the trend is logarithmic. The authors propose an efficient method to compute the optimal multi-temperature allocation, showing that while it can improve performance, the gains over a single tuned temperature are usually modest when temperature is adjusted for the sampling budget K, due to what they term "dulling effects" that stabilize temperature choices across question distributions.

arXiv AI
5d ago

Learning Stratified Policies for Inference-Time Objectives

The paper introduces stratified policies, a method that allocates inference-time sampling across multiple learned policies rather than repeatedly sampling from a single policy. Each of the $k$ policies contributes one response to a $k$-sample objective, implemented via separate LoRA adapters on a shared language model backbone and optimized for pass@$k$. Experiments show that this approach consistently improves pass@$k$ on reasoning tasks compared to single-policy baselines, demonstrating that distributing samples across complementary policies can better utilize the sample budget.

By Mridul Mahajan, Xuezhou Zhang, Aldo Pacchiano
arXiv Machine Learning
6d ago

TempQuant: Learning Adaptive Temperatures for Quantized Language Models

TempQuant introduces a method to learn adaptive sampling temperatures and top‑p values for quantized language models, aiming to align their next‑token probability distributions with those of full‑precision counterparts. The approach operates at two granularities: a global setting per requested temperature and a token‑wise setting that adjusts temperature and top‑p based on whether token rankings flip under quantization. Experiments on 3‑bit Qwen3‑4B show that TempQuant can significantly boost accuracy—raising MATH scores from 34% to 51%—and generally improves the fidelity of quantized models to their full‑precision behavior.

By Mukund Athmaram, Liang Ma, Manoj Rao
arXiv Computation and Language
Oct 16

The Necessity of Setting Temperature in LLM-as-a-Judge

The paper investigates how decoding temperature influences the reliability of large language models used as automated judges. Through over one million evaluations across multiple models and prompting strategies, it finds that low temperatures produce consistent outputs with fewer errors, especially in smaller models, while high temperatures increase variability and errors but can uncover hidden uncertainty in ambiguous cases. The authors propose a hybrid approach—using high temperature for reasoning and low temperature for final decisions—to improve agreement on difficult judgments without harming clear ones.

By Lujun Li, Lama Sleem, Yangjie Xu, Yewei Song, Aolin Jia, Jerome Francois, Radu State
arXiv Machine Learning
Aug 11

On the Effect of Sampling Diversity in Scaling LLM Inference

arXiv:2502. 11027v5 Announce Type: replace Abstract: Large language model (LLM) scaling inference is key to unlocking greater performance, and leveraging diversity has proven an effective way to enhance it.

By Tianchun Wang, Zichuan Liu, Yuanzhou Chen, Jonathan Light, Weiyang Liu, Haifeng Chen, Xiang Zhang, Wei Cheng
arXiv Computation and Language
Oct 9

Uncertainty-Aware Budget Allocation for Adaptive Test-Time Reasoning

The paper introduces Uncertainty-Aware Budget Allocation (UAB), a concave integer optimization framework that reallocates a fixed sampling budget for language model reasoning based on uncertainty estimated from initial samples. In Phase‑1, each question receives a small number of generations, and the disagreement among these answers (vote entropy) signals difficulty. Phase‑2 uses a marginal‑greedy algorithm to allocate the remaining budget, focusing on questions with high initial disagreement, leading to a 2.3% average accuracy improvement over uniform allocation across five open‑weight models and five reasoning benchmarks, with up to 5.5% gains on individual benchmarks, especially in low‑resource settings.

By Manh Nguyen, Sunil Gupta, Hung Le