TimeTraveler: Reinforcement Learning for Temporal Knowledge Graph Forecasting

Haohai Sun, Jialun Zhong, Yunpu Ma, Zhen Han, Kun He
9/9/2021
cs.LGcs.AIcs.CL
rl

Official code: JHL-HUST/TITer (43 stars, Python, last commit 2021-09-10).

Abstract

Temporal knowledge graph (TKG) reasoning is a crucial task that has gained increasing research interest in recent years. Most existing methods focus on reasoning at past timestamps to complete the missing facts, and there are only a few works of reasoning on known TKGs to forecast future facts.

Show full abstract

Compared with the completion task, the forecasting task is more difficult that faces two main challenges: (1) how to effectively model the time information to handle future timestamps? (2) how to make inductive inference to handle previously unseen entities that emerge over time? To address these challenges, we propose the first reinforcement learning method for forecasting. Specifically, the agent travels on historical knowledge graph snapshots to search for the answer. Our method defines a relative time encoding function to capture the timespan information, and we design a novel time-shaped reward based on Dirichlet distribution to guide the model learning. Furthermore, we propose a novel representation method for unseen entities to improve the inductive inference ability of the model. We evaluate our method for this link prediction task at future timestamps. Extensive experiments on four benchmark datasets demonstrate substantial performance improvement meanwhile with higher explainability, less calculation, and fewer parameters when compared with existing state-of-the-art methods.

View on arXivView PDF

Code Implementations(1)

JHL-HUST/TITerOfficial100%
4312PythonAug 28, 20215 years ago

Similar Papers

Cite this paper

@article{sun2021timetraveler,
  title  = {TimeTraveler: Reinforcement Learning for Temporal Knowledge Graph Forecasting},
  author = {Haohai Sun and Jialun Zhong and Yunpu Ma and Zhen Han and Kun He},
  year   = {2021},
  eprint = {2109.04101},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.04101}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2109.04101.svg)](https://codeofpaper.com/paper/2109.04101)

Discussion