Temperature check: theory and practice for training models with softmax-cross-entropy losses
October 14, 2020 ยท Declared Dead ยท ๐ Trans. Mach. Learn. Res.
"No code URL or promise found in abstract"
Evidence collected by the PWNC Scanner
Authors
Atish Agarwala, Jeffrey Pennington, Yann Dauphin, Sam Schoenholz
arXiv ID
2010.07344
Category
cs.LG: Machine Learning
Cross-listed
cs.AI
Citations
45
Venue
Trans. Mach. Learn. Res.
Last Checked
6 months ago
Abstract
The softmax function combined with a cross-entropy loss is a principled approach to modeling probability distributions that has become ubiquitous in deep learning. The softmax function is defined by a lone hyperparameter, the temperature, that is commonly set to one or regarded as a way to tune model confidence after training; however, less is known about how the temperature impacts training dynamics or generalization performance. In this work we develop a theory of early learning for models trained with softmax-cross-entropy loss and show that the learning dynamics depend crucially on the inverse-temperature $ฮฒ$ as well as the magnitude of the logits at initialization, $||ฮฒ{\bf z}||_{2}$. We follow up these analytic results with a large-scale empirical study of a variety of model architectures trained on CIFAR10, ImageNet, and IMDB sentiment analysis. We find that generalization performance depends strongly on the temperature, but only weakly on the initial logit magnitude. We provide evidence that the dependence of generalization on $ฮฒ$ is not due to changes in model confidence, but is a dynamical phenomenon. It follows that the addition of $ฮฒ$ as a tunable hyperparameter is key to maximizing model performance. Although we find the optimal $ฮฒ$ to be sensitive to the architecture, our results suggest that tuning $ฮฒ$ over the range $10^{-2}$ to $10^1$ improves performance over all architectures studied. We find that smaller $ฮฒ$ may lead to better peak performance at the cost of learning stability.
Community Contributions
Found the code? Know the venue? Think something is wrong? Let us know!
๐ Similar Papers
In the same crypt โ Machine Learning
๐ฎ
๐ฎ
The Ethereal
๐ฎ
๐ฎ
The Ethereal
Continuous control with deep reinforcement learning
๐
๐
Old Age
Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networks
๐
๐
Old Age
Soft Actor-Critic: Off-Policy Maximum Entropy Deep Reinforcement Learning with a Stochastic Actor
๐
๐
Old Age
SGDR: Stochastic Gradient Descent with Warm Restarts
๐ฎ
๐ฎ
The Ethereal
Asynchronous Methods for Deep Reinforcement Learning
Died the same way โ ๐ป Ghosted
R.I.P.
๐ป
Ghosted
Federated Learning: Strategies for Improving Communication Efficiency
R.I.P.
๐ป
Ghosted
In-Datacenter Performance Analysis of a Tensor Processing Unit
R.I.P.
๐ป
Ghosted
Deep Convolutional Neural Networks for Computer-Aided Detection: CNN Architectures, Dataset Characteristics and Transfer Learning
R.I.P.
๐ป
Ghosted