GNNs Getting ComFy: Community and Feature Similarity Guided Rewiring

Celia Rubio-Madrigal, Adarsh Jamadandi, Rebekka Burkholz
Proceedings of the Geometry, Topology, and Machine Learning Workshop, PMLR 325:277-318, 2026.

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.\footnote[2]{This work is an extended abstract which was presented as a lightning talk at GTML 2025. It is based on a previously published work at ICLR 2025 \citep{rubio-madrigal2025gnns}. The appendix reproduces relevant material from the full paper for completeness.}

Cite this Paper


BibTeX
@InProceedings{pmlr-v325-rubio-madrigal26a, title = {GNNs Getting ComFy: Community and Feature Similarity Guided Rewiring}, author = {Rubio-Madrigal, Celia and Jamadandi, Adarsh and Burkholz, Rebekka}, booktitle = {Proceedings of the Geometry, Topology, and Machine Learning Workshop}, pages = {277--318}, year = {2026}, editor = {Bleher, Michael and Jensen, Freya and Maier, Levin and Taha, Diaaeldin and Wienhard, Anna}, volume = {325}, series = {Proceedings of Machine Learning Research}, month = {10--14 Nov}, publisher = {PMLR}, pdf = {https://raw.githubusercontent.com/mlresearch/v325/main/assets/rubio-madrigal26a/rubio-madrigal26a.pdf}, url = {https://proceedings.mlr.press/v325/rubio-madrigal26a.html}, 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.\footnote[2]{This work is an extended abstract which was presented as a lightning talk at GTML 2025. It is based on a previously published work at ICLR 2025 \citep{rubio-madrigal2025gnns}. The appendix reproduces relevant material from the full paper for completeness.}} }
Endnote
%0 Conference Paper %T GNNs Getting ComFy: Community and Feature Similarity Guided Rewiring %A Celia Rubio-Madrigal %A Adarsh Jamadandi %A Rebekka Burkholz %B Proceedings of the Geometry, Topology, and Machine Learning Workshop %C Proceedings of Machine Learning Research %D 2026 %E Michael Bleher %E Freya Jensen %E Levin Maier %E Diaaeldin Taha %E Anna Wienhard %F pmlr-v325-rubio-madrigal26a %I PMLR %P 277--318 %U https://proceedings.mlr.press/v325/rubio-madrigal26a.html %V 325 %X 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.\footnote[2]{This work is an extended abstract which was presented as a lightning talk at GTML 2025. It is based on a previously published work at ICLR 2025 \citep{rubio-madrigal2025gnns}. The appendix reproduces relevant material from the full paper for completeness.}
APA
Rubio-Madrigal, C., Jamadandi, A. & Burkholz, R.. (2026). GNNs Getting ComFy: Community and Feature Similarity Guided Rewiring. Proceedings of the Geometry, Topology, and Machine Learning Workshop, in Proceedings of Machine Learning Research 325:277-318 Available from https://proceedings.mlr.press/v325/rubio-madrigal26a.html.

Related Material