发现大模型幻觉源于知识压制机制,可预测并缓解。
The Law of Knowledge Overshadowing: Towards Understanding, Predicting, and Preventing LLM Hallucination
- 提出知识压制概念,解释为何主流知识会掩盖次要知识
- 发现幻觉率随知识流行度、长度和模型规模对数线性增长
- 设计新解码策略CoDa,显著降低多个数据集的幻觉率
幻觉是大型语言模型持续存在的挑战,即使在高质量训练数据下,模型仍常生成错误事实。这一悖论要求深入理解底层机制。本文提出‘知识压制’概念:模型主导知识会遮蔽次要知识,导致生成错误细节。基于此,我们构建量化框架,提出对数线性定律,表明幻觉率随(1)知识流行度、(2)知识长度、(3)模型规模的对数值呈线性增长。该定律可在训练或推理前预判幻觉发生概率。进一步提出新解码策略CoDa,有效降低幻觉,在Overshadow(27.9%)、MemoTrap(13.1%)和NQ-Swap(18.3%)上提升事实准确性。研究深化了对幻觉机制的理解,为构建更可控的语言模型提供可操作洞见。
原文摘要 · Abstract (English)
Hallucination is a persistent challenge in large language models (LLMs), where even with rigorous quality control, models often generate distorted facts. This paradox, in which error generation continues despite high-quality training data, calls for a deeper understanding of the underlying LLM mechanisms. To address it, we propose a novel concept: knowledge overshadowing, where model's dominant knowledge can obscure less prominent knowledge during text generation, causing the model to fabricate inaccurate details. Building on this idea, we introduce a novel framework to quantify factual hallucinations by modeling knowledge overshadowing. Central to our approach is the log-linear law, which predicts that the rate of factual hallucination increases linearly with the logarithmic scale of (1) Knowledge Popularity, (2) Knowledge Length, and (3) Model Size. The law provides a means to preemptively quantify hallucinations, offering foresight into their occurrence even before model training or inference. Built on overshadowing effect, we propose a new decoding strategy CoDa, to mitigate hallucinations, which notably enhance model factuality on Overshadow (27.9%), MemoTrap (13.1%) and NQ-Swap (18.3%). Our findings not only deepen understandings of the underlying mechanisms behind hallucinations but also provide actionable insights for developing more predictable and controllable language models.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。