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

Qingyun Sun, Jiaqi Yuan, Shan He, Xiao Guan, Haonan Yuan, Xingcheng Fu, Jianxin Li, Philip S. YuarXiv 2025 · DOI

Abstract

Standard Retrieval-Augmented Generation (RAG) and advanced Graph RAG systems struggle with time-sensitive questions because they treat knowledge as static snapshots. DyG-RAG addresses this by extracting "Dynamic Event Units" (DEUs) from text to construct an event-centric dynamic graph, enabling time-aware retrieval and step-by-step temporal reasoning. This approach significantly enhances accuracy on complex temporal QA tasks by explicitly modeling the chronological flow of real-world events.

Introduction: The Temporal Gap in RAG

While Large Language Models (LLMs) are powerful, they often hallucinate or rely on outdated information. RAG mitigates this by fetching external documents, and Graph RAG structures those documents into networks for multi-hop reasoning. However, real-world information evolves, and existing systems fail at temporal reasoning for three primary reasons:

  1. Semantic Dominance: Standard embeddings often treat "What did Obama do before 2008?" and "after 2008?" as nearly identical, ignoring the temporal intent.
  2. Lack of Temporal Constraints: Standard retrievers cannot easily filter for relative timeframes (e.g., "during his first term").
  3. Poor Temporal Compositionality: When asked about how a situation evolved, standard RAG returns isolated text chunks without understanding the causal or chronological chain of events.

DyG-RAG bridges this gap by modeling knowledge dynamically from an event-centric perspective, moving beyond the rigid triples of Temporal Knowledge Graphs (TKGs) while retaining natural language nuance.

Methodology: The DyG-RAG Pipeline

DyG-RAG introduces a novel pipeline that transforms unstructured text into a time-aware reasoning engine through three main stages.

The DyG-RAG pipeline: from source documents to dynamic event units, graph construction, and time-aware reasoning.

1. Dynamic Event Units (DEUs)

Instead of arbitrary paragraph chunks, DyG-RAG uses an LLM to extract DEUs—self-contained factual statements anchored to specific timestamps (e.g., "Dr. Lee resigned on March 1, 2020"). This granularity hits the "Goldilocks" zone: fine-grained enough for precise timestamps, but rich enough for LLM context.

2. Event Graph Construction

DEUs are encoded using a dual approach: a standard text encoder for semantics and a Fourier-based time encoder for temporal proximity. The system builds a "Dynamic Event Graph" by linking DEUs that share entities and occur within close temporal proximity.

3. Time-Aware Retrieval and Reasoning

When a query is received, the system parses it for temporal intent and retrieves "seed" DEUs using a joint semantic-temporal embedding. It then performs a weighted random walk on the graph to pull a coherent, chronological timeline. Finally, Time Chain-of-Thought (Time-CoT) forces the LLM to explicitly check chronological order and track state persistence (e.g., "Is this person still in office?") before generating an answer.

Evaluation and Results

The authors evaluated DyG-RAG on three Wikipedia-derived temporal QA benchmarks: TimeQA (Implicit Temporal Inference), TempReason (Event State Grounding), and ComplexTR (Multi-hop Temporal Reasoning).

Performance comparison of DyG-RAG against various RAG baselines across five key metrics.

DyG-RAG significantly outperformed all baselines, including Vanilla RAG and state-of-the-art Graph RAG methods like GraphRAG, LightRAG, and HippoRAG.

  • TimeQA: Achieved 58.78% accuracy (an 18.3% absolute improvement over E²GraphRAG).
  • TempReason: Achieved 84.75% accuracy (a 14.95% improvement over HippoRAG).
  • ComplexTR: Achieved 55.62% accuracy (a 10.94% improvement over HippoRAG).

Qualitative analysis confirmed that DyG-RAG successfully tracks state changes over time, avoiding the "early stopping" issues prevalent in other models that find one related event but ignore subsequent changes.

Discussion: Insights and Limitations

A key insight is that semantic similarity is blind to time. By re-weighting embeddings with Fourier-encoded time vectors, the retriever distinguishes between chronologically distinct but semantically similar events.

However, DyG-RAG involves efficiency trade-offs. The LLM-based DEU extraction and Time-CoT reasoning are computationally heavier than lightweight baselines like LightRAG. While faster than standard GraphRAG's expensive community clustering, DyG-RAG's latency remains a target for future optimization in high-throughput environments.

Summary updated

BibTeX
@misc{sun2025dyg,
  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},
  title = {{DyG-RAG: Dynamic Graph Retrieval-Augmented Generation with Event-Centric Reasoning}},
  year = {2025},
  eprint = {2507.13396},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.13396},
}
Figure