Regularization via Structural Label Smoothing

Weizhi Li, Gautam Dasarathy, Visar Berisha

Introduction

Label smoothing is a popular regularization technique where "hard" labels (e.g., [1, 0]) are replaced with "soft" labels (e.g., [0.9, 0.1]). This prevents neural networks from becoming overconfident, which helps with generalization and calibration. However, standard approaches use Uniform Label Smoothing (ULS), applying the same smoothing factor to every single data point. This paper argues that ULS is suboptimal because it ignores the local structure of the data.

The Problem: Data-Agnostic Regularization

In regions of the feature space where classes are clearly separated (low Bayes Error Rate), aggressive smoothing introduces unnecessary bias. Conversely, in "noisy" regions where classes overlap significantly (high Bayes Error Rate), the model might need even stronger regularization to prevent it from memorizing noise. The gap addressed here is the lack of a data-dependent mechanism to balance these needs.

Structural Label Smoothing (SLS)

The authors propose Structural Label Smoothing (SLS), which calculates smoothing strength as a function of the local data distribution. The process follows these steps:

  1. Clustering: The training data is partitioned into clusters (using GMM or k-Means) to identify "neighborhoods" in the feature space.
  2. Bayes Error Rate (BER) Estimation: For each cluster, the authors estimate the BER—a measure of class overlap. They use a non-parametric approach based on the Henze-Penrose (HP) divergence, calculated via a Euclidean Minimum Spanning Tree (MST).
  3. Optimization: They formulate an objective function that minimizes the bias in the BER while keeping the average smoothing strength across the dataset at a user-defined level ($\alpha$).
  4. Adaptive Smoothing: This results in a closed-form solution where clusters with higher class overlap receive stronger smoothing, while clearer regions receive less.
The SLS pipeline: (a) original synthetic data, (b) clustering, (c) local Bayes Error Rate estimation, and (d) final adaptive smoothing assignment.

Crucially, this is a pre-processing step. Once the labels are adjusted, the model is trained using standard optimizers without any additional computational overhead during training.

Key Theoretical Insights

  • The Bias-Regularization Trade-off: The paper mathematically demonstrates that uniform smoothing imposes a quantifiable bias on the Bayes Error Rate. SLS is designed specifically to mitigate this bias.
  • Decision Boundary Preservation: The authors derive a theoretical bound—$\hat{\alpha}(x) < (K-1)/K$—showing exactly how much you can smooth labels before you risk shifting the optimal decision boundary.
  • Targeting "Hard" Samples: By correlating smoothing with the Critical Samples Ratio (CSR), the authors show that SLS naturally applies more regularization to "complex" regions where adversarial-like examples are more likely to exist.

Experimental Results

The researchers validated SLS across several settings, including synthetic data, the large-scale Higgs dataset (11M instances), and standard image benchmarks like SVHN, CIFAR-10, and CIFAR-100.

  • Performance Gains: SLS consistently outperformed ULS and unregularized models. For example, on the Higgs dataset, SLS achieved a 0.2% error reduction over ULS.
  • Better Calibration: In almost every test, SLS resulted in lower test cross-entropy than ULS, suggesting the models were better calibrated.
  • Faster Convergence: Training curves showed that SLS often reaches lower error rates faster than uniform smoothing.
  • Validation via "Reversed SLS": To prove their logic, the authors ran "Reversed SLS" (giving the most smoothing to the easiest clusters). This significantly degraded performance, confirming that the data-dependent allocation of smoothing strength is the key driver of success.

Limitations and Future Work

While effective, SLS faces challenges with the "curse of dimensionality" in non-parametric BER estimation. Although the authors used Autoencoders for dimensionality reduction, more robust high-dimensional estimators could improve results. Additionally, building a Minimum Spanning Tree on very large datasets can be computationally expensive as a one-time pre-processing cost. Future work could explore more efficient ways to estimate local class overlap and further reduce sensitivity to clustering hyperparameters.

Summary updated

BibTeX
@inproceedings{li2020regularization,
  author = {Weizhi Li and Gautam Dasarathy and Visar Berisha},
  title = {{Regularization via Structural Label Smoothing}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2020},
}
Figure