Calibrated Language Models and How to Find Them with Label Smoothing

Jerry Huang, Peng Lu, Qiuhao Zeng
2/14/2026

No official code found. Best implementation: jhuang265/Calibrating-LLMs-with-Label-Smoothing (3 stars, MIT, last commit 2026-02-07).

Abstract

Recent advances in natural language processing (NLP) have opened up greater opportunities to enable fine-tuned large language models (LLMs) to behave as more powerful interactive agents through improved instruction-following ability. However, understanding how this impacts confidence calibration for reliable model output has not been researched in full. In this work, we examine various open-sourced LLMs, identifying significant calibration degradation after instruction tuning in each. Seeking a practical solution, we look towards label smoothing, which has been shown as an effective method to regularize for overconfident predictions but has yet to be widely adopted in the supervised fine-tuning (SFT) of LLMs. We first provide insight as to why label smoothing is sufficient to maintain calibration throughout the SFT process. However, settings remain where the effectiveness of smoothing is severely diminished, in particular the case of large vocabulary LLMs (LV-LLMs). We posit the cause to stem from the ability to become over-confident, which has a direct relationship with the hidden size and vocabulary size, and justify this theoretically and experimentally. Finally, we address an outstanding issue regarding the memory footprint of the cross-entropy loss computation in the label smoothed loss setting, designing a customized kernel to dramatically reduce memory consumption without sacrificing speed or performance in comparison to existing solutions for non-smoothed losses.

View on arXivView PDF

Code Implementations(1)

MIT

Code to our ICML 2025 Paper "Calibrated Language Models and How to Find Them with Label Smoothing"

30CSS, HTMLJun 3, 20258 months agoMIT
deep-learninghuggingface-transformersnatural-language-processingtriton

Similar Papers

Cite this paper

@article{huang2026calibrated,
  title  = {Calibrated Language Models and How to Find Them with Label Smoothing},
  author = {Jerry Huang and Peng Lu and Qiuhao Zeng},
  year   = {2026},
  eprint = {2508.00264},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2508.00264},
  journal = {ICML 2025 2025}
}

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

Discussion