Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

GenTKG: Generative Forecasting on Temporal Knowledge Graph with Large Language Models

About

The rapid advancements in large language models (LLMs) have ignited interest in the temporal knowledge graph (tKG) domain, where conventional embedding-based and rule-based methods dominate. The question remains open of whether pre-trained LLMs can understand structured temporal relational data and replace them as the foundation model for temporal relational forecasting. Therefore, we bring temporal knowledge forecasting into the generative setting. However, challenges occur in the huge chasms between complex temporal graph data structure and sequential natural expressions LLMs can handle, and between the enormous data sizes of tKGs and heavy computation costs of finetuning LLMs. To address these challenges, we propose a novel retrieval-augmented generation framework named GenTKG combining a temporal logical rule-based retrieval strategy and few-shot parameter-efficient instruction tuning to solve the above challenges, respectively. Extensive experiments have shown that GenTKG outperforms conventional methods of temporal relational forecasting with low computation resources using extremely limited training data as few as 16 samples. GenTKG also highlights remarkable cross-domain generalizability with outperforming performance on unseen datasets without re-training, and in-domain generalizability regardless of time split in the same dataset. Our work reveals the huge potential of LLMs in the tKG domain and opens a new frontier for generative forecasting on tKGs. Code and data are released here: https://github.com/mayhugotong/GenTKG.

Ruotong Liao, Xu Jia, Yangzhe Li, Yunpu Ma, Volker Tresp• 2023

Related benchmarks

TaskDatasetResultRank
Temporal Knowledge Graph reasoningICEWS18 (test)
Hits@124.25
79
Temporal Knowledge Graph reasoningICEWS14 (test)
Hits@136.85
59
Temporal Knowledge Graph reasoningICEWS05-15 (test)
Hits@136
41
Temporal Knowledge Graph reasoningYAGO (test)
Hits@10.7915
27
Inductive Temporal Knowledge Graph Link PredictionGDELT (5:2:3 chronological split)
Hits@30.0734
17
Inductive Temporal Knowledge Graph Link PredictionICEWS 14 (5:2:3 chronological split)
Hits@30.0983
17
Inductive Temporal Knowledge Graph Link PredictionICEWS 05-15 (5:2:3 chronological split)
Hits@311.05
17
Temporal Knowledge Graph Entity ExtrapolationICEWS14s (test)
Hits@136.85
17
Temporal Knowledge Graph Entity ExtrapolationICEWS 18 short (test)
Hits@124.25
17
Inductive Temporal Knowledge Graph Link PredictionICEWS 18 (5:2:3 chronological split)
Hits@30.054
17
Showing 10 of 13 rows

Other info

Follow for update