Graph Retrieval-Augmented Generation (GraphRAG) has proven highly effective in enhancing the performance of Large Language Models (LLMs) on tasks that require external knowledge. By leveraging Knowledge Graphs (KGs), GraphRAG improves information retrieval for complex reasoning tasks, providing more precise and comprehensive retrieval and generating more accurate responses to QAs. However, most RAG methods fall short in addressing multi-step reasoning, particularly when both information extraction and inference are necessary. To address this limitation, this paper presents Knowledge Graph-Based Iterative Retrieval-Augmented Generation (KG-IRAG), a novel framework that integrates KGs with iterative reasoning to improve LLMs' ability to handle queries involving temporal and logical dependencies. Through iterative retrieval steps, KG-IRAG incrementally gathers relevant data from external KGs, enabling step-by-step reasoning. The proposed approach is particularly suited for scenarios where reasoning is required alongside dynamic temporal data extraction, such as determining optimal travel times based on weather conditions or traffic patterns. Experimental results show that KG-IRAG improves accuracy in complex reasoning tasks by effectively integrating external knowledge with iterative, logic-based retrieval. Additionally, three new datasets: weatherQA-Irish, weatherQA-Sydney, and trafficQA-TFNSW, are formed to evaluate KG-IRAG's performance, demonstrating its potential beyond traditional RAG applications.
翻译:图检索增强生成(GraphRAG)已被证明在提升大语言模型(LLM)处理需外部知识的任务性能方面极为有效。通过利用知识图谱(KG),GraphRAG改善了复杂推理任务中的信息检索能力,提供更精确、全面的检索结果,并生成更准确的问答响应。然而,大多数RAG方法在处理多步推理方面存在不足,尤其是在需要同时进行信息提取和推理的场景中。为克服这一局限,本文提出基于知识图谱的迭代检索增强生成(KG-IRAG),这是一种将知识图谱与迭代推理相结合的新颖框架,旨在增强LLM处理涉及时间与逻辑依赖查询的能力。通过迭代检索步骤,KG-IRAG从外部知识图谱中逐步收集相关数据,实现分步推理。该方法特别适用于需要结合动态时间数据提取进行推理的场景,例如基于天气条件或交通模式确定最佳出行时间。实验结果表明,KG-IRAG通过有效整合外部知识与基于逻辑的迭代检索,显著提高了复杂推理任务的准确性。此外,本文构建了三个新数据集:weatherQA-Irish、weatherQA-Sydney和trafficQA-TFNSW,用于评估KG-IRAG的性能,展示了其在传统RAG应用之外的潜力。