Temporal Knowledge Graph Reasoning with Historical Contrastive Learning

Yi Xu, Junjie Ou, Hui Xu, Luoyi Fu
11/20/2022
cs.AIcs.LG
contrastive-ssl

Official code: xyjigsaw/CENET (98 stars, Python, MIT, last commit 2023-07-01).

Abstract

Temporal knowledge graph, serving as an effective way to store and model dynamic relations, shows promising prospects in event forecasting. However, most temporal knowledge graph reasoning methods are highly dependent on the recurrence or periodicity of events, which brings challenges to inferring future events related to entities that lack historical interaction.

Show full abstract

In fact, the current moment is often the combined effect of a small part of historical information and those unobserved underlying factors. To this end, we propose a new event forecasting model called Contrastive Event Network (CENET), based on a novel training framework of historical contrastive learning. CENET learns both the historical and non-historical dependency to distinguish the most potential entities that can best match the given query. Simultaneously, it trains representations of queries to investigate whether the current moment depends more on historical or non-historical events by launching contrastive learning. The representations further help train a binary classifier whose output is a boolean mask to indicate related entities in the search space. During the inference process, CENET employs a mask-based strategy to generate the final results. We evaluate our proposed model on five benchmark graphs. The results demonstrate that CENET significantly outperforms all existing methods in most metrics, achieving at least $8.3\%$ relative improvement of Hits@1 over previous state-of-the-art baselines on event-based datasets.

View on arXivView PDF

Code Implementations(1)

xyjigsaw/CENETOfficial100%
MIT

Temporal Knowledge Graph Reasoning with Historical Contrastive Learning

9813PythonNov 20, 20223 years agoMIT

Similar Papers

Cite this paper

@article{xu2022temporal,
  title  = {Temporal Knowledge Graph Reasoning with Historical Contrastive Learning},
  author = {Yi Xu and Junjie Ou and Hui Xu and Luoyi Fu},
  year   = {2022},
  eprint = {2211.10904},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.10904}
}

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/2211.10904.svg)](https://codeofpaper.com/paper/2211.10904)

Discussion