Towards OOD Generalization in Dynamic Graphs via Causal Invariant Learning

Authors

  • Xinxun Zhang School of Cyberspace, Hangzhou Dianzi University, China State Key Laboratory of AI Safety, Beijing School of Computer Science, Wuhan University, China
  • Pengfei Jiao School of Cyberspace, Hangzhou Dianzi University, China State Key Laboratory of AI Safety, Beijing
  • Mengzhou Gao School of Cyberspace, Hangzhou Dianzi University, China
  • Tianpeng Li College of Intelligence and Computing, Tianjin University, China
  • Xuan Guo College of Intelligence and Computing, Tianjin University, China

DOI:

https://doi.org/10.1609/aaai.v40i19.38676

Abstract

Although dynamic graph neural networks (DyGNNs) have demonstrated promising capabilities, most existing methods ignore out-of-distribution (OOD) shifts that commonly exist in dynamic graphs. Dynamic graph OOD generalization is non-trivial due to the following challenges: 1) Identifying invariant and variant patterns amid complex graph evolution, 2) Capturing the intrinsic evolution rationale from these patterns, and 3) Ensuring model generalization across diverse OOD shifts despite limited data distribution observations. Although several attempts have been made to tackle these challenges, none has successfully addressed all three simultaneously, and they face various limitations in complex OOD scenarios. To solve these issues, we propose a Dynamic graph Causal Invariant Learning (DyCIL) model for OOD generalization via exploiting invariant spatio-temporal patterns from a causal view. Specifically, we first develop a dynamic causal subgraph generator to identify causal dynamic subgraphs explicitly. Next, we design a causal-aware spatio-temporal attention module to extract the intrinsic evolution rationale behind invariant patterns. Finally, we further introduce an adaptive environment generator to capture the underlying dynamics of distributional shifts. Extensive experiments on both real-world and synthetic dynamic graph datasets demonstrate the superiority of our model over state-of-the-art baselines in handling OOD shifts.

Downloads

Published

2026-03-14

How to Cite

Zhang, X., Jiao, P., Gao, M., Li, T., & Guo, X. (2026). Towards OOD Generalization in Dynamic Graphs via Causal Invariant Learning. Proceedings of the AAAI Conference on Artificial Intelligence, 40(19), 16379–16387. https://doi.org/10.1609/aaai.v40i19.38676

Issue

Section

AAAI Technical Track on Data Mining & Knowledge Management III