Improving Diversity in Language Models: When Temperature Fails, Change the Loss
Not on the map. Why?
Abstract (arXiv)
Increasing diversity in language models is a challenging yet essential objective. A common approach is to raise the decoding temperature. In this work, we investigate this approach through a simplistic yet common case to provide insights into why decreasing temperature can improve quality (Precision), while increasing it often fails to boost coverage (Recall). Our analysis reveals that for a model to be effectively tunable through temperature adjustments, it must be trained toward coverage. To address this, we propose rethinking loss functions in language models by leveraging the Precision-Recall framework. Our results demonstrate that this approach achieves a substantially better trade-off between Precision and Recall than merely combining negative log-likelihood training with temperature scaling. These findings offer a pathway toward more versatile and robust language modeling techniques.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 26 of its 38 references that are in the map. First posted on arXiv 13 Aug 2025.
Builds on
26 of 38 references.
References · 26
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2019The Curious Case of Neural Text Degenerationcited by 2,916
- 2018Large Scale GAN Training for High Fidelity Natural Image Synthesiscited by 2,626
- 2023Consistency Modelscited by 1,822
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2018Hierarchical Neural Story Generationcited by 1,193
- 2019Improved Precision and Recall Metric for Assessing Generative Modelscited by 944
- 2018Texygen: A Benchmarking Platform for Text Generation Modelscited by 491
- 2021MAUVE: Measuring the Gap Between Neural Text and Human Text using Divergence Frontierscited by 470
- 2018Assessing Generative Models via Precision and Recallcited by 406
- 2023Understanding the Effects of RLHF on LLM Generalisation and Diversitycited by 396
- 2022The Vendi Score: A Diversity Evaluation Metric for Machine Learningcited by 311
14 more
- 2015A note on the evaluation of generative modelscited by 292
- 2023Beyond Reverse KL: Generalizing Direct Preference Optimization with Diverse Divergence Constraintscited by 174
- 2024RLEF: Grounding Code LLMs in Execution Feedback with Reinforcement Learningcited by 151
- 2023Aligning Language Models with Preferences through f-divergence Minimizationcited by 120
- 2024Is Temperature the Creativity Parameter of Large Language Models?cited by 93
- 2020Improved Natural Language Generation via Loss Truncationcited by 75
- 2017Generating High-Quality and Informative Conversation Responses with Sequence-to-Sequence Modelscited by 42
- 2024Exploring Precision and Recall to assess the quality and diversity of LLMscited by 29
- 2024What Makes Large Language Models Reason in (Multi-Turn) Code Generation?cited by 29
- 2023Tailoring Language Generation Models under Total Variation Distancecited by 27
- 2024Inverse-RLignment: Large Language Model Alignment from Demonstrations through Inverse Reinforcement Learningcited by 27
- 2024Arrows of Time for Large Language Modelscited by 20
- 2023Precision-Recall Divergence Optimization for Generative Modeling with GANs and Normalizing Flowscited by 9
- 2023Optimal Budgeted Rejection Sampling for Generative Modelscited by 5
Built on by
Citing papers per year: 2025: 3; 2026: 4.
7 papers.
- 2026Where does output diversity collapse in post-training?cited by 11
- 2025Exploring Multi-Temperature Strategies for Token- and Rollout-Level Control in RLVRcited by 8
- 2025Training Large Language Models To Reason In Parallel With Global Forking Tokenscited by 6
- 2026Diversity in Large Language Models under Supervised Fine-Tuningcited by 4
- 2026Equalized Generative Treatment: Matching f-divergences for Fairness in Generative Modelscited by 1
- 2026Quality-constrained Entropy Maximization Policy Optimization for LLM Diversitycited by 1
- 2025Entropy-Constrained Strategy Optimization in Urban Floods: A Multi-Agent Framework with LLM and Knowledge Graph Integrationcited by 0
- 2026Diversity in Large Language Models under Supervised Fine-Tuning30 Apr 2026
- 2026Where does output diversity collapse in post-training?17 Apr 2026
- 2026Quality-constrained Entropy Maximization Policy Optimization for LLM Diversity11 Feb 2026
- 2026Equalized Generative Treatment: Matching f-divergences for Fairness in Generative Models9 Feb 2026
- 2025Exploring Multi-Temperature Strategies for Token- and Rollout-Level Control in RLVR10 Oct 2025
- 2025Training Large Language Models To Reason In Parallel With Global Forking Tokens1 Oct 2025
- 2025Entropy-Constrained Strategy Optimization in Urban Floods: A Multi-Agent Framework with LLM and Knowledge Graph Integration20 Aug 2025