Distilling Influences to Mitigate Prediction Churn in Graph Neural Networks

Andreas Roth, Thomas LiebigarXiv 2023

TL;DR

Graph Neural Networks (GNNs) often suffer from "prediction churn," where models with identical architectures and training data disagree on individual predictions due to different random initializations. This paper introduces Influence Difference (ID) to quantify how much two models diverge in the neighbor nodes they rely on, and proposes DropDistillation (DD)—a simple yet effective edge-dropping technique—to align a student model's reasoning with its teacher, significantly reducing churn while boosting accuracy.

What Problem Does This Paper Address?

Imagine retraining a machine learning model on the exact same data, with the exact same hyperparameters, only to find it now misclassifies a bunch of samples it previously got right. This inconsistency is called prediction churn.

In Graph Neural Networks (GNNs) used for node classification, prediction churn is particularly rampant. When large portions of correctly classified data flip labels upon retraining, it severely undermines the model's reliability, trustworthiness, and explainability in production environments. The authors investigate the root cause of this phenomenon, discovering that even when two GNNs achieve similar overall accuracy, they often base their predictions on completely different sets of neighboring nodes (features).

Methods

The authors tackle prediction churn through the lens of Knowledge Distillation (KD), where a compact "student" model is trained to mimic a high-capacity "teacher" model.

  1. Influence Difference (ID): The authors propose a novel metric to quantify the difference in decision-making between two models. ID calculates the gradients of output logits with respect to input features to build an "influence distribution" over a node's local neighborhood. It then uses Symmetric Mean Absolute Percentage Error (SMAPE) to measure how much two models diverge in their reliance on specific neighbors.
Figure 1: Influence Difference for the green root node between two models f (left) and g (right). Context nodes Ci are encircled, and the different shades of blue represent its nodes’ value in the influence distribution. Symmetric Mean Absolute Percentage Error (SMAPE) between the two influence vectors is calculated.
  1. DropDistillation (DD): Directly minimizing ID during training is computationally impossible for large graphs because it requires calculating massive Jacobian matrices. To bypass this, the authors introduce DropDistillation. During training, random edges are deleted uniformly from the graph input for both the teacher and student models. By forcing the student to match the teacher's output logits on these perturbed graphs, the student implicitly learns to mimic the teacher's underlying feature influence distribution without explicit gradient matching.

Datasets

The authors evaluated their approach on six standard node classification benchmarks:

  • Transductive datasets: Citeseer, Photo, WikiCS, Computers, and Physics. In these datasets, the graph is fixed, and the model predicts labels for a subset of unseen test nodes.
  • Inductive dataset: PPI (Protein-Protein Interaction), which requires the model to generalize and make multi-class predictions across entirely unseen graphs.

Key Insights and Ideas

  • Churn is a symptom of divergent reasoning: Low prediction churn does not mean two models are identical. The authors prove that two models can output the exact same predictions (zero churn) yet still possess a high Influence Difference, meaning they arrived at the same answers for entirely different reasons.
  • Stable nodes aren't "smarter," they just have backups: Surprisingly, nodes that maintain stable predictions across different model initializations show a similar Influence Difference to unstable nodes. The defining characteristic of stable nodes is feature redundancy. They typically have a higher proportion of neighbors sharing the same label (low entropy), allowing them to maintain the correct prediction even when a retrained model shifts its focus to a different set of neighbors.
  • Edge dropping acts as a gradient proxy: Mathematically, matching model outputs under random edge deletions acts as a first-order Taylor approximation of Jacobian matching. This allows DD to align the models' internal reasoning pathways efficiently.

Key Results

  • Substantial Feature Divergence: Before distillation, models trained with different random seeds showed an average relative change in feature influence of at least 48.8%, confirming that standard training fails to enforce consistent decision rules.
  • Superior Accuracy: DropDistillation outperformed standard KD and Graph Contrastive Representation Distillation (G-CRD) across all datasets. For example, on the Computers dataset, DD achieved 80.0% accuracy, compared to 65.2% for a vanilla student and 67.5% for standard KD.
  • Drastic Churn Reduction: DD successfully aligned student models with their teachers. On the Computers dataset, prediction churn dropped to 19.1%, a massive improvement over the 32.1% churn seen in standard KD.

Limitations and Future Work

  • Expressiveness Mismatch: When the student model's architecture is significantly less expressive than the teacher's (e.g., using a simple GCN student to distill a complex GAT teacher), matching the influence distribution becomes difficult, and DD's effectiveness slightly degrades on certain datasets.
  • Tighter Approximations: While DropDistillation works well as a first-order approximation, future work could explore tighter, more explicit approximations of the influence distribution that remain computationally lightweight.

Summary updated

Abstract

Models with similar performances exhibit significant disagreement in the predictions of individual samples, referred to as prediction churn. Our work explores this phenomenon in graph neural networks by investigating differences between models differing only in their initializations in their utilized features for predictions. We propose a novel metric called Influence Difference (ID) to quantify the variation in reasons used by nodes across models by comparing their influence distribution. Additionally, we consider the differences between nodes with a stable and an unstable prediction, positing that both equally utilize different reasons and thus provide a meaningful gradient signal to closely match two models even when the predictions for nodes are similar. Based on our analysis, we propose to minimize this ID in Knowledge Distillation, a domain where a new model should closely match an established one. As an efficient approximation, we introduce DropDistillation (DD) that matches the output for a graph perturbed by edge deletions. Our empirical evaluation of six benchmark datasets for node classification validates the differences in utilized features. DD outperforms previous methods regarding prediction stability and overall performance in all considered Knowledge Distillation experiments.
BibTeX
@misc{roth2023distilling,
  author = {Andreas Roth and Thomas Liebig},
  title = {{Distilling Influences to Mitigate Prediction Churn in Graph Neural Networks}},
  year = {2023},
  eprint = {2310.00946},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.00946},
}
Figure