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

通过拓扑感知检索增强文本生成

Augmenting Textual Generation via Topology Aware Retrieval

Yu Wang, Nedim Lipka, Ruiyi Zhang, Alexa Siu, Yuying Zhao, Bo Ni, Xin Wang, Ryan Rossi, Tyler Derr

AI总结:

本研究利用文本间的拓扑关系(如邻近性和角色)指导RAG检索,提出拓扑感知检索增强生成框架,通过检索和聚合模块提升LLM文本生成质量。

摘要:

尽管大型语言模型(LLMs)在文本生成方面取得了显著进展,但它们往往受限于输入中包含的知识,并且容易产生不准确或幻觉内容。为了解决这些问题,检索增强生成(RAG)作为一种有效策略被采用,通过从外部数据库提取额外文本来增强可用知识库,并将响应锚定在现实中。在现实应用中,文本通常通过图内的实体相互关联,例如学术论文中的引用或社交网络中的评论。本文利用这些拓扑关系来指导RAG中的检索过程。具体而言,我们探索了两种拓扑连接:基于邻近性的,侧重于紧密连接的节点;以及基于角色的,关注具有相似子图结构的节点。我们的实证研究证实了它们与文本关系的相关性,从而促使我们开发了一个拓扑感知的检索增强生成框架。该框架包括一个检索模块,该模块根据文本的拓扑关系选择文本,以及一个聚合模块,该模块将这些文本整合到提示中,以激发LLMs进行文本生成。我们整理了已建立的文本属性网络,并进行了全面实验以验证该框架的有效性,展示了其通过拓扑感知增强RAG的潜力。

英文摘要:

Despite the impressive advancements of Large Language Models (LLMs) in generating text, they are often limited by the knowledge contained in the input and prone to producing inaccurate or hallucinated content. To tackle these issues, Retrieval-augmented Generation (RAG) is employed as an effective strategy to enhance the available knowledge base and anchor the responses in reality by pulling additional texts from external databases. In real-world applications, texts are often linked through entities within a graph, such as citations in academic papers or comments in social networks. This paper exploits these topological relationships to guide the retrieval process in RAG. Specifically, we explore two kinds of topological connections: proximity-based, focusing on closely connected nodes, and role-based, which looks at nodes sharing similar subgraph structures. Our empirical research confirms their relevance to text relationships, leading us to develop a Topology-aware Retrieval-augmented Generation framework. This framework includes a retrieval module that selects texts based on their topological relationships and an aggregation module that integrates these texts into prompts to stimulate LLMs for text generation. We have curated established text-attributed networks and conducted comprehensive experiments to validate the effectiveness of this framework, demonstrating its potential to enhance RAG with topological awareness.

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

↑