arXiv AI By Aviv Orly (School of Physics and Astronomy, Tel Aviv University, Israel), Ori Shem-Ur (School of Physics and Astronomy, Tel Aviv University, Israel), Yaron Oz (School of Physics and Astronomy, Tel Aviv University, Israel)

One Temperature to Rule Them All?

Read the original on arXiv AI →

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.

Machine-generated by The Flow from the publisher's headline and feed description — not written or checked by a human. The full article lives at arXiv AI.

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