Mitigating Over-squashing without Rewiring: A Sheaf Effective Resistance Perspective
Organizations: Getulio Vargas Foundation · Federal University of Viçosa · Federal Institute of Ceará, 2δ AI · Getulio Vargas Foundation, 2δ AI · Getulio Vargas Foundation, UFRRJ
Abstract
Graph Neural Networks (GNNs) often struggle to capture long-range dependencies due to over-squashing -- a phenomenon in which the repeated compression of node embeddings into finite-size messages causes representations to collapse. Over-squashing is most often diagnosed as a property of the graph topology, with effective resistance serving as a principled measure of the bottleneck. We provide a complementary view on the matter: building on cellular sheaves, we introduce sheaf effective resistance, a generalization of effective resistance that depends on the sheaf attached to the graph, and we prove that for flat vector bundles, the over-squashing sensitivity in the Jacobian sense is upper bounded by a quantity related to the sheaf effective resistance between the nodes. The bottleneck thus need not lie in the graph itself: it can be relocated, and reduced, by adjusting the sheaf. We instantiate this idea in FlatNSD, a simple message-passing variant of Neural Sheaf Diffusion, and show that it implicitly learns to modulate total sheaf effective resistance, performing well on benchmarks designed to stress over-squashing without altering the original graph topology.
Figures & tables
| Model | diam | ecc | sssp |
|---|---|---|---|
| A-DGN | |||
| DRew | |||
| GraphCON | |||
| GCN | |||
| GCNII | |||
| GIN |
| Model | roman-empire | amazon-ratings | minesweeper | tolokers | questions |
|---|---|---|---|---|---|
| Hom level | 0.05 | 0.38 | 0.68 | 0.59 | 0.84 |
| GCN | 73.69 ± 0.74 | 48.70 ± 0.63 | 89.75 ± 0.52 | 83.64 ± 0.67 | 76.09 ± 1.27 |
| SAGE | 85.74 ± 0.67 | 53.63 ± 0.39 | 93.51 ± 0.57 | 82.43 ± 0.44 | 76.44 ± 0.62 |
| GAT | 80.87 ± 0.30 | 49.09 ± 0.63 | 92.01 ± 0.68 | 83.70 ± 0.47 | 77.43 ± 1.20 |
| GAT-sep | 88.75 ± 0.41 | 52.70 ± 0.62 | 93.91 ± 0.35 | 83.78 ± 0.43 | 76.79 ± 0.71 |
| GT | 86.51 ± 0.73 | 51.17 ± 0.66 | 91.85 ± 0.76 | 83.23 ± 0.64 | 77.95 ± 0.68 |
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | Cora | Citeseer | Texas | Cornell | Wisconsin | Chameleon | Rel Avg Improv |
|---|---|---|---|---|---|---|---|
| GCN+NONE | 86.7 ± 0.3 | 72.3 ± 0.3 | 44.2 ± 1.5 | 41.5 ± 1.8 | 44.6 ± 1.4 | 59.2 ± 0.6 | - |
| GIN+NONE | 77.5 ± 1.2 | 59.3 ± 1.3 | 46.4 ± 4.5 | 40.2 ± 4.8 | 42.1 ± 3.6 | 56.6 ± 0.8 | - |
| SAGE+NONE | 87.1 ± 0.1 | 75.0 ± 0.1 | 82.4 ± 0.3 | 73.2 ± 0.3 | 77.3 ± 0.9 | 66.1 ± 0.9 | - |
| GCN+SDRF | 86.3 ± 0.3 | 72.6 ± 0.3 | 43.9 ± 1.6 | 42.2 ± 1.5 | 46.2 ± 1.2 | 59.4 ± 0.5 | +0.81% |
| GIN+SDRF | 77.2 ± 0.8 | 59.9 ± 1.2 | 44.5 ± 3.9 | 38.2 ± 4.1 | 43.1 ± 1.6 | 58.1 ± 1.4 | -0.57% |
| SAGE+SDRF | 87.1 ± 0.7 | 74.1 ± 0.7 | 81.9 ± 2.9 | 72.4 ± 2.5 | 76.5 ± 1.8 | 65.2 ± 1.2 | -0.88% |
| Method | Cora | Citeseer | Texas | Cornell | Wisconsin | Chameleon | Enzymes | IMDB | Mutag | Proteins |
|---|---|---|---|---|---|---|---|---|---|---|
| GCN+SDRF | 926.86 | 815.83 | 640.10 | 676.62 | 676.62 | 2087.36 | 2502.20 | 2307.62 | 710.50 | 3598.63 |
| GCN+FOSR | 945.13 | 825.15 | 522.83 | 677.56 | 677.56 | 2158.64 | 2601.29 | 2319.26 | 760.12 | 5962.85 |
| GCN+BORF | 1082.56 | 835.79 | 775.45 | 785.78 | 727.22 | 2093.88 | 4213.78 | 6410.12 | 1216.25 | 7330.80 |
| GCN+DR | 920.43 | 813.23 | 641.02 | 697.87 | 666.79 | 2148.66 | - | 2339.10 | 730.28 | 3637.15 |
| GCN+GTR | 898.48 | 791.14 | 638.70 | 710.84 | 647.71 | 2117.94 | 2589.34 | 2247.56 | 736.23 | 4023.95 |
| GCN+LASER | 1150.83 | 820.52 | 609.81 | 746.45 | 786.21 | 2143.54 | 2633.41 | 2296.16 | 741.60 | 4370.87 |
| Parameter | Node Classification | Graph Classification |
|---|---|---|
| sheaf dimension | 4 | 4 |
| # layers | 2 | 2 |
| # hidden channels | 32 | 64 |
| GNN architecture | GCN | GCN |
| # of GNN layers | 5 | 5 |
| GNN dimension | 32 | 32 |