Boosting Out-of-Distribution Detection with Multiple Pre-trained Models

Feng Xue, Zi He, Chuanlong Xie, Falong Tan, Zhenguo Li
12/24/2022
cs.LGcs.AIcs.CV

Official code: mapleleaf6/zode (1 star, Python, last commit 2023-02-16).

Abstract

Out-of-Distribution (OOD) detection, i.e., identifying whether an input is sampled from a novel distribution other than the training distribution, is a critical task for safely deploying machine learning systems in the open world. Recently, post hoc detection utilizing pre-trained models has shown promising performance and can be scaled to large-scale problems.

Show full abstract

This advance raises a natural question: Can we leverage the diversity of multiple pre-trained models to improve the performance of post hoc detection methods? In this work, we propose a detection enhancement method by ensembling multiple detection decisions derived from a zoo of pre-trained models. Our approach uses the p-value instead of the commonly used hard threshold and leverages a fundamental framework of multiple hypothesis testing to control the true positive rate of In-Distribution (ID) data. We focus on the usage of model zoos and provide systematic empirical comparisons with current state-of-the-art methods on various OOD detection benchmarks. The proposed ensemble scheme shows consistent improvement compared to single-model detectors and significantly outperforms the current competitive methods. Our method substantially improves the relative performance by 65.40% and 26.96% on the CIFAR10 and ImageNet benchmarks.

View on arXivView PDF

Code Implementations(1)

mapleleaf6/zodeOfficial100%
10Python, ShellFeb 16, 20233 years ago

Similar Papers

Cite this paper

@article{xue2022boosting,
  title  = {Boosting Out-of-Distribution Detection with Multiple Pre-trained Models},
  author = {Feng Xue and Zi He and Chuanlong Xie and Falong Tan and Zhenguo Li},
  year   = {2022},
  eprint = {2212.12720},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.12720}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.12720.svg)](https://codeofpaper.com/paper/2212.12720)

Discussion