Abstract
Graph Neural Networks (GNNs) frequently struggle with expressiveness, particularly in distinguishing non-isomorphic graphs or counting substructures. Existing solutions like Random Node Features (RNF) and Spectral Positional Encodings (PE) offer theoretical benefits but face practical hurdles such as inconsistent performance or high computational costs. This paper proposes Random Feature Propagation (RFP), a unified framework that iteratively propagates and normalizes random features to generate expressive positional encodings. By capturing the full trajectory of the propagation process, RFP enables GNNs to leverage both local structural information and global spectral properties, significantly improving performance across diverse graph-based tasks.
Introduction
Standard Message-Passing Neural Networks (MPNNs) are limited by the 1-Weisfeiler-Lehman (1-WL) test, preventing them from identifying simple substructures like triangles or cycles. To overcome this, researchers typically augment node features using two distinct paradigms:
- Random Node Features (RNF): Assigning random identifiers to nodes to increase theoretical expressiveness.
- Spectral Positional Encoding (PE): Utilizing eigenvectors of the graph Laplacian or adjacency matrices.
However, RNF often fails to generalize, and exact spectral decomposition is computationally prohibitive for large-scale graphs. RFP bridges these methods by using iterative matrix eigensolvers—like the power method—to generate features that converge toward dominant eigenvectors while preserving valuable intermediate structural information.
Methodology: Random Feature Propagation
RFP is inspired by iterative numerical methods for eigenvalue computation. The process consists of four primary stages:
- Initialization: Nodes are assigned $k$-dimensional random features drawn from standard distributions (e.g., Normal or Rademacher).
- Propagation: Features are multiplied by a propagation operator, such as the normalized adjacency matrix or a learnable attention-based operator.
- Normalization: To prevent numerical instability, features are periodically normalized using channel-wise $L_2$ normalization or joint QR orthonormalization.
- Trajectory Concatenation: Unlike traditional methods that only use the final converged state, RFP concatenates the initial random features and all intermediate steps into a "trajectory" tensor.
This trajectory serves as the positional encoding. The inclusion of early propagation steps is crucial; these steps act as randomized Monte Carlo simulations (Hutchinson trace estimators) that allow the GNN to count local substructures. For enhanced performance, multiple trajectories can be processed in parallel using the equivariant DSS-GNN architecture.
Experimental Results
The authors evaluated RFP on a variety of benchmarks, including molecular property prediction (ZINC-12k, OGBG-MOLHIV) and node classification on both homophilic and heterophilic graphs.
Graph and Node Classification
RFP demonstrated superior performance over standard GNNs and existing PE methods. On the ZINC-12k dataset, RFP achieved a Mean Absolute Error (MAE) of 0.1106, outperforming standard GIN (0.163) and pure Laplacian eigenvectors (0.1557).
The gains were even more pronounced in node classification tasks, particularly on heterophilic datasets where traditional message passing often fails. For instance, on the Squirrel dataset, RFP reached 54.97% accuracy, a significant jump from the 23.96% achieved by a base GCN.
Scalability and Theoretical Expressiveness
On the ogbn-arxiv dataset, RFP proved to be a scalable alternative to exact eigendecomposition, which was impractical for a graph of that size. RFP improved base GCN accuracy while maintaining efficient inference times (61ms per forward pass). Furthermore, synthetic tests confirmed RFP's ability to count triangles and cycles, validating its theoretical advantages over standard MPNNs.
Conclusion
Random Feature Propagation offers a robust and scalable framework for augmenting GNNs with positional information. By treating the iterative convergence to eigenvectors as a feature-rich trajectory, RFP captures both local and global graph topology. Future work includes optimizing the computational overhead of processing multiple trajectories and exploring end-to-end parametric models for learning propagation operators.
Summary updated