Towards Better Dynamic Graph Learning: New Architecture and Unified Library
Le Yu, Leilei Sun, Bowen Du, Weifeng Lv
Abstract
We propose DyGFormer, a new Transformer-based architecture for dynamic graph learning. DyGFormer is conceptually simple and only needs to learn from nodes' historical first-hop interactions by: (i) a neighbor co-occurrence encoding scheme that explores the correlations of the source node and destination node based on their historical sequences; (ii) a patching technique that divides each sequence into multiple patches and feeds them to Transformer, allowing the model to effectively and efficiently benefit from longer histories. We also introduce DyGLib, a unified library with standard training pipelines, extensible coding interfaces, and comprehensive evaluating protocols to promote reproducible, scalable, and credible dynamic graph learning research. By performing exhaustive experiments on thirteen datasets for dynamic link prediction and dynamic node classification tasks, we find that DyGFormer achieves state-of-the-art performance on most of the datasets, demonstrating its effectiveness in capturing nodes' correlations and long-term temporal dependencies. Moreover, some results of baselines are inconsistent with previous reports, which may be caused by their diverse but less rigorous implementations, showing the importance of DyGLib. All the used resources are publicly available at https://github.com/yule-BUAA/DyGLib .
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext b45d0ef5-4c8b-441d-99a9-75107dabfddfCited by top-tier papers61
- FreeDyG: Frequency Enhanced Continuous-Time Dynamic Graph Model for Link PredictionYuxing Tian, Yiyan Qi, Fan GuoICLR 2024 · 58 citations
- TempME: Towards the Explainability of Temporal Graph Neural Networks via Motif DiscoveryJialin Chen, Rex YingNeurIPS 2023 · 50 citations
- On the Feasibility of Simple Transformer for Dynamic Graph ModelingYuxia Wu, Yuan Fang, Lizi LiaoWWW 2024 · 49 citations
- DyG-Mamba: Continuous State Space Modeling on Dynamic GraphsDongyuan Li, Shiyin Tan, Ying Zhang, Ming Jin et al.NeurIPS 2025 · 43 citations
- Improving Temporal Link Prediction via Temporal Walk Matrix ProjectionXiaodong Lu, Leilei Sun, Tongyu Zhu, Weifeng LvNeurIPS 2024 · 37 citations
Builds on22
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu et al.ICCV 2021 · 31,683 citations
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
- Informer: Beyond Efficient Transformer for Long Sequence Time-Series ForecastingHaoyi Zhou, Shanghang Zhang, Jieqi Peng, Shuai Zhang et al.AAAI 2021 · 7,289 citations
- Autoformer: Decomposition Transformers with Auto-Correlation for Long-Term Series ForecastingHaixu Wu, Jiehui Xu, Jianmin Wang, Mingsheng LongNeurIPS 2021 · 5,824 citations
Related papers
- Global-Lens Transformers: Adaptive Token Mixing for Dynamic Link PredictionTao Zou, Chengfeng Wu, Tianxi Liao, Junchen Ye et al.AAAI 2026
- TIDFormer: Exploiting Temporal and Interactive Dynamics Makes A Great Dynamic Graph TransformerJie Peng, Zhewei Wei, Yuhang YeKDD 2025 · 2 citations
- TFWaveFormer: Temporal-Frequency Collaborative Multi-level Wavelet Transformer for Dynamic Link PredictionHantong Feng, Yonggang Wu, Duxin Chen, Wenwu YuWWW 2026
- Triangle Matters! TopDyG: Topology-aware Transformer for Link Prediction on Dynamic GraphsXin Zhang, Fei Cai, Jianming Zheng, Zhiqiang Pan et al.WWW 2025 · 3 citations
- Repeat-Aware Neighbor Sampling for Dynamic Graph LearningTao Zou, Yuhao Mao, Junchen Ye, Bowen DuKDD 2024 · 9 citations
