# One Temperature to Rule Them All?

*Aviv Orly, Ori Shem Ur, Yaron Oz*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/155832) · [Open on the map](../papers.html#p155832)

Category: [LLM Reasoning, Memory & RAG](../pcat/19.md) › [LLM Reasoning Enhancement](../pgroup/523.md) · Type: new method · Keywords: inference-time sampling, temperature scaling, multi-temperature allocation, large language models, performance analysis

## Summary
The paper analyzes when varying sampling temperature across questions improves large language model inference, derives an efficient method to evaluate optimal multi-temperature allocation, and shows that gains over single-temperature baselines are modest due to dulling effects.

## Explained to a 5-year-old
Imagine a big robot brain that writes sentences. It has a setting called temperature that makes it either guess more safely or more creatively. Usually people set this temperature to one number for all questions. Some scientists wondered if using different temperatures for different questions could make the robot better. They looked at many questions asked to the robot and saw how often each temperature helped.

## Explained to a 5-year-old, longer
Imagine a big robot brain that writes sentences. It has a setting called temperature that makes it either guess more safely or more creatively. Usually people set this temperature to one number for all questions. Some scientists wondered if using different temperatures for different questions could make the robot better. They looked at many questions asked to the robot and saw how often each temperature helped. They found that easy questions often share the same good temperature, while hard questions are less likely to share it. The difference in sharing was small, only growing slowly as questions got harder. They also built a quick way to figure out the best temperatures for each question. When they used this plan, the robot got a little better, but not a huge amount. They called this small extra benefit a dulling effect. The study tells us that most of the time, one temperature is enough, and changing it rarely makes a big difference. This helps people decide when to spend time tweaking temperatures and when to keep things simple.

## For a technical reader
The paper examines how sampling temperature influences the success probability of language model outputs across different question difficulties. It derives an efficient algorithm to compute the optimal temperature allocation for a given sampling budget K and compares it against fixed-temperature baselines. Empirical results show modest gains from multi-temperature schemes, explained by mathematical dulling effects that limit performance improvements. The insights guide practitioners in choosing between simple fixed temperatures and more complex per-question tuning.

## Problem
Inference-time sampling uses temperature to balance reliability and diversity, yet it is unclear when varying temperature across samples is beneficial and when a single fixed temperature suffices. The work investigates this discrepancy in the pass@K setting, asking when temperature diversity helps and when a single tuned temperature is enough.

## Method
The approach analyzes per-question success probabilities across models and datasets as a function of temperature, identifies consistent patterns such as logarithmic hardness effects, and derives an efficient algorithm to compute the theoretically optimal allocation of temperatures for a given sampling budget K. It then compares this optimal scheme against single-temperature baselines and explains observed modest gains through mathematical mechanisms termed dulling effects.

## Results
The optimal multi-temperature scheme improves performance modestly over single-temperature baselines, and the benefit diminishes with larger sampling budgets; harder questions show only a logarithmic reduction in shared efficient temperatures.

## Contributions
It provides a systematic analysis of temperature effects across question difficulty, derives an efficient method to evaluate optimal multi-temperature allocation, and identifies dulling effects that explain why single temperatures remain robust, clarifying when temperature diversity is practically useful.

## Practical relevance
The findings help practitioners decide when to invest effort in tuning per-question temperatures versus using a simple fixed temperature, improving efficiency in real-world LLM deployment.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/155832)
