NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

RTQA : Recursive Thinking for Complex Temporal Knowledge Graph Question Answering with Large Language Models

Zhaoyan Gong, Juan Li, Zhiqiang Liu, Lei Liang, Huajun Chen, Wen Zhang

TL;DR

RTQA (Recursive Temporal Question Answering) is a training-free, plug-and-play framework that enables Large Language Models (LLMs) to solve complex temporal questions over Knowledge Graphs. By recursively decomposing multi-constraint queries into simpler sub-questions and using a novel multi-path answer aggregator, RTQA significantly boosts accuracy while preventing reasoning errors from cascading.

What Problem Does This Paper Address?

Temporal Knowledge Graphs (TKGs) store information as time-aware quadruples—for example, (Trump, president of, United States, 2025). Answering questions over these graphs becomes incredibly challenging when queries involve implicit or compound temporal constraints, such as "Before Kuwait, which country received the Government Delegation of North Korea's visit last?"

Current approaches face two major roadblocks:

  1. Inadequate Complex Reasoning: Standard LLMs frequently hallucinate when dealing with intricate, multi-constraint temporal queries, even when augmented with TKG facts. They struggle to resolve implicit constraints (like "before Kuwait") combined with ordering constraints (like "last").
  2. Error Propagation: Existing question-decomposition frameworks are fragile. If the system makes a mistake on an early sub-question (e.g., misidentifying the year a leader left office), that error cascades through the entire reasoning chain, dooming the final answer.
Figure 1: Motivation comparison: Prior methods (a– c) fail at multi-constraint reasoning, while (d) RTQA solves it via recursive sub-question decomposition.

Methods

The authors introduce RTQA, a framework that mimics human divide-and-conquer problem-solving through three core, training-free components:

  1. Temporal Question Decomposer: This module uses few-shot prompting to break a complex temporal question down into a hierarchical tree of simpler sub-questions. It translates implicit constraints into explicit placeholders (e.g., #1, #2).
  2. Recursive Solver: Following a bottom-up, post-order traversal of the question tree, the solver resolves each sub-question. It standardizes all time expressions into the ISO 8601 format (yyyy-mm-dd), retrieves relevant facts from the TKG using dense embeddings, and uses the LLM to solve the sub-problem. The answers then dynamically replace the placeholders in parent questions.
  3. Answer Aggregator: To combat error propagation, RTQA does not blindly trust the child sub-questions. Instead, the aggregator evaluates two candidates for non-leaf nodes: the answer derived from the sub-questions ($a_{child}$) and an answer generated by directly querying the TKG with the parent question context ($a_{IR}$). A strict rule-based fallback mechanism selects the most reliable result.
Figure 3: An illustration of the RTQA framework applied to a complex temporal question. The framework consists of three stages: (I) Temporal Question Decomposer, which breaks down the original query into sub-questions with explicit temporal constraints; (II) Recursive Solver, where each sub-question is solved using an LLM and retrieved TKG facts; and (III) Answer Aggregator, which integrates the sub-answers to produce the final answer. The reasoning process follows a bottom-up recursive traversal from the root of the decomposition tree, enabling robust aggregation of intermediate results.

Datasets

The framework was evaluated on two primary TKGQA benchmarks:

  • MultiTQ: A massive dataset containing over 500,000 unique question-answer pairs spanning multiple temporal granularities (days, months, years) derived from ICEWS data.
  • TimelineKGQA: A benchmark explicitly categorized by question difficulty (Simple, Medium, Complex) to test a model's generalization capabilities.

Key Insights and Ideas

  • The Power of Bottom-Up Recursion: Explicitly separating the temporal anchor retrieval (e.g., "When did Kuwait receive the visit?") from the subsequent logical constraints ("Who visited before that date?") makes the reasoning process transparent and manageable for LLMs.
  • Redundancy Breeds Robustness: The "Only-Child" strategy of traditional decomposition is a single point of failure. By introducing a multi-path aggregation strategy (comparing the decomposed path against a direct retrieval path), RTQA introduces a safety net that catches early hallucination or retrieval failures.
  • Zero-Shot Adaptability: Because RTQA requires no fine-tuning or training, it acts as a modular wrapper. As shown in the paper's experiments, upgrading the underlying LLM (e.g., from GPT-4o-mini to DeepSeek-R1) instantly translates to higher temporal reasoning performance without any extra computational overhead.

Key Results

RTQA achieved state-of-the-art results across both benchmarks:

  • MultiTQ Benchmark: RTQA achieved an overall Hits@1 score of 0.765, outperforming the previous best model, TimeR4 (0.728). Crucially, on highly complex "Multiple" constraint questions, RTQA boosted Hits@1 from 0.335 to 0.424—a massive relative improvement.
  • TimelineKGQA Benchmark: On the hardest "Complex" questions, a standard Retrieval-Augmented Generation (RAG) baseline scored a dismal 0.009 Hits@1. RTQA achieved 0.135, representing a 1400% relative performance leap.
  • Ablation Impact: Removing the question decomposer caused the model's performance on multi-constraint questions to plummet by 49.5% (from 0.424 to 0.214), proving that recursive decomposition is vital for complex temporal logic.
Figure 2: Comparison of RTQA and Only-Child strate- gies. RTQA mitigates error propagation by integrating child_answer with IR_answer, while Only-Child relies solely on child_answer, compounding earlier errors.

Limitations and Future Work

While RTQA marks a significant step forward, the authors note a few limitations:

  • LLM Dependency: The quality of the initial question decomposition relies heavily on the underlying LLM. Smaller, open-source models still struggle to generate clean, logical sub-question trees.
  • Retrieval Bottlenecks: If the dense encoder fails to retrieve the critical historical facts during the leaf-node phase, the entire reasoning chain breaks down.
  • Domain Specificity: The framework is currently optimized strictly for temporal knowledge graphs. The authors plan to explore how well this recursive decomposition generalizes to other complex QA domains, such as geographic or multi-hop static knowledge graphs.

Summary updated

BibTeX
@misc{gong2025rtqa,
  author = {Zhaoyan Gong and Juan Li and Zhiqiang Liu and Lei Liang and Huajun Chen and Wen Zhang},
  title = {{RTQA : Recursive Thinking for Complex Temporal Knowledge Graph Question Answering with Large Language Models}},
  year = {2025},
  eprint = {2509.03995},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.03995},
}
Figure