Towards Understanding Why Label Smoothing Degrades Selective Classification and How to Fix It

Guoxuan Xia, Olivier Laurent, Gianni Franchi, Christos-Savvas Bouganis
3/19/2024
cs.LGcs.AIcs.CV

No official code found. Best implementation: ENSTA-U2IS-AI/Label-smoothing-Selective-classification-Code (0 stars, Apache-2.0, last commit 2025-02-19). 1 more below.

Abstract

Label smoothing (LS) is a popular regularisation method for training neural networks as it is effective in improving test accuracy and is simple to implement. ``Hard'' one-hot labels are ``smoothed'' by uniformly distributing probability mass to other classes, reducing overfitting. Prior work has suggested that in some cases LS can degrade selective classification (SC) -- where the aim is to reject misclassifications using a model's uncertainty. In this work, we first demonstrate empirically across an extended range of large-scale tasks and architectures that LS consistently degrades SC. We then address a gap in existing knowledge, providing an explanation for this behaviour by analysing logit-level gradients: LS degrades the uncertainty rank ordering of correct vs incorrect predictions by suppressing the max logit more when a prediction is likely to be correct, and less when it is likely to be wrong. This elucidates previously reported experimental results where strong classifiers underperform in SC. We then demonstrate the empirical effectiveness of post-hoc logit normalisation for recovering lost SC performance caused by LS. Furthermore, linking back to our gradient analysis, we again provide an explanation for why such normalisation is effective.

View on arXivView PDF

Code Implementations(2)

Apache-2.0

Official implementation of the ICLR paper "Towards Understanding Why Label Smoothing Degrades Selective Classification and How to Fix It"

00Python, Jupyter NotebookFeb 19, 20251 years agoApache-2.0
iclr2025label-smoothingrobustnessselective-classificationuncertainty-quantification
MIT

The project page of the ICLR 2025 paper "Towards Understanding Why Label Smoothing Degrades Selective Classification and How to Fix It"

00CSS, HTMLJan 23, 20251 years agoMIT

Similar Papers

Cite this paper

@article{xia2024towards,
  title  = {Towards Understanding Why Label Smoothing Degrades Selective Classification and How to Fix It},
  author = {Guoxuan Xia and Olivier Laurent and Gianni Franchi and Christos-Savvas Bouganis},
  year   = {2024},
  eprint = {2403.14715},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.14715v3},
  journal = {ICLR 2024 2024}
}

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

Discussion