Abstract
Influence function, a method from robust statistics, measures the changes of model parameters or some functions about model parameters concerning the removal or modification of training instances. It is an efficient and useful post-hoc method for studying the interpretability of machine learning models without the need for expensive model re-training. Recently, graph convolution networks (GCNs), which operate on graph data, have attracted a great deal of attention. However, there is no preceding research on the influence functions of GCNs to shed light on the effects of removing training nodes/edges from an input graph. Since the nodes/edges in a graph are interdependent in GCNs, it is challenging to derive influence functions for GCNs. To fill this gap, we started with the simple graph convolution (SGC) model that operates on an attributed graph and formulated an influence function to approximate the changes in model parameters when a node or an edge is removed from an attributed graph. Moreover, we theoretically analyzed the error bound of the estimated influence of removing an edge. We experimentally validated the accuracy and effectiveness of our influence estimation function. In addition, we showed that the influence function of an SGC model could be used to estimate the impact of removing training nodes/edges on the test performance of the SGC without re-training the model. Finally, we demonstrated how to use influence functions to guide the adversarial attacks on GCNs effectively.
Introduction
In traditional machine learning, influence functions are a cornerstone for understanding how specific training instances shape a model's behavior. However, standard influence functions assume independent and identically distributed (i.i.d.) data. This assumption is fundamentally violated in graph-structured data, where nodes and edges are highly interdependent. In Graph Convolutional Networks (GCNs), the message-passing mechanism ensures that a change in one edge or node propagates through its neighborhood, altering the representations of many other nodes.
Until now, quantifying this "knock-on" effect required retraining the model from scratch for every potential perturbation—a computationally prohibitive task for large-scale graphs. This research addresses this gap by deriving influence functions specifically tailored for graph data, enabling efficient estimation of counterfactual effects without the need for expensive model retraining.
Methodology
The study focuses on the Simple Graph Convolution (SGC) model. SGC simplifies GCNs by removing non-linearities between layers, resulting in a convex optimization landscape that makes influence functions mathematically tractable while maintaining competitive performance.
Key technical contributions include:
- Representational Change Formulas: Derivation of exact expressions for shifts in node embeddings following the removal of an edge or node.
- Influence Linearity: Proof that total graph perturbation influence can be decomposed into the removal of the original representation and the addition of the perturbed one.
- Closed-form Estimators: Formulas to estimate parameter changes using the model's inverse Hessian matrix and the gradients of affected nodes.
- Theoretical Error Bounds: A formal upper bound on estimation error, demonstrating higher accuracy in smoother, more regularized models.
Experimental Validation
The approach was validated on six benchmark datasets: Cora, PubMed, CiteSeer (citation networks), Wiki-CS (social/knowledge graphs), and Amazon Computers/Photos (co-purchase graphs).
As shown in Figure 6, the estimated influence correlates strongly with the "ground truth" obtained through retraining. Spearman correlation coefficients range from 0.847 to 0.981 across different datasets and graph elements (features, edges, and nodes). Furthermore, the influence-based method is 15 to 25 times faster than actual retraining.
Key Insights and Applications
The "Knock-on" Effect
Unlike i.i.d. data, removing an edge in a GCN affects the representations of all nodes within a $(k+1)$-hop neighborhood. The derived influence functions successfully account for this entire "neighborhood of change."
Data Rectification and Vulnerability
Influence functions reveal that not all graph elements are beneficial. Removing edges with "negative influence" (those that increase validation loss) can improve test accuracy, suggesting a path for automated graph pruning or cleaning. Conversely, identifying "positive influence" elements allows for highly effective adversarial attacks. In "grey-box" settings, influence-guided attacks outperformed baselines like DICE and MetaAttack, dropping PubMed accuracy by over 10% more than competitors with only 1% edge removal.
Conclusion and Future Work
While highly effective for linear models like SGC, extending these influence functions to deep, non-linear GCNs remains a challenge due to non-convexity and local minima. Additionally, the computational cost of the inverse Hessian matrix poses scaling issues for massive graphs. Future research will explore the use of pseudo-inverse Hessians and Conjugate Gradient descent to approximate influence at scale without explicit matrix inversion.
Summary updated