On Graph Rewiring with Motifs: A Find-and-Replace Approach
Qihao Wang, Hongtai Cao, Xiaodong Li, Matin Najafi, Kevin Chen-Chuan Chang, Reynold Cheng
Abstract
Homophily, which expects that similar nodes should be more likely to be connected, is desired in many graph analytics applications like community detection, node ranking, and node classification. However, real-world graphs may not have high homophily, so some existing works adopt graph rewiring to improve it. Existing graph rewiring techniques are often classified into spatial and spectral methods. Spatial rewiring captures hidden and indirect relations in the graph, while spectral rewiring optimizes diverse graph-based metrics. However, spatial rewiring often introduces dense connections, resulting in high computational costs. On the other hand, spectral rewiring fails to preserve local structures of the graph, causing significant changes in the original graphs. In this paper, we propose a motif-based graph rewiring method that has the benefits of both methods while avoiding their pitfalls. In particular, we propose a find-and-replace approach: we first find instances of motifs from the graph, where motifs are small and recurring patterns with rich semantics. Then we replace each motif instance with a new pattern generated by our algorithm. We discover an Injective Principle that controls the entire graph via the change of small motifs. We then theoretically analyze the quality of our framework. Extensive experiments were conducted to validate the effectiveness and efficiency of our proposed solution. The results showed that our framework outperform existing State-of-the-Art (SOTA) rewiring and graph analytics algorithms.
Ask Lune
Know where this paper stands in minutes, not an afternoon.
Lune can read the top-tier papers that cite it and the ones closest to it, and tells you what it claims, what came after and where it falls short, each point cited to the paper it comes from. No skimming, no AI slop.
Related papers
- Homophily-oriented Heterogeneous Graph RewiringJiayan Guo, Lun Du, Wendong Bi, Qiang Fu et al.WWW 2023 · 43 citations
- Locality-Aware Graph Rewiring in GNNsFederico Barbero, Ameya Velingker, Amin Saberi, Michael M. Bronstein et al.ICLR 2024 · 64 citations
- Joint Graph Rewiring and Feature Denoising via Spectral ResonanceJonas Linkerhägner, Cheng Shi, Ivan DokmanicICLR 2025
- GNNs Getting ComFy: Community and Feature Similarity Guided RewiringCelia Rubio-Madrigal, Adarsh Jamadandi, Rebekka BurkholzICLR 2025
- Challenging Low Homophily in Social RecommendationWei Jiang, Xinyi Gao, Guandong Xu, Tong Chen et al.WWW 2024 · 34 citations
