The Final Layer Holds the Key: A Unified and Efficient GNN Calibration Framework

Jincheng Huang, Jie Xu, Xiaoshuang Shi, Ping Hu, Lei Feng +1 more
5/16/2025
cs.LG

No confident code implementation found for this paper.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{huang2025final,
  title  = {The Final Layer Holds the Key: A Unified and Efficient GNN Calibration Framework},
  author = {Jincheng Huang and Jie Xu and Xiaoshuang Shi and Ping Hu and Lei Feng and Xiaofeng Zhu},
  year   = {2025},
  eprint = {2505.11335},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.11335v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.11335.svg)](https://codeofpaper.com/paper/2505.11335)

Discussion