Beyond Single Pass, Looping Through Time: KG-IRAG with Iterative Knowledge Retrieval
Ruiyi Yang, Hao Xue, Imran Razzak, Hakim Hacid, Flora D. Salim
TL;DR
KG-IRAG addresses the challenge of time-sensitive, multi-step knowledge reasoning by integrating knowledge graphs with an iterative retrieval loop guided by two cooperating LLM agents (planner and verifier). The framework anchors retrieval on explicit time points, expands evidence through lightweight, localized graph walks, and uses a verifiable stop rule to ensure temporal consistency before synthesizing an answer. Three new temporal QA datasets—weatherQA-Irish, weatherQA-Sydney, and trafficQA-TFNSW—demonstrate that iterative, time-anchored retrieval improves accuracy and reduces hallucinations compared to single-pass GraphRAG baselines and other RAG variants. The approach delivers both performance gains and efficiency, with demonstrated generalization to external temporal QA benchmarks like TimeQuestions, highlighting its practical impact for time-aware KGQA tasks.
Abstract
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.
