DyG-RAG: Dynamic Graph Retrieval-Augmented Generation with Event-Centric Reasoning

Qingyun Sun, Jiaqi Yuan, Shan He, Xiao Guan, Haonan Yuan +3 more
7/16/2025
cs.IRcs.CL

Official code: RingBDStack/DyG-RAG (57 stars, last commit 2025-08-28).

Abstract

Graph Retrieval-Augmented Generation has emerged as a powerful paradigm for grounding large language models with external structured knowledge. However, existing Graph RAG methods struggle with temporal reasoning, due to their inability to model the evolving structure and order of real-world events. In this work, we introduce DyG-RAG, a novel event-centric dynamic graph retrieval-augmented generation framework designed to capture and reason over temporal knowledge embedded in unstructured text. To eliminate temporal ambiguity in traditional retrieval units, DyG-RAG proposes Dynamic Event Units (DEUs) that explicitly encode both semantic content and precise temporal anchors, enabling accurate and interpretable time-aware retrieval. To capture temporal and causal dependencies across events, DyG-RAG constructs an event graph by linking DEUs that share entities and occur close in time, supporting efficient and meaningful multi-hop reasoning. To ensure temporally consistent generation, DyG-RAG introduces an event timeline retrieval pipeline that retrieves event sequences via time-aware traversal, and proposes a Time Chain-of-Thought strategy for temporally grounded answer generation. This unified pipeline enables DyG-RAG to retrieve coherent, temporally ordered event sequences and to answer complex, time-sensitive queries that standard RAG systems cannot resolve. Extensive experiments on temporal QA benchmarks demonstrate that DyG-RAG significantly improves the accuracy and recall of three typical types of temporal reasoning questions, paving the way for more faithful and temporal-aware generation. DyG-RAG is available at https://github.com/RingBDStack/DyG-RAG.

View on arXivView PDF

Code Implementations(1)

Code implementation for DyG-RAG: Dynamic Graph Retrieval-Augmented Generation with Event-Centric Reasoning.

578PythonJul 12, 20251 years agoNOASSERTION
graphraglarge-language-modelsragretrieval-augmented-generation

Similar Papers

Cite this paper

@article{sun2025dygrag,
  title  = {DyG-RAG: Dynamic Graph Retrieval-Augmented Generation with Event-Centric Reasoning},
  author = {Qingyun Sun and Jiaqi Yuan and Shan He and Xiao Guan and Haonan Yuan and Xingcheng Fu and Jianxin Li and Philip S. Yu},
  year   = {2025},
  eprint = {2507.13396},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.13396v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.13396.svg)](https://codeofpaper.com/paper/2507.13396)

Discussion