arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.09916cs.CLcs.AI
收藏

SFR-RAG: 迈向具备上下文忠实性的大语言模型

SFR-RAG: Towards Contextually Faithful LLMs

Salesforce AI Research(Salesforce AI研究院)

Xuan-Phi Nguyen, Shrey Pandit, Senthil Purushwalkam, Austin Xu, Hailin Chen, Yifei Ming, Zixuan Ke, Silvio Savarese, Caiming Xong, Shafiq Joty

AI总结:

该研究提出聚焦上下文忠实生成、减少幻觉的小型指令微调模型SFR-RAG,搭配统一评估框架ContextualBench,以更少参数量在多项RAG基准上取得SOTA,且通用任务表现具竞争力。

摘要:

检索增强生成(Retrieval Augmented Generation, RAG)是一种将外部上下文信息与大语言模型(LLM)相结合以提升事实准确性和相关性的范式,已成为生成式AI领域的核心方向。RAG应用中使用的LLM需要忠实且完整地理解所提供的上下文与用户问题,避免幻觉,处理无法回答、反事实或其他低质量、不相关的上下文,执行复杂的多跳推理并生成可靠的引用。本文提出SFR-RAG,这是一款经过指令微调的小型LLM,重点强化基于上下文的生成能力并最小化幻觉。我们还推出ContextualBench,这是一个全新的评估框架,整合了HotpotQA、TriviaQA等多个热门且多样化的RAG基准,采用统一的RAG设置以确保模型评估的可复现性和一致性。实验结果表明,我们的SFR-RAG-9B模型性能优于Command-R+(104B)、GPT-4o等主流基线模型,在ContextualBench的7项基准中有3项取得了当前最优结果,且参数量显著更少。该模型还表现出对上下文信息变更的鲁棒性,在相关上下文被移除时能做出恰当行为。此外,SFR-RAG模型在通用指令遵循任务和函数调用能力上也保持了具有竞争力的性能。

英文摘要:

Retrieval Augmented Generation (RAG), a paradigm that integrates external contextual information with large language models (LLMs) to enhance factual accuracy and relevance, has emerged as a pivotal area in generative AI. The LLMs used in RAG applications are required to faithfully and completely comprehend the provided context and users' questions, avoid hallucination, handle unanswerable, counterfactual or otherwise low-quality and irrelevant contexts, perform complex multi-hop reasoning and produce reliable citations. In this paper, we introduce SFR-RAG, a small LLM that is instruction-tuned with an emphasis on context-grounded generation and hallucination minimization. We also present ContextualBench, a new evaluation framework compiling multiple popular and diverse RAG benchmarks, such as HotpotQA and TriviaQA, with consistent RAG settings to ensure reproducibility and consistency in model assessments. Experimental results demonstrate that our SFR-RAG-9B model outperforms leading baselines such as Command-R+ (104B) and GPT-4o, achieving state-of-the-art results in 3 out of 7 benchmarks in ContextualBench with significantly fewer parameters. The model is also shown to be resilient to alteration in the contextual information and behave appropriately when relevant context is removed. Additionally, the SFR-RAG model maintains competitive performance in general instruction-following tasks and function-calling capabilities.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑