DyG2Vec: Efficient Representation Learning for Dynamic Graphs
Mohammad Ali Alomrani, Mahdi Biparva, Yingxue Zhang, Mark Coates
TL;DR
DyG2Vec tackles inefficiency in dynamic-graph representation by introducing a window-based, attention-driven encoder with temporal edge encodings, enabling task-agnostic node embeddings. It adds a non-contrastive SSL objective for pre-training on unlabeled dynamic graphs, followed by downstream training with a fixed history window. Empirically, it achieves state-of-the-art performance on seven real-world benchmarks for future link prediction (about 4.23% transductive and 3.30% inductive gains) while delivering 5–10x faster training and inference, with SSL providing additional gains in low-label regimes. These results demonstrate scalable, robust learning of temporal patterns and motifs in large CTDGs, highlighting the value of window-based priors and SSL in dynamic graph modeling.
Abstract
Temporal graph neural networks have shown promising results in learning inductive representations by automatically extracting temporal patterns. However, previous works often rely on complex memory modules or inefficient random walk methods to construct temporal representations. To address these limitations, we present an efficient yet effective attention-based encoder that leverages temporal edge encodings and window-based subgraph sampling to generate task-agnostic embeddings. Moreover, we propose a joint-embedding architecture using non-contrastive SSL to learn rich temporal embeddings without labels. Experimental results on 7 benchmark datasets indicate that on average, our model outperforms SoTA baselines on the future link prediction task by 4.23% for the transductive setting and 3.30% for the inductive setting while only requiring 5-10x less training/inference time. Lastly, different aspects of the proposed framework are investigated through experimental analysis and ablation studies. The code is publicly available at https://github.com/huawei-noah/noah-research/tree/master/graph_atlas.
