Learning by Erasing: Conditional Entropy Based Transferable Out-of-Distribution Detection

Abstract

Detecting OOD inputs is crucial to deploy machine learning models to the real world safely. However, existing OOD detection methods require an in-distribution (ID) dataset to retrain the models. In this paper, we propose a Deep Generative Models (DGMs) based transferable OOD detection that does not require retraining on the new ID dataset. We first establish and substantiate two hypotheses on DGMs: DGMs exhibit a predisposition towards acquiring low-level features, in preference to semantic information; the lower bound of DGM's log-likelihoods is tied to the conditional entropy between the model input and target output. Drawing on the aforementioned hypotheses, we present an innovative image-erasing strategy, which is designed to create distinct conditional entropy distributions for each individual ID dataset. By training a DGM on a complex dataset with the proposed image-erasing strategy, the DGM could capture the discrepancy of conditional entropy distribution for varying ID datasets, without re-training. We validate the proposed method on the five datasets and show that, without retraining, our method achieves comparable performance to the state-of-the-art group-based OOD detection methods. The project codes will be open-sourced on our project website.

Cite

Text

Xing et al. "Learning by Erasing: Conditional Entropy Based Transferable Out-of-Distribution Detection." AAAI Conference on Artificial Intelligence, 2024. doi:10.1609/AAAI.V38I6.28444

Markdown

[Xing et al. "Learning by Erasing: Conditional Entropy Based Transferable Out-of-Distribution Detection." AAAI Conference on Artificial Intelligence, 2024.](https://mlanthology.org/aaai/2024/xing2024aaai-learning/) doi:10.1609/AAAI.V38I6.28444

BibTeX

@inproceedings{xing2024aaai-learning,
  title     = {{Learning by Erasing: Conditional Entropy Based Transferable Out-of-Distribution Detection}},
  author    = {Xing, Meng and Feng, Zhiyong and Su, Yong and Oh, Changjae},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year      = {2024},
  pages     = {6261-6269},
  doi       = {10.1609/AAAI.V38I6.28444},
  url       = {https://mlanthology.org/aaai/2024/xing2024aaai-learning/}
}