Introduction
Deep learning models typically rely on Softmax Loss (SML) for multi-class classification, while Logistic Loss (LGL) is often relegated to binary tasks. Despite the theoretical appeal of LGL's "one-vs-all" independence, it frequently underperforms SML in practice. This paper investigates the theoretical underpinnings of this performance gap, identifying a fundamental flaw in standard LGL and proposing a robust alternative.
The Multi-Modality Neglect Problem
The authors identify "multi-modality neglect" as the primary reason for LGL's poor multi-class performance. In a one-vs-all LGL setup, the "negative" class is a mixture of all non-target classes. Standard LGL treats this mixture as a single uniform distribution. Consequently, the influence of "hard" negatives (classes highly similar to the target) is diluted by "easy" negatives. This leads to sub-optimal decision boundaries and lower confidence in predictions for similar class pairs.
Proposed Solution: LGL-INR
To address this, the paper introduces In-negative Class Reweighted LGL (LGL-INR). This loss function employs a dynamic, two-level reweighting strategy:
- Global Balancing: Adjusts weights between the target class and the collective negative class.
- Dynamic Local Reweighting: Uses a temperature parameter ($\beta$) to automatically upweight hard sub-classes within the negative distribution during training.
As $\beta$ increases, the model shifts from a "one-vs-all" approach toward a "one-vs-one" strategy, focusing on the most confusable classes. At $\beta=0$, the model reverts to standard one-vs-all behavior.
Experimental Results
The effectiveness of LGL-INR was evaluated on benchmark datasets including FMNIST, KMNIST, and CIFAR10.
As shown in the learning curves above, LGL-INR variants consistently achieve higher testing accuracy and faster convergence compared to both standard LGL and SML across different datasets. On KMNIST, LGL-INR reached an accuracy of 97.46%, surpassing SML's 96.39%.
The theoretical advantage of focusing on hard negatives is further validated by confusion matrix analysis.
The confusion matrices reveal that LGL-INR significantly reduces misclassifications between similar categories, leading to more robust discriminative features. For instance, LGL-INR shows higher diagonal values (correct predictions) and fewer off-diagonal errors compared to its counterparts, particularly for classes that are traditionally difficult to distinguish.
Conclusion
This work provides a rigorous theoretical framework for understanding how loss function design impacts decision boundaries in DNNs. By addressing the multi-modality neglect in Logistic Loss through dynamic reweighting, LGL-INR emerges as a competitive and often superior alternative to the standard Softmax Loss. Future research will explore extending these reweighting principles from the class level to the individual sample level to further refine model performance.
Summary updated