Rethinking Graph Out-Of-Distribution Generalization: A Learnable Random Walk Perspective

Henan Sun, Xunkai Li, Lei Zhu, Junyi Han, Guang Zeng +2 more
5/9/2025
cs.LG

No confident code implementation found for this paper.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{sun2025rethinking,
  title  = {Rethinking Graph Out-Of-Distribution Generalization: A Learnable Random Walk Perspective},
  author = {Henan Sun and Xunkai Li and Lei Zhu and Junyi Han and Guang Zeng and Ronghua Li and Guoren Wang},
  year   = {2025},
  eprint = {2505.05785},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.05785v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.05785.svg)](https://codeofpaper.com/paper/2505.05785)

Discussion