SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2010.03759 · 2020

Energy-based Out-of-distribution Detection

Yixuan Li, Weitang Liu, Xiaoyun Wang, John Owens

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 6 functions out of this paper's own repositories and ran 3 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
omegafragger/DDU — 1 of 2
ml-jku/hopfield-boosting — 1 of 1
wetliu/energy_ood — 1 of 1
marclafon/heatood — 0 of 2
FunctionStatusWhere it lives
BorderEnergy Ran ml-jku/hopfield-boosting/hopfield_boosting/energy.py
code served (permissive licence) · get_code("ef8c66b811cfff22")
centered_cov_torch Ran omegafragger/DDU/utils/gmm_utils.py
code served (permissive licence) · get_code("a76900b1a35e1215")
sample_estimator Ran wetliu/energy_ood/utils/score_calculation.py
code served (permissive licence) · get_code("09d6eb1b24af40a5")
AbastractOODScorer Not yet run marclafon/heatood/heat/scorers/energy_logits_scorer.py
code served (permissive licence) · get_code("bed24a9fdc107664")
EnergyLogitsScorer Not yet run marclafon/heatood/heat/scorers/energy_logits_scorer.py
code served (permissive licence) · get_code("39c737b741eb10d1")
gmm_fit Not yet run omegafragger/DDU/utils/gmm_utils.py
code served (permissive licence) · get_code("3f1fbfd9e791bb48")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Determining whether inputs are out-of-distribution (OOD) is an essential building block for safely deploying machine learning models in the open world. However, previous methods relying on the softmax confidence score suffer from overconfident posterior distributions for OOD data. We propose a unified framework for OOD detection that uses an energy score. We show that energy scores better distinguish in-and out-of-distribution samples than the traditional approach using the softmax scores. Unlike softmax confidence scores, energy scores are theoretically aligned with the probability density of the inputs and are less susceptible to the overconfidence issue. Within this framework, energy can be flexibly used as a scoring function for any pre-trained neural classifier as well as a trainable cost function to shape the energy surface explicitly for OOD detection. On a CIFAR-10 pre-trained WideResNet, using the energy score reduces the average FPR (at TPR 95%) by 18.03% compared to the softmax confidence score. With energy-based training, our method outperforms the state-of-the-art on common benchmarks.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2010.03759")
get_code_for_paper("2010.03759")
have("2010.03759")

Connect an agent — have() is free.