[Paper Review] What Makes Graph Neural Networks Miscalibrated?
This paper identifies five key factors affecting calibration in graph neural networks (GNNs): under-confidence, predictive diversity, distance to training nodes, relative confidence level, and neighborhood similarity. To address these, the authors propose Graph Attention Temperature Scaling (GATS), a data-efficient, accuracy-preserving method that learns node-specific temperature scalars via an attention mechanism over sorted logits, achieving state-of-the-art calibration across multiple GNN backbones and datasets.
Given the importance of getting calibrated predictions and reliable uncertainty estimations, various post-hoc calibration methods have been developed for neural networks on standard multi-class classification tasks. However, these methods are not well suited for calibrating graph neural networks (GNNs), which presents unique challenges such as accounting for the graph structure and the graph-induced correlations between the nodes. In this work, we conduct a systematic study on the calibration qualities of GNN node predictions. In particular, we identify five factors which influence the calibration of GNNs: general under-confident tendency, diversity of nodewise predictive distributions, distance to training nodes, relative confidence level, and neighborhood similarity. Furthermore, based on the insights from this study, we design a novel calibration method named Graph Attention Temperature Scaling (GATS), which is tailored for calibrating graph neural networks. GATS incorporates designs that address all the identified influential factors and produces nodewise temperature scaling using an attention-based architecture. GATS is accuracy-preserving, data-efficient, and expressive at the same time. Our experiments empirically verify the effectiveness of GATS, demonstrating that it can consistently achieve state-of-the-art calibration results on various graph datasets for different GNN backbones.
Motivation & Objective
- To understand why GNNs produce miscalibrated predictions in node classification tasks.
- To identify structural and predictive factors that influence GNN calibration quality.
- To develop a calibration method tailored for GNNs that respects graph topology and node correlations.
- To ensure the calibration method preserves model accuracy and is data-efficient.
- To empirically validate the proposed method across diverse graph datasets and GNN architectures.
Proposed method
- The authors conduct a systematic study to identify five influential factors affecting GNN calibration: general under-confidence, nodewise predictive diversity, distance to training nodes, relative confidence level, and neighborhood similarity.
- They propose Graph Attention Temperature Scaling (GATS), which learns node-specific temperature scalars using an attention mechanism over sorted logits.
- GATS uses a multi-head attention mechanism to aggregate information from the top-k logits, enabling expressive, graph-aware temperature adaptation.
- The method is applied post-training and preserves the original model’s prediction rankings, ensuring accuracy is maintained.
- The attention mechanism allows GATS to dynamically weigh the importance of different logit values based on their relative magnitude and local graph context.
- GATS is trained using a validation set and does not require retraining the GNN backbone.
Experimental results
Research questions
- RQ1What factors contribute to miscalibration in graph neural networks for node classification?
- RQ2How do structural properties of graphs, such as distance to training nodes and neighborhood similarity, affect prediction confidence?
- RQ3To what extent does the relative confidence level of predictions correlate with local graph properties?
- RQ4Can a graph-aware, nodewise temperature scaling method improve calibration while preserving accuracy?
- RQ5How does GATS compare to existing post-hoc calibration methods in terms of calibration performance, data efficiency, and expressivity?
Key findings
- GNNs exhibit a general tendency toward under-confidence, especially in regions far from training nodes, which is not observed in standard neural networks.
- The diversity of nodewise predictive distributions is a significant factor influencing calibration, with higher diversity correlating with poorer calibration.
- Nodes farther from training nodes tend to be more poorly calibrated, particularly in low-data regimes.
- Neighborhood similarity (homophily) shows a partial correlation with relative confidence level, especially in negative homophily regions.
- GATS achieves state-of-the-art calibration performance across multiple datasets (Cora, Citeseer, PubMed, CoraFull) and GNN backbones (GCN, GAT).
- GATS is data-efficient and maintains the original model’s accuracy while significantly improving reliability diagrams and expected calibration error (ECE).
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.