Contextual Temperature for Language Modeling
Not on the map. Why?
Abstract (arXiv)
Temperature scaling has been widely used as an effective approach to control the smoothness of a distribution, which helps the model performance in various tasks. Current practices to apply temperature scaling assume either a fixed, or a manually-crafted dynamically changing schedule. However, our studies indicate that the individual optimal trajectory for each class can change with the context. To this end, we propose contextual temperature, a generalized approach that learns an optimal temperature trajectory for each vocabulary over the context. Experimental results confirm that the proposed method significantly improves state-of-the-art language models, achieving a perplexity of 55.31 and 62.89 on the test set of Penn Treebank and WikiText-2, respectively. In-depth analyses show that the behaviour of the learned temperature schedules varies dramatically by vocabulary, and that the optimal schedules help in controlling the uncertainties. These evidences further justify the need for the proposed method and its advantages over fixed temperature schedules.
Key facts. Cited by 25 papers in the map (data through 7 Oct 2026). First posted on arXiv 25 Dec 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 2; 2022: 1; 2023: 0; 2024: 10; 2025: 5; 2026: 7.
25 papers.
Sort:
By area:
- 2024The Effect of Sampling Temperature on Problem Solving in Large Language Modelscited by 168
- 2024Non-Determinism of "Deterministic" LLM Settingscited by 84
- 2025Reasoning with Sampling: Your Base Model is Smarter Than You Thinkcited by 84
- 2024Large Language Models have Intrinsic Self-Correction Abilitycited by 45
- 2026Scalable Power Sampling: Unlocking Efficient, Training-Free Reasoning for LLMs via Distribution Sharpeningcited by 27
- 2024Adaptive Preference Scaling for Reinforcement Learning with Human Feedbackcited by 20
- 2021Straight to the Gradient: Learning to Use Novel Tokens for Neural Text Generationcited by 19
- 2024Cognitive Overload Attack:Prompt Injection for Long Contextcited by 13
- 2025Certified Self-Consistency: Statistical Guarantees and Test-Time Training for Reliable Reasoning in LLMscited by 12
- 2024To Cool or not to Cool? Temperature Network Meets Large Foundation Models via DROcited by 11
- 2025TreeSynth: Synthesizing Diverse Data from Scratch via Tree-Guided Subspace Partitioningcited by 6
- 2024Improving Local Training in Federated Learning via Temperature Scalingcited by 5
13 more
- 2024Can Large Language Models Invent Algorithms to Improve Themselves?: Algorithm Discovery for Recursive Self-Improvement through Reinforcement Learningcited by 4
- 2026Sampling for Quality: Training-Free Reward-Guided LLM Decoding via Sequential Monte Carlocited by 4
- 2021Learning Natural Language Generation from Scratchcited by 2
- 2024From Text to Pose to Image: Improving Diffusion Model Control and Qualitycited by 1
- 2025A statistically consistent measure of semantic uncertainty using Language Modelscited by 1
- 2026MM-TS: Multi-Modal Temperature and Margin Schedules for Contrastive Learning with Long-Tail Datacited by 1
- 2022Fine-tune your Classifier: Finding Correlations With Temperaturecited by 0
- 2024Synthesize, Partition, then Adapt: Eliciting Diverse Samples from Foundation Modelscited by 0
- 2025Temperature in SLMs: Impact on Incident Categorization in On-Premises Environmentscited by 0
- 2026Fusing Memory and Attention: A study on LSTM, Transformer and Hybrid Architectures for Symbolic Music Generationcited by 0
- 2026Thinking effort aligns between humans and reasoning models in abductive reasoningcited by 0
- 2026TeMo: Temperature Modulation for Multimodal Contrastive Learningcited by 0
- 2026Sampling via Decision-Flow: Training-Free Extraction of Improved Latent Reasoning Paths in Large Language Modelscited by 0
- 2026Sampling via Decision-Flow: Training-Free Extraction of Improved Latent Reasoning Paths in Large Language Models11 Sep 2026
- 2026TeMo: Temperature Modulation for Multimodal Contrastive Learning7 Sep 2026
- 2026Thinking effort aligns between humans and reasoning models in abductive reasoning1 Sep 2026
- 2026Sampling for Quality: Training-Free Reward-Guided LLM Decoding via Sequential Monte Carlo7 Apr 2026
- 2026Fusing Memory and Attention: A study on LSTM, Transformer and Hybrid Architectures for Symbolic Music Generation22 Mar 2026
- 2026MM-TS: Multi-Modal Temperature and Margin Schedules for Contrastive Learning with Long-Tail Data9 Mar 2026
- 2026Scalable Power Sampling: Unlocking Efficient, Training-Free Reasoning for LLMs via Distribution Sharpening29 Jan 2026
- 2025Temperature in SLMs: Impact on Incident Categorization in On-Premises Environments21 Nov 2025
- 2025Certified Self-Consistency: Statistical Guarantees and Test-Time Training for Reliable Reasoning in LLMs20 Oct 2025
- 2025Reasoning with Sampling: Your Base Model is Smarter Than You Think16 Oct 2025
- 2025TreeSynth: Synthesizing Diverse Data from Scratch via Tree-Guided Subspace Partitioning21 Mar 2025
- 2025A statistically consistent measure of semantic uncertainty using Language Models1 Feb 2025
13 more
- 2024From Text to Pose to Image: Improving Diffusion Model Control and Quality19 Nov 2024
- 2024Synthesize, Partition, then Adapt: Eliciting Diverse Samples from Foundation Models11 Nov 2024
- 2024Can Large Language Models Invent Algorithms to Improve Themselves?: Algorithm Discovery for Recursive Self-Improvement through Reinforcement Learning21 Oct 2024
- 2024Cognitive Overload Attack:Prompt Injection for Long Context15 Oct 2024
- 2024Non-Determinism of "Deterministic" LLM Settings6 Aug 2024
- 2024Large Language Models have Intrinsic Self-Correction Ability21 Jun 2024
- 2024Adaptive Preference Scaling for Reinforcement Learning with Human Feedback4 Jun 2024
- 2024To Cool or not to Cool? Temperature Network Meets Large Foundation Models via DRO6 Apr 2024
- 2024The Effect of Sampling Temperature on Problem Solving in Large Language Models7 Feb 2024
- 2024Improving Local Training in Federated Learning via Temperature Scaling18 Jan 2024
- 2022Fine-tune your Classifier: Finding Correlations With Temperature18 Oct 2022
- 2021Learning Natural Language Generation from Scratch20 Sep 2021
- 2021Straight to the Gradient: Learning to Use Novel Tokens for Neural Text Generation14 Jun 2021
- 2025Reasoning with Sampling: Your Base Model is Smarter Than You Thinkcited by 84
- 2024Large Language Models have Intrinsic Self-Correction Abilitycited by 45
- 2026Scalable Power Sampling: Unlocking Efficient, Training-Free Reasoning for LLMs via Distribution Sharpeningcited by 27
- 2025Certified Self-Consistency: Statistical Guarantees and Test-Time Training for Reliable Reasoning in LLMscited by 12
- 2026Thinking effort aligns between humans and reasoning models in abductive reasoningcited by 0
- 2026Sampling via Decision-Flow: Training-Free Extraction of Improved Latent Reasoning Paths in Large Language Modelscited by 0
- 2026Sampling via Decision-Flow: Training-Free Extraction of Improved Latent Reasoning Paths in Large Language Models11 Sep 2026
- 2026Thinking effort aligns between humans and reasoning models in abductive reasoning1 Sep 2026
- 2026Scalable Power Sampling: Unlocking Efficient, Training-Free Reasoning for LLMs via Distribution Sharpening29 Jan 2026
- 2025Certified Self-Consistency: Statistical Guarantees and Test-Time Training for Reliable Reasoning in LLMs20 Oct 2025
- 2025Reasoning with Sampling: Your Base Model is Smarter Than You Think16 Oct 2025
- 2024Large Language Models have Intrinsic Self-Correction Ability21 Jun 2024
- 2024Cognitive Overload Attack:Prompt Injection for Long Contextcited by 13
- 2024Cognitive Overload Attack:Prompt Injection for Long Context15 Oct 2024
- 2024The Effect of Sampling Temperature on Problem Solving in Large Language Modelscited by 168
- 2024Non-Determinism of "Deterministic" LLM Settingscited by 84
- 2021Straight to the Gradient: Learning to Use Novel Tokens for Neural Text Generationcited by 19
- 2024To Cool or not to Cool? Temperature Network Meets Large Foundation Models via DROcited by 11
- 2025TreeSynth: Synthesizing Diverse Data from Scratch via Tree-Guided Subspace Partitioningcited by 6
- 2024Improving Local Training in Federated Learning via Temperature Scalingcited by 5
- 2026Sampling for Quality: Training-Free Reward-Guided LLM Decoding via Sequential Monte Carlocited by 4
- 2021Learning Natural Language Generation from Scratchcited by 2
- 2025A statistically consistent measure of semantic uncertainty using Language Modelscited by 1
- 2026MM-TS: Multi-Modal Temperature and Margin Schedules for Contrastive Learning with Long-Tail Datacited by 1
- 2022Fine-tune your Classifier: Finding Correlations With Temperaturecited by 0
- 2024Synthesize, Partition, then Adapt: Eliciting Diverse Samples from Foundation Modelscited by 0
12 most cited of 15 All 15 (JSON)
- 2026TeMo: Temperature Modulation for Multimodal Contrastive Learning7 Sep 2026
- 2026Sampling for Quality: Training-Free Reward-Guided LLM Decoding via Sequential Monte Carlo7 Apr 2026
- 2026Fusing Memory and Attention: A study on LSTM, Transformer and Hybrid Architectures for Symbolic Music Generation22 Mar 2026
- 2026MM-TS: Multi-Modal Temperature and Margin Schedules for Contrastive Learning with Long-Tail Data9 Mar 2026
- 2025Temperature in SLMs: Impact on Incident Categorization in On-Premises Environments21 Nov 2025
- 2025TreeSynth: Synthesizing Diverse Data from Scratch via Tree-Guided Subspace Partitioning21 Mar 2025
- 2025A statistically consistent measure of semantic uncertainty using Language Models1 Feb 2025
- 2024Synthesize, Partition, then Adapt: Eliciting Diverse Samples from Foundation Models11 Nov 2024
- 2024Non-Determinism of "Deterministic" LLM Settings6 Aug 2024
- 2024To Cool or not to Cool? Temperature Network Meets Large Foundation Models via DRO6 Apr 2024
- 2024The Effect of Sampling Temperature on Problem Solving in Large Language Models7 Feb 2024
- 2024Improving Local Training in Federated Learning via Temperature Scaling18 Jan 2024
12 newest of 15 All 15 (JSON)