MemoTime: Memory-Augmented Temporal Knowledge Graph Enhanced Large Language Model Reasoning

Xingyu Tan, Xiaoyang Wang, Qing Liu, Xiwei Xu, Xin Yuan, LiMin Zhu, Wenjie ZhangarXiv 2025 · DOI

Abstract

Large Language Models (LLMs) often struggle with time-sensitive reasoning due to their static training data and lack of explicit temporal logic. MemoTime is a novel framework that addresses these challenges by grounding LLMs in Temporal Knowledge Graphs (TKGs). It utilizes a hierarchical "Tree of Time" for structured question decomposition and a self-evolving "Experience Memory" to store and reuse successful reasoning traces. Experimental results demonstrate that MemoTime significantly improves temporal reasoning performance, allowing smaller models (e.g., 4-billion parameters) to rival the capabilities of state-of-the-art systems like GPT-4-Turbo.

Introduction

Standard LLMs are essentially static snapshots of the world, making them prone to errors when dealing with evolving facts—such as changes in political leadership or corporate roles. While Retrieval-Augmented Generation (RAG) can provide external context, traditional RAG methods prioritize semantic similarity over temporal logic. This often results in "hallucinations" where models conflate events from different time periods or fail to synchronize timelines across multiple entities.

Existing Temporal Knowledge Graph Question Answering (TKGQA) methods typically rely on linear pipelines that struggle with temporal faithfulness, multi-entity synchronization, and diverse temporal operators (e.g., "before," "after," "first"). Furthermore, these systems are often "memoryless," failing to learn from previous successful reasoning paths. MemoTime is designed to overcome these hurdles by treating time as a primary reasoning dimension.

Methodology

MemoTime employs a four-stage architecture to ensure rigorous temporal reasoning:

  1. Temporal Grounding: The framework identifies topic entities and temporal operators within a query to extract a relevant subgraph from a TKG.
  2. Tree of Time (ToT): To maintain temporal monotonicity, MemoTime constructs a hierarchical tree rather than a linear chain. This structure ensures that timestamps remain logically consistent across different branches of reasoning.
  3. Dynamic Evidence Retrieval & Pruning: The system uses a specialized toolkit of retrieval strategies (e.g., AfterFirst, BetweenRange). A "temporal-first" pruning mechanism discards any data paths that violate chronological constraints before semantic relevance is even assessed.
  4. Experience Memory: Successful reasoning traces and toolkit selections are stored in a FAISS-based vector store. This allows the model to retrieve and reuse "experiences" for similar future queries, creating a continuous learning loop without the need for model fine-tuning.
The MemoTime framework architecture, featuring Temporal Grounding, the Tree of Time, and Experience Memory modules.

Experimental Setup

The framework was evaluated on two major TKGQA benchmarks:

  • MultiTQ: A large-scale dataset containing over 500,000 complex, multi-hop questions derived from the ICEWS political event database. It is known for its difficulty in synchronizing multiple entities.
  • TimeQuestions: A benchmark of 16,000 linguistically diverse questions from Wikidata, covering explicit, implicit, and ordinal temporal reasoning.

Results and Discussion

MemoTime achieved state-of-the-art (SOTA) performance on both benchmarks. Notably, it outperformed the previous best baseline, TempAgent, by up to 24.0% on the MultiTQ dataset. The framework is model-agnostic, providing significant boosts to various backbones including Qwen, DeepSeek, and GPT-4. For instance, it boosted Qwen3-32B's accuracy from a baseline of 1.3% to over 60%.

Performance comparison of MemoTime against various baselines on the MultiTQ benchmark.

Key insights from the study include:

  • Temporal Priority: Chronological validity is more critical than semantic similarity for temporal tasks. The "temporal-first" pruning strategy directly implements this insight.
  • Hierarchical Synchronization: The Tree of Time structure is essential for co-constraining multiple entities, preventing reasoning drift. Ablation studies showed that removing ToT caused a sharp drop in performance on multi-entity questions (from 40.3% to 19.3%).
  • Efficiency and Scalability: Despite its complexity, MemoTime remains efficient, averaging 8.75 LLM calls per question. Its structured reasoning allows smaller models to match the performance of much larger models like GPT-4-Turbo.

Conclusion and Future Work

While MemoTime represents a significant step forward, it remains dependent on high-quality TKGs and may struggle with "fuzzy" temporal expressions. Future research will focus on handling streaming TKGs and exploring more complex "cross-type" experience augmentation to further refine the system's memory capabilities.

Summary updated

BibTeX
@misc{tan2025memotime,
  author = {Xingyu Tan and Xiaoyang Wang and Qing Liu and Xiwei Xu and Xin Yuan and LiMin Zhu and Wenjie Zhang},
  title = {{MemoTime: Memory-Augmented Temporal Knowledge Graph Enhanced Large Language Model Reasoning}},
  year = {2025},
  eprint = {2510.13614},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.13614},
}
Figure