On the Prediction Instability of Graph Neural Networks

Max Klabunde, Florian Lemmerich

Abstract

While Graph Neural Networks (GNNs) have achieved state-of-the-art performance across various node-classification tasks, their reliability is often undermined by prediction instability—a phenomenon where models with identical architectures and aggregate accuracies produce conflicting predictions for individual nodes across different training runs. This paper systematically quantifies this instability, identifying the structural and architectural factors that contribute to "prediction churn." Our findings reveal that instability is particularly prevalent among incorrectly classified nodes and those located at the graph's periphery. Furthermore, we demonstrate that common regularization techniques like dropout can inadvertently exacerbate instability, while increasing model width and utilizing specific optimizers can mitigate it.

Introduction

In the deployment of machine learning models, consistency is a prerequisite for trust. We typically expect that training the same model architecture on the same dataset should yield consistent results. However, even when aggregate metrics like accuracy remain stable, the specific labels assigned to individual data points often fluctuate due to stochastic elements such as random weight initialization or hardware non-determinism. This variance is known as prediction instability or churn.

For GNNs, this instability poses a significant hurdle for real-world applications. For instance, in a social network moderation system, a user might be flagged as "unsafe" simply because of a model retraining, despite no change in their behavior. This lack of robustness undermines the reliability of graph-based decision systems. This study provides an extensive empirical investigation into why GNNs exhibit such instability and how architectural choices influence output consistency.

Methodology

The study evaluates two foundational GNN architectures: Graph Convolutional Networks (GCN) and Graph Attention Networks (GAT). To isolate the effects of randomness, the authors trained 50 versions of each model per dataset, varying only the initializations while keeping all other hyperparameters constant.

To quantify instability, three primary metrics were employed:

  • Disagreement ($d$): The probability that two models trained on the identical dataset will predict different labels for the same node.
  • False Disagreement ($d_{False}$): Disagreement specifically among nodes that are incorrectly classified, highlighting where the model is most uncertain.
  • Centered Kernel Alignment (CKA): A technique used to compare internal representations across different layers and training runs, allowing researchers to pinpoint where internal "drift" begins.

Experimental Setup and Datasets

The research utilizes seven standard node-classification benchmarks to ensure the findings are not dataset-specific:

  • Citation Networks: CiteSeer and Pubmed.
  • Co-authorship Networks: CS and Physics.
  • E-commerce Networks: Amazon Photo and Computers.
  • Web-based: WikiCS.

These datasets represent a diverse range of graph sizes and densities, providing a robust testing ground for measuring universal instability traits.

Key Insights

1. The Deception of Aggregate Accuracy

One of the study's most striking findings is that aggregate accuracy is a poor proxy for stability. Models can achieve nearly identical total accuracy scores while disagreeing on a significant portion of individual node predictions. This suggests that high-performing models may still be fundamentally unreliable at the individual level.

2. Structural Volatility: The Periphery vs. The Core

Graph structure plays a decisive role in stability. Nodes that are central to the network—identified by high PageRank or high k-core scores—tend to be much more stable. Conversely, nodes on the "periphery" with fewer connections are the most likely to flip their labels between runs. This indicates that GNNs struggle to reach a consensus on nodes with sparse neighborhood information.

3. Architectural Influence: Depth and Width

Instability appears to accumulate as information passes through the network. Using CKA, the authors found that early GNN layers remain remarkably similar across runs, but internal representations diverge significantly in deeper layers. Increasing the width (number of hidden units) generally improves stability, whereas increasing depth (number of layers) significantly degrades it, in some cases increasing disagreement four-fold.

4. The Hyperparameter Trade-off

Standard practices for improving model generalization can be detrimental to stability. For example, dropout, a staple for preventing overfitting, was found to consistently increase prediction instability. Similarly, the choice of optimizer matters; Stochastic Gradient Descent with Momentum (SGD-M) often produced more stable models than the popular Adam optimizer, though this effect varied slightly across datasets.

Results and Recommendations

The empirical results highlight a "33% Rule": in datasets like CiteSeer or Amazon Computers, up to one-third of incorrectly classified nodes changed their predicted labels between different training runs.

To combat this, the authors proposed a "Stable Variant" of GNNs by combining stability-friendly hyperparameters:

  • Increased model width.
  • Reduced model depth.
  • Lower dropout rates.
  • Increased L2 regularization.

This configuration successfully reduced disagreement across 6 out of 7 datasets without significant sacrifices in aggregate accuracy.

Limitations and Future Work

This study focused primarily on "vanilla" GNN architectures. It did not incorporate modern stabilization techniques such as Residual Connections or Layer Normalization, which are frequently used to manage gradients in very deep networks.

Future research should explore:

  1. Scalability: Assessing instability on massive, industrial-scale graphs.
  2. Causal Mechanisms: Investigating the underlying reasons why specific hyperparameters like dropout trigger churn.
  3. Algorithmic Mitigation: Developing new loss functions or training regimes specifically optimized to minimize prediction churn in graph-based environments.

Summary updated

BibTeX
@inproceedings{klabunde2022prediction,
  author = {Max Klabunde and Florian Lemmerich},
  title = {{On the Prediction Instability of Graph Neural Networks}},
  booktitle = {ECML/PKDD},
  year = {2022},
  url = {https://openreview.net/forum?id=zVIvvMO3mdF},
}
Figure