In standard machine learning, data points are typically assumed to be independent. If you remove one image from a training set, it doesn't alter the features of the remaining images. However, graph data is inherently interdependent. In a Graph Convolutional Network (GCN), removing a single edge or node doesn't just eliminate a data point; it disrupts the "message passing" flow, altering the representations of all neighboring nodes within multiple hops.
Understanding which specific edges or nodes are most responsible for a model's prediction has traditionally required "leave-one-out" retraining—literally removing the element and training the whole model from scratch. For large graphs, this is computationally prohibitive. This paper introduces a mathematical framework to measure the "influence" of specific nodes and edges on a GCN without the need for expensive model retraining.
Deriving Influence for Graph Convolutions
To tackle the challenge of estimating counterfactual effects efficiently, the authors focus their derivation on Simple Graph Convolution (SGC). SGC is a linearized version of GCNs that removes non-linear activations between layers. This makes the optimization problem convex and significantly easier to analyze mathematically, while still maintaining competitive performance on many tasks.
The core technical contributions include:
- Representational Change Modeling: The authors formulated exactly how node embeddings change when an edge or node is removed, carefully accounting for shifts in the adjacency matrix and the normalization of the degree matrix.
- Influence Function Derivation: Using the Hessian matrix (the second-order derivative of the loss), they derived a closed-form approximation for parameter changes. They treat the representational shift as a form of "data reweighting," where the old representation is removed and the new, perturbed one is added.
- Theoretical Error Bounds: The paper provides a theoretical upper bound on the estimation error, demonstrating that the approximation is more accurate when the model has stronger $\ell_2$ regularization and when graph perturbations cause smaller shifts in node embeddings.
Key Insights and Results
The researchers evaluated their method on six standard real-world graph datasets, including citation networks (Cora, PubMed, CiteSeer) and co-purchase/social networks (Wiki-CS, Amazon Computers, Amazon Photos). Calculating influence using their method proved to be 15–25 times faster than retraining the model, making it a highly viable tool for real-time model debugging.
High Estimation Accuracy
The estimated influence showed a remarkably high Spearman correlation with the actual "ground truth" changes measured by retraining. Across different datasets and perturbation types (features, edges, nodes), the correlation ranged from 0.847 to 0.981.
Power-Law Influence and Graph Rectification
The experiments revealed that the influence of edges is approximately power-law distributed. Most edges have a negligible impact on the model, while a tiny fraction of highly "influential" edges drives the model's behavior. By identifying and removing edges with "negative influence" (those that increase validation loss), the authors successfully performed graph rectification, improving the test accuracy of SGC models on datasets like PubMed and CiteSeer.
Guiding Adversarial Attacks
A major insight from the paper is that SGC can act as a surrogate for more complex, non-linear GCNs. Edges that are influential to an SGC model are often also influential to a standard GCN. When used to guide adversarial attacks (removing edges to intentionally hurt model performance), this influence-based method outperformed established baselines like DICE, GraphPoison, and MetaAttack. On the PubMed dataset, their attack dropped model accuracy by over 10% more than competing methods at just a 1% edge removal rate.
Limitations and Future Work
While powerful, the method has limitations. The core mathematics rely on the linearity of SGC. Although the authors demonstrate that this generalizes well to GCNs in practice, deriving exact influence functions for truly non-linear, deep Graph Neural Networks (GNNs) remains an open challenge due to non-convexity and local minima.
Additionally, calculating and inverting the Hessian matrix is computationally expensive ($O(d^3)$ where $d$ is the number of parameters). While manageable for SGC, this becomes a bottleneck for models with millions of parameters. Future directions include extending this framework to other GNN architectures and exploring how these influence functions can be used to improve model fairness by identifying biased training elements.
Summary updated