提出‘足够上下文’新视角,揭示大模型在缺乏信息时易胡说而非放弃。
Sufficient Context: A New Lens on Retrieval Augmented Generation Systems
- 定义‘足够上下文’并设计分类方法判断信息是否充足
- 大模型有足够信息时答对率高,但缺信息时常胡说而非拒绝回答
- 提出选择性生成策略,让模型基于信息充分性主动回避错误
将大语言模型(LLM)与上下文结合可提升多项任务表现。尽管检索增强生成(RAG)系统研究众多,仍存在一个未解问题:错误是因模型未能使用检索到的上下文,还是上下文本身不足?为此,我们提出‘足够上下文’的新概念,并开发一种方法对实例进行分类,判断其是否具备回答问题的信息。通过该标准分析多个模型与数据集发现,性能更高的大模型(Gemini 1.5 Pro、GPT 4o、Claude 3.5)在上下文充足时表现优异,但上下文不足时往往输出错误答案而非放弃;而小模型(Mistral 3、Gemma 2)即使信息充足也常幻觉或拒绝回答。我们进一步识别出虽不完全回答问题但仍能提升准确率的有用上下文场景。基于这些发现,我们提出一种新的选择性生成方法,利用足够上下文信息引导模型主动拒答,使 Gemini、GPT 与 Gemma 在回应时正确率提升 2–10%。关键结论与自动评估提示已开源。
原文摘要 · Abstract (English)
Augmenting LLMs with context leads to improved performance across many applications. Despite much research on Retrieval Augmented Generation (RAG) systems, an open question is whether errors arise because LLMs fail to utilize the context from retrieval or the context itself is insufficient to answer the query. To shed light on this, we develop a new notion of sufficient context, along with a method to classify instances that have enough information to answer the query. We then use sufficient context to analyze several models and datasets. By stratifying errors based on context sufficiency, we find that larger models with higher baseline performance (Gemini 1.5 Pro, GPT 4o, Claude 3.5) excel at answering queries when the context is sufficient, but often output incorrect answers instead of abstaining when the context is not. On the other hand, smaller models with lower baseline performance (Mistral 3, Gemma 2) hallucinate or abstain often, even with sufficient context. We further categorize cases when the context is useful, and improves accuracy, even though it does not fully answer the query and the model errs without the context. Building on our findings, we explore ways to reduce hallucinations in RAG systems, including a new selective generation method that leverages sufficient context information for guided abstention. Our method improves the fraction of correct answers among times where the model responds by 2--10\% for Gemini, GPT, and Gemma. Key findings and the prompts used in our autorater analysis are available on our github.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。