paper-with-me

홈 › Papers

REAL Sampling: Boosting Factuality and Diversity of Open-Ended Generation via Asymptotic Entropy

2024-06-11 · Haw-Shiuan Chang, Nanyun Peng, Mohit Bansal, Anil Ramakrishna, Tagyoung Chung

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.

📄 PDF Abstract BibTeX arXiv:2406.07735

Code (1)

amazon-science/llm-asymptotic-decoding pytorch

Tasks

DiversityHallucination

Similar Papers 제목 키워드 기반

A Factuality and Diversity Reconciled Decoding Method for Knowledge-Grounded Dialogue Generation

2024-07-08 · Chenxu Yang, Zheng Lin, Chong Tian, Liang Pang 외

Grounding external knowledge can enhance the factuality of responses in dialogue generation. However, excessive emphasis on it might result in the lack of engaging and diverse expressions. Through the introduction of ran…

Dialogue GenerationDiversity

Factuality Enhanced Language Models for Open-Ended Text Generation

2022-06-09 · Nayeon Lee, Wei Ping, Peng Xu, Mostofa Patwary 외

Pretrained language models (LMs) are susceptible to generate text with nonfactual information. In this work, we measure and improve the factual accuracy of large-scale LMs for open-ended text generation. We design the Fa…

MisconceptionsSentenceSentence CompletionText Generation

The Factuality Tax of Diversity-Intervened Text-to-Image Generation: Benchmark and Fact-Augmented Intervention

2024-06-29 · Yixin Wan, Di wu, Haoran Wang, Kai-Wei Chang

Prompt-based "diversity interventions" are commonly adopted to improve the diversity of Text-to-Image (T2I) models depicting individuals with various racial or gender traits. However, will this strategy result in nonfact…

DiversityImage GenerationLanguage ModelingLanguage Modelling+3

PrismRAG: Boosting RAG Factuality with Distractor Resilience and Strategized Reasoning

2025-07-25 · Mohammad Kachuee, Teja Gollapudi, Minseok Kim, Yin Huang 외 arxiv

Retrieval-augmented generation (RAG) often falls short when retrieved context includes confusing semi-relevant passages, or when answering questions require deep contextual understanding and reasoning. We propose an effi…

Collaborative decoding of critical tokens for boosting factuality of large language models

2024-02-28 · Lifeng Jin, Baolin Peng, Linfeng Song, Haitao Mi 외

The most common training pipeline for large language models includes pretraining, finetuning and aligning phases, with their respective resulting models, such as the pretrained model and the finetuned model. Finetuned an…

HallucinationInstruction Following