Be Confident! Towards Trustworthy Graph Neural Networks via Confidence Calibration

Xiao Wang, Hongrui Liu, Chuan Shi, Cheng Yang

Introduction

While many deep learning architectures are notoriously over-confident, recent research reveals a surprising counter-trend: Graph Neural Networks (GNNs) are consistently under-confident. This paper introduces CaGCN, a topology-aware calibration method that leverages graph structure to produce more trustworthy confidence scores, enhancing both model reliability and self-training performance.

The Problem: Under-confidence in GNNs

In safety-critical domains like medical diagnosis or autonomous systems, a model must not only be accurate but also "trustworthy." A well-calibrated model's predicted confidence should align with its actual likelihood of being correct. While modern neural networks often exhibit over-confidence (e.g., 99% confidence for 80% accuracy), GNNs suffer from the inverse. Reliability diagrams across various datasets demonstrate that GNNs frequently achieve higher accuracy than their predicted confidence suggests.

Reliability diagrams showing that GNNs are consistently under-confident across different datasets.

Existing calibration techniques, such as Temperature Scaling (TS), often treat data points as independent and identically distributed (i.i.d.), ignoring the relational dependencies inherent in graph data.

Methodology: CaGCN

The authors propose CaGCN (Calibration GCN), a post-hoc framework that uses a secondary GNN to learn node-specific "temperatures" for calibration.

Key features of CaGCN include:

  • Topology-Awareness: It assumes "confidence homophily"—the idea that neighboring nodes should exhibit similar confidence levels.
  • Non-Linearity: CaGCN learns complex transformations to better fit the model's predictive landscape compared to simple linear scaling.
  • Accuracy Preservation: The relative order of class probabilities is maintained, ensuring that the original classification performance is never compromised.
  • Regularized Optimization: A specialized loss function encourages higher confidence for correct predictions and lower confidence for incorrect ones, specifically targeting the under-confidence bias.

The framework is further extended to CaGCN-st, a self-training variant where calibrated scores help select high-quality pseudo-labels for unlabeled nodes.

Experimental Setup

The method was evaluated on four standard citation benchmarks: Cora, Citeseer, Pubmed, and the larger CoraFull. Experiments were conducted across varying label rates (20, 40, and 60 labeled nodes per class) to assess performance under different data regimes.

Key Insights: Confidence Homophily

A central discovery of this work is that confidence scores in graphs tend to follow a homophily property. Connected nodes often share similar levels of certainty. This justifies the use of a GCN for the calibration task itself, as a node's similarity to its neighbors is a strong indicator of its predictive reliability.

Illustration of confidence propagation: neighboring nodes influence each other's calibrated confidence.

Results

  • Superior Calibration: CaGCN consistently achieved the lowest Expected Calibration Error (ECE). On the Cora dataset, it reduced ECE from approximately 0.13 to 0.04.
  • Enhanced Self-Training: By correcting under-confidence, CaGCN-st identified more high-accuracy nodes for pseudo-labeling. On Citeseer (20 labels/class), accuracy improved from 71.64% to 74.90%.
  • Scalability: Unlike Matrix Scaling (MS), which struggled with high class counts in CoraFull, CaGCN remained stable and effective.

Conclusion

CaGCN addresses the unique under-confidence of GNNs by incorporating graph topology into the calibration process. While future work is needed to explore theoretical causes and performance on heterophilous graphs, this method provides a robust path toward more trustworthy graph-based AI.

Summary updated

BibTeX
@inproceedings{wang2021be,
  author = {Xiao Wang and Hongrui Liu and Chuan Shi and Cheng Yang},
  title = {{Be Confident! Towards Trustworthy Graph Neural Networks via Confidence Calibration}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=9c-IsSptbmA},
}
Figure