atlas

Research map / Large language models / Language, safety and interpretability

Improving Diversity in Language Models: When Temperature Fails, Change the Loss

ICML 2025 · Large language models › Language, safety and interpretability · approach: LLM pruning and scaling data · 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.

The paper analyzes why raising sampling temperature fails to improve recall in LMs, and proposes recall-oriented training losses (TruncR, c-Div, λ-PR) that give a better precision-recall trade-off under temperature scaling.

Problem

Raising decoding temperature is a common way to increase language model diversity, but it often fails to increase recall (coverage of the reference distribution) and can reduce precision, so the precision-recall trade-off cannot be tuned well by temperature alone.

Approach

Theoretical analysis (sparsity bound and an artificial sparse-target case) shows temperature scaling degrades recall at high temperature, so models must be trained for recall; the paper reframes existing losses (Trunc, GOLD, TaiLr) as precision-oriented and proposes recall-oriented variants (TruncR, conditional Tsallis c-Div, and the lambda-PR loss) that reweight NLL.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Train with c-Div instead of NLLOlmo-1B · WritingPromptsR: 8.9 -> 11.9Helped
Train with λ-PR (γ=10⁻⁵) instead of NLLOlmo-1B · WritingPromptsR: 8.9 -> 12.6Helped
Train with Trunc-R instead of NLLOlmo-1B · WritingPromptsP: 81.4 -> 85.5Helped
Train with c-Div instead of NLLLlama-Alpaca · WritingPromptsR: 4.4 -> 12.6Helped
Train with λ-PR (γ=10⁻⁷) instead of NLLLlama-Alpaca · WritingPromptsR: 4.4 -> 26.9Helped
Train with c-Div instead of NLLLlama3.2-3B · WritingPromptsR: 8.1 -> 17.5Helped
Train with λ-PR (γ=10⁻⁵) instead of NLLLlama3.2-3B · WritingPromptsR: 8.1 -> 19.0Helped
Train with c-Div instead of NLLOlmo-1B · MathQA-PythonR: 36.6 -> 46.1Helped
Train with λ-PR (γ=10⁻⁷) instead of NLLOlmo-1B · MathQA-PythonR: 36.6 -> 48.1Helped
Train with c-Div instead of NLLLlama-Alpaca · MathQA-PythonR: 39.0 -> 43.4Helped
Train with c-Div instead of NLLLlama-Alpaca · MathQA-PythonP: 8.8 -> 8.2Hurt
Decrease decoding temperature below 1Language models across evaluated tasks · Various tasksPrecisionHelped

Surprising findings

Limitations

Experimental setup

Datasets: CodeContests WritingPrompts MathQA-Python Alpaca synthetic integer multiplication data

Benchmarks: CodeContests MathQA-Python WritingPrompts integer multiplication

Metrics: precision recall pass@1 pass@100

Baselines: NLL Trunc GOLD TaiLr c-Div

Builds on: Precision-Recall for generative models (Sajjadi et al.) PR-Curve lambda extension (Simon et al.) TaiLr GOLD Trunc

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