GNNs Getting ComFy: Community and Feature Similarity Guided Rewiring
Celia Rubio-Madrigal, Adarsh Jamadandi, Rebekka Burkholz
TL;DR
Addresses over-squashing in GNNs by examining how spectral-gap rewiring interacts with latent community structure and graph-task alignment. Proposes three task-aware rewiring families—ComMa, FeaSt, and ComFy—grounded in SBM theory to optimize label-community alignment and feature similarity. Theoretical results link spectral gap to community strength and alignment, while extensive experiments show FeaSt excels in homophilic graphs and ComFy in heterophilic ones, with ComMa offering fast performance improvements. The work demonstrates that combining topology and feature similarity yields more reliable GNN performance across diverse graph types, paving the way for alignment-aware rewiring strategies.
Abstract
Maximizing the spectral gap through graph rewiring has been proposed to enhance the performance of message-passing graph neural networks (GNNs) by addressing over-squashing. However, as we show, minimizing the spectral gap can also improve generalization. To explain this, we analyze how rewiring can benefit GNNs within the context of stochastic block models. Since spectral gap optimization primarily influences community strength, it improves performance when the community structure aligns with node labels. Building on this insight, we propose three distinct rewiring strategies that explicitly target community structure, node labels, and their alignment: (a) community structure-based rewiring (ComMa), a more computationally efficient alternative to spectral gap optimization that achieves similar goals; (b) feature similarity-based rewiring (FeaSt), which focuses on maximizing global homophily; and (c) a hybrid approach (ComFy), which enhances local feature similarity while preserving community structure to optimize label-community alignment. Extensive experiments confirm the effectiveness of these strategies and support our theoretical insights.
