Fix your classifier: the marginal value of training the last weight layer

Elad Hoffer, Itay Hubara, Daniel Soudry
1/14/2018
cs.LGcs.CVstat.ML

Official code: eladhoffer/fix_your_classifier (34 stars, MIT, last commit 2018-11-30).

Abstract

Neural networks are commonly used as models for classification for a wide variety of tasks. Typically, a learned affine transformation is placed at the end of such models, yielding a per-class value used for classification. This classifier can have a vast number of parameters, which grows linearly with the number of possible classes, thus requiring increasingly more resources. In this work we argue that this classifier can be fixed, up to a global scale constant, with little or no loss of accuracy for most tasks, allowing memory and computational benefits. Moreover, we show that by initializing the classifier with a Hadamard matrix we can speed up inference as well. We discuss the implications for current understanding of neural network models.

View on arXivView PDF

Code Implementations(1)

MIT
347PythonFeb 23, 20187 years agoMIT

Similar Papers

Cite this paper

@article{hoffer2018your,
  title  = {Fix your classifier: the marginal value of training the last weight layer},
  author = {Elad Hoffer and Itay Hubara and Daniel Soudry},
  year   = {2018},
  eprint = {1801.04540},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1801.04540}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1801.04540.svg)](https://codeofpaper.com/paper/1801.04540)

Discussion