Skip to content

PeymanMorteza/GEM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GEM : GMM based Energy Measurement

This repository contains the code for Provable guarantees for undrestanding out-of-distribution Detection by Peyman Morteza and Sharon Yixuan Li. Substantial part of this codebase is based on Energy-OOD.

Alt text

Required datasets

GEM-score computation

  • Download the required data sets into ./data/.
  • Run the following to see performance of GEM method on OOD data using a WideResNet architecture pretrained on CIFAR-10:
bash run.sh GEM 0
  • Run the following to see performance of GEM method on OOD data using a WideResNet architecture pretrained on CIFAR-100:
bash run.sh GEM 1

Experimental Result on CIFAR-10

Model name FPR95 AUROC AUPR
Softmax score 51.04 90.90 97.92
ODIN 35.71 91.09 97.62
Mahalanobis 36.96 93.24 98.47
Energy score 33.01 91.88 97.83
GEM (ours) 37.21 93.23 98.47

Experimental Result on CIFAR-100

Model name FPR95 AUROC AUPR
Softmax score 80.41 75.53 93.93
ODIN 74.64 77.43 94.23
Mahalanobis 57.01 82.70 95.68
Energy score 73.60 79.56 94.87
GEM (ours) 57.03 82.67 95.66

Citation

  @article{morteza2022provable,
          title={Provable Guarantees for Understanding Out-of-distribution Detection}, 
          author={Morteza, Peyman and Li, Yixuan},
          journal={Proceedings of the AAAI Conference on Artificial Intelligence},
          year={2022}
          }

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published