TL;DR
While expander-graph rewiring reduces information bottlenecks (oversquashing) in Graph Neural Networks (GNNs) by optimizing average commute time globally, it ignores domain-specific knowledge about which nodes need to communicate. This paper introduces targeted, sparse Cayley expander rewirings that bake in expert interaction priors—such as long-range spatial distances or shared node attributes. Across synthetic benchmarks and a real-world citation graph, these prior-informed sparse rewirings achieve superior out-of-distribution generalization, faster training convergence, and significant gains in low-label regimes without the massive overhead of fully-connected graph transformers.
What Problem Does This Paper Address?
Standard message-passing GNNs suffer from oversquashing: graph bottlenecks force an exponential amount of information into fixed-size node vectors. Non-parametric graph rewiring techniques alleviate this by adding edges to decrease the graph’s commute time and diameter—frequently via sparse expander graphs (such as Cayley graphs).
However, existing expander methods optimize commute times uniformly on average. In reality, scientists often have strong domain priors about which entities interact. For instance, in a folded protein, specific residues far apart along the backbone become close in 3D space, or atoms of a particular type interact preferentially. Adding edges uniformly wastes capacity on irrelevant node pairs, while adding a complete set of all-to-all edges (like Graph Transformers) introduces redundant messages, quadratic complexity, and poor out-of-distribution (OOD) generalization. The authors tackle how to inject domain priors directly into commute-time-optimized, sparse rewirings.
Methods
The authors interleave standard message-passing layers (using Graph Isomorphism Networks, or GIN) with message passing over a rewired graph tailored to specific interaction priors:
- Aligned Cayley Expanders (
aligned-cayley) for Salient Pairs: When specific pairs (e.g., nodes at graph distance $d$) need to interact alongside residual global communication, random node mapping onto a Cayley expander is suboptimal. The authors use a fast, greedy graph alignment heuristic (Algorithm 1) approximating the maximum common edge subgraph between distance-$d$ edges and a Cayley expander, ensuring prioritized node pairs are directly connected in the expander layer. - Cayley Clusters (
cayley-clusters) for Group Interactions: When nodes sharing categorical attributes or "communities" need to interact, the authors construct independent, sparse Cayley expanders spanning only the nodes within each cluster. - Feature-Inferred Cayley Clusters (
mlp-cayley-clusters): In practical settings lacking ground-truth groups, a weak MLP trained strictly on node features predicts pseudo-classes, which are then used to build the Cayley cluster rewiring.
Datasets
The authors evaluate their approach on three datasets, emphasizing out-of-distribution (OOD) size generalization:
- Synthetic Data A (Salient Pair Interactions): Built on molecular topologies from ZINC (train graphs: 20–30 nodes; test graphs: 30–35 nodes). Node values are sampled from $\mathcal{U}(0, 1)$, and regression targets combine 1-hop interactions, target distance-$d$ interactions ($d=5$), and all-pair background interactions.
- Synthetic Data B (Community Interactions): Built on larger peptide topologies from Peptides-struct (LRGB) (train graphs: 75–125 nodes; test graphs: 125–175 nodes). A subset of nodes is assigned one of four colors, with regression targets driven by 1-hop and same-color interactions.
- ogbn-arxiv: A real-world citation benchmark for transductive paper category classification under homophily.
Key Insights and Ideas
- Sparsity Beats Clitoral Cliques for OOD: Fully connected baselines (
fully-connectedandfully-connected-clusters) performed catastrophically worse (often orders of magnitude higher MSE) than sparse expanders on larger test graphs. Dense cliques create redundant messages that cause models to overfit to specific training graph sizes. - Targeted Alignment Matters: When salient distance-$d$ interactions are moderate, aligning the Cayley expander to match those edges reduced error significantly more than standard, randomly mapped Cayley expanders.
- Robustness to Bad Priors: When tested with irrelevant or purely random priors (
random-cayley-clusters), the model converged to the baseline without hurting performance, indicating the inductive bias does not corrupt base message passing.
Key Results
- Synthetic Data A: Under realistic conditions with both salient interactions ($c_2 = 0.1$) and weak global interactions ($c_3 = 0.2$),
cayleyreduced MSE to 70% of the no-rewiring baseline, whilealigned-cayleyfurther reduced MSE to 50%. Dense cliques failed by several orders of magnitude. - Synthetic Data B: When community interactions dominated ($c_2/c_1 = 100$),
cayley-clustersoutperformed all methods, whereas dense cluster cliques yielded MSEs an order of magnitude worse than no rewiring. - ogbn-arxiv Case Study:
- Sanity check: Imputing clusters with ground-truth labels pushed validation accuracy from 62% to the high-90s%.
- Weak MLP prior: Using
mlp-cayley-clustersachieved identical final accuracy (~200 epochs) to baselines with substantially faster convergence in early epochs. - Data scarcity: Under extreme train-label subsampling ($10^{-3}$ fraction),
mlp-cayley-clustersprovided statistically significant validation accuracy gains over both Cayley and base-graph baselines.
Limitations and Future Work
- Heuristic Alignment: The greedy graph alignment algorithm used for
aligned-cayleyis an approximation of an NP-hard problem; tree-search or reinforcement learning could yield better alignments at higher compute cost. - Expander Trimming: Trimming Cayley graphs via BFS to arbitrary node sizes compromises theoretical expansion guarantees; keeping virtual nodes with zero features was noted as a potential alternative.
- Benchmark Scope: The real-world case study is limited to
ogbn-arxivwithout hyperparameter tuning; validating domain-expert priors on real molecular/protein 3D benchmarks remains open for future work.
Summary updated