Abstract
Temporal Reasoning (TR) is essential for understanding time-sensitive contexts, yet Large Language Models (LLMs) often fail to provide faithful explanations for their predictions. We introduce GETER, a structure-aware generative framework that bridges the gap between structured temporal data and natural language. By integrating Temporal Knowledge Graphs (TKGs) directly into the LLM's embedding space, GETER enables more accurate future event prediction and coherent, hallucination-free reasoning. Our experiments on a new benchmark, ETR, demonstrate significant improvements in both predictive performance and explanation quality.
Introduction: The Challenge of Temporal Reasoning
Temporal Reasoning involves understanding, representing, and predicting events within time-sensitive contexts—a skill fundamental to causal discovery and strategic planning. While LLMs show promise, they face two major hurdles: the "Black Box" problem, where reasoning is opaque, and the tendency to hallucinate convincing but factually incorrect explanations. These issues often arise because LLMs treat temporal data as simple text, discarding the rich structural dynamics (who, what, when) found in graph-based representations.
The GETER Framework
GETER addresses these limitations through a three-stage generative process:
- Indexing with Temporal Encoders: A TKG model (e.g., RE-GCN) processes temporal knowledge graphs to capture structural patterns and the evolution of entities over time, producing high-dimensional structural embeddings.
- Structure-Text Prefix Adapter: Rather than noisy text conversion, a lightweight projection matrix maps structural features directly into the LLM’s text embedding space. This creates "soft graph tokens" that represent the query and its historical context.
- Instruction Tuning (LoRA): The LLM is fine-tuned using Low-Rank Adaptation (LoRA). It processes the soft graph tokens alongside text-based instructions and reasoning chains to generate a final explanation text containing the prediction and its logical justification.
Experimental Setup: The ETR Benchmark
To evaluate explainable temporal reasoning, we introduced the ETR (Explainable Temporal Reasoning) benchmark. It spans granularities from minutes to years and draws from five source datasets: ICEWS14, ICEWS18, ICEWS05-15, GDELT, and WIKI. ETR includes positive, negative (counterfactual), and neutral samples to test the model's handling of ambiguity. Gold-standard explanations were synthesized and polished using GPT-4o.
Key Results and Insights
GETER was evaluated against state-of-the-art models including GPT-4o, Llama-3, Qwen-2.5, and Mistral-7B.
- Superior Accuracy: GETER-Mistral-7B achieved F1 score improvements of up to 11.10% over models using only text-based tuning.
- Grounding Prevents Hallucination: Structural graph data acts as a grounding mechanism. Mapping latent features directly into the embedding space preserves relational density better than textualization.
- Explanation Quality: GETER-enhanced models significantly outperformed zero-shot GPT-4o in semantic similarity metrics (BLEU-4, ROUGE-L), with BLEU-4 gains exceeding 250% on certain datasets.
- Importance of Reasoning Chains: Ablation studies showed that removing explicit evidence paths (reasoning chains) led to a drop in F1 scores by up to 10.7%, highlighting the need for explicit temporal logic.
Conclusion and Future Work
GETER demonstrates that incorporating structural information is vital for reliable temporal reasoning in LLMs. While the framework is efficient, future work will address inference latency and the impact of noisy historical data. Expanding the framework to even larger backbone models remains a promising direction for further enhancing explainability in complex temporal domains.
Summary updated