[Paper Review] Leveraging Class Similarity to Improve Deep Neural Network Robustness
This paper proposes a novel Mixed Cross Entropy Loss (MCEL) that improves deep neural network robustness by incorporating a data-driven class-similarity distribution into the loss function, reducing over-penalization for misclassifications between semantically similar classes. The method improves generalization and performance on noisy data without sacrificing top-1 accuracy, especially under label noise and in low-data regimes.
Traditionally artificial neural networks (ANNs) are trained by minimizing the cross-entropy between a provided groundtruth delta distribution (encoded as one-hot vector) and the ANN's predictive softmax distribution. It seems, however, unacceptable to penalize networks equally for missclassification between classes. Confusing the class "Automobile" with the class "Truck" should be penalized less than confusing the class "Automobile" with the class "Donkey". To avoid such representation issues and learn cleaner classification boundaries in the network, this paper presents a variation of cross-entropy loss which depends not only on the sample class but also on a data-driven prior "class-similarity distribution" across the classes encoded in a matrix form. We explore learning the class-similarity distribution using a datadriven method and then show that by training with our modified similarity-driven loss, we obtain slightly better generalization performance over multiple architectures and datasets as well as improved performance on noisy testing scenarios.
Motivation & Objective
- To address the over-penalization of misclassifications between semantically similar classes (e.g., 'Automobile' vs. 'Truck') in standard cross-entropy training.
- To improve generalization by learning a data-driven class-similarity distribution that reflects intrinsic relationships between classes.
- To develop a loss function that provides structural guidance in the latent space, leading to more robust and generalizable decision boundaries.
- To empirically validate that MCEL improves performance on noisy and small datasets without degrading top-1 accuracy.
Proposed method
- Proposes a Mixed Cross Entropy Loss (MCEL) that combines traditional cross-entropy with a secondary cross-entropy between predictions and a learned class-similarity distribution.
- Uses Linear Discriminant Analysis (LDA) to learn the class-similarity distribution from data, encoding pairwise class relationships in a matrix.
- Applies a convex combination of the two cross-entropy terms, weighted by a hyperparameter ε that controls the influence of the similarity prior.
- Trains deep neural networks using MCEL across multiple architectures (ResNet, WRN) and datasets (CIFAR-10, CIFAR-100, ImageNet ILSVRC-2015).
- Stores the learned similarity matrix once per dataset (e.g., ~40KB for CIFAR-100), enabling efficient inference and reuse.
- Employs a prior weight ε to balance between standard cross-entropy and the similarity-aware loss, with ablation studies on optimal values.
Experimental results
Research questions
- RQ1Can incorporating a data-driven class-similarity prior into the loss function improve deep neural network generalization?
- RQ2Does MCEL reduce overfitting to hard-to-distinguish or ambiguously labeled examples compared to standard cross-entropy?
- RQ3How does MCEL perform under label noise, particularly in small or noisy datasets like CIFAR-10 with artificially corrupted labels?
- RQ4Can MCEL improve performance on low-parameter architectures (e.g., ResNet-32) without compromising top-1 accuracy?
- RQ5Is the MCEL framework robust across diverse network architectures and benchmark datasets?
Key findings
- On CIFAR-10, MCEL improves top-1 accuracy from 90.29% (ResNet) to 90.44%, and on CIFAR-100 from 68.24% to 67.99% under the same architecture.
- With label noise introduced by swapping 10% of labels between 5 class pairs, MCEL-trained models generalize significantly better than standard cross-entropy models.
- On ResNet-32, MCEL achieves 92.02% top-1 accuracy on CIFAR-10 (vs. 91.77% baseline), and 63.72% on CIFAR-100 (vs. 63.34% baseline), demonstrating gains even in low-parameter models.
- The MCEL loss curve shows smoother convergence than standard cross-entropy, suggesting more stable training dynamics.
- On ImageNet ILSVRC-2015, MCEL achieves 77.998% top-1 accuracy (vs. 77.00% for ResNet-152), with a notable 93.982% top-5 accuracy, approaching state-of-the-art performance.
- The similarity matrix is computationally lightweight (~40KB for CIFAR-100), requiring only one-time computation per dataset, making it practical for deployment.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.