Towards In-Distribution Compatible Out-of-Distribution Detection

Authors

  • Boxi Wu State Key Lab of CAD&CG, Zhejiang University
  • Jie Jiang Tencent Data Platform
  • Haidong Ren Ningbo Zhoushan Port Group Co.,Ltd., Ningbo, China.
  • Zifan Du School of Software Technology, Zhejiang University
  • Wenxiao Wang School of Software Technology, Zhejiang University
  • Zhifeng Li Tencent Data Platform
  • Deng Cai State Key Lab of CAD&CG, Zhejiang University
  • Xiaofei He State Key Lab of CAD&CG, Zhejiang University
  • Binbin Lin School of Software Technology, Zhejiang University
  • Wei Liu Tencent Data Platform

DOI:

https://doi.org/10.1609/aaai.v37i9.26230

Keywords:

ML: Deep Neural Network Algorithms, CV: Applications

Abstract

Deep neural network, despite its remarkable capability of discriminating targeted in-distribution samples, shows poor performance on detecting anomalous out-of-distribution data. To address this defect, state-of-the-art solutions choose to train deep networks on an auxiliary dataset of outliers. Various training criteria for these auxiliary outliers are proposed based on heuristic intuitions. However, we find that these intuitively designed outlier training criteria can hurt in-distribution learning and eventually lead to inferior performance. To this end, we identify three causes of the in-distribution incompatibility: contradictory gradient, false likelihood, and distribution shift. Based on our new understandings, we propose a new out-of-distribution detection method by adapting both the top-design of deep models and the loss function. Our method achieves in-distribution compatibility by pursuing less interference with the probabilistic characteristic of in-distribution features. On several benchmarks, our method not only achieves the state-of-the-art out-of-distribution detection performance but also improves the in-distribution accuracy.

Downloads

Published

2023-06-26

How to Cite

Wu, B., Jiang, J., Ren, H., Du, Z., Wang, W., Li, Z., Cai, D., He, X., Lin, B., & Liu, W. (2023). Towards In-Distribution Compatible Out-of-Distribution Detection. Proceedings of the AAAI Conference on Artificial Intelligence, 37(9), 10333-10341. https://doi.org/10.1609/aaai.v37i9.26230

Issue

Section

AAAI Technical Track on Machine Learning IV