KL-Divergence Guided Temperature Sampling
Not on the map. Why?
Abstract (arXiv)
Temperature sampling is a conventional approach to diversify large language model predictions. As temperature increases, the prediction becomes diverse but also vulnerable to hallucinations -- generating tokens that are sensible but not factual. One common approach to mitigate hallucinations is to provide source/grounding documents and the model is trained to produce predictions that bind to and are attributable to the provided source. It appears that there is a trade-off between diversity and attribution. To mitigate any such trade-off, we propose to relax the constraint of having a fixed temperature over decoding steps, and a mechanism to guide the dynamic temperature according to its relevance to the source through KL-divergence. Our experiments justifies the trade-off, and shows that our sampling algorithm outperforms the conventional top-k and top-p algorithms in conversational question-answering and summarization tasks.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 12 of its 18 references that are in the map. First posted on arXiv 2 Jun 2023.
Builds on
12 of 18 references.
References · 12
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2020mT5: A massively multilingual pre-trained text-to-text transformercited by 1,813
- 2022Scaling Autoregressive Models for Content-Rich Text-to-Image Generationcited by 1,287
- 2021Improving language models by retrieving from trillions of tokenscited by 1,278
- 2022LaMDA: Language Models for Dialog Applicationscited by 1,218
- 2021XL-Sum: Large-Scale Multilingual Abstractive Summarization for 44 Languagescited by 346
- 2021Measuring Attribution in Natural Language Generation Modelscited by 253
- 2020Open-Domain Question Answering Goes Conversational via Question Rewritingcited by 147
- 2022mFACE: Multilingual Summarization with Factual Consistency Evaluationcited by 42
- 2023Characterizing Attribution and Fluency Tradeoffs for Retrieval-Augmented Large Language Modelscited by 13
Built on by
Citing papers per year: 2023: 1; 2024: 4; 2025: 1; 2026: 3.
9 papers.
- 2023KCTS: Knowledge-Constrained Tree Search Decoding with Token-Level Hallucination Detectioncited by 43
- 2025Exploring the Impact of Temperature on Large Language Models:Hot or Cold?cited by 40
- 2024REAL Sampling: Boosting Factuality and Diversity of Open-Ended Generation via Asymptotic Entropycited by 11
- 2026Time-Annealed Perturbation Sampling: Diverse Generation for Diffusion Language Modelscited by 3
- 2024Leveraging Distillation Techniques for Document Understanding: A Case Study with FLAN-T5cited by 2
- 2024T2 of Thoughts: Temperature Tree Elicits Reasoning in Large Language Modelscited by 1
- 2024Synthesize, Partition, then Adapt: Eliciting Diverse Samples from Foundation Modelscited by 0
- 2026Probabilistic Guarantees for Reducing Contextual Hallucinations in LLMscited by 0
- 2026Hallucinations in LLMs: A Lifecycle-Based Survey of Causes, Detection, Mitigation, and Preventioncited by 0
- 2026Hallucinations in LLMs: A Lifecycle-Based Survey of Causes, Detection, Mitigation, and Prevention20 Jul 2026
- 2026Time-Annealed Perturbation Sampling: Diverse Generation for Diffusion Language Models30 Jan 2026
- 2026Probabilistic Guarantees for Reducing Contextual Hallucinations in LLMs2 Jan 2026
- 2025Exploring the Impact of Temperature on Large Language Models:Hot or Cold?8 Jun 2025
- 2024Synthesize, Partition, then Adapt: Eliciting Diverse Samples from Foundation Models11 Nov 2024
- 2024Leveraging Distillation Techniques for Document Understanding: A Case Study with FLAN-T517 Sep 2024
- 2024REAL Sampling: Boosting Factuality and Diversity of Open-Ended Generation via Asymptotic Entropy11 Jun 2024
- 2024T2 of Thoughts: Temperature Tree Elicits Reasoning in Large Language Models23 May 2024
- 2023KCTS: Knowledge-Constrained Tree Search Decoding with Token-Level Hallucination Detection13 Oct 2023