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