Abstract
Graph Neural Networks (GNNs) have emerged as powerful tools for learning from graph-structured data, leveraging message passing to diffuse information and update node representations. However, most efforts have suggested that native interactions encoded in the graph may not be friendly for this process, motivating the development of graph rewiring methods. In this work, we propose a torque-driven hierarchical rewiring strategy, inspired by the notion of torque in classical mechanics, dynamically modulating message passing to improve representation learning in heterophilous and homophilous graphs. Specifically, we define the torque by treating the feature distance as a lever arm vector and the neighbor feature as a force vector weighted by the homophily disparity between nodes. We use the metric to hierarchically reconfigure receptive field of each layer by judiciously pruning high-torque edges and adding low-torque links, suppressing the impact of irrelevant information and boosting pertinent signals during message passing. Extensive evaluations on benchmark datasets show that the proposed approach surpasses state-of-the-art rewiring methods on both heterophilous and homophilous graphs.
Introduction
Graph Neural Networks (GNNs) rely on "message passing," where nodes aggregate information from their neighbors to refine their own representations. While effective, this process is highly sensitive to the quality of the underlying graph structure. Real-world graphs often contain "spurious" edges—noise that introduces irrelevant information—or lack "missing" edges that could provide beneficial context.
A primary challenge for standard GNNs is heterophily, where connected nodes belong to different classes or possess dissimilar features. In such cases, message passing can "smear" node identities, leading to poor performance. While graph rewiring (adding or removing edges) has been proposed as a solution, identifying a principled metric to distinguish beneficial edges from harmful ones remains a significant challenge.
Torque-driven Hierarchical Rewiring (THR)
The proposed GraphTorque framework introduces a physics-inspired metric called Torque-driven Hierarchical Rewiring (THR). By drawing an analogy to classical mechanics ($τ = r \times F$), the model quantifies the "interference" an edge exerts on a node's representation.
The Physics Analogy
- The Lever Arm ($r$): Defined as the displacement vector between the features of two connected nodes. Empirical analysis shows that adversarial or noisy edges typically connect nodes that are distant in the feature space, effectively acting as long lever arms that amplify distortion.
- The Force ($F$): Defined as the neighbor's feature vector, weighted by a "homophily ratio disparity" that captures local neighborhood label differences.
- Torque ($τ$): High torque indicates an edge that is likely to "twist" or distort the target node's representation with irrelevant signals.
The Rewiring Strategy
THR employs a two-fold strategy to optimize the graph structure dynamically:
- Edge Removal: The model calculates torque for all existing edges and uses an automated thresholding mechanism to prune high-torque, high-interference connections.
- Edge Addition: To compensate for missing information, the model identifies "similar peers" and uses the Gumbel-Softmax trick to add low-torque (high-benefit) edges during training.
- Hierarchical Evolution: Unlike static rewiring, THR re-evaluates the graph at every GNN layer, allowing the receptive field to evolve as node representations improve.
Experimental Evaluation
The authors evaluated GraphTorque on 11 benchmark datasets, ranging from homophilous citation networks (e.g., Cora, Pubmed) to large-scale heterophilous interaction graphs (e.g., Penn94, Flickr).
Key Results
GraphTorque consistently outperformed state-of-the-art rewiring methods such as FoSR, BORF, and DHGR. The gains were particularly massive on heterophilous datasets. For instance, using a GCN backbone, THR improved accuracy on the Texas dataset from 58.61% to 76.27%, and on Wisconsin from 52.60% to 68.09%.
The method also demonstrated universality, providing consistent improvements across various GNN backbones including GCN, GPRGNN, and APPNP. Furthermore, the approach scales effectively to large graphs like Flickr (89k nodes, 2.7M edges) with a manageable complexity of $O(|A| \log |A|)$.
Conclusion
GraphTorque demonstrates that a physics-inspired torque metric can effectively guide graph rewiring to mitigate the negative effects of heterophily and noise. While the hierarchical sorting adds some computational overhead, the significant performance gains—especially on challenging heterophilous graphs—make it a robust and versatile module for modern GNN architectures. Future work may explore further optimizations to reduce depth-related bottlenecks in extremely large-scale networks.
Summary updated