Improving the Calibration of Confidence Scores in Text Generation Using the Output Distribution's Characteristics

Lorenzo Jaime Yu Flores, Ori Ernst, Jackie Chi Kit Cheung
5/31/2025
cs.CLcs.AI

No official code found. Best implementation: ljyflores/calibrated-confidence-for-nlg (1 star, last commit 2025-11-01).

Abstract

Well-calibrated model confidence scores can improve the usefulness of text generation models. For example, users can be prompted to review predictions with low confidence scores, to prevent models from returning bad or potentially dangerous predictions. However, confidence metrics are not always well calibrated in text generation. One reason is that in generation, there can be many valid answers, which previous methods do not always account for. Hence, a confident model could distribute its output probability among multiple sequences because they are all valid. We propose task-agnostic confidence metrics suited to generation, which rely solely on the probabilities associated with the model outputs without the need for further fine-tuning or heuristics. Using these, we are able to improve the calibration of BART and Flan-T5 on summarization, translation, and QA datasets.

View on arXivView PDF

Code Implementations(1)

Experiments for Improving the Calibration of Confidence Scores in Text Generation Using the Output Distribution’s Characteristics, ACL Main 2025

10Shell, PythonOct 11, 202411 months ago

Similar Papers

Cite this paper

@article{flores2025improving,
  title  = {Improving the Calibration of Confidence Scores in Text Generation Using the Output Distribution's Characteristics},
  author = {Lorenzo Jaime Yu Flores and Ori Ernst and Jackie Chi Kit Cheung},
  year   = {2025},
  eprint = {2506.00637},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.00637v2}
}

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

Discussion