Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Generalized Cross Entropy Loss for Training Deep Neural Networks with Noisy Labels

Lq loss lets deep networks train on noisy labels with less memorization

  • Problem Cross entropy loss makes deep networks memorize wrong labels and hurt clean test accuracy. MAE resists wrong labels but learns too slowly, so accuracy stays low.
  • Method The Lq loss is a family that moves from cross entropy at q near 0 to MAE at q equals 1. Truncated Lq sets a floor on low-confidence samples so they stop affecting training.
  • Results On CIFAR-100 with noisy labels, MAE peaked at 38.29 percent while cross entropy reached 39.92 percent on clean data. Truncated Lq scored 79.55 under open-set noise, against 79.28 for Wang et al.

Why cross entropy and MAE both fall short

Cross entropy (CCE) is the default training loss, but a DNN has enough capacity to fit labels that are simply wrong. Once the network starts fitting wrong labels, its accuracy on clean test data suffers, so the training loss itself needs to be robust. Ghosh et al. showed that MAE can tolerate label noise under certain assumptions, which made it a natural candidate.

The catch is that MAE makes learning slow. On clean CIFAR-10, the test accuracy curve for MAE took much longer to converge than the curve for CCE, and the final accuracy was lower. On CIFAR-100 the gap was starker: MAE peaked at 38.29% after 2000 epochs, while CCE reached 39.92% after 7 epochs. So the property that makes MAE robust is the same property that makes it hard to train.

A loss family that slides between CCE and MAE

The key idea is one loss with a knob q that moves between CCE at one end and MAE at the other. The authors base it on a negative Box-Cox transformation applied to the predicted probability of the labeled class. For a sample with label j, the softmax output for that class is raised to the power q, and the result is subtracted from 1. Dividing by q gives the loss \(L_q(f(x),e_j)=(1-f_j(x)^q)/q\), defined for q in (0, 1].

Using L'Hôpital's rule, the authors show that the limit of this loss as q goes to 0 is CCE. At q = 1 the loss becomes MAE, which is the unhinged loss up to a constant. Because it contains both methods as endpoints, the authors call it a generalization of CCE and MAE. For any input, the sum of the loss over all classes is bounded above by \(c - 1/q\), where c is the number of classes.

Under uniform noise with rate η at most 1 − 1/c, the clean-risk gap between the clean minimizer and the noisy minimizer lies between a negative constant A and zero. The authors note that A grows toward zero as q increases, so a larger q gives a tighter bound. At q = 1, A is zero, and the noisy minimizer matches the clean minimizer on the clean risk.

Why q between 0 and 1 eases training

The gradients explain the difference between CCE and MAE. CCE's gradient carries a 1/f term, so samples with low softmax values for their label get extra weight. That helps on clean data, but it lets CCE fit the wrong labels. MAE's gradient has no such term, so every sample counts equally, which resists noise but slows learning.

For the Lq loss the gradient is \(-f_{y_i}(x_i;\theta)^{q-1}\nabla_\theta f_{y_i}(x_i;\theta)\). Relative to CCE, each sample is multiplied by an extra \(f_{y_i}^q\), so samples the model already disagrees with count for less. Relative to MAE, the factor \(f_{y_i}^{q-1}\) still gives challenging samples more weight, which helps learning. A larger q is more noise-robust but makes optimization harder, so the authors settle on an intermediate value.

Truncation and pruning

The truncated version sets a floor: when the softmax output for the labeled class is at most k, the loss is held at the constant \(L_q(k)\). Since \(L_q(k)=(1-k^q)/q\), that constant does not depend on the network output. A constant loss has zero gradient, so those samples stop affecting training. A larger k tightens the bound, but a k that is too large discards clean samples too.

The authors set k to 0.5 and treat it as a bounded hyperparameter. Starting with that threshold is a problem, because early in training most softmax outputs are below 0.5 for a 10-class problem, so most samples get dropped. The authors therefore rewrite the objective with binary weights \(w_i\) that mark whether each sample is kept. They optimize it by alternating: they update the weights in a pruning step, then update the network with the weights fixed.

Pruning keeps a sample only if its softmax output for the label is at least k and its Lq loss is at most \(L_q(k)\). The authors judge the extra computation from pruning to be negligible, since it needs one pass over the training samples. Algorithm 1 starts all weights at 1, trains, then alternates pruning and training for T iterations. In the experiments, pruning began after the first 40 epochs on CIFAR-10 or 80 on CIFAR-100, and ran every 10 epochs.

Experimental setup

Noisy labels were made by corrupting the true training labels, and 10% of the training data was held out for validation. Only the training and validation labels were corrupted, and test accuracy was computed against the true labels. Each experiment was repeated five times, with new random initializations and new noisy labels each time. The baselines were CCE, MAE, and forward correction, which is the confusion matrix-corrected CCE.

The learning rate was divided by 10 at epochs 40 and 80 for CIFAR-10, and at epochs 80 and 120 for CIFAR-100. FASHION-MNIST used ResNet-18, with the same preprocessing and optimization as CIFAR-10. For the remaining experiments, the authors set q to 0.7.

Uniform noise replaced each true label with a random label drawn by uniform sampling. Class-dependent noise on CIFAR-10 mapped TRUCK to AUTOMOBILE, BIRD to AIRPLANE, DEER to HORSE, and swapped CAT and DOG, each with probability η. On FASHION-MNIST, the class pairs came from a t-SNE plot, so that similar classes were paired. Open-set noise used CIFAR-100 images given random CIFAR-10 labels, with training for 100 epochs.

What q does during noisy training

Before the noisy runs, the authors checked q on clean CIFAR-10 with ResNet-34 trained by Adam. On clean data, a larger q slowed convergence and lowered accuracy. With noise the picture changes: a CCE-trained model first learns predictive patterns and then overfits the noisy labels.

Raising q delays overfitting and gives higher accuracy. The authors read this as the model having time to learn predictive features before it memorizes the noise.

There is a threshold: at η = 0.2, q = 0.8 gave training with no overfitting. The noisier the labels, the higher this threshold appeared. Too large a q hurts accuracy, so q is a hyperparameter to tune on validation. For the rest of the experiments, q = 0.7 gave no overfitting for η up to 0.5.

Closed-set results under uniform and class-dependent noise

It also beat forward correction with the true confusion matrix, which scored 85.07 at that rate. MAE reached only 67.00 at that rate. So the loss alone, with no confusion matrix, outperformed a method that knew the true matrix under uniform noise.

Under class-dependent noise, forward correction with the true confusion matrix was usually strongest, since it used the true matrix. On FASHION-MNIST at rate 0.4, truncated Lq scored 91.62, compared to 88.53 for forward correction with the estimated matrix. Plain Lq did not improve on the baselines for FASHION-MNIST or CIFAR-10 in this setting.

The authors suspect that very similar classes were grouped in the confusion matrices, so the network became confident on wrong labels.

MAE performed poorly on every dataset and at every noise level tested. The authors attribute this to ResNet struggling to optimize with MAE, most visibly on CIFAR-100.

Open-set noise on CIFAR-10

The open-set test followed the setup of Wang et al., with CIFAR-100 images that carry random CIFAR-10 labels. Truncated Lq scored 79.55 with open-set noise, compared to 79.28 for Wang et al. and 62.92 for CCE.

The authors report this as better than the prior state of the art, although the margin over Wang et al. is narrow. Plain Lq scored 71.10 in the same setting, and MAE scored 75.06. The authors say Lq noticeably prevented overfitting in this setting. On closed-set CIFAR-10 in the same setup, truncated Lq scored 79.12, compared to 78.15 for Wang et al.

Lq trailed MAE here, and the authors attribute this to reading test accuracy long after overfitting began. They note that a shallow CNN without data augmentation was used for this experiment.

Limitations

Experiments cover only CIFAR-10, CIFAR-100 and FASHION-MNIST. The ImageNet remark in the discussion of MAE is not tested by any experiment in the paper. Noise is assumed to be conditionally independent of the inputs, given the true label.

The class-dependent bound needs the clean risk of the minimizer to be zero, and it also needs the off-diagonal confusion terms to be smaller than the diagonal ones. Most runs fixed q at 0.7 and k at 0.5, while the authors say both could be optimized for better accuracy. The open-set comparison ran only on CIFAR-10, for 100 epochs, with a shallow CNN and no augmentation.

Paper info

Authors
Zhilu Zhang, Mert R. Sabuncu
Venue
arXiv · Preprint
First published
2018-5-20
Added
2026-11-12
Updated
2018-11-29
Version
v4
arXiv
1805.07836
Category
cs.LG · cs.CV · stat.ML
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Zhilu Zhang, Mert R. Sabuncu (2018). Generalized Cross Entropy Loss for Training Deep Neural Networks with Noisy Labels. arXiv:1805.07836v4. https://arxiv.org/abs/1805.07836v4

BibTeX
@misc{zhang2018generalized,
  title = {{Generalized Cross Entropy Loss for Training Deep Neural Networks with Noisy Labels}},
  author = {Zhilu Zhang and Mert R. Sabuncu},
  year = {2018},
  eprint = {1805.07836},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1805.07836v4}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up