Journal of Computer Applications ›› 2026, Vol. 46 ›› Issue (7): 2104-2110.DOI: 10.11772/j.issn.1001-9081.2025070907

• Artificial intelligence • Previous Articles    

Scalable dynamic graph representation learning with neighborhood memory

Yue ZHANG1,2, Ying WANG1,2()   

  1. 1.College of Computer Science and Technology,Jilin University,Changchun Jilin 130012,China
    2.Key Laboratory of Symbol Computation and Knowledge Engineering of Ministry of Education (Jilin University),Changchun Jilin 130012,China
  • Received:2025-08-11 Revised:2025-09-27 Accepted:2025-09-28 Online:2025-11-05 Published:2026-07-10
  • Contact: Ying WANG
  • About author:ZHANG Yue, born in 2001, M. S. candidate. Her research interests include graph data mining, dynamic graph representation learning, social computing.
  • Supported by:
    Science and Technology International Cooperation Project of Jilin Provincial Department of Science and Technology(20240402067GH);National Natural Science Foundation of China(62272191)

基于邻域记忆的可扩展动态图表示学习

张玥1,2, 王英1,2()   

  1. 1.吉林大学 计算机科学与技术学院,长春 130012
    2.符号计算与知识工程教育部重点实验室(吉林大学),长春 130012
  • 通讯作者: 王英
  • 作者简介:张玥(2001—),女,吉林四平人,硕士研究生,CCF学生会员,主要研究方向:图数据挖掘、动态图表示学习、社会计算
  • 基金资助:
    吉林省科技厅国际科技合作项目(20240402067GH);国家自然科学基金资助项目(62272191)

Abstract:

Dynamic graph learning addresses graph data in which nodes and edges evolve over time. Traditional Graph Neural Networks (GNNs) typically rely on information from nodes and their neighbors, but in dynamic graph scenarios, models must capture real-time dynamic evolution information of nodes and edges while balancing global temporal dependencies and local structural details when facing large-scale data. To address these challenges, MTGN (Memory-based Temporal Graph Network), a scalable dynamic graph representation learning model with neighborhood memory was proposed to realize efficient modeling via subgraph sampling and neighborhood memory mechanism. First, a parallel temporal sampler was used for efficient subgraph sampling. Second, a cache-based node neighborhood memory mechanism was introduced to maintain node historical status dynamically. Third, temporal relationships among dynamic neighbors were modeled through an attention mechanism adaptively, thereby generating more stable and robust dynamic graph representations. Finally, experiments were conducted on four real-world datasets. The results demonstrate that MTGN has excellent prediction accuracy in the link prediction tasks with the prediction accuracies of 99.38% and 74.46% on the MOOC and LASTFM datasets, respectively. In the dynamic node classification tasks, MTGN achieves prediction accuracies of 90.50% and 79.08% on the Wikipedia and Reddit datasets, respectively, showing significant performance improvements compared to the baseline methods. Additionally, MTGN has outstanding training efficiency, reducing training time by at least 86.9% and 93.6% on the Wikipedia and Reddit datasets, respectively, compared to the baseline methods, validating its scalability for large-scale dynamic graph tasks.

Key words: Graph Neural Network (GNN), dynamic representation, neighborhood aggregation, node classification, link prediction

摘要:

动态图学习旨在处理节点和边在时间维度上变化的图数据。传统的图神经网络(GNN)通常依赖节点及其邻居的信息进行学习,而在动态图场景下的模型不仅需要实时捕获节点和边的动态演化特征,还需在面对大规模数据时,兼顾全局时序依赖与局部结构细节。为了解决上述问题,提出基于邻域记忆的可扩展动态图表示学习模型MTGN (Memory-based Temporal Graph Network),以通过子图采样与邻域记忆机制实现高效建模。首先,采用并行时间采样器进行高效的子图采样;其次,引入基于缓存的节点邻域记忆机制,以动态维护节点的历史状态;然后,在信息聚合阶段,通过注意力机制自适应地建模动态邻居之间的时序关系,从而生成更稳定且鲁棒的动态图表示;最后,在4个真实数据集上进行实验。结果表明:在链接预测任务中, MTGN在4个数据集上均表现出优秀的预测精度,在MOOC和LASTFM数据集上的预测精度分别为99.38%和74.46%;而在动态节点分类任务中, MTGN在Wikipedia和Reddit数据集上的预测精度分别为90.50%和79.08%,相较于基线方法具有显著的性能提升。此外, MTGN在训练效率上表现优异,在Wikipedia和Reddit数据集上的训练时间相较于基线方法分别至少减少86.9%和93.6%,验证了MTGN在大规模动态图任务中的可扩展性。

关键词: 图神经网络, 动态表征, 邻域聚合, 节点分类, 链接预测

CLC Number: