NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

RaWaNet: Enriching Graph Neural Network Input via Random Walks on Graphs

Anahita Iravanizad, Edgar Ivan Sanchez Medina, Martin StollarXiv 2021

Introduction

RaWaNet enriches Graph Neural Network (GNN) inputs by pre-calculating multiple adjacency matrices and weighted node features based on random walks of varying lengths. By capturing both local and global graph dynamics at the input stage, the authors demonstrate that simple, shallow networks can outperform complex, deep architectures on molecular property prediction tasks.

The Challenge: Complexity vs. Data Quality

In the world of Graph Neural Networks, the prevailing trend is "deeper is better." Researchers typically focus on designing increasingly complex convolutional or pooling layers to extract hidden representations from a graph's basic descriptors: node features ($X$), the adjacency matrix ($A$), and edge features ($W$).

However, deep GNNs come with significant baggage: they are computationally expensive, prone to "over-smoothing" (where node representations become indistinguishable), and often rely heavily on edge features (like chemical bond types) which may not always be the most efficient way to represent topology. RaWaNet asks: What if we spent more effort enriching the input data itself so the network doesn't have to be so complex?

Methods

The core of RaWaNet is a data preprocessing step that generates a "multi-view" input for the GNN. Instead of a single adjacency matrix, it provides three distinct perspectives:

Overview of RaWaNet's multi-view input generation via random walks.
  1. Local Dynamics ($A_1, A_2$): Standard random walks of length 1 and 2. $A_2$ (with self-loops removed) helps the network see "neighbors of neighbors" immediately.
  2. Global Dynamics ($A_\gamma$): A "fractional" random walk based on the fractional Laplacian ($L^\gamma$). Unlike standard walks that stay local, fractional walks allow the "walker" to jump to distant nodes, capturing long-range dependencies and global structure.
  3. Stationary Distribution Weighting: For each walk, the authors calculate its stationary distribution ($\pi$). This vector represents the probability of a walker being at a certain node in the long run. They use this to scale the initial node features ($X_k = \text{diag}(\pi_k)X$), essentially telling the network which nodes are topologically "important" before training even begins.

The resulting "enriched" input $(A, X, A_1, X_1, A_2, X_2, A_\gamma, X_\gamma)$ is then fed into a relatively simple network—often just a single linear layer or a very shallow MLP.

Key Insights

  • Input Enrichment vs. Model Depth: The paper proves that a "smart" input can compensate for a "dumb" (shallow) model. This challenges the necessity of deep stacking in GNNs for many tasks.
  • The Power of Fractional Walks: By using the fractional Laplacian, the model gains a global "bird's-eye view" of the graph without needing dozens of layers to propagate information across the diameter of the graph.
  • Topology as a Feature: By scaling node features with stationary distributions, the model treats a node's structural importance as an intrinsic part of its identity, rather than something the network has to learn from scratch.
  • Edge Features aren't Always Mandatory: Remarkably, RaWaNet often outperformed models that used bond (edge) features, even though RaWaNet ignored them, relying solely on enriched atom (node) and adjacency information.

Key Results

RaWaNet was evaluated primarily on molecular datasets where graph structure represents chemical bonds and atoms. The results demonstrate that shallow networks powered by RaWaNet can match or exceed the performance of state-of-the-art deep models.

Performance comparison on OGB classification datasets.
  • Outperforming Deep Models: On the ogbg-molhiv classification task, a RaWaNet-powered shallow network achieved 79.79% ROC-AUC, outperforming well-known deep models like GIN with virtual nodes (77.07%) and DGN (79.70%).
  • Regression Success: In the ogbg-molesol task, RaWaNet achieved an RMSE of 0.922, significantly better than the GIN benchmark of 0.998.
  • Efficiency in Combustion Tasks: For MON, RON, and DCN datasets, RaWaNet consistently produced lower Mean Absolute Errors (MAE) than previous GNN benchmarks while using a much smaller parameter footprint.
  • Classical ML Boost: When using RaWaNet embeddings with a simple Random Forest, the authors outperformed state-of-the-art GNNs on the HIV dataset.

Limitations and Future Work

While promising, RaWaNet has some constraints. The random walk mathematics requires connected graphs; for disconnected molecular graphs, the authors used a "virtual node" workaround. Additionally, calculating the fractional Laplacian involves eigen-decomposition, which can be computationally taxing for extremely large graphs, though it remains negligible for small molecular graphs. Future work will investigate how these enriched inputs perform on much larger social or citation networks and explore optimal hyperparameter tuning for $\gamma$.

Summary updated

BibTeX
@misc{iravanizad2021rawanet,
  author = {Anahita Iravanizad and Edgar Ivan Sanchez Medina and Martin Stoll},
  title = {{RaWaNet: Enriching Graph Neural Network Input via Random Walks on Graphs}},
  year = {2021},
  eprint = {2109.07555},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2109.07555},
}
Figure