Implicit to Explicit Entropy Regularization: Benchmarking ViT Fine-tuning under Noisy Labels

Maria Marrium, Arif Mahmood, Mohammed BennamounarXiv 2024 · DOI

Introduction

Deep learning's success is heavily reliant on massive, accurately labeled datasets. However, obtaining perfect labels at scale is prohibitively expensive, leading to the use of web-scraped or auto-labeled data containing "noisy" (incorrect) labels. While Noisy Label Learning (NLL) has been extensively studied for Convolutional Neural Networks (CNNs), the robustness of Vision Transformers (ViTs) in these environments remains less explored. This paper provides a comprehensive benchmark of ViTs under noisy label conditions, investigating fine-tuning strategies, the effectiveness of existing NLL methods, and a novel approach to enhancing resilience through explicit entropy regularization.

Methods and Fine-tuning Strategies

The study evaluates two primary backbones, ViT-B/16 and ViT-L/16, across five distinct fine-tuning paradigms:

  1. Full Fine-Tuning (Full-FT): Updating all model parameters.
  2. Linear Probing (LP): Updating only the final classification head.
  3. MLP-K: Updating only the last $K$ layers of the transformer.
  4. Parameter-Efficient Fine-Tuning (PEFT): Utilizing methods like AdaptFormer and Visual Prompt Tuning (VPT) to update a small subset of parameters.

These strategies were tested against a suite of loss functions, ranging from standard Cross-Entropy and Focal Loss to specialized robust NLL methods such as Generalized Cross Entropy (GCE) and Active Negative Learning (ANL-CE).

The Entropy Insight

A key discovery of this research is the relationship between model robustness and prediction entropy. By analyzing the training dynamics of various loss functions, the authors observed that successful robust methods implicitly minimize the entropy of the model's predictions over time. As the model learns to distinguish between clean and noisy signals, its predictions become "sharper" and more confident.

Figure 1: Comparison of prediction entropy and validation accuracy across different loss functions. Robust losses (NCE+AGCE, ANL-CE) show a natural trend toward lower entropy.

To leverage this observation, the authors propose making this entropy minimization explicit. By adding an entropy regularization term to the training objective—$\mathcal{L}_{total} = \mathcal{L}_{baseline} + \lambda H(P)$—the model is forced to be more confident. This explicit penalty helps the model ignore the contradictory signals inherent in noisy labels, particularly when $\lambda$ is increased via a linear schedule during training.

Benchmarking Results

The benchmarking results reveal several critical insights into ViT behavior:

  • Inherent Robustness: ViTs consistently outperform CNN architectures when faced with noisy labels.
  • The "Less is More" Paradox: While Full-FT is superior on clean data, Linear Probing (LP) often proves more robust under extreme noise (e.g., 80% noise rates). Restricting the number of tunable parameters prevents the model from "memorizing" the noise.
  • Universal Performance Gains: Explicit entropy regularization improved the performance of nearly all tested NLL methods. For instance, on noisy CIFAR-100 data, adding the entropy term to standard Cross-Entropy resulted in a 17.36% accuracy boost.
Figure 4: Benchmarking results on CIFAR-10 under symmetric and asymmetric noise, alongside a comparison of computational overhead for various fine-tuning strategies.

On real-world noisy datasets like WebVision, a ViT-L/16 model using the proposed regularization achieved a state-of-the-art accuracy of 90.92%.

Conclusion and Future Work

This work demonstrates that the robustness of Vision Transformers can be significantly enhanced by transitioning from implicit to explicit entropy regularization. While the method shows universal improvements, challenges remain regarding hyperparameter sensitivity for $\lambda$ and the computational overhead of certain PEFT methods like AdaptFormer. Future research will explore the applicability of entropy regularization to other computer vision tasks, such as object detection and segmentation, in noisy label environments.

Summary updated

BibTeX
@misc{marrium2024implicit,
  author = {Maria Marrium and Arif Mahmood and Mohammed Bennamoun},
  title = {{Implicit to Explicit Entropy Regularization: Benchmarking ViT Fine-tuning under Noisy Labels}},
  year = {2024},
  eprint = {2410.04256},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.04256},
}
Figure