Expander Graph Propagation

Andreea Deac, Marc Lackenby, Petar Veličković

Abstract

Deploying graph neural networks (GNNs) on whole-graph classification or regression tasks is known to be challenging: it often requires computing node features that are mindful of both local interactions in their neighbourhood and the global context of the graph structure. GNN architectures that navigate this space need to avoid pathological behaviours, such as bottlenecks and oversquashing, while ideally having linear time and space complexity requirements. In this work, we propose an elegant approach based on propagating information over expander graphs. We leverage an efficient method for constructing expander graphs of a given size, and use this insight to propose the EGP model. We show that EGP is able to address all of the above concerns, while requiring minimal effort to set up, and provide evidence of its empirical utility on relevant graph classification datasets and baselines in the Open Graph Benchmark. Importantly, using expander graphs as a template for message passing necessarily gives rise to negative curvature. While this appears to be counterintuitive in light of recent related work on oversquashing, we theoretically demonstrate that negatively curved edges are likely to be required to obtain scalable message passing without bottlenecks. To the best of our knowledge, this is a previously unstudied result in the context of graph representation learning, and we believe our analysis paves the way to a novel class of scalable methods to counter oversquashing in GNNs.

Introduction: The "Nearsightedness" of GNNs

Graph Neural Networks (GNNs) have traditionally struggled with a "nearsightedness" problem. While they excel at learning from a node's immediate neighborhood, capturing the global structure of a graph remains a significant hurdle. Most GNNs rely on message passing, where nodes iteratively aggregate information from their neighbors. To reach a node $k$ hops away, a model requires $k$ layers. However, stacking many layers to achieve global reach often leads to two critical failures:

  1. Bottlenecks: Structural features, such as a single edge connecting two large clusters (a "bridge"), can become overwhelmed by the volume of information they must transmit.
  2. Oversquashing: As information travels across the graph, it is repeatedly compressed into fixed-size vectors. By the time a signal reaches a distant node, it is often indistinguishable from noise.
A barbell graph illustrating a structural bottleneck where a single edge connects two dense clusters.

Existing attempts to solve these issues, such as fully connected graphs or master nodes, often suffer from quadratic complexity ($O(V^2)$) or create new bottlenecks.

Methods: Expander Graph Propagation (EGP)

To address these challenges, we introduce Expander Graph Propagation (EGP). This method utilizes Expander Graphs—mathematical structures that are sparse (low degree) yet highly connected (logarithmic diameter).

The EGP Architecture

EGP overlays a "virtual" expander graph template on top of the original graph's nodes. The model alternates between two types of layers:

  • Standard GNN Layers: These operate on the original input graph to capture local features (e.g., chemical bonds in a molecule).
  • EGP Layers: These communicate over the expander graph template to provide global context.

By using Cayley graphs (specifically from the group $SL(2, \mathbb{Z}_n)$) as templates, we ensure the expander is 4-regular. This maintains $O(V)$ time and space complexity, making EGP as efficient as standard GNNs while providing the global reach of fully connected models.

Comparison between a standard graph topology (left) and the EGP approach (right) which overlays a sparse, highly-connected expander template.

Theoretical Insights: The Curvature Paradox

A key theoretical contribution of this work is the analysis of graph curvature. While recent research suggested that negative curvature causes oversquashing, expander graphs are inherently negatively curved. We demonstrate that negative curvature is actually necessary for sparse communication without bottlenecks. EGP operates in a "Goldilocks zone" where the curvature is negative enough to ensure connectivity but not so extreme as to cause pathological squashing.

Experimental Results

We evaluated EGP across several benchmarks, focusing on its ability to resist oversquashing and scale to large datasets.

  • Synthetic Benchmarks: On the Tree-NeighborsMatch task, designed to fail under oversquashing, standard GIN models achieved only 29% accuracy. EGP achieved a perfect 100% accuracy.
  • Open Graph Benchmark (OGB):
    • On ogbg-molhiv, EGP improved ROC-AUC from a 0.7558 baseline to 0.7934.
  • On the large-scale ogbg-ppa dataset, EGP outperformed all baselines with 0.7027 accuracy, while fully connected models failed due to memory constraints.

Conclusion

EGP represents a scalable, efficient solution to the oversquashing problem in GNNs. By satisfying the four criteria of an ideal global GNN—global propagation, no bottlenecks, subquadratic complexity, and minimal preprocessing—it provides a robust framework for whole-graph representation learning. Future work will explore learning the alignment between input graphs and expander templates to further enhance performance.

Summary updated

BibTeX
@inproceedings{deac2022expander,
  author = {Andreea Deac and Marc Lackenby and Petar Veličković},
  title = {{Expander Graph Propagation}},
  booktitle = {LoG},
  year = {2022},
  url = {https://openreview.net/forum?id=IKevTLt3rT},
}
Figure