atlas

Research map / Large language models / Reasoning and chain of thought

Optimizing Temperature for Language Models with Multi-Sample Inference

ICML 2025 · Large language models › Reasoning and chain of thought · approach: Routing, pruning and distillation for reasoning · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes TURN, an entropy-based method that predicts the near-optimal sampling temperature for multi-sample aggregation (majority voting, best-of-N) without labeled validation data, by locating an entropy turning point.

Problem

Choosing the sampling temperature for multi-sample aggregation (majority voting, best-of-N) in LLMs usually requires labeled validation data or uses a fixed default temperature, which is suboptimal across models, tasks, and aggregation methods.

Approach

Token-level entropy of model generations versus temperature shows a sharp spike; the entropy turning point (where log-entropy changes from concave to convex) marks where sample quality collapses, and setting temperature there (plus an aggregation-specific offset) gives near-optimal accuracy without labels. A stochastic process model is used to explain the spike.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use TURN instead of the strongest fixed temperature baselineMulti-sample temperature selection · MATH, majority votingAvg. Drop: 0.8% -> 0.3%Helped
Use TURN instead of the strongest fixed temperature baselineMulti-sample temperature selection · MBPP, best-of-NAvg. Drop: 0.9% -> 0.5%Helped
Add aggregation adaptation factor β (ablation)TURN · MBPP, best-of-NAvg. Drop: 1.1% -> 0.5%Helped
Add aggregation adaptation factor β (ablation)TURN · MATH, majority votingAvg. Drop: 0.3% -> 0.3%No clear effect
Increase temperature-estimation sample size from 10 to 40 (ablation)TURN on Llama-3.1-8B-Instruct · MATHPerformance Drop: 0.9% -> 0.2%Helped
Increase temperature-estimation sample size from 40 to 100 (ablation)TURN on Llama-3.1-8B-Instruct · MATHPerformance Drop: 0.2% -> 0.1%Helped
Increase temperature-estimation sample size from 100 to 800 (ablation)TURN on Llama-3.1-8B-Instruct · MATHPerformance Drop: 0.1% -> 0.0%Helped

Surprising findings

Limitations

Experimental setup

Datasets: MATH MBPP

Benchmarks: MATH MBPP

Metrics: accuracy (majority voting) pass@K hit rate temperature gap performance drop

Baselines: fixed temperature (0.1, 0.3, 0.5, 0.7, 0.9, 1.1)

Builds on: self-consistency best-of-N sampling Easy-to-Hard generalization vLLM

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy