cs.LGMar 2, 2026

Towards OOD Generalization in Dynamic Graphs via Causal Invariant Learning

Authors: Xinxun Zhang, Pengfei Jiao, Mengzhou Gao, Tianpeng Li, Xuan Guo

Organizations: School of Cyberspace, Hangzhou Dianzi University, China · State Key Laboratory of AI Safety, Beijing · School of Computer Science, Wuhan University, China · College of Intelligence and Computing, Tianjin University, China

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.

Figures & tables

Appendix figures & tables6 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Invariant Graph Representations for Continuous-Time Dynamic Graphs Under Distribution Shifts

    May 29, 2024Lanting Fang, Yulian Yang, Yawei Zhang +3Causal Representation LearningStructural Causal Models

  2. Adversarial Label Invariant Graph Data Augmentations for Out-of-Distribution Generalization

    Apr 9, 2026Simon Zhang, Ryan P. DeMilt, Kun Jin +1OOD GeneralizationCovariate Shift

  3. PromptDyG: Test-Time Prompt Adaptation on Dynamic Graphs

    Jun 22, 2026Guoguo Ai, Chaoxi Niu, Hui Yan +3Continual Test-Time AdaptationDynamic Graph Learning