arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.22266cs.LGcs.AI
收藏

LLMTM:动态图中基于时间 motif 分析的 LLM 评估与优化

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

Bing Hao, Minglai Shao, Zengyi Wo, Yunlong Chu, Yuhang Liu, Ruijie Wang

AI总结:

本文提出 LLMTM 基准测试,评估 LLM 在动态图时间 motif 分析中的性能,并开发结构感知调度器以优化效率与精度的平衡。

摘要:

大型语言模型(LLMs)的广泛应用促使人们对其处理动态图能力的兴趣日益增长。时间 motif 作为动态图的基本单元和重要的局部属性,能够直接反映异常和独特现象,对于理解其演化动态和结构特征至关重要。然而,利用 LLMs 对动态图进行时间 motif 分析仍较为鲜为人知。在本文中,我们系统研究了 LLM 在时间 motif 相关任务上的表现。具体而言,我们提出了一个全面的基准测试,称为 LLMTM(大型语言模型在时间 motif 中的应用),其中包括九种时间 motif 类型下的六个定制任务。我们随后进行了广泛的实验,分析了不同提示技术及 LLM(包括九个模型:openPangu-7B、DeepSeek-R1-Distill-Qwen 系列、Qwen2.5-32B-Instruct、GPT-4o-mini、DeepSeek-R1 和 o3)对模型性能的影响。受我们基准测试发现的启发,我们开发了一个工具增强的 LLM 代理,利用精确工程化的提示来解决这些任务并实现高精度。然而,代理的高精度带来了显著的成本。为了解决这一权衡,我们提出了一种简单而有效的结构感知调度器,考虑了动态图的结构属性和 LLM 的认知负荷,以智能地在标准 LLM 提示和更强大的代理之间调度查询。我们的实验表明,结构感知调度器在保持高精度的同时有效降低了成本。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑