Are Large Language Models Good Temporal Graph Learners?

Shenyang Huang, Ali Parviz, Emma Kondrup, Zachary Yang, Zifeng Ding +3 more
6/3/2025
cs.CLcs.LG

Official code: shenyangHuang/TGTalker (11 stars, last commit 2025-09-23).

Abstract

Large Language Models (LLMs) have recently driven significant advancements in Natural Language Processing and various other applications. While a broad range of literature has explored the graph-reasoning capabilities of LLMs, including their use of predictors on graphs, the application of LLMs to dynamic graphs -- real world evolving networks -- remains relatively unexplored. Recent work studies synthetic temporal graphs generated by random graph models, but applying LLMs to real-world temporal graphs remains an open question. To address this gap, we introduce Temporal Graph Talker (TGTalker), a novel temporal graph learning framework designed for LLMs. TGTalker utilizes the recency bias in temporal graphs to extract relevant structural information, converted to natural language for LLMs, while leveraging temporal neighbors as additional information for prediction. TGTalker demonstrates competitive link prediction capabilities compared to existing Temporal Graph Neural Network (TGNN) models. Across five real-world networks, TGTalker performs competitively with state-of-the-art temporal graph methods while consistently outperforming popular models such as TGN and HTGN. Furthermore, TGTalker generates textual explanations for each prediction, thus opening up exciting new directions in explainability and interpretability for temporal link prediction. The code is publicly available at https://github.com/shenyangHuang/TGTalker.

View on arXivView PDF

Code Implementations(1)

official repository for the TGTalker paper

111Shell, PythonJun 2, 20251 years ago

Similar Papers

Cite this paper

@article{huang2025large,
  title  = {Are Large Language Models Good Temporal Graph Learners?},
  author = {Shenyang Huang and Ali Parviz and Emma Kondrup and Zachary Yang and Zifeng Ding and Michael Bronstein and Reihaneh Rabbany and Guillaume Rabusseau},
  year   = {2025},
  eprint = {2506.05393},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.05393v1}
}

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

Discussion