Random Walk Structural Encodings for Graph Expressivity

This direction is merged into another direction: 1-WL expressivity limit. Its last version stays readable and citable here.

Version 1 of 117 papers25 conceptsfrozen 2026-10-04

Standard Graph Neural Networks (GNNs) are fundamentally limited by the 1-Weisfeiler-Lehman (1-WL) isomorphism test, meaning they cannot distinguish between certain non-isomorphic graphs that share the same local neighborhood statistics. To break this theoretical ceiling, researchers are increasingly turning to Random Walk Positional Encodings (RWPE). By treating a graph not just as a set of edges, but as a manifold for diffusion, these models capture global topology and path density that local message-passing misses.

Breaking the 1-WL Limit with Diffusion

The core intuition behind using random walks is that the probability of a walker returning to its starting point or reaching a specific neighbor reveals the "shape" of the graph. While a standard GNN only sees that a node has three neighbors, a model using RWPE, such as the Graph Perceiver IO by Hoyoon Byun et al., can see the probability of returning to that node after $k$ steps. This "structural signature" allows the model to identify cycles, cliques, and other complex motifs that are invisible to 1-WL operators.

Hsi-Wen Chen and colleagues demonstrate in their Random Walk Conformer that these encodings are strictly more expressive than standard spatial encodings. By interleaving these signatures with self-attention, the model captures both long-range dependencies and short-range motifs simultaneously.

Beyond Shortest Paths

Traditional graph transformers often use shortest-path distances to bias attention. However, Liheng Ma argues in the GRIT framework that shortest paths are too "thin"—they ignore the number of redundant paths between nodes. Random walk probabilities, by contrast, capture path density. Two nodes connected by five different paths of length three are "closer" in a diffusion sense than two nodes connected by a single path of length three. This nuance allows GRIT to achieve state-of-the-art results without using any explicit message-passing modules.

Scaling and Generalization

The versatility of random walk encodings allows them to be integrated into various architectures:

  • Classic GNNs: The GNN+ framework by Yuankai Luo shows that adding RWPE to simple models like GCN or GIN allows them to outperform heavy Graph Transformers.
  • Similarity Prediction: Haoran Zheng uses these encodings in GraSP to predict graph edit distances in linear time, bypassing expensive quadratic node-matching.
  • Higher-Order Structures: Raphaël Pellegrin extends this logic to hypergraphs, tracking walkers as they move through multi-way interactions to capture even more sophisticated topological relationships.

By shifting from "who are my neighbors?" to "how does information flow through me?", these papers provide a unified path toward graph models that are both theoretically expressive and computationally efficient.

Papers in this version

History & citationVersion 1 · 2026-10-04

Merged into another direction · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_random_walk_structural_encodings_for_gra_bf4244b2,
  title = {Random Walk Structural Encodings for Graph Expressivity},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/random-walk-structural-encodings-for-graph-expressivity/rdr_bf4244b2db0e47c1823f6f4ec7335555},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-12-02},
}

This exact version (version 1, frozen text):

@misc{lacuna_random_walk_structural_encodings_for_gra_bf4244b2_v1,
  title = {Random Walk Structural Encodings for Graph Expressivity},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/random-walk-structural-encodings-for-graph-expressivity/rdr_bf4244b2db0e47c1823f6f4ec7335555/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-12-02},
}