SoftMax Dissection: Towards Understanding Intra- and Inter-Class Objective for Embedding Learning

Abstract

The softmax loss and its variants are widely used as objectives for embedding learning applications like face recognition. However, the intra- and inter-class objectives in Softmax are entangled, therefore a well-optimized inter-class objective leads to relaxation on the intra-class objective, and vice versa. In this paper, we propose to dissect Softmax into independent intra- and inter-class objective (D-Softmax) with a clear understanding. It is straightforward to tune each part to the best state with D-Softmax as objective.Furthermore, we find the computation of the inter-class part is redundant and propose sampling-based variants of D-Softmax to reduce the computation cost. The face recognition experiments on regular-scale data show D-Softmax is favorably comparable to existing losses such as SphereFace and ArcFace. Experiments on massive-scale data show the fast variants significantly accelerates the training process (such as 64×) with only a minor sacrifice in performance, outperforming existing acceleration methods of Softmax in terms of both performance and efficiency.

Cite

Text

He et al. "SoftMax Dissection: Towards Understanding Intra- and Inter-Class Objective for Embedding Learning." AAAI Conference on Artificial Intelligence, 2020. doi:10.1609/AAAI.V34I07.6729

Markdown

[He et al. "SoftMax Dissection: Towards Understanding Intra- and Inter-Class Objective for Embedding Learning." AAAI Conference on Artificial Intelligence, 2020.](https://mlanthology.org/aaai/2020/he2020aaai-softmax/) doi:10.1609/AAAI.V34I07.6729

BibTeX

@inproceedings{he2020aaai-softmax,
  title     = {{SoftMax Dissection: Towards Understanding Intra- and Inter-Class Objective for Embedding Learning}},
  author    = {He, Lanqing and Wang, Zhongdao and Li, Yali and Wang, Shengjin},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year      = {2020},
  pages     = {10957-10964},
  doi       = {10.1609/AAAI.V34I07.6729},
  url       = {https://mlanthology.org/aaai/2020/he2020aaai-softmax/}
}