Introduction
Temporal Knowledge Graph (TKG) forecasting is the task of predicting future events—structured as (subject, relation, object, timestamp)—based on historical sequences. For instance, a model might predict a diplomatic meeting between two nations based on a decade of previous interactions. While Large Language Models (LLMs) have shown promise in this area, they often suffer from "knowledge entanglement." This occurs when the model attempts to learn invariant temporal patterns (the "logic" of events) and specific factual details (the "vocabulary" of entities and relations) simultaneously. This entanglement limits the model's ability to generalize across different domains, such as moving from political data to sports data.
The G2S Framework
To address this, the G2S (General-to-Specific) framework disentangles abstract temporal structures from specific scenario information through a two-stage learning process.
1. General Learning Stage
In this stage, the model learns the underlying "grammar" of temporal events without the distraction of specific entity names. Specific entity and relation names are masked and replaced with abstract IDs using strategies like Random IDs (RID) or Frequency-based IDs (FID). By training an LLM (specifically LLaMA3-8B with LoRA) on these anonymized structures across diverse datasets like GDELT and WIKI, the model is forced to focus purely on temporal periodicity and structural recurrences.
2. Specific Learning Stage
Once the model has mastered general patterns, it is introduced to specific scenario information. A mapping is provided that links the abstract IDs back to real-world entities (e.g., "ID_1: China"). This stage can be implemented via In-Context Learning (ICL), where mappings are included in the prompt, or Supervised Fine-Tuning (SFT) for better domain adaptation.
Experimental Results
The G2S framework was evaluated on five major TKG benchmarks: ICEWS14, ICEWS18, and YAGO for testing, with GDELT and WIKI used for general learning. These datasets vary significantly in granularity, from 15 minutes to 1 year.
Key Findings
- State-of-the-Art Performance: G2S consistently outperforms traditional graph neural networks (like RE-GCN) and existing LLM-based methods (like GenTKG) on benchmarks such as ICEWS14 and YAGO.
- Zero-Shot Superiority: In zero-shot scenarios, G2S variants significantly outperform standard LLM prompting. For example, on the YAGO dataset, G2S achieved an H@1 of 87.88, compared to just 56.9 for a standard Llama3-ICL approach.
- Low-Resource Efficiency: G2S maintains high accuracy even when only 5% of domain-specific training data is available, proving it can "warm up" a model using general patterns before fine-tuning on a tiny specific sample.
Conclusion
G2S demonstrates that LLMs are powerful structural reasoners when shielded from the interference of specific factual details during the initial learning phase. By separating the "logic" from the "vocabulary," G2S achieves state-of-the-art performance and remarkable zero-shot capabilities in TKG forecasting. Future work will explore more complex history selection strategies and expanding the framework to highly specialized domains like medicine or finance.
Summary updated