mlsanityData to 7 Oct 2026

LLMTM: Benchmarking and Optimizing LLMs for Temporal Motif Analysis in Dynamic Graphs

arXiv 2512.22266 ↗First posted 24 Dec 2025cs.LG cs.AIcited by 4

Not on the map. Why?

Abstract (arXiv)

The widespread application of Large Language Models (LLMs) has motivated a growing interest in their capacity for processing dynamic graphs. Temporal motifs, as an elementary unit and important local property of dynamic graphs which can directly reflect anomalies and unique phenomena, are essential for understanding their evolutionary dynamics and structural features. However, leveraging LLMs for temporal motif analysis on dynamic graphs remains relatively unexplored. In this paper, we systematically study LLM performance on temporal motif-related tasks. Specifically, we propose a comprehensive benchmark, LLMTM (Large Language Models in Temporal Motifs), which includes six tailored tasks across nine temporal motif types. We then conduct extensive experiments to analyze the impacts of different prompting techniques and LLMs (including nine models: openPangu-7B, the DeepSeek-R1-Distill-Qwen series, Qwen2.5-32B-Instruct, GPT-4o-mini, DeepSeek-R1, and o3) on model performance. Informed by our benchmark findings, we develop a tool-augmented LLM agent that leverages precisely engineered prompts to solve these tasks with high accuracy. Nevertheless, the high accuracy of the agent incurs a substantial cost. To address this trade-off, we propose a simple yet effective structure-aware dispatcher that considers both the dynamic graph's structural properties and the LLM's cognitive load to intelligently dispatch queries between the standard LLM prompting and the more powerful agent. Our experiments demonstrate that the structure-aware dispatcher effectively maintains high accuracy while reducing cost.

Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 23 of its 41 references that are in the map. First posted on arXiv 24 Dec 2025.

Builds on

23 of 41 references.

References · 23

  1. 2018How Powerful are Graph Neural Networks?cited by 4,355
  2. 2023HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Facecited by 1,173
  3. 2020Temporal Graph Networks for Deep Learning on Dynamic Graphscited by 521
  4. 2016Motifs in Temporal Networkscited by 101
  5. 2023Graph-ToolFormer: To Empower LLMs with Graph Reasoning Ability via Prompt Augmented by ChatGPTcited by 78
  6. 2023TPTU: Large Language Model-based AI Agents for Task Planning and Tool Usagecited by 54
  7. 2024GraphArena: Evaluating and Exploring Large Language Models on Graph Computationcited by 48
  8. 2023LLM4DyG: Can Large Language Models Solve Spatial-Temporal Problems on Dynamic Graphs?cited by 40
  9. 2024How Do Large Language Models Understand Graph Patterns? A Benchmark for Graph Pattern Comprehensioncited by 30
  10. 2024STRIDE: A Tool-Assisted LLM Agent Framework for Strategic and Interactive Decision-Makingcited by 22
  11. 2024Neural-Symbolic Reasoning over Knowledge Graphs: A Survey from a Query Perspectivecited by 20
  12. 2024Advancing Graph Representation Learning with Large Language Models: A Comprehensive Survey of Techniquescited by 16
11 more
  1. 2020Temporal Network Motifs: Models, Limitations, Evaluationcited by 9
  2. 2014Path Sampling: A Fast and Provable Method for Estimating 4-Vertex Subgraph Countscited by 8
  3. 2016ESCAPE: Efficiently Counting All 5-Vertex Subgraphscited by 8
  4. 2018Flow Motifs in Interaction Networkscited by 5
  5. 2022Motif-aware temporal GCN for fraud detection in signed cryptocurrency trust networkscited by 4
  6. 2013Dynamic networks reveal key players in agingcited by 3
  7. 2023Temporal Motifs for Financial Networks: A Study on Mercari, JPMC, and Venmo Platformscited by 3
  8. 2025Integrate Temporal Graph Learning into LLM-based Temporal Knowledge Graph Modelcited by 3
  9. 2016A Fast and Provable Method for Estimating Clique Counts Using Tur'an's Theoremcited by 2
  10. 2023Efficient Temporal Butterfly Counting and Enumeration on Temporal Bipartite Graphscited by 2
  11. 2025ATM-GAD: Adaptive Temporal Motif Graph Anomaly Detection for Financial Transaction Networkscited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 4.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2023Large Language Models on Graphs: A Comprehensive Survey
  2. 2025Are Large Language Models Good Temporal Graph Learners?
  3. 2024Exploring the Potential of Large Language Models in Graph Generation
  4. 2025Global-Recent Semantic Reasoning on Dynamic Text-Attributed Graphs with Large Language Models
  5. 2026TemporalGraphLLM: Temporal Graph Neural Networks with Large Language Models for Dynamic Text-Attributed Graphs
  6. 2026Evaluating LLMs on Large-Scale Graph Property Estimation via Random Walks
  7. 2024Chain of History: Learning and Forecasting with LLMs for Temporal Knowledge Graph Completion
  8. 2025Exploring Graph Learning Tasks with Pure LLMs: A Comprehensive Benchmark and Investigation