Asymmetric Loss Functions for Learning with Noisy Labels

Xiong Zhou, Xianming Liu, Junjun Jiang, Xin Gao, Xiangyang Ji

TL;DR

Deep learning models easily overfit to noisy labels, and traditional "symmetric" robust loss functions often cause severe underfitting due to strict optimization constraints. This paper introduces Asymmetric Loss Functions (ALFs), a flexible new class of robust losses that maintain noise tolerance under a realistic "clean-labels-domination" assumption while offering significantly better optimization properties.

What Problem Does This Paper Address?

Deep neural networks (DNNs) are notorious for memorizing corrupted or noisy labels in training data, which severely degrades their performance during inference. To combat this, researchers design noise-tolerant loss functions. A highly popular strategy relies on symmetric loss functions (like Mean Absolute Error), which possess theoretical guarantees against uniform label noise.

However, the symmetric condition is incredibly restrictive. It prevents the use of many standard convex loss functions, making optimization difficult and frequently leading to severe underfitting on complex datasets. The authors of this paper ask a fundamental question: Can we relax the symmetric condition to design more flexible, easily optimized loss functions that still resist label noise?

Methods

The authors break away from strict symmetry by introducing a more realistic framework based on the clean-labels-domination assumption: in a noisy dataset, a sample is still more likely to be annotated with its true semantic label than any single specific incorrect class label.

Using this assumption, they develop Asymmetric Loss Functions (ALFs) based on a "largest-takes-all" strategy. When minimizing the risk under noisy conditions, the optimization direction naturally shifts toward the loss term with the maximum weight (the true label), effectively neutralizing the impact of the noisy labels.

The key methodological contributions include:

  • The Asymmetry Ratio ($r$): A new mathematical metric designed to quantify the degree of asymmetry in a loss function. The authors prove that a higher asymmetry ratio directly corresponds to stronger noise tolerance.
  • Novel Asymmetric Loss Variants: By modifying standard loss functions, they derive three new asymmetric families: Asymmetric Generalized Cross Entropy (AGCE), Asymmetric Unhinged Loss (AUL), and Asymmetric Exponential Loss (AEL).

The geometric behavior of these modified losses can be seen below:

Illustration of the proposed asymmetric loss functions (AGCE and AUL) across different parameter settings.
  • Integration with APL: They show that ALFs seamlessly integrate into the Active Passive Loss (APL) framework (combining a robust passive loss with a normalized active loss) to maximize both noise robustness and training convergence speed.

Datasets

The authors evaluated their approach on several standard computer vision benchmarks:

  • MNIST, CIFAR-10, and CIFAR-100: Evaluated using both synthetic symmetric noise (rates ranging from 20% to 80%) and asymmetric noise (rates from 10% to 40%).
  • WebVision 1.0: A large-scale, real-world noisy dataset containing web images. The authors used the standard "Mini" setting (the first 50 classes) to validate performance against real-world, non-synthetic label corruption.

Key Insights and Ideas

  • Symmetry is Not a Necessity: The core "aha moment" of the paper is that strict symmetry is an over-engineered requirement for noise tolerance. As long as the loss function satisfies the asymmetric "largest-takes-all" condition, the network will prioritize clean labels.
  • Balancing Robustness and Fitting Ability: The authors mathematically link the dataset's clean level to the required asymmetry ratio of the loss function. This reveals a fundamental trade-off: a higher asymmetry ratio provides robust protection against heavy noise but can limit the model's capacity to fit complex data.
  • Latent Space Separation: Under extreme noise (e.g., 80% symmetric noise), standard robust losses like Generalized Cross Entropy (GCE) completely fail, causing class representations to blend together in the network's final layers. Asymmetric losses preserve clean, well-bounded class clusters even under severe corruption.
t-SNE visualizations on MNIST comparing standard GCE (top) and the proposed AGCE (bottom) under varying levels of symmetric noise.

Key Results

  • Extreme Noise Resilience: On CIFAR-10 with a massive 80% symmetric noise rate, the proposed Asymmetric Unhinged Loss (AUL) achieved a test accuracy of 52.92%, vastly outperforming standard Cross Entropy (19.55%) and the symmetric Generalized Cross Entropy (26.67%).
  • State-of-the-Art Framework Performance: When combined with Normalized Cross Entropy (NCE+AUL and NCE+AGCE), the proposed methods consistently achieved top-3 results across almost all noise rates on CIFAR-10 and CIFAR-100, frequently outperforming all baseline methods.
  • Real-World Validation: On the real-world noisy WebVision dataset, AGCE achieved a top-1 validation accuracy of 69.40%, outperforming standard Cross Entropy (66.96%) and GCE (61.76%).

Limitations and Future Work

While ALFs show remarkable robustness, they are not a silver bullet. Under high asymmetric noise rates ($\eta = 0.4$), the loss functions can still suffer from underfitting if hyper-parameters are not carefully tuned.

Additionally, selecting the optimal hyper-parameters requires an intuitive understanding of the dataset's noise level to balance the asymmetry ratio against the model's fitting capacity. The authors suggest that future work should focus on developing adaptive methods that dynamically adjust the asymmetry ratio during the training process as the model becomes more confident.

Summary updated

Abstract

Robust loss functions are essential for training deep neural networks with better generalization power in the presence of noisy labels. Symmetric loss functions are confirmed to be robust to label noise. However, the symmetric condition is overly restrictive. In this work, we propose a new class of loss functions, namely \textit{asymmetric loss functions}, which are robust to learning with noisy labels for various types of noise. We investigate general theoretical properties of asymmetric loss functions, including classification calibration, excess risk bound, and noise tolerance. Meanwhile, we introduce the asymmetry ratio to measure the asymmetry of a loss function. The empirical results show that a higher ratio would provide better noise tolerance. Moreover, we modify several commonly-used loss functions and establish the necessary and sufficient conditions for them to be asymmetric. Experimental results on benchmark datasets demonstrate that asymmetric loss functions can outperform state-of-the-art methods. The code is available at \href{https://github.com/hitcszx/ALFs}{https://github.com/hitcszx/ALFs}
BibTeX
@inproceedings{zhou2021asymmetric,
  author = {Xiong Zhou and Xianming Liu and Junjun Jiang and Xin Gao and Xiangyang Ji},
  title = {{Asymmetric Loss Functions for Learning with Noisy Labels}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
}
Figure