Pre-trained Language Model with Prompts for Temporal Knowledge Graph Completion

Wenjie Xu, Ben Liu, Miao Peng, Xu Jia, Min Peng
5/13/2023
75 citations
cs.CLcs.AI

Official code: JaySaligia/PPT (48 stars, Python, last commit 2024-03-20).

Abstract

Temporal Knowledge graph completion (TKGC) is a crucial task that involves reasoning at known timestamps to complete the missing part of facts and has attracted more and more attention in recent years. Most existing methods focus on learning representations based on graph neural networks while inaccurately extracting information from timestamps and insufficiently utilizing the implied information in relations.

Show full abstract

To address these problems, we propose a novel TKGC model, namely Pre-trained Language Model with Prompts for TKGC (PPT). We convert a series of sampled quadruples into pre-trained language model inputs and convert intervals between timestamps into different prompts to make coherent sentences with implicit semantic information. We train our model with a masking strategy to convert TKGC task into a masked token prediction task, which can leverage the semantic information in pre-trained language models. Experiments on three benchmark datasets and extensive analysis demonstrate that our model has great competitiveness compared to other models with four metrics. Our model can effectively incorporate information from temporal knowledge graphs into the language models.

View on arXivView PDF

Code Implementations(1)

JaySaligia/PPTOfficial100%

『ACL 2023 Findings』Pre-trained Language Model with Prompts for Temporal Knowledge Graph Completion

487PythonMay 10, 20232 years ago

Similar Papers

Cite this paper

@article{xu2023pretrained,
  title  = {Pre-trained Language Model with Prompts for Temporal Knowledge Graph Completion},
  author = {Wenjie Xu and Ben Liu and Miao Peng and Xu Jia and Min Peng},
  year   = {2023},
  eprint = {2305.07912},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.07912v2}
}

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

Discussion