Learning dynamic graph representations through timespan view contrasts.

Journal: Neural networks : the official journal of the International Neural Network Society
PMID:

Abstract

The rich information underlying graphs has inspired further investigation of unsupervised graph representation. Existing studies mainly depend on node features and topological properties within static graphs to create self-supervised signals, neglecting the temporal components carried by real-world graph data, such as timestamps of edges. To overcome this limitation, this paper explores how to model temporal evolution on dynamic graphs elegantly. Specifically, we introduce a new inductive bias, namely temporal translation invariance, which illustrates the tendency of the identical node to keep similar labels across different timespans. Based on this assumption, we develop a dynamic graph representation framework CLDG that encourages the node to maintain locally consistent temporal translation invariance through contrastive learning on different timespans. Except for standard CLDG which only considers explicit topological links, our further proposed CLDG++additionally employs graph diffusion to uncover global contextual correlations between nodes, and designs a multi-scale contrastive learning objective composed of local-local, local-global, and global-global contrasts to enhance representation capabilities. Interestingly, by measuring the consistency between different timespans to shape anomaly indicators, CLDG and CLDG++are seamlessly integrated with the task of spotting anomalies on dynamic graphs, which has broad applications in many high-impact domains, such as finance, cybersecurity, and healthcare. Experiments demonstrate that CLDG and CLDG++both exhibit desirable performance in downstream tasks including node classification and dynamic graph anomaly detection. Moreover, CLDG significantly reduces time and space complexity by implicitly exploiting temporal cues instead of complicated sequence models. The code and data are available at https://github.com/yimingxu24/CLDG.

Authors

  • Yiming Xu
    Department of Computer Science and Technology, Tsinghua University, Beijing, China.
  • Zhen Peng
    State Key Laboratory of Food Science & Technology, No. 235 Nanjing East Road, Nanchang, Jiangxi, 330047, PR China; School of Food Science & Technology, Nanchang University, No. 235 Nanjing East Road, Nanchang, Jiangxi, 330047, PR China.
  • Bin Shi
    Department of Materials Science and Engineering, University of Toronto, ON M5S 3H5, Canada. Electronic address: binmse.shi@mail.utoronto.ca.
  • Xu Hua
    School of Computer Science and Technology, Xi'an Jiaotong University, PR China. Electronic address: huaxu@stu.xjtu.edu.cn.
  • Bo Dong
    Department of Cardiology, Tianjin Chest Hospital, No 261, Taierzhuang South road, Jinnan district, Tianjin, 300222, China.