Skip to main content
QUICK REVIEW

[Paper Review] Ensemble Soft-Margin Softmax Loss for Image Classification

Xiaobo Wang, Shifeng Zhang|arXiv (Cornell University)|May 10, 2018
Advanced Neural Network ApplicationsComputer Science25 references6 citations
TL;DR

This paper proposes Ensemble Soft-Margin Softmax (EM-Softmax), a novel loss function that enhances deep image classification by combining a soft-margin softmax to improve feature discriminability and an ensemble of weak classifiers using Hilbert-Schmidt Independence Criterion (HSIC) for stronger decision boundaries. EM-Softmax achieves state-of-the-art accuracy on CIFAR-10 and CIFAR-100 with lower model size and training time than model averaging or dropout-based ensembles.

ABSTRACT

Softmax loss is arguably one of the most popular losses to train CNN models for image classification. However, recent works have exposed its limitation on feature discriminability. This paper casts a new viewpoint on the weakness of softmax loss. On the one hand, the CNN features learned using the softmax loss are often inadequately discriminative. We hence introduce a soft-margin softmax function to explicitly encourage the discrimination between different classes. On the other hand, the learned classifier of softmax loss is weak. We propose to assemble multiple these weak classifiers to a strong one, inspired by the recognition that the diversity among weak classifiers is critical to a good ensemble. To achieve the diversity, we adopt the Hilbert-Schmidt Independence Criterion (HSIC). Considering these two aspects in one framework, we design a novel loss, named as Ensemble soft-Margin Softmax (EM-Softmax). Extensive experiments on benchmark datasets are conducted to show the superiority of our design over the baseline softmax loss and several state-of-the-art alternatives.

Motivation & Objective

  • To address the dual limitations of standard softmax loss: poor feature discriminability and weak classifier learning in deep CNNs.
  • To improve feature discrimination by introducing a soft-margin softmax function that explicitly encourages inter-class separation.
  • To strengthen the classifier by ensembling multiple weak classifiers derived from the same model architecture.
  • To ensure diversity among weak classifiers using the Hilbert-Schmidt Independence Criterion (HSIC) for effective ensemble learning.
  • To achieve higher accuracy with lower model size and training cost than model averaging or dropout-based ensembling strategies.

Proposed method

  • Design a soft-margin softmax function that modifies the standard softmax by introducing a margin parameter to enhance inter-class separation in feature space.
  • Train multiple weak classifiers from the same backbone network with different random weight initializations to create diverse base models.
  • Apply the Hilbert-Schmidt Independence Criterion (HSIC) as a regularizer to maximize statistical independence between weak classifier outputs, promoting diversity in the ensemble.
  • Optimize the ensemble using a joint loss combining cross-entropy with HSIC regularization, enabling end-to-end training of the full model.
  • Integrate the ensemble strategy into the standard softmax training pipeline without architectural changes, maintaining compatibility with existing CNN frameworks.
  • Use a single network with multiple forward passes per batch to simulate an ensemble, reducing memory and inference overhead.

Experimental results

Research questions

  • RQ1Can a soft-margin softmax function improve the discriminative power of CNN features in image classification?
  • RQ2Does ensembling multiple weak classifiers trained from the same model architecture lead to a stronger overall classifier?
  • RQ3Can HSIC-based regularization effectively promote diversity among weak classifiers in an ensemble?
  • RQ4How does the proposed EM-Softmax loss compare in accuracy, model size, and training efficiency to model averaging and dropout-based ensembling?
  • RQ5Can the proposed method achieve state-of-the-art performance on standard image classification benchmarks like CIFAR-10 and CIFAR-100?

Key findings

  • EM-Softmax achieved 93.31% top-1 accuracy on CIFAR-10, outperforming the baseline softmax (90.95%) and model averaging (90.97%) with significantly lower model size.
  • On CIFAR-100, EM-Softmax reached 72.74% accuracy, surpassing the best baseline model averaging (70.01%) and softmax with dropout (68.01%).
  • The EM-Softmax model required only 1.01 hours of training time on two Titan X GPUs, much faster than model averaging (3.02–4.82 hours) while achieving higher accuracy.
  • The EM-Softmax model size was 15.2 MB, substantially smaller than the 129.35 MB model averaging ensemble, making it more deployable.
  • Adding dropout to EM-Softmax yielded only marginal gains (93.49% vs. 93.31%), indicating that the ensemble strategy is more effective than dropout for improving generalization.
  • The HSIC-based diversity regularization effectively improved generalization, as evidenced by consistent performance gains across multiple datasets and architectures.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.