Rethinking Graph Out-Of-Distribution Generalization: A Learnable Random Walk Perspective
Henan Sun, Xunkai Li, Lei Zhu, Junyi Han, Guang Zeng, Ronghua Li, Guoren Wang
TL;DR
The paper tackles graph OOD generalization by challenging the idea that invariant topology or spectrum reliably persists under real-world shifts. It introduces LRW-OOD, which learns invariant random-walk sequences via an OOD-aware LRW encoder and a KDE-based mutual-information loss that enforces sufficiency and invariance across environments. The authors provide theoretical connections between the LRW optimization and the graph OOD objective, along with computational guarantees, and demonstrate strong empirical performance across seven datasets with various distribution shifts, achieving a notable average gain over nine baselines. The approach leverages learnable transition matrices derived from node embeddings and integrates topology and features, offering practical robustness for node-level GNN tasks in non-i.i.d. settings.
Abstract
Out-Of-Distribution (OOD) generalization has gained increasing attentions for machine learning on graphs, as graph neural networks (GNNs) often exhibit performance degradation under distribution shifts. Existing graph OOD methods tend to follow the basic ideas of invariant risk minimization and structural causal models, interpreting the invariant knowledge across datasets under various distribution shifts as graph topology or graph spectrum. However, these interpretations may be inconsistent with real-world scenarios, as neither invariant topology nor spectrum is assured. In this paper, we advocate the learnable random walk (LRW) perspective as the instantiation of invariant knowledge, and propose LRW-OOD to realize graph OOD generalization learning. Instead of employing fixed probability transition matrix (i.e., degree-normalized adjacency matrix), we parameterize the transition matrix with an LRW-sampler and a path encoder. Furthermore, we propose the kernel density estimation (KDE)-based mutual information (MI) loss to generate random walk sequences that adhere to OOD principles. Extensive experiment demonstrates that our model can effectively enhance graph OOD generalization under various types of distribution shifts and yield a significant accuracy improvement of 3.87% over state-of-the-art graph OOD generalization baselines.
