cs.LGSep 26, 2026

Learning the Graph and the Embedding Together: Classifier-Independent Rewiring for Heterophilic Node Classification

Authors: Harshit Kumar, Sujan Chakraborty, Priyanka Saha, Pritam Kar, Saptarshi Bej

Organizations: School of Data Science, Indian Institute of Science Education and Research Thiruvananthapuram, Thiruvananthapuram 695551, India

Abstract

Graph neural networks lose much of their advantage on heterophilic graphs, where connected nodes often carry different labels. Graph rewiring is a popular remedy, but rewiring methods are usually evaluated with a single classifier, which makes it hard to tell whether the gains come from the new topology or from that particular pairing. We propose an affinity-guided rewiring method that estimates the graph and the node representation together. It alternates, in the spirit of expectation maximisation, between training a lightweight graph neural network on the current graph and re-weighting candidate edges under a modularity objective with a pseudo-label homophily term. Candidate edges come from a compact pool scored by a contrastively learned node similarity and a neighbourhood-distribution affinity. The method returns two classifier-independent outputs: a rewired graph and a node embedding learned on it. Across six heterophilic benchmarks and five downstream classifiers, it improves accuracy over the original graph with normalised features in 23 of 30 classifier-dataset combinations, with a mean gain of 5.8 points, and reduces the accuracy spread between classifiers about fourfold. A controlled ablation shows that the two outputs are each useful and play complementary roles: the embedding contributes most of the accuracy gain, while the rewired graph makes different classifiers agree. A fully unsupervised variant, which uses no labels during rewiring, retains most of the improvement. The rewired graphs are also more homophilic and improve label propagation and community detection.

Figures & tables

Explore similar work

CardsList
  1. Disentangling Homophily and Rarity: Explaining Failure in Graph Neural Networks

    Aug 14, 2026Preben M. Ness, Fariz Ikhwantri, Dusica MarijanGraph Neural NetworksNode Classification

  2. Graph Cascades: Contagion-Based Mesoscopic Rewiring for Structure-Aware Graph Machine Learning

    Jun 3, 2026Meher Chaitanya, My Le, Luana RuizGraph Structure LearningGraph Rewiring

  3. Graph Neural Network leveraging Higher-order Class Label Connectivity for Heterophilous Graphs

    Jun 5, 2026Takuto Takahashi, Itsuki Nakayama, Takahiro Mitani +3Graph Neural NetworksNode Classification