Deja vu: Contrastive Historical Modeling with Prefix-tuning for Temporal Knowledge Graph Reasoning

Miao Peng, Ben Liu, Wenjie Xu, Zihao Jiang, Jiahui Zhu +1 more
3/25/2024
cs.AIcs.CLcs.LG

No official code found. Best implementation: GKNL/ChapTER (14 stars, last commit 2024-07-08).

Abstract

Temporal Knowledge Graph Reasoning (TKGR) is the task of inferring missing facts for incomplete TKGs in complex scenarios (e.g., transductive and inductive settings), which has been gaining increasing attention. Recently, to mitigate dependence on structured connections in TKGs, text-based methods have been developed to utilize rich linguistic information from entity descriptions. However, suffering from the enormous parameters and inflexibility of pre-trained language models, existing text-based methods struggle to balance the textual knowledge and temporal information with computationally expensive purpose-built training strategies. To tap the potential of text-based models for TKGR in various complex scenarios, we propose ChapTER, a Contrastive historical modeling framework with prefix-tuning for TEmporal Reasoning. ChapTER feeds history-contextualized text into the pseudo-Siamese encoders to strike a textual-temporal balance via contrastive estimation between queries and candidates. By introducing virtual time prefix tokens, it applies a prefix-based tuning method to facilitate the frozen PLM capable for TKGR tasks under different settings. We evaluate ChapTER on four transductive and three few-shot inductive TKGR benchmarks, and experimental results demonstrate that ChapTER achieves superior performance compared to competitive baselines with only 0.17% tuned parameters. We conduct thorough analysis to verify the effectiveness, flexibility and efficiency of ChapTER.

View on arXivView PDF

Code Implementations(1)

GKNL/ChapTERCommunity65%

[NAACL 2024 Findings] Deja vu: Contrastive Historical Modeling with Prefix-tuning for Temporal Knowledge Graph Reasoning

140Shell, PythonMar 24, 20242 years ago

Similar Papers

Cite this paper

@article{peng2024deja,
  title  = {Deja vu: Contrastive Historical Modeling with Prefix-tuning for Temporal Knowledge Graph Reasoning},
  author = {Miao Peng and Ben Liu and Wenjie Xu and Zihao Jiang and Jiahui Zhu and Min Peng},
  year   = {2024},
  eprint = {2404.00051},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.00051v1}
}

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

Discussion