PENCIL: Deep Learning with Noisy Labels

Kun Yi, Guo-Hua Wang, Jianxin WuarXiv 2022

Abstract

Deep learning has achieved excellent performance in various computer vision tasks, but requires a lot of training examples with clean labels. It is easy to collect a dataset with noisy labels, but such noise makes networks overfit seriously and accuracies drop dramatically. To address this problem, we propose an end-to-end framework called PENCIL, which can update both network parameters and label estimations as label distributions. PENCIL is independent of the backbone network structure and does not need an auxiliary clean dataset or prior information about noise, thus it is more general and robust than existing methods and is easy to apply. PENCIL can even be used repeatedly to obtain better performance. PENCIL outperforms previous state-of-the-art methods by large margins on both synthetic and real-world datasets with different noise types and noise rates. And PENCIL is also effective in multi-label classification tasks through adding a simple attention structure on backbone networks. Experiments show that PENCIL is robust on clean datasets, too.

Introduction

Modern deep neural networks are highly susceptible to noisy labels in training data. Because these models have high capacity, they tend to memorize incorrect labels, leading to poor generalization. Traditional approaches to mitigate label noise often rely on a small set of verified clean data or specific assumptions about the noise distribution (e.g., a noise transition matrix). However, in many real-world scenarios, such resources or priors are unavailable. This paper introduces PENCIL, an end-to-end framework that treats labels as learnable probability distributions, enabling the model to correct its own training data dynamically.

Methods

The PENCIL framework (Probabilistic End-to-end Noise Correction In Labels) shifts the paradigm from fixed categorical labels to learnable label distributions. By representing labels as vectors of probabilities, the framework allows for continuous updates via backpropagation.

The PENCIL framework overview, showing the interaction between network predictions, label distributions, and the three loss functions.

The optimization process is guided by three primary loss functions:

  • Classification Loss ($L_c$): Utilizes an Inverse KL-divergence. Unlike standard cross-entropy, which can suffer from vanishing gradients when a label estimate is near zero, the inverse formulation ensures a strong gradient signal, allowing the model to recover even when it initially assigns low probability to the correct class.
  • Compatibility Loss ($L_o$): Acts as a regularizer by ensuring the updated label distribution does not deviate excessively from the initial noisy label.
  • Entropy Loss ($L_e$): Encourages the model to produce confident, "peaky" distributions as training progresses, preventing the model from remaining in a state of high uncertainty.

Training is conducted in three stages: an initial backbone learning phase to capture general features, the core PENCIL learning phase where weights and labels are updated simultaneously, and a final fine-tuning phase.

Experimental Results

PENCIL was evaluated across several benchmarks, including CIFAR-10/100 with synthetic noise and the large-scale real-world Clothing1M dataset.

Performance comparison on CIFAR-100 under varying rates of symmetric and asymmetric noise.

On the Clothing1M dataset, which contains approximately 40% real-world noise, PENCIL achieved a state-of-the-art accuracy of 73.49%, significantly outperforming standard cross-entropy (68.94%). In synthetic noise tests on CIFAR-100, PENCIL maintained high performance even at 40% noise, reaching 69.12% accuracy. The framework also demonstrated robustness on clean datasets like CUB-200, where it actually improved performance by resolving subtle labeling ambiguities.

Conclusion

PENCIL provides a robust, end-to-end solution for training deep networks on noisy data without requiring auxiliary clean sets. By treating labels as learnable parameters and employing an inverse KL-divergence loss, it effectively "bootstraps" itself to correct label errors. While the method faces challenges under extreme noise conditions (e.g., 80% symmetric noise), its general applicability and performance gains across diverse tasks make it a powerful tool for large-scale, real-world machine learning.

Summary updated

BibTeX
@misc{yi2022pencil,
  author = {Kun Yi and Guo-Hua Wang and Jianxin Wu},
  title = {{PENCIL: Deep Learning with Noisy Labels}},
  year = {2022},
  eprint = {2202.08436},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.08436},
}
Figure