Adaptive Sparse Softmax: An Effective and Efficient Softmax Variant
Not on the map. Why?
Abstract (arXiv)
Softmax with the cross entropy loss is the standard configuration for current neural classification models. The gold score for a target class is supposed to be 1, but it is never reachable under the softmax schema. Such a problem makes the training process continue forever and leads to overfitting. Moreover, the "target-approach-1" training goal forces the model to continuously learn all samples, leading to a waste of time in handling some samples which have already been classified correctly with high confidence, while the test goal simply requires the target class of each sample to hold the maximum score. To solve the above weaknesses, we propose the Adaptive Sparse softmax (AS-Softmax) which designs a reasonable and test-matching transformation on top of softmax. For more purposeful learning, we discard the classes with far smaller scores compared with the actual class during training. Then the model could focus on learning to distinguish the target class from its strong opponents, which is also the great challenge in test. In addition, since the training losses of easy samples will gradually drop to 0 in AS-Softmax, we develop an adaptive gradient accumulation strategy based on the masked sample ratio to speed up training. We verify the proposed AS-Softmax on a variety of text multi-class, text multi-label, text token classification, image classification and audio classification tasks with class sizes ranging from 5 to 5000+. The results show that AS-Softmax consistently outperforms softmax and its variants, and the loss of AS-Softmax is remarkably correlated with classification performance in validation. Furthermore, adaptive gradient accumulation strategy can bring about 1.2x training speedup comparing with the standard softmax while maintaining classification effectiveness.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 37 of its 62 references that are in the map. First posted on arXiv 5 Aug 2025.
Builds on
37 of 62 references.
References · 37
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2015Rethinking the Inception Architecture for Computer Visioncited by 5,475
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2020wav2vec 2.0: A Framework for Self-Supervised Learning of Speech Representationscited by 3,905
- 2018CosFace: Large Margin Cosine Loss for Deep Face Recognitioncited by 971
- 2017SphereFace: Deep Hypersphere Embedding for Face Recognitioncited by 737
- 2019An Evaluation Dataset for Intent Classification and Out-of-Scope Predictioncited by 386
- 2016From Softmax to Sparsemax: A Sparse Model of Attention and Multi-Label Classificationcited by 341
- 2020Visual Transformers: Token-based Image Representation and Processing for Computer Visioncited by 334
- 2021LexGLUE: A Benchmark Dataset for Legal Language Understanding in Englishcited by 310
- 2016Large-Margin Softmax Loss for Convolutional Neural Networkscited by 296
25 more
- 2018Additive Margin Softmax for Face Verificationcited by 278
- 2015Large-scale Classification of Fine-Art Paintings: Learning The Right Metric on The Right Featurecited by 182
- 2019Sparse Sequence-to-Sequence Modelscited by 170
- 2017Breaking the Softmax Bottleneck: A High-Rank RNN Language Modelcited by 152
- 2017HDLTex: Hierarchical Deep Learning for Text Classificationcited by 106
- 2019Large-Scale Multi-Label Text Classification on EU Legislationcited by 104
- 2017L2-constrained Softmax Loss for Discriminative Face Verificationcited by 96
- 2014On Using Very Large Target Vocabulary for Neural Machine Translationcited by 80
- 2020SpellGCN: Incorporating Phonological and Visual Similarities into Language Models for Chinese Spelling Checkcited by 57
- 2022Incorporating Hierarchy into Text Encoder: a Contrastive Learning Approach for Hierarchical Text Classificationcited by 52
- 2017Adaptive Sampled Softmax with Kernel Based Samplingcited by 38
- 2021NLP From Scratch Without Large-Scale Pretraining: A Simple and Efficient Frameworkcited by 34
- 2019Sampled Softmax with Random Fourier Featurescited by 33
- 2015An Exploration of Softmax Alternatives Belonging to the Spherical Loss Familycited by 27
- 2018Sigsoftmax: Reanalysis of the Softmax Bottleneckcited by 20
- 2021Exploration and Exploitation: Two Ways to Improve Chinese Spelling Correction Modelscited by 17
- 2018Accelerated Training for Massive Classification via Dynamic Class Selectioncited by 16
- 2022ZLPR: A Novel Loss for Multi-label Classificationcited by 16
- 2015Strategies for Training Large Vocabulary Neural Language Modelscited by 14
- 2020AMC-Loss: Angular Margin Contrastive Loss for Improved Explainability in Image Classificationcited by 14
- 2014Efficient Exact Gradient Update for training Deep Networks with Very Large Sparse Targetscited by 10
- 2021Efficient Softmax Approximation for Deep Neural Networks with Attention Mechanismcited by 9
- 2021Evidential Softmax for Sparse Multimodal Distributions in Deep Generative Modelscited by 6
- 2019C-RPNs: Promoting Object Detection in real world via a Cascade Structure of Region Proposal Networkscited by 2
- 2021Sparse-softmax: A Simpler and Faster Alternative Softmax Transformationcited by 2
Built on by
Not cited yet.