Analytical Softmax Temperature Setting from Feature Dimensions for Model- and Domain-Robust Classification
Not on the map. Why?
Abstract (arXiv)
In deep learning-based classification tasks, the softmax function's temperature parameter T critically influences the output distribution and overall performance. This study presents a novel theoretical insight that the optimal temperature T^* is uniquely determined by the dimensionality of the feature representations, thereby enabling training-free determination of T^*. Despite this theoretical grounding, empirical evidence reveals that T^* fluctuates under practical conditions owing to variations in models, datasets, and other confounding factors. To address these influences, we propose and optimize a set of temperature determination coefficients that specify how T^* should be adjusted based on the theoretical relationship to feature dimensionality. Additionally, we insert a batch normalization layer immediately before the output layer, effectively stabilizing the feature space. Building on these coefficients and a suite of large-scale experiments, we develop an empirical formula to estimate T^* without additional training while also introducing a corrective scheme to refine T^* based on the number of classes and task complexity. Our findings confirm that the derived temperature not only aligns with the proposed theoretical perspective but also generalizes effectively across diverse tasks, consistently enhancing classification performance and offering a practical, training-free solution for determining T^*.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 32 of its 53 references that are in the map. First posted on arXiv 22 Apr 2025.
Builds on
32 of 53 references.
References · 32
- 2017Attention Is All You Needcited by 60,361
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,364
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2015Distilling the Knowledge in a Neural Networkcited by 10,324
- 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 7,005
- 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,442
- 2016Layer Normalizationcited by 5,669
- 2015Rethinking the Inception Architecture for Computer Visioncited by 5,475
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 5,045
20 more
- 2017On Calibration of Modern Neural Networkscited by 4,960
- 2015Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classificationcited by 3,611
- 2022A ConvNet for the 2020scited by 3,579
- 2013Describing Textures in the Wildcited by 2,125
- 2017EuroSAT: A Novel Dataset and Deep Learning Benchmark for Land Use and Land Cover Classificationcited by 1,496
- 2019When Does Label Smoothing Help?cited by 988
- 2020Designing Network Design Spacescited by 960
- 2018Deep learning for time series classification: a reviewcited by 576
- 2017Skin Lesion Analysis Toward Melanoma Detection: A Challenge at the 2017 International Symposium on Biomedical Imaging (ISBI), Hosted by the International Skin Imaging Collaboration (ISIC)cited by 549
- 2020Understanding the Behaviour of Contrastive Losscited by 398
- 2019BCN20000: Dermoscopic Lesions in the Wildcited by 225
- 2016Deep Pyramidal Residual Networkscited by 163
- 2022Curriculum Temperature for Knowledge Distillationcited by 112
- 2024Logit Standardization in Knowledge Distillationcited by 102
- 2020Delving Deep into Label Smoothingcited by 94
- 2020Temperature check: theory and practice for training models with softmax-cross-entropy lossescited by 31
- 2022Adaptive Temperature Scaling for Robust Calibration of Deep Neural Networkscited by 24
- 2018Heated-Up Softmax Embeddingcited by 15
- 2019Spectral Metric for Dataset Complexity Assessmentcited by 15
- 2025Exploring the Impact of Temperature Scaling in Softmax for Classification and Adversarial Robustnesscited by 9
Built on by
Not cited yet.