potentialpaper

In-situ Adaptation for LLM-based Link Prediction: A Dynamic Cognition Paradigm for Temporal Knowledge Graphs

Guo Tang, Ke Cheng, Heng Chang, huiming fan, Wenxiang Zheng, Xianhao Ou, Junjia Xiang, Ming Liu, Bing Qin

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Knowledge graphs continuously evolve, making the prediction of future links a crucial but challenging task. Current methods, whether based on dynamic graph neural networks or static retrieval-augmented generation (RAG) for Large Language Models (LLMs), struggle with generalization. They often fail to capture the real-time, characteristic evolution of the graph during the testing phase, leading to degraded performance from distribution shifts. To address this, we propose a new training-free paradigm, termed Dynamic Cognition (DyCo), which posits that effective link prediction hinges on an agent's ability to continuously perceive graph evolution and adapt its strategies in-situ. Inspired by this, we introduce a novel framework DyCo-LLM, which enables an LLM to perform live adaptation for temporal link prediction. At its core is a dynamic context engine that tailors the LLM's prompts on the fly. This engine features an adaptive multi-path recall and scoring mechanism that adjusts its parameters based on the evolving node- and graph-level features. Furthermore, the framework incorporates a dynamic few-shot learner that generates corrective reasoning examples from prediction failures, allowing the LLM to learn from its mistakes in real-time without retraining. Experimental results on two large-scale dynamic knowledge graphs demonstrate that our approach achieves state-of-the-art performance in the link prediction task. Ablations verify that each recall path is indispensable, and balanced weights are critical to fuse structural–semantic signals and history–self similarity. In addition, the reflective few-shot routine provides consistent gains. The source code is available at https://anonymous.4open.science/r/13htrueiwbgjkdsb/.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

add · history

No versions are recorded yet: its preprint, the venues it went to and what they decided, the camera-ready. Missing a version?

We don't know of a submission of this paper to a venue with open reviews. Missing a submission?

Loading the discussion…