Adaptive Regularization of Labels

Qianggang Ding, Sifan Wu, Hao Sun, Jiadong Guo, Shu-Tao XiaarXiv 2019

Abstract

Recently, a variety of regularization techniques have been widely applied in deep neural networks, such as dropout, batch normalization, data augmentation, and so on. These methods mainly focus on the regularization of weight parameters to prevent overfitting effectively. In addition, label regularization techniques such as label smoothing and label disturbance have also been proposed with the motivation of adding a stochastic perturbation to labels. In this paper, we propose a novel adaptive label regularization method, which enables the neural network to learn from the erroneous experience and update the optimal label representation online. On the other hand, compared with knowledge distillation, which learns the correlation of categories using teacher network, our proposed method requires only a minuscule increase in parameters without cumbersome teacher network. Furthermore, we evaluate our method on CIFAR-10/CIFAR-100/ImageNet datasets for image recognition tasks and AGNews/Yahoo/Yelp-Full datasets for text classification tasks. The empirical results show significant improvement under all experimental settings.

Introduction

Standard supervised learning typically employs cross-entropy loss against one-hot encoded labels. While effective, one-hot labels assume that all incorrect classes are equally distant from the ground truth, ignoring the "dark knowledge" or semantic correlations between categories. For instance, a model should ideally recognize that a "cat" is more similar to a "dog" than to a "car."

Existing methods like Knowledge Distillation (KD) capture these correlations using a large teacher network to guide a student, but this approach is computationally expensive. Label Smoothing (LS) attempts to regularize by distributing probability mass uniformly across incorrect classes, but it lacks class-specific awareness. This paper introduces Adaptive Label Regularization (ALR), a method that allows a network to learn these class correlations dynamically from its own training errors without requiring a teacher model.

Methodology: Adaptive Label Regularization (ALR)

ALR introduces a lightweight, learnable embedding layer known as the Residual Correlation Matrix. This matrix stores the relationships between classes based on the model's own misclassifications.

The overall architecture of ALR, showing the dual-loss mechanism and the residual label generation path.

The core of ALR is a dual-loss mechanism:

  1. Update Loss ($\mathcal{L}_{upd}$): This loss updates the Residual Correlation Matrix online. As the model makes mistakes, it records which classes are frequently confused, effectively capturing the "erroneous experience."
  2. Residual Loss ($\mathcal{L}_{res}$): This loss acts as a regularizer, encouraging the model's output distribution for incorrect classes to match the learned residual labels.
The process of generating residual labels from the correlation matrix.

To ensure the model focuses on the ground truth when it is most uncertain, the weight of the residual loss is dynamically scaled by $(1 - acc_{train})$. As training progresses and accuracy increases, the regularization effect naturally decays. The authors also propose ALR-S, which combines ALR with standard Label Smoothing to provide both uniform un-confidence and targeted, correlation-aware regularization.

Experimental Results

The effectiveness of ALR was evaluated across multiple domains, including image recognition and text classification.

Image Recognition

On the CIFAR-100 dataset using a ResNet-18 architecture, ALR-S improved baseline accuracy from 77.54% to 79.08% with a negligible increase of 10K parameters. On the larger ImageNet dataset, a ResNet-50 model saw Top-1 accuracy rise from 76.17% to 76.74%.

Text Classification

ALR-S demonstrated consistent improvements across text datasets like AGNews, Yahoo! Answers, and Yelp Review Full. For a Transformer model on AGNews, accuracy increased from 89.51% to 90.29%.

Efficiency Comparison

Compared to online distillation methods like Deep Mutual Learning (DML), which requires training two full networks simultaneously, ALR achieves comparable performance with roughly half the parameters and significantly lower computational overhead.

Discussion and Conclusion

ALR provides a self-contained way for neural networks to distill "dark knowledge" from their own mistakes. While it significantly boosts Top-1 accuracy, the authors observed a slight drop in Top-5 accuracy on ImageNet. This is attributed to the model assigning higher probabilities to similar (but incorrect) classes, which can displace the ground truth from the Top-5 list in cases of misprediction.

In conclusion, Adaptive Label Regularization is a highly efficient and effective technique for improving generalization across diverse tasks by leveraging the model's own erroneous experiences as a source of regularization.

Summary updated

BibTeX
@misc{ding2019adaptive,
  author = {Qianggang Ding and Sifan Wu and Hao Sun and Jiadong Guo and Shu-Tao Xia},
  title = {{Adaptive Regularization of Labels}},
  year = {2019},
  eprint = {1908.05474},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1908.05474},
}
Figure