Your Classifier is Secretly an Energy Based Model and You Should Treat it Like One

Will Grathwohl, Kuan-Chieh Wang, Jörn-Henrik Jacobsen, David Duvenaud, Mohammad Norouzi +1 more
12/6/2019
748 citations
cs.LGcs.CVstat.ML

Official code: wgrathwohl/JEM (434 stars, Python, Apache-2.0, last commit 2022-09-16).

Abstract

We propose to reinterpret a standard discriminative classifier of p(y|x) as an energy based model for the joint distribution p(x,y). In this setting, the standard class probabilities can be easily computed as well as unnormalized values of p(x) and p(x|y).

Show full abstract

Within this framework, standard discriminative architectures may beused and the model can also be trained on unlabeled data. We demonstrate that energy based training of the joint distribution improves calibration, robustness, andout-of-distribution detection while also enabling our models to generate samplesrivaling the quality of recent GAN approaches. We improve upon recently proposed techniques for scaling up the training of energy based models and presentan approach which adds little overhead compared to standard classification training. Our approach is the first to achieve performance rivaling the state-of-the-artin both generative and discriminative learning within one hybrid model.

View on arXivView PDF

Code Implementations(1)

wgrathwohl/JEMOfficial100%
Apache-2.0

Project site for "Your Classifier is Secretly an Energy-Based Model and You Should Treat it Like One"

43469PythonDec 6, 20194 years agoApache-2.0

Similar Papers

Cite this paper

@article{grathwohl2019your,
  title  = {Your Classifier is Secretly an Energy Based Model and You Should Treat it Like One},
  author = {Will Grathwohl and Kuan-Chieh Wang and Jörn-Henrik Jacobsen and David Duvenaud and Mohammad Norouzi and Kevin Swersky},
  year   = {2019},
  eprint = {1912.03263},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1912.03263}
}

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/1912.03263.svg)](https://codeofpaper.com/paper/1912.03263)

Discussion