arrow
Return

In-Context Contrastive Learning for Temporal Knowledge Graph Reasoning

delete2026-01-01
delete0
PRE
AI
X
Xingyi Li *
J
Jiapeng Wang
B
Boyuan Jia
L
Lyu, Yiheng
X
Xiang Cheng
苏
苏森 (Sen Su)
DOI:10.1007/978-981-95-3058-8_15delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Temporal Knowledge Graph (TKG) reasoning aims at predicting future facts based on occurred facts. With the development of large language models (LLMs), it has shown that in-context learning based approaches can provide state-of-the-art performance. However, they tend to use historically relevant examples (i.e., historical information) as demonstrations, which brings challenges in predicting facts that have no historical interaction. In reality, the current fact is often the result of historical information combined with underlying factors (i.e., non-historical information). In this paper, we present CALENDAR (i.e., in-context ContrAstive Learning tEmporal kNowleDge grAph Reasoning), an approach that leverages both histories and non-histories to create contrastive demonstrations, thereby reducing the bias toward predicting only historically occurred facts. In CALENDAR, we propose a demonstration candidate generation with high-order information method, which leverages high-order information from histories and non-histories to generate demonstration candidates. Moreover, we devise a contrastive importance based demonstration selection method which selects demonstrations by the sum frequency of entities in histories and non-histories of demonstration candidates. Furthermore, we design a contrastive chain-of-history based demonstration format which generates the negative principle for guiding the LLMs on why they should not rely only on the recurrence and periodicity histories. Experimental results on three benchmark datasets confirm the effectiveness of our approach.
Keywords:
Temporal knowledge graph reasoning
In-context learning
Large language models
Contrastive learning
Knowledge graph

Journal

K
KNOWLEDGE SCIENCE, ENGINEERING AND MANAGEMENT, KSEM 2025, PT IV
IF:
0
Papers:
35
Citations:
0

Organization

B
beijing university of posts & telecommunications
Scholars:
1.4W
Papers: 1.2W
Citations: 9
Cited Papers

Cited Papers

Encoding Temporal Information for Time-Aware Link Prediction
err2016-01-01
err0
errOAAI
errTingsong Jiang; Tianyu Liu; Tao Ge; Lei Sha; Sujian Li; Baobao Chang; Zhifang Sui
errShare
errSave
Structured Sequence Modeling with Graph Convolutional Recurrent Networks
err2018-11-17
err0
PREAI
errYoungjoo Seo; Michaël Defferrard; Pierre Vandergheynst; Xavier Bresson
errShare
errSave
Wikidata: A Free Collaborative Knowledgebase
err2014-09-23
err1.9K
errOAAI
errVrandecic, Denny; Kroetzsch, Markus
errShare
errSave
Freebase
err2008-06-09
err0
PREAI
errKurt Bollacker; Colin Evans; Praveen Paritosh; Tim Sturge; Jamie Taylor
errShare
errSave
Yago
err2007-05-08
err0
errOAAI
errFabian M. Suchanek; Gjergji Kasneci; Gerhard Weikum
errShare
errSave
researcher View more