Skip to main content
QUICK REVIEW

[Paper Review] Towards Understanding Label Smoothing

Yi Xu, Yuanhong Xu|arXiv (Cornell University)|Jun 20, 2020
Advanced Neural Network ApplicationsComputer Science55 references28 citations
TL;DR

This paper proposes Two-Stage Label Smoothing (TSLA), a novel training strategy that applies label smoothing regularization (LSR) in early training epochs to reduce gradient variance and accelerate convergence, then switches to standard one-hot labels in later epochs. TSLA achieves faster convergence and improved generalization on ResNet models, with state-of-the-art accuracy on CIFAR-100 and ImageNet benchmarks, validated through theoretical analysis and extensive experiments.

ABSTRACT

Label smoothing regularization (LSR) has a great success in training deep neural networks by stochastic algorithms such as stochastic gradient descent and its variants. However, the theoretical understanding of its power from the view of optimization is still rare. This study opens the door to a deep understanding of LSR by initiating the analysis. In this paper, we analyze the convergence behaviors of stochastic gradient descent with label smoothing regularization for solving non-convex problems and show that an appropriate LSR can help to speed up the convergence by reducing the variance. More interestingly, we proposed a simple yet effective strategy, namely Two-Stage LAbel smoothing algorithm (TSLA), that uses LSR in the early training epochs and drops it off in the later training epochs. We observe from the improved convergence result of TSLA that it benefits from LSR in the first stage and essentially converges faster in the second stage. To the best of our knowledge, this is the first work for understanding the power of LSR via establishing convergence complexity of stochastic methods with LSR in non-convex optimization. We empirically demonstrate the effectiveness of the proposed method in comparison with baselines on training ResNet models over benchmark data sets.

Motivation & Objective

  • To theoretically understand how label smoothing regularization (LSR) improves optimization in deep learning.
  • To analyze the convergence behavior of stochastic gradient descent (SGD) with LSR in non-convex settings.
  • To develop a practical training strategy that leverages LSR's benefits while avoiding potential drawbacks in later training.
  • To demonstrate empirically that switching from smoothed to one-hot labels improves generalization and convergence speed.

Proposed method

  • Proposes Two-Stage Label Smoothing (TSLA), which applies LSR during initial training epochs and drops it in later stages.
  • Uses label smoothing transformation: y^LS = (1−θ)y + θŷ, where ŷ is either uniform or a pre-trained model’s output distribution.
  • Analyzes SGD convergence with LSR, showing that appropriate LSR reduces gradient variance and improves iteration complexity.
  • Employs a two-stage training protocol: train with LSR for s epochs, then switch to standard one-hot labels for remaining epochs.
  • Uses pre-trained models to generate ŷ for improved smoothing, reducing variance and enhancing performance.
  • Employs standard training protocols on ResNet-18 and ResNet-50 with learning rate decay and weight decay on ImageNet and CIFAR-100.

Experimental results

Research questions

  • RQ1How does label smoothing regularization (LSR) affect the convergence of stochastic gradient descent in non-convex optimization?
  • RQ2Can LSR reduce gradient variance and thereby accelerate convergence in deep learning training?
  • RQ3Is there an optimal timing to disable LSR during training to maximize performance?
  • RQ4Does switching from smoothed to one-hot labels in later training stages improve generalization and convergence speed?
  • RQ5How does the choice of smoothing distribution (uniform vs. pre-trained model output) impact performance?

Key findings

  • TSLA with 160 epochs of LSR followed by one-hot labels achieved 78.55% top-1 accuracy on CIFAR-100, outperforming all baselines.
  • TSLA-pre(160) achieved 78.55% top-1 accuracy and 94.83% top-5 accuracy, the best among all methods on CIFAR-100.
  • On ImageNet, TSLA(50) improved top-1 accuracy by 0.5% over standard LSR and 0.7% over baseline.
  • Theoretical analysis confirms that appropriate LSR reduces gradient variance, leading to improved convergence complexity.
  • Switching from LSR to one-hot labels after 120–180 epochs consistently accelerated convergence and improved test accuracy.
  • Using pre-trained model outputs for smoothing (TSLA-pre) significantly outperformed uniform smoothing, confirming the importance of low-variance label distributions.

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.