Your Pre-trained LLM is Secretly an Unsupervised Confidence Calibrator

Bei-Er Luo, Shuo-Yuan Wang, Yixuan Li, Hongxin Wei
5/1/2025
28 citations

No official code found. Best implementation: ml-stat-Sustech/Disagreement-Aware-Calibration (6 stars).

Abstract

Post-training of large language models is essential for adapting pre-trained language models (PLMs) to align with human preferences and downstream tasks. While PLMs typically exhibit well-calibrated confidence, post-trained language models (PoLMs) often suffer from over-confidence, assigning high confidence to both correct and incorrect outputs, which can undermine reliability in critical applications.

Show full abstract

A major obstacle in calibrating PoLMs is the scarcity of labeled data for individual downstream tasks. To address this, we propose Disagreement-Aware Confidence Alignment (DACA), a novel unsupervised method to optimize the parameters (e.g., temperature $\tau$) in post-hoc confidence calibration. Our method is motivated by the under-confidence issue caused by prediction disagreement between the PLM and PoLM while aligning their confidence via temperature scaling. Theoretically, the PLM's confidence underestimates PoLM's prediction accuracy on disagreement examples, causing a larger $\tau$ and producing under-confident predictions. DACA mitigates this by selectively using only agreement examples for calibration, effectively decoupling the influence of disagreement. In this manner, our method avoids an overly large $\tau$ in temperature scaling caused by disagreement examples, improving calibration performance. Extensive experiments demonstrate the effectiveness of our method, improving the average ECE of open-sourced and API-based LLMs (e.g. GPT-4o) by up to 15.08$\%$ on common benchmarks.

View on arXivView PDF

Code Implementations(1)

[NeurIPS'25] Your Pre-trained LLM is Secretly an Unsupervised Confidence Calibrator

60

Similar Papers

Cite this paper

@article{luo2025your,
  title  = {Your Pre-trained LLM is Secretly an Unsupervised Confidence Calibrator},
  author = {Bei-Er Luo and Shuo-Yuan Wang and Yixuan Li and Hongxin Wei},
  year   = {2025},
  eprint = {2505.16690},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2505.16690},
  url    = {https://doi.org/10.48550/arXiv.2505.16690},
  journal = {Neural Information Processing Systems}
}

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.16690.svg)](https://codeofpaper.com/paper/2505.16690)

Discussion