Softmax Dissection: Towards Understanding Intra- and Inter-Class Objective for Embedding Learning
Lanqing He, Zhongdao Wang, Yali Li, Shengjin Wang
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.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 1b7a78d7-24c0-46d6-82a2-e51d04678d36Cited by top-tier papers3
- Killing Two Birds with One Stone: Efficient and Robust Training of Face Recognition CNNs by Partial FCXiang An, Jiankang Deng, Jia Guo, Ziyong Feng et al.CVPR 2022 · 77 citations
- ANN Softmax: Acceleration of Extreme Classification TrainingKang Zhao, Liuyihan Song, Yingya Zhang, Pan Pan et al.VLDB 2022 · 8 citations
- Rotation Consistent Margin Loss for Efficient Low-Bit Face RecognitionYudong Wu, Yichao Wu, Ruihao Gong, Yuanhao Lv et al.CVPR 2020
Related papers
- SphereFace2: Binary Classification is All You Need for Deep Face RecognitionYandong Wen, Weiyang Liu, Adrian Weller, Bhiksha Raj et al.ICLR 2022 · 70 citations
- UniFace: Unified Cross-Entropy Loss for Deep Face RecognitionJiancan Zhou, Xi Jia, Qiufu Li, Linlin Shen et al.ICCV 2023 · 38 citations
- UniTSFace: Unified Threshold Integrated Sample-to-Sample Loss for Face RecognitionQiufu Li, Xi Jia, Jiancan Zhou, Linlin Shen et al.NeurIPS 2023 · 20 citations
- SoftTriple Loss: Deep Metric Learning Without Triplet SamplingQi Qian, Lei Shang, Baigui Sun, Juhua Hu et al.ICCV 2019 · 419 citations
- Fair Loss: Margin-Aware Reinforcement Learning for Deep Face RecognitionBingyu Liu, Weihong Deng, Yaoyao Zhong, Mei Wang et al.ICCV 2019 · 82 citations
