Introduction
Graph Neural Networks (GNNs) have become the standard for learning on graph-structured data, largely relying on the "homophily assumption"—the principle that connected nodes are likely to share similar features or labels. However, real-world graphs are rarely perfect; they often contain "noisy" edges that do not contribute to the task at hand or exhibit "heterophily," where connected nodes are intentionally dissimilar. While existing metrics like homophily ratios attempt to quantify these properties, they are fundamentally model-agnostic. They fail to account for how specific GNN architectures, such as GCN or GAT, interact with the graph's topology. This paper introduces TopoInf, a novel metric that measures the influence of individual edges on specific downstream tasks by quantifying the compatibility between graph structure and model objectives.
The TopoInf Framework
To bridge the gap between topology and task performance, the authors propose a framework centered on a Compatibility Score ($C(A)$). This score evaluates how well a GNN's graph filter—the mechanism used to smooth and aggregate data—aligns with the ideal task labels. The score balances two components: a similarity term, which measures the proximity of filtered labels to ground-truth labels, and a regularization term, which ensures the model utilizes the graph structure rather than ignoring it.
Quantifying Edge Influence
TopoInf is defined as the "derivative" of this compatibility score with respect to the graph's topology. Specifically, it measures the change in compatibility when a single edge ($e_{ij}$) is removed:
- Positive TopoInf: Removing the edge increases compatibility, indicating the edge is "noise" that hinders the model.
- Negative TopoInf: Removing the edge decreases compatibility, indicating the edge provides a valuable "signal" for the task.
Addressing Non-linearity and Missing Labels
Because modern GNNs utilize non-linear activations like ReLU, calculating a direct derivative is complex. The authors address this by approximating the graph filter using the model's linear backbone (e.g., $A^K$ for a K-layer GCN). Furthermore, in scenarios where labels are partially unavailable, the framework utilizes "pseudo-labels" generated from an initial training pass to estimate TopoInf values.
Experimental Evaluation
The researchers evaluated TopoInf across six node classification benchmarks, including citation networks (Cora, CiteSeer, PubMed), Amazon product graphs (Computers, Photos), and the heterophilous Actor network. These tests spanned nine GNN architectures, including GCN, GAT, APPNP, and GPRGNN.
Key Insights
- The Bias-Noise Tradeoff: Theoretical analysis using Contextual Stochastic Block Models reveals that graph filtering is a double-edged sword. While it reduces feature noise, it can introduce topological bias if the edges are misleading. TopoInf effectively identifies the point where this tradeoff is optimized.
- Model-Specific Sensitivity: The value of an edge is not intrinsic; it depends on the architecture. TopoInf captures this by incorporating the specific graph filter of the chosen model.
- The "S-Curve" of Performance: When edges are ranked by TopoInf and removed sequentially, performance follows an S-shaped curve. Removing the highest-TopoInf edges (the most harmful noise) leads to immediate accuracy gains, while removing low-TopoInf edges (the strongest signals) causes performance to drop sharply.
Results and Applications
TopoInf demonstrates significant utility in graph refinement and regularization:
- Accuracy Improvements: By pruning a small percentage of high-TopoInf edges, the authors improved GCN performance on CiteSeer from 68.7% to 70.0% and on PubMed from 77.9% to 78.8%.
- Superiority Over Baselines: TopoInf consistently outperformed AdaEdge, a popular homophily-based rewiring method, proving that model-aware metrics are more effective than label-consistency alone.
- Enhanced Regularization: The metric can improve "DropEdge" techniques. By dropping edges with high TopoInf more frequently rather than dropping them randomly, the model achieves better generalization.
- Robustness to Heterophily: On the Actor dataset, which is traditionally difficult for GNNs due to low homophily, TopoInf successfully identified and removed misleading edges to refine the graph structure.
Limitations and Future Work
While powerful, TopoInf relies on the quality of initial pseudo-labels; if the starting model is exceptionally poor, the resulting estimates may be inaccurate. Additionally, the current linear approximation of GNN filters may overlook subtle interactions in very deep or highly non-linear architectures. Future research aims to extend TopoInf to characterize the influence of entire subgraphs or motifs and to develop more sophisticated estimation methods for complex, non-linear models.
Summary updated