arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.06572cs.CLcs.AIcs.IR
收藏

图神经网络增强的检索用于大语言模型问答

Graph Neural Network Enhanced Retrieval for Question Answering of LLMs

Hong Kong University of Science and Technology(香港科技大学);Microsoft Research(微软研究院);Tsinghua University(清华大学)

Zijian Li, Qingyan Guo, Jiawei Shao, Lei Song, Jiang Bian, Jun Zhang, Rui Wang

AI总结:

本文提出 GNN-Ret 和 RGNN-Ret,利用图神经网络建模段落间关联以增强大语言模型问答检索,在单次查询下超越多次查询基线,并在 2WikiMQA 上准确率提升达 10.4%。

摘要:

检索增强生成通过提供事实支持,已经彻底改变了大语言模型(LLM)的输出。然而,它仍然难以捕捉复杂推理问题所需的全部知识。现有的检索方法通常将参考文档切分成段落,并孤立地处理这些段落。但这些段落之间往往相互关联,例如相邻的段落或共享相同关键词的段落。因此,识别这种关联性对于增强检索过程至关重要。在本文中,我们提出了一种新颖的检索方法,称为 GNN-Ret,它利用图神经网络(GNN)通过挖掘段落之间的关联性来增强检索。具体来说,我们首先通过连接结构相关或关键词相关的段落来构建段落图。然后利用图神经网络(GNN)来挖掘段落之间的关系,并改进支持段落的检索。此外,我们将方法扩展以处理多跳推理问题,使用一种循环图神经网络(RGNN),命名为 RGNN-Ret。在每一步中,RGNN-Ret 整合来自前几步的段落图,从而增强支持段落的检索。在基准数据集上的大量实验表明,GNN-Ret 在使用单次 LLM 查询进行问答时,比需要多次查询的强基线方法取得了更高的准确率,而 RGNN-Ret 进一步提高了准确率,并达到了最先进的性能,在 2WikiMQA 数据集上准确率提升高达 10.4%。

英文摘要:

Retrieval augmented generation has revolutionized large language model (LLM) outputs by providing factual supports. Nevertheless, it struggles to capture all the necessary knowledge for complex reasoning questions. Existing retrieval methods typically divide reference documents into passages, treating them in isolation. These passages, however, are often interrelated, such as passages that are contiguous or share the same keywords. Therefore, it is crucial to recognize such relatedness for enhancing the retrieval process. In this paper, we propose a novel retrieval method, called GNN-Ret, which leverages graph neural networks (GNNs) to enhance retrieval by exploiting the relatedness between passages. Specifically, we first construct a graph of passages by connecting passages that are structure-related or keyword-related. A graph neural network (GNN) is then leveraged to exploit the relationships between passages and improve the retrieval of supporting passages. Furthermore, we extend our method to handle multi-hop reasoning questions using a recurrent graph neural network (RGNN), named RGNN-Ret. At each step, RGNN-Ret integrates the graphs of passages from previous steps, thereby enhancing the retrieval of supporting passages. Extensive experiments on benchmark datasets demonstrate that GNN-Ret achieves higher accuracy for question answering with a single query of LLMs than strong baselines that require multiple queries, and RGNN-Ret further improves accuracy and achieves state-of-the-art performance, with up to 10.4% accuracy improvement on the 2WikiMQA dataset.

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

↑