Proceedings

Likelihood-free Out-of-Distribution Detection with Invertible Generative Models

Download BibTeX Cite

Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence. Main Track. Pages 2119-2125.

https://doi.org/10.24963/ijcai.2021/292

Abstract

Likelihood of generative models has been used traditionally as a score to detect atypical (Out-of-Distribution, OOD) inputs. However, several recent studies have found this approach to be highly unreliable, even with invertible generative models, where computing the likelihood is feasible. In this paper, we present a different framework for generative model--based OOD detection that employs the model in constructing a new representation space, instead of using it directly in computing typicality scores, where it is emphasized that the score function should be interpretable as the similarity between the input and training data in the new space. In practice, with a focus on invertible models, we propose to extract low-dimensional features (statistics) based on the model encoder and complexity of input images, and then use a One-Class SVM to score the data. Contrary to recently proposed OOD detection methods for generative models, our method does not require computing likelihood values. Consequently, it is much faster when using invertible models with iteratively approximated likelihood (e.g. iResNet), while it still has a performance competitive with other related methods.

  1. [Behrmann et al., 2019] J. Behrmann, W. Grathwohl, R. T. Q. Chen, D. Duvenaud, and J.-H. Jacobsen. Invert- ible residual networks. In International Conference on Machine Learning, pages 573-582. PMLR, 2019.
  2. [Bishop, 1994] C. M. Bishop. Novelty detection and neural network validation. IEE Proceedings-Vision, Image and Signal processing, 141(4):217-222, 1994.
  3. [Chen et al., 2019] R. T. Q. Chen, J. Behrmann, D. K. Du- venaud, and J.-H. Jacobsen. Residual flows for invertible generative modeling. In Advances in Neural Information Processing Systems, pages 9916-9926, 2019.
  4. [Choi et al., 2018] H. Choi, E. Jang, and A. A. Alemi. Waic, but why? generative ensembles for robust anomaly detec- tion. arXiv preprint arXiv:1810.01392, 2018.
  5. [Dinh et al., 2017] L. Dinh, J. Sohl-Dickstein, and S. Ben- gio. Density estimation using real nvp. In International Conference on Learning Representations, 2017.
  6. [Erfani et al., 2016] S. M. Erfani, S. Rajasegarar, S. Karunasekera, and C. Leckie. High-dimensional and large-scale anomaly detection using a linear one- class SVM with deep learning. Pattern Recognition, 58:121-134, 2016.
  7. [Goodfellow et al., 2014] I.
  8. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. Courville, and Y. Bengio. Generative adversarial nets. Advances in neural information processing systems, 27:2672-2680, 2014.
  9. [Kingma and Dhariwal, 2018] D. P. Kingma and P. Dhari- wal. Glow: Generative flow with invertible 1×1 convo- lutions. Advances in Neural Information Processing Sys- tems, (2):10215-10224, 2018.
  10. [Lakshminarayanan et al., 2017] B. Lakshminarayanan, A. Pritzel, and C. Blundell. Simple and scalable predictive uncertainty estimation using deep ensembles. In Advances in Neural Information Processing Systems, 2017.
  11. [Lan and Dinh, 2020] C. L. Lan and L. Dinh. Perfect den- sity models cannot guarantee anomaly detection. arXiv preprint arXiv:2012.03808, 2020.
  12. [Lee et al., 2018] K. Lee, K. Lee, H. Lee, and J. Shin. A simple unified framework for detecting out-of-distribution samples and adversarial attacks. Advances in Neural In- formation Processing Systems, (LID):7167-7177, 2018.
  13. [Morningstar et al., 2021] W. Morningstar, C. Ham, A. Gal- lagher, B. Lakshminarayanan, A. Alemi, and J. Dillon. Density of states estimation for out of distribution detec- tion. In International Conference on Artificial Intelligence and Statistics, pages 3232-3240. PMLR, 2021.
  14. [Nalisnick et al., 2019a] E. Nalisnick, A. Matsukawa, Y. W. Teh, D. Gorur, and B. Lakshminarayanan. Do deep gener- ative models know what they don't know? In International Conference on Learning Representations, 2019.
  15. [Nalisnick et al., 2019b] E. Nalisnick, A. Matsukawa, Y. W. Teh, and B. Lakshminarayanan. Detecting Out-of- Distribution Inputs to Deep Generative Models Using Typ- icality. arXiv preprint arXiv:1906.02994, 2019.
  16. [Pidhorskyi et al., 2018] S. Pidhorskyi, R. Almohsen, D. A. Adjeroh, and G. Doretto. Generative probabilistic nov- elty detection with adversarial autoencoders. Advances in Neural Information Processing Systems, (NeurIPS):6822- 6833, 2018.
  17. [Ren et al., 2019] J. Ren, P. J. Liu, E. Fertig, J. Snoek, R. Poplin, M. Depristo, J. Dillon, and B. Lakshmi- narayanan. Likelihood ratios for out-of-distribution detec- tion. In Advances in Neural Information Processing Sys- tems, pages 14707-14718, 2019.
  18. [Ritter et al., 2018] H. Ritter, A. Botev, and D. Barber. A scalable laplace approximation for neural networks. In 6th International Conference on Learning Representations, ICLR 2018-Conference Track Proceedings, volume 6. In- ternational Conference on Representation Learning, 2018.
  19. [Ruff et al., 2020] L. Ruff, J. R. Kauffmann, R. A. Van- dermeulen, G. Montavon, W. Samek, M. Kloft, T. G. Dietterich, and K.-R. Müller. A unifying review of deep and shallow anomaly detection. arXiv preprint arXiv:2009.11732, 2020.
  20. [Sastry and Oore, 2020] C. S. Sastry and S. Oore. Detecting out-of-distribution examples with gram matrices. In Pro- ceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learn- ing Research, pages 8491-8501. PMLR, 13-18 Jul 2020.
  21. [Schölkopf et al., 2001] B. Schölkopf, J. C. Platt, J. Shawe- Taylor, A. J. Smola, and R. C. Williamson. Estimating the support of a high-dimensional distribution. Neural Com- putation, 13(7):1443-1471, 2001.
  22. [Serrà et al., 2020] J. Serrà, D. Álvarez, V. Gómez, O. Sli- zovskaia, J. F. Núñez, and J. Luque. Input complexity and out-of-distribution detection with likelihood-based gener- ative models. In International Conference on Learning Representations, 2020.
  23. [Steinwart et al., 2005] I. Steinwart, D. Hush, and C. Scovel. A classification framework for anomaly detection. Journal of Machine Learning Research, 6(Feb):211-232, 2005.
  24. [Winkens et al., 2020] J. Winkens, R. Bunel, A. G. Roy, R. Stanforth, V. Natarajan, J. R. Ledsam, P. MacWilliams, P. Kohli, A. Karthikesalingam, S. Kohl, and Others. Con- trastive training for improved out-of-distribution detection. arXiv preprint arXiv:2007.05566, 2020.
  25. [Zhai et al., 2016] S. Zhai, Y. Cheng, W. Lu, and Z. Zhang. Deep Structured Energy Based Models for Anomaly De- tection. 33rd International Conference on Machine Learn- ing, ICML, 3:1742-1751, 2016.
  26. [Zhang et al., 2020] Y. Zhang, W. Liu, Z. Chen, J. Wang, Z. Liu, K. Li, H. Wei, and Z. Chen. Out-of-Distribution Detection with Distance Guarantee in Deep Generative Models. arXiv preprint arXiv:2002.03328, 2020.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards