Abstract
The Ensemble Soft-Margin Softmax (EM-Softmax) loss is proposed to enhance image classification by improving feature discriminability and classifier robustness. By integrating a distance-based soft margin and a diversity-regularized ensemble of internal classifiers using the Hilbert-Schmidt Independence Criterion (HSIC), EM-Softmax achieves superior performance over standard softmax and complex angular margin methods with minimal computational overhead.
Introduction
Convolutional Neural Networks (CNNs) typically rely on the softmax loss for training. However, standard softmax does not explicitly encourage feature discriminability—the clustering of features within the same class and their separation across different classes. While previous methods like L-Softmax and A-Softmax introduced angular margins to address this, they often suffer from mathematical complexity and training instability. This paper introduces EM-Softmax, which simplifies the margin approach and leverages an ensemble of diverse classifiers to strengthen the final classification layer.
Methodology
The EM-Softmax loss consists of two primary components:
- Soft-Margin Softmax (M-Softmax): Instead of complex angular calculations, a non-negative margin $m$ is subtracted from the logit of the ground-truth class. This forces the network to learn features that make the correct class score significantly higher than others, providing a more stable and computationally efficient alternative to angular margins.
- Diversity Regularized Ensemble (E-Softmax): The architecture employs multiple classifiers ($V$) at the final layer. To prevent these classifiers from becoming redundant, the Hilbert-Schmidt Independence Criterion (HSIC) is used as a regularization term. Minimizing HSIC ensures that the classifiers remain statistically independent and diverse.
The total loss is the sum of the ensemble losses and the HSIC diversity penalty. During inference, predictions from all classifiers are averaged for a robust final output.
Experimental Setup
The proposed method was evaluated on several benchmarks, including MNIST, CIFAR-10, CIFAR-100, and ImageNet32 (a downsampled version of ImageNet with 1,000 classes). These datasets provide a comprehensive test of the model's ability to handle varying numbers of classes and image complexities.
Results and Discussion
EM-Softmax consistently outperforms standard softmax and other margin-based methods. For instance, on CIFAR-100+, it achieved 75.69% accuracy compared to 69.15% for the baseline. On ImageNet32, it reached 49.22% Top-1 accuracy.
Hyperparameter Sensitivity
The performance of EM-Softmax is influenced by the diversity weight $\lambda$. As shown in Figure 1, there is an optimal range for $\lambda$ that maximizes accuracy by balancing the ensemble's diversity. If $\lambda$ is too high or too low, the accuracy rate tends to decrease, highlighting the importance of proper tuning for this parameter.
Impact of Ensemble Size
Increasing the number of classifiers ($V$) generally improves performance, although the gains tend to plateau. Figure 4 illustrates this trend, showing a significant jump in accuracy when moving from a single classifier to an ensemble of two ($V=2$). This suggests that a small ensemble can capture most of the benefits without significant parameter expansion.
Conclusion
EM-Softmax provides a practical and efficient "drop-in" replacement for standard softmax. By combining a simple distance-based margin with a diversity-regularized ensemble, it significantly enhances classification performance. While the method introduces new hyperparameters like $m$ and $\lambda$, the empirical results demonstrate its robustness and efficiency across various standard datasets.
Summary updated