Understanding and Mitigating Under-Confidence in GNNs from the Final Layer

Jincheng Huang, Jie Xu, Ping Hu, Xiaoshuang Shi, Lei Feng, Xiaofeng ZhuNeurIPS 2026

TL;DR

Unlike traditional deep neural networks that are famously over-confident, Graph Neural Networks (GNNs) suffer from chronic under-confidence—meaning they get the right answers more often than their probability scores suggest. Instead of bolting on extra neural networks to fix these probabilities after the fact, this paper looks under the hood at the final layer's geometry. By simply turning down weight decay on the final layer and gently nudging test nodes toward their predicted class centers, the authors achieve faster, better-calibrated GNNs with zero extra training overhead.

What Problem Does This Paper Address?

Imagine a weather forecast that predicts an 80% chance of rain, and it actually rains 95% of the time on days like that. That forecast is under-confident. While standard deep learning models (like vision CNNs) usually suffer from arrogance (over-confidence), GNNs—which learn from connected data like molecules or social networks—suffer from impostor syndrome. Even when their classification accuracy is high, their predicted probability scores are stubbornly low, hurting reliability in real-world deployments.

Existing fixes generally fall into two camps: adding extra loss terms during training (which tends to hurt accuracy) or post-hoc calibration. State-of-the-art post-hoc methods usually train an entire secondary "calibration GNN" on a validation set to rescale the base model's outputs. While effective, this treats calibration as a black-box patch, adding computational overhead without explaining why the GNN was under-confident in the first place.

Methods

The authors introduce SCAR (Simple yet efficient graph CAlibRation), derived from a mathematical analysis of how final-layer weights update and form predictions. SCAR tackles calibration at two complementary levels without training any auxiliary networks:

Illustration of SCAR's two-level calibration geometry
  1. Class-Centroid-Level Calibration (During Training): Standard training applies weight decay (L2 regularization) across all layers to prevent overfitting. The authors prove that in the final layer, the weight columns act as class prototypes (centroids). Applying weight decay shrinks these prototypes toward the origin, squishing classes closer together and mathematically mimicking a high-temperature softmax that flattens probabilities. SCAR's fix? Simply reduce the weight decay coefficient specifically on the final layer, letting class prototypes push further apart.
  2. Node-Level Calibration (Post-Hoc & Training-Free): Once trained, a test node's confidence depends on how close its final-layer representation sits to its predicted class prototype. SCAR adjusts each test node's representation via a simple linear interpolation, pulling it closer to its predicted prototype. Furthermore, because GNN message-passing naturally makes nodes right next to training examples look more like prototypes than distant nodes do, SCAR uses two tuning knobs ($\alpha$ and $\beta$): giving distant nodes (2+ hops from training data) a stronger pull toward the centroid than immediate 1-hop neighbors.

Datasets

No new benchmarks were introduced. The authors evaluate SCAR across established public graph benchmarks:

  • Homophilic Citation Networks: Cora, Citeseer, Pubmed, and CoraFull (tested across varying label rates of 20, 40, and 60 labeled nodes per class).
  • Heterophilic Networks: Chameleon and Squirrel (where connected nodes often belong to different classes, testing whether the method relies on standard homophily assumptions).

Key Insights and Ideas

  • Weight decay is secret temperature scaling: Mathematically, applying weight decay $\lambda$ with learning rate $\eta$ to the final layer scales logits by a temperature $\tau = \frac{1}{1 - \eta\lambda} > 1$ during updates. This directly inflates output entropy and causes GNN under-confidence.
  • Surgical vs. Global Weight Decay: Prior literature noted that lowering global weight decay changes confidence, but dismissed it because it wrecks model accuracy. By isolating the reduction strictly to the final layer, SCAR fixes calibration while preserving (and slightly improving) accuracy.
Figure 2: Impact of global vs. final-layer weight decay on Cora dataset (ECE(left), accuracy (right)).
  • Graph distance creates geometric bias: Test nodes more than $K$ hops away from same-class training nodes receive weaker influence during message passing, causing them to drift further from class prototypes. Accounting for hop distance makes post-hoc calibration much sharper.

Key Results

Calibration is measured via Expected Calibration Error (ECE)—the weighted gap between predicted confidence and actual accuracy (lower is better).

  • Beating SOTA: Across GCN and GAT backbones on citation networks, SCAR reduces ECE by an average of 45.6% over classic Temperature Scaling, and 16.9% over the most recent graph-specific baseline (GETS). For instance, on Citeseer (GCN, 20 labels/class), uncalibrated ECE drops from 12.48% down to 3.43%.
  • Architecture Agnostic: SCAR dramatically cuts ECE on advanced GNNs, including inductive GraphSAGE, deep GCNII (dropping Cora ECE from 35.51% to 9.81%), and heterophilic FAGCN.
  • Zero Extra Compute: Because node-level calibration is just a post-hoc vector interpolation, SCAR sits comfortably in the optimal lower-left corner of runtime vs. error, running in ~3.5 seconds total compared to 5–16+ seconds for auxiliary-network methods like CaGCN and DCGC.
Trade-off between total runtime and calibration error (ECE)

Limitations and Future Work

While the main text does not feature a dedicated limitations section, a couple of practical constraints are apparent from the formulation:

  • Hyperparameter Tuning: Although SCAR avoids training a secondary neural network, it introduces hyperparameters—specifically the final-layer weight decay $\lambda^{(K)}$ and the post-hoc interpolation weights $\alpha$ and $\beta$—which still require tuning.
  • Future Directions: The authors position their training-free Node-Level Calibration (NLC)—which outperforms traditional Temperature Scaling by 25.1% on its own—as a new foundational building block to replace Temperature Scaling in future post-hoc graph calibration research.

Summary updated

Abstract

Graph Neural Networks (GNNs) have demonstrated remarkable effectiveness on graph-based tasks. However, their predictive confidence is often miscalibrated, typically exhibiting under-confidence, which harms the reliability of their decisions. Existing calibration methods for GNNs normally introduce additional calibration components, which fail to capture the intrinsic relationship between the model and the prediction confidence, resulting in limited theoretical guarantees and increased computational overhead. To address this issue, we propose a simple yet efficient graph calibration method. We establish a unified theoretical framework revealing that model confidence is jointly governed by class-centroid-level and node-level calibration at the final layer. Based on this insight, we theoretically show that reducing the weight decay of the final-layer parameters alleviates GNN under-confidence by acting on the class-centroid level, while node-level calibration acts as a finer-grained complement to class-centroid level calibration, which encourages each test node to be closer to its predicted class centroid at the final-layer representations. Extensive experiments validate the superiority of our method. The code is released at https://github.com/huangJC0429/SCAR.
BibTeX
@inproceedings{huang2026understanding,
  author = {Jincheng Huang and Jie Xu and Ping Hu and Xiaoshuang Shi and Lei Feng and Xiaofeng Zhu},
  title = {{Understanding and Mitigating Under-Confidence in GNNs from the Final Layer}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=vGT1YmVaWI},
}
Figure