Abstract
While cross-entropy loss is the standard surrogate for classification in deep learning, its theoretical justification has largely relied on asymptotic Bayes consistency. This paper establishes the first non-asymptotic $\mathcal{H}$-consistency bounds for the "comp-sum" family of losses, which includes cross-entropy as a special case. By analyzing the relationship between surrogate loss minimization and the target zero-one loss within specific hypothesis sets, the authors provide a principled explanation for the empirical success of logistic loss. Furthermore, these theoretical insights are applied to develop a new smooth adversarial loss, ADV-COMP-SUM, which achieves state-of-the-art performance in adversarial robustness benchmarks.
Introduction
In supervised classification, the primary objective is to minimize the zero-one loss, which counts the number of misclassifications. However, because the zero-one loss is discrete and non-convex, direct optimization is NP-hard. Practitioners instead utilize surrogate losses—most notably cross-entropy—to train neural networks.
Historically, the justification for these surrogates has been "Bayes consistency," a property ensuring that with infinite data and an unrestricted model class, minimizing the surrogate leads to the optimal Bayes classifier. However, this framework fails to account for the constraints of the real world: finite datasets and restricted hypothesis sets ($\mathcal{H}$), such as ResNets or Transformers. This research bridges that gap by deriving $\mathcal{H}$-consistency bounds, providing precise mathematical guarantees on how surrogate performance translates to actual classification accuracy for a given model class.
The Comp-Sum Loss Family
The authors introduce a unified framework called comp-sum losses, parameterized by a value $\tau$. This family encompasses several well-known loss functions:
- $\tau = 0$: Sum-exponential loss.
- $\tau = 1$: Standard Logistic loss (Cross-Entropy).
- $1 < \tau < 2$: Generalized cross-entropy.
- $\tau = 2$: Mean Absolute Error (MAE).
By analyzing this spectrum, the researchers identified a fundamental theoretical trade-off. As $\tau$ increases toward 2, the convergence rate improves from $O(\sqrt{\epsilon})$ to $O(\epsilon)$. However, this faster rate is offset by an increasing "minimizability gap"—the discrepancy between the best possible loss within a model class and the theoretical infimum—and a heightened sensitivity to the number of classes ($n$). This analysis explains why the standard logistic loss ($\tau=1$) remains the "sweet spot" for most applications, balancing convergence speed with practical optimizability.
Smooth Adversarial Comp-Sum Loss
Beyond general classification, the paper addresses the challenge of adversarial robustness. Standard adversarial training often relies on non-convex margin losses that can be difficult to optimize. Leveraging their consistency bounds, the authors derived a "smoothed" version of the comp-sum loss specifically for adversarial contexts.
This smooth adversarial loss is designed to remain consistent even under input perturbations. By providing a more stable optimization landscape, this approach allows models to bridge the gap between "clean" accuracy and "robust" accuracy, which are often at odds in traditional defense mechanisms.
Empirical Results
The theoretical findings were validated through extensive testing on standard benchmarks, including CIFAR-10, CIFAR-100, and SVHN, using WideResNet (WRN) architectures. The resulting algorithm, ADV-COMP-SUM, was compared against TRADES, a leading adversarial defense method.
Performance Benchmarks
On the CIFAR-10 dataset (WRN-70-16 architecture), the results demonstrated significant improvements:
- Robust Accuracy: ADV-COMP-SUM achieved 57.77% accuracy under the rigorous "AutoAttack" protocol, outperforming TRADES (57.05%).
- Clean Accuracy: Unlike many robust models that suffer a "robustness tax," ADV-COMP-SUM improved clean accuracy to 86.16%, compared to 85.34% for TRADES.
These gains were consistent across CIFAR-100 and SVHN, suggesting that the theoretical consistency of the loss function translates directly to more reliable empirical performance across different data distributions.
Discussion and Limitations
While this work provides a significant step forward in the theoretical understanding of deep learning losses, several avenues for future research remain. The current proofs assume "complete" hypothesis sets—models capable of outputting any real-valued score. While this is a common assumption for neural networks, extending these bounds to more restricted or non-complete sets would provide even tighter guarantees.
Additionally, while $\tau=2$ (MAE) offers superior theoretical convergence rates, it remains notoriously difficult to optimize in deep architectures. Future work into the optimization landscape of high-$\tau$ losses could potentially unlock the performance benefits predicted by the theory. Finally, the behavior of these $\mathcal{H}$-consistency bounds in the presence of label noise remains an open question of high practical importance.
Conclusion
By providing the first $\mathcal{H}$-consistency bounds for the comp-sum loss family, this research moves beyond asymptotic justifications for cross-entropy. The analysis not only confirms why current practices work but also provides a principled framework for developing new, more robust loss functions. The success of the ADV-COMP-SUM algorithm demonstrates that theoretical rigor in loss function design can lead to tangible improvements in model accuracy and security.
Summary updated