Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

GNNs Getting ComFy: Community and Feature Similarity Guided Rewiring

About

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.

Celia Rubio-Madrigal, Adarsh Jamadandi, Rebekka Burkholz• 2025

Related benchmarks

TaskDatasetResultRank
Node ClassificationCiteseer (test)
Accuracy0.7819
1013
Node ClassificationCora (test)
Mean Accuracy87.26
951
Node ClassificationSquirrel
Accuracy33.7
815
Node ClassificationCora
Accuracy80.8
609
Node ClassificationChameleon (test)
Mean Accuracy65.2
425
Node ClassificationCornell (test)
Mean Accuracy31.11
403
Node ClassificationTexas (test)
Mean Accuracy30
402
Node ClassificationRoman-Empire
Accuracy79.53
398
Node Classificationamazon-ratings
Accuracy49.45
354
Node ClassificationSquirrel (test)
Mean Accuracy53.88
353
Showing 10 of 22 rows

Other info

Follow for update