[论文解读] Don't Forget to Connect! Improving RAG with Graph-based Reranking
G-RAG 引入了一个图神经网络重排序器,通过基于 AMR 的文档图实现跨文档连接来提升 RAG,在计算成本更低的情况下超越基线。PaLM 2 作为重排序器在零样本重排序中不及 G-RAG。
Retrieval Augmented Generation (RAG) has greatly improved the performance of Large Language Model (LLM) responses by grounding generation with context from existing documents. These systems work well when documents are clearly relevant to a question context. But what about when a document has partial information, or less obvious connections to the context? And how should we reason about connections between documents? In this work, we seek to answer these two core questions about RAG generation. We introduce G-RAG, a reranker based on graph neural networks (GNNs) between the retriever and reader in RAG. Our method combines both connections between documents and semantic information (via Abstract Meaning Representation graphs) to provide a context-informed ranker for RAG. G-RAG outperforms state-of-the-art approaches while having smaller computational footprint. Additionally, we assess the performance of PaLM 2 as a reranker and find it to significantly underperform G-RAG. This result emphasizes the importance of reranking for RAG even when using Large Language Models.
研究动机与目标
- 通过利用检索到的文档之间的连接,推动提升 ODQA 中的 RAG 性能。
- 研究使用 AMR 指导的文档图来进行基于图的重排,以编码跨文档关系。
- 相对于知识图或重 AMR-token 方法,降低计算开销。
- 评估 PaLM 2 在零样本设置中的重排器效果。
- 提出能够处理重排场景中排名并列的鲁棒评估指标。
提出的方法
- 在前 100 个检索结果文档上构建一个文档图,其中节点是文档,边表示共享的 AMR 概念。
- 使用预训练编码器对文档进行编码,并用基于 AMR 路径的语义信息增强节点特征。
- 将边特征定义为 AMR 图之间的共同节点数量和共同边的数量,并对其进行归一化以实现稳定性。
- 使用消息传递机制的图神经网络更新节点表示,该机制按边特征对邻居贡献进行加权。
- 将重排分数计算为问题嵌入与最终节点表示的点积;使用成对排序损失进行训练以优化文档排序。
- 使用 MRR、MHits@10 及其并列排名变体(MTRR、TMHits@10)进行评估,以考虑分数并列情况。
实验结果
研究问题
- RQ1基于 AMR 图的文档级连接是否能改进 ODQA 中的 RAG 文档重排?
- RQ2AMR 指导的节点/边特征如何影响重排性能和计算成本?
- RQ3在零样本设置中,基于图的重排器是否优于纯 LM 重排器,且大型语言模型作为重排器的表现如何?
- RQ4在排名分数存在并列时,哪些指标最能反映性能?
- RQ5不同嵌入模型对 G-RAG 性能的影响是什么?
主要发现
- G-RAG-RL(基于图的重排器,采用成对损失)在 Natural Questions 和 TriviaQA 上未微调就实现了相对于基线的强劲 MRR 和 MHits@10 增益。
- 整合 AMR 派生的跨文档连接在非图基线基础上取得高达约 7 个百分比点的性能提升。
- 在嵌入模型中,Ember、GTE 和 BGE 提供强劲增益,其中 Ember (HPs-T) 在超参数调优后表现稳健。
- PaLM 2 作为零样本重排器相对于 G-RAG 变体表现不佳,强调了即使有强大的语言模型,重排器设计的重要性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。