arXiv:2412.14905cs.CLcs.AI2024-12

提出DePaC方法,解决RAG中并行上下文导致的幻觉问题。

Dehallucinating Parallel Context Extension for Retrieval-Augmented Generation

  • 通过上下文感知负样本训练,防止模型胡编事实。
  • 采用信息校准聚合,提升相关上下文权重,减少遗漏。
  • 在9个任务上验证,有效降低幻觉且性能更优。

大型语言模型(LLMs)尽管结合了检索增强生成(RAG),仍易产生幻觉。并行上下文扩展(PCE)旨在有效整合无序上下文,但在适配RAG场景时仍存在幻觉问题。本文提出DePaC(去幻觉并行上下文扩展),通过上下文感知负样本训练与信息校准聚合,缓解两类上下文幻觉:事实虚构(模型输出未被上下文支持的内容)和事实遗漏(未能呈现可由上下文支持的信息)。具体而言:针对事实虚构,采用负样本监督微调,引导模型在上下文无关时拒绝回答;针对事实遗漏,提出信息校准聚合,优先选择信息增量更高的上下文窗口。在九个RAG任务上的实验表明,DePaC显著减轻两类幻觉,且在各项任务中均表现更优。

原文摘要 · Abstract (English)

Large language models (LLMs) are susceptible to generating hallucinated information, despite the integration of retrieval-augmented generation (RAG). Parallel context extension (PCE) is a line of research attempting to effectively integrating parallel (unordered) contexts, while it still suffers from hallucinations when adapted to RAG scenarios. In this paper, we propose DePaC (Dehallucinating Parallel Context Extension), which alleviates the hallucination problem with context-aware negative training and information-calibrated aggregation. DePaC is designed to alleviate two types of in-context hallucination: fact fabrication (i.e., LLMs present claims that are not supported by the contexts) and fact omission (i.e., LLMs fail to present claims that can be supported by the contexts). Specifically, (1) for fact fabrication, we apply the context-aware negative training that fine-tunes the LLMs with negative supervisions, thus explicitly guiding the LLMs to refuse to answer when contexts are not related to questions; (2) for fact omission, we propose the information-calibrated aggregation which prioritizes context windows with higher information increment from their contexts. The experimental results on nine RAG tasks demonstrate that DePaC significantly alleviates the two types of hallucination and consistently achieves better performances on these tasks.

大模型RAG幻觉抑制

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。