Skip to main content
QUICK REVIEW

[Paper Review] An Investigation of how Label Smoothing Affects Generalization

Blair Chen, Liu Ziyin|arXiv (Cornell University)|Oct 23, 2020
Machine Learning and Data ClassificationComputer Science27 references8 citations
TL;DR

This paper proposes a theoretical framework that explains how label smoothing reduces generalization loss by acting as a regularizer in the presence of label noise. It derives a closed-form expression for the optimal label smoothing hyperparameter $ p^* $, which minimizes test loss, and validates this prediction empirically across multiple datasets and models.

ABSTRACT

It has been hypothesized that label smoothing can reduce overfitting and improve generalization, and current empirical evidence seems to corroborate these effects. However, there is a lack of mathematical understanding of when and why such empirical improvements occur. In this paper, as a step towards understanding why label smoothing is effective, we propose a theoretical framework to show how label smoothing provides in controlling the generalization loss. In particular, we show that this benefit can be precisely formulated and identified in the label noise setting, where the training is partially mislabeled. Our theory also predicts the existence of an optimal label smoothing point, a single value for the label smoothing hyperparameter that minimizes generalization loss. Extensive experiments are done to confirm the predictions of our theory. We believe that our findings will help both theoreticians and practitioners understand label smoothing, and better apply them to real-world datasets.

Motivation & Objective

  • To address the lack of theoretical understanding behind why label smoothing improves generalization in deep learning.
  • To formalize label smoothing as a regularization technique that controls the trade-off between model expressivity and generalization loss.
  • To derive a precise mathematical prediction for the optimal label smoothing hyperparameter $ p^* $ under label noise.
  • To validate the theoretical predictions through extensive experiments on real-world datasets like MNIST and CIFAR10.
  • To identify the disconnect between minimizing test loss and maximizing test accuracy under label smoothing, highlighting an open problem in model evaluation.

Proposed method

  • Models the label smoothing process as a transformation of one-hot targets using a smoothing matrix $ S_p $, where diagonal elements are $ p $ and off-diagonals are $ \frac{1-p}{M-1} $, representing uniform label smoothing.
  • Analyzes the generalization loss under label noise by modeling the true class distribution as a mixture of clean and corrupted labels, with a clean rate $ a $.
  • Derives a theoretical expression for the expected test loss $ \ell(a,p) $ under $ \alpha $-type and $ \beta $-type noise models, showing that it is a convex function of $ p $.
  • Uses the $ \beta $-type noise model to derive a closed-form solution for the optimal smoothing parameter $ p^* $, which minimizes the expected generalization loss.
  • Validates theoretical predictions by measuring test loss across multiple models, random seeds, and datasets (e.g., MNIST, CIFAR10), showing strong agreement between theory and experiment.
  • Applies Jensen’s inequality to explore a potential new method—logit smoothing—by extending the label smoothing and forward-matrix formulations.

Experimental results

Research questions

  • RQ1How does label smoothing reduce generalization error in the presence of label noise, and can this be formalized mathematically?
  • RQ2What is the optimal value of the label smoothing hyperparameter $ p $ that minimizes generalization loss, and can it be derived in closed form?
  • RQ3Does the theoretical prediction of the optimal $ p^* $ align with empirical test loss across diverse datasets and architectures?
  • RQ4Why is there a discrepancy between the optimal $ p $ for minimizing test loss and the optimal $ p $ for maximizing test accuracy, and what does this imply about model evaluation?
  • RQ5Can the theoretical framework be extended to non-uniform smoothing or new variants like logit smoothing?

Key findings

  • The theoretical framework predicts that label smoothing acts as a regularizer that controls generalization loss, particularly under label noise, and provides a closed-form expression for the optimal smoothing parameter $ p^* $.
  • Extensive experiments on MNIST and CIFAR10 show strong agreement between the predicted and measured test loss across different clean rates $ a $, validating the theoretical model.
  • The optimal smoothing parameter $ p^* $ is positively correlated with the clean rate $ a $, indicating that higher label quality requires less smoothing.
  • Despite strong alignment in test loss, a significant discrepancy exists between the optimal $ p $ for minimizing test loss and the optimal $ p $ for maximizing test accuracy, suggesting that loss and accuracy are not always aligned under label smoothing.
  • The framework suggests a new direction for smoothing via logit smoothing, derived from Jensen’s inequality, which may offer improved performance and warrants further investigation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.