Abstract
Curvature notions on graphs provide a theoretical description of graph topology, highlighting bottlenecks and denser connected regions. Artifacts of the message passing paradigm in Graph Neural Networks, such as oversmoothing and oversquashing, have been attributed to these regions. However, it remains unclear how the topology of a graph interacts with the learned preferences of GNNs. Through Massive Activations, which correspond to extreme edge activation values in Graph Transformers, we probe this correspondence. Our findings on synthetic graphs and molecular benchmarks reveal that MAs do not preferentially concentrate on curvature extremes, despite their theoretical link to information flow. On the Long Range Graph Benchmark, we identify a systemic curvature shift: global attention mechanisms exacerbate topological bottlenecks, drastically increasing the prevalence of negative curvature. Our work reframes curvature as a diagnostic probe for understanding when and why graph learning fails.
Introduction: The Promise and Pitfalls of Graph Transformers
Graph Neural Networks (GNNs) primarily rely on local message passing, a paradigm that often leads to "oversquashing"—the loss of information as it is compressed through topological bottlenecks. Graph Transformers (GTs) were introduced to mitigate this by employing global attention, theoretically allowing nodes to bypass local constraints. However, the extent to which GTs actually leverage this global connectivity remains a critical question. This study investigates the relationship between graph geometry, specifically Balanced Forman Curvature (BFc), and the learned attention patterns of these models.
Methodology: Probing with Massive Activations
To understand model behavior, the researchers introduced "Massive Activations" (MAs)—statistical outliers in the attention mechanism representing edges with extreme focus. These were analyzed across several datasets, including synthetic barbell graphs designed to test a model's ability to distinguish between functional bottlenecks and distractions.
By mapping MAs back to the graph's curvature, the study determines if the model's priorities align with theoretical bottlenecks. The importance of these activations was further validated through causal pruning, removing high-attention edges to observe performance degradation.
Results: The Curvature Collapse and Functional Downgrade
The analysis reveals a phenomenon termed "Curvature Collapse." Instead of flattening the graph's topology, global attention mechanisms often amplify existing bottlenecks. On the peptides-func dataset, the prevalence of negative curvature edges jumped from 57% in the input graph to 84% in the graph induced by the model's attention.
Furthermore, the study identifies a "functional downgrade" where GTs behave like standard Message Passing Neural Networks (MPNNs), over-relying on local corridors and ignoring long-range shortcuts. Causal pruning of MAs located on bottlenecks resulted in error spikes of 22% to 27%, confirming that the models are pathologically dependent on these congested pathways.
Conclusion
These findings suggest that standard softmax-based attention may be inherently biased toward creating sparse, bottlenecked distributions. This "Attention Curse" prevents Graph Transformers from fully realizing their potential for global communication. Future work should explore geometric regularization and alternative attention mechanisms to ensure that graph learning models maintain a more efficient, "flatter" latent geometry.
Summary updated