REAL Sampling: Boosting Factuality and Diversity of Open-Ended Generation via Asymptotic Entropy
Not on the map. Why?
Abstract (arXiv)
Decoding methods for large language models (LLMs) usually struggle with the tradeoff between ensuring factuality and maintaining diversity. For example, a higher p threshold in the nucleus (top-p) sampling increases the diversity but decreases the factuality, and vice versa. In this paper, we propose REAL (Residual Entropy from Asymptotic Line) sampling, a decoding method that achieves improved factuality and diversity over nucleus sampling by predicting an adaptive threshold of p. Specifically, REAL sampling predicts the step-wise likelihood of an LLM to hallucinate, and lowers the p threshold when an LLM is likely to hallucinate. Otherwise, REAL sampling increases the p threshold to boost the diversity. To predict the step-wise hallucination likelihood without supervision, we construct a Token-level Hallucination Forecasting (THF) model to predict the asymptotic entropy (i.e., inherent uncertainty) of the next token by extrapolating the next-token entropies from a series of LLMs with different sizes. If a LLM's entropy is higher than the asymptotic entropy (i.e., the LLM is more uncertain than it should be), the THF model predicts a high hallucination hazard, which leads to a lower p threshold in REAL sampling. In the FactualityPrompts benchmark, we demonstrate that REAL sampling based on a 70M THF model can substantially improve the factuality and diversity of 7B LLMs simultaneously, judged by both retrieval-based metrics and human evaluation. After combined with contrastive decoding, REAL sampling outperforms 9 sampling methods, and generates texts that are more factual than the greedy sampling and more diverse than the nucleus sampling with p=0.5. Furthermore, the predicted asymptotic entropy is also a useful unsupervised signal for hallucination detection tasks.
Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Builds on 47 of its 63 references that are in the map. First posted on arXiv 11 Jun 2024.
Builds on
47 of 63 references.
References · 47
- 2023GPT-4 Technical Reportcited by 18,396
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
- 2019The Curious Case of Neural Text Degenerationcited by 2,916
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
- 2023A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questionscited by 1,601
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2018FEVER: a large-scale dataset for Fact Extraction and VERificationcited by 1,375
- 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,302
- 2018Hierarchical Neural Story Generationcited by 1,193
35 more
- 2015A Diversity-Promoting Objective Function for Neural Conversation Modelscited by 1,077
- 2023SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Modelscited by 810
- 2022Discovering Latent Knowledge in Language Models Without Supervisioncited by 767
- 2023The Internal State of an LLM Knows When It's Lyingcited by 659
- 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 609
- 2023DoLa: Decoding by Contrasting Layers Improves Factuality in Large Language Modelscited by 376
- 2023Trusting Your Evidence: Hallucinate Less with Context-aware Decodingcited by 327
- 2023How Language Model Hallucinations Can Snowballcited by 311
- 2024A Comprehensive Survey of Hallucination Mitigation Techniques in Large Language Modelscited by 269
- 2023A Stitch in Time Saves Nine: Detecting and Mitigating Hallucinations of LLMs by Validating Low-Confidence Generationcited by 206
- 2022Factuality Enhanced Language Models for Open-Ended Text Generationcited by 202
- 2020Detecting Hallucinated Content in Conditional Neural Sequence Generationcited by 152
- 2017Controlling Linguistic Style Aspects in Neural Language Generationcited by 149
- 2023Emergent and Predictable Memorization in Large Language Modelscited by 148
- 2021A Token-level Reference-free Hallucination Detection Benchmark for Free-form Text Generationcited by 138
- 2023The Troubling Emergence of Hallucination in Large Language Models -- An Extensive Definition, Quantification, and Prescriptive Remediationscited by 131
- 2022Truncation Sampling as Language Model Desmoothingcited by 123
- 2023Do Language Models Know When They're Hallucinating References?cited by 116
- 2021Neural Path Hunter: Reducing Hallucination in Dialogue Systems via Path Groundingcited by 106
- 2023Generating Benchmarks for Factuality Evaluation of Language Modelscited by 105
- 2022Mutual Information Alleviates Hallucinations in Abstractive Summarizationcited by 68
- 2023Do Androids Know They're Only Dreaming of Electric Sheep?cited by 67
- 2018UKP-Athene: Multi-Sentence Textual Entailment for Claim Verificationcited by 60
- 2022Contrastive Search Is What You Need For Neural Text Generationcited by 59
- 2023The Curious Case of Hallucinatory (Un)answerability: Finding Truths in the Hidden States of Over-Confident Large Language Modelscited by 55
- 2023Why Does ChatGPT Fall Short in Providing Truthful Answers?cited by 54
- 2023It's MBR All the Way Down: Modern Generation Techniques Through the Lens of Minimum Bayes Riskcited by 51
- 2023Language Models Hallucinate, but May Excel at Fact Verificationcited by 37
- 2023Faithfulness-Aware Decoding Strategies for Abstractive Summarizationcited by 31
- 2023A Closer Look into Automatic Evaluation Using Large Language Modelscited by 17
- 2023MixCE: Training Autoregressive Language Models by Mixing Forward and Reverse Cross-Entropiescited by 16
- 2023Characterizing Attribution and Fluency Tradeoffs for Retrieval-Augmented Large Language Modelscited by 13
- 2023KL-Divergence Guided Temperature Samplingcited by 9
- 2023Fidelity-Enriched Contrastive Search: Reconciling the Faithfulness-Diversity Trade-Off in Text Generationcited by 8
- 2024Entropy Guided Extrapolative Decoding to Improve Factuality in Large Language Modelscited by 4
Built on by
Citing papers per year: 2024: 3; 2025: 5; 2026: 3.
11 papers.
- 2024A Survey on Uncertainty Quantification of Large Language Models: Taxonomy, Open Research Challenges, and Future Directionscited by 121
- 2025Sparse Logit Sampling: Accelerating Knowledge Distillation in LLMscited by 16
- 2024Explaining and Improving Contrastive Decoding by Extrapolating the Probabilities of a Huge and Hypothetical LMcited by 11
- 2026Min-k Sampling: Decoupling Truncation from Temperature Scaling via Relative Logit Dynamicscited by 9
- 2024Generating Diverse Hypotheses for Inductive Reasoningcited by 6
- 2025A Survey on Proactive Defense Strategies Against Misinformation in Large Language Modelscited by 6
- 2025Sample Smart, Not Hard: Correctness-First Decoding for Better Reasoning in LLMscited by 5
- 2025On the Convergence of Moral Self-Correction in Large Language Modelscited by 1
- 2026Beyond Temperature: Hyperfitting as a Late-Stage Geometric Expansioncited by 1
- 2026Breaking the Likelihood Trap: Variance-Calibrated Modulation for Large Language Model Decodingcited by 1
- 2025VOYAGER: A Training Free Approach for Generating Diverse Datasets using LLMscited by 0
- 2026Breaking the Likelihood Trap: Variance-Calibrated Modulation for Large Language Model Decoding21 Jun 2026
- 2026Beyond Temperature: Hyperfitting as a Late-Stage Geometric Expansion21 May 2026
- 2026Min-k Sampling: Decoupling Truncation from Temperature Scaling via Relative Logit Dynamics13 Apr 2026
- 2025VOYAGER: A Training Free Approach for Generating Diverse Datasets using LLMs12 Dec 2025
- 2025On the Convergence of Moral Self-Correction in Large Language Models8 Oct 2025
- 2025Sample Smart, Not Hard: Correctness-First Decoding for Better Reasoning in LLMs7 Oct 2025
- 2025A Survey on Proactive Defense Strategies Against Misinformation in Large Language Models5 Jul 2025
- 2025Sparse Logit Sampling: Accelerating Knowledge Distillation in LLMs21 Mar 2025
- 2024Generating Diverse Hypotheses for Inductive Reasoning18 Dec 2024
- 2024A Survey on Uncertainty Quantification of Large Language Models: Taxonomy, Open Research Challenges, and Future Directions7 Dec 2024
- 2024Explaining and Improving Contrastive Decoding by Extrapolating the Probabilities of a Huge and Hypothetical LM3 Nov 2024