Full-spectrum out-of-distribution detection
Existing out-of-distribution (OOD) detection literature clearly defines semantic shift as a sign of OOD but does not have a consensus over covariate shift. Samples experiencing covariate shift but not semantic shift from the in-distribution (ID) are either excluded from the test set or treated as OO...
Saved in:
Main Authors: | , , |
---|---|
Other Authors: | |
Format: | Article |
Language: | English |
Published: |
2023
|
Subjects: | |
Online Access: | https://hdl.handle.net/10356/171361 |
Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
Institution: | Nanyang Technological University |
Language: | English |
id |
sg-ntu-dr.10356-171361 |
---|---|
record_format |
dspace |
spelling |
sg-ntu-dr.10356-1713612023-10-23T01:47:37Z Full-spectrum out-of-distribution detection Yang, Jingkang Zhou, Kaiyang Liu, Ziwei School of Computer Science and Engineering S-Lab Engineering::Computer science and engineering AI Safety Model Trustworthy Existing out-of-distribution (OOD) detection literature clearly defines semantic shift as a sign of OOD but does not have a consensus over covariate shift. Samples experiencing covariate shift but not semantic shift from the in-distribution (ID) are either excluded from the test set or treated as OOD, which contradicts the primary goal in machine learning—being able to generalize beyond the training distribution. In this paper, we take into account both shift types and introduce full-spectrum OOD (F-OOD) detection, a more realistic problem setting that considers both detecting semantic shift and being tolerant to covariate shift; and design three benchmarks. These new benchmarks have a more fine-grained categorization of distributions (i.elet@tokeneonedot, training ID, covariate-shifted ID, near-OOD, and far-OOD) for the purpose of more comprehensively evaluating the pros and cons of algorithms. To address the F-OOD detection problem, we propose SEM, a simple feature-based semantics score function. SEM is mainly composed of two probability measures: one is based on high-level features containing both semantic and non-semantic information, while the other is based on low-level feature statistics only capturing non-semantic image styles. With a simple combination, the non-semantic part is canceled out, which leaves only semantic information in SEM that can better handle F-OOD detection. Extensive experiments on the three new benchmarks show that SEM significantly outperforms current state-of-the-art methods. Our code and benchmarks are released in https://github.com/Jingkang50/OpenOOD . Agency for Science, Technology and Research (A*STAR) Ministry of Education (MOE) Nanyang Technological University This study is supported by the Ministry of Education, Singapore, under its MOE AcRF Tier 2 (MOE-T2EP20221-0012), NTU NAP, and under the RIE2020 Industry Alignment Fund - Industry Collaboration Projects (IAF-ICP) Funding Initiative, as well as cash and in-kind contribution from the industry partner(s). 2023-10-23T01:47:37Z 2023-10-23T01:47:37Z 2023 Journal Article Yang, J., Zhou, K. & Liu, Z. (2023). Full-spectrum out-of-distribution detection. International Journal of Computer Vision, 131(10), 2607-2622. https://dx.doi.org/10.1007/s11263-023-01811-z 0920-5691 https://hdl.handle.net/10356/171361 10.1007/s11263-023-01811-z 2-s2.0-85163080052 10 131 2607 2622 en MOE-T2EP20221-0012 International Journal of Computer Vision © 2023 The Author(s), under exclusive licence to Springer Science+Business Media, LLC, part of Springer Nature. All rights reserved. |
institution |
Nanyang Technological University |
building |
NTU Library |
continent |
Asia |
country |
Singapore Singapore |
content_provider |
NTU Library |
collection |
DR-NTU |
language |
English |
topic |
Engineering::Computer science and engineering AI Safety Model Trustworthy |
spellingShingle |
Engineering::Computer science and engineering AI Safety Model Trustworthy Yang, Jingkang Zhou, Kaiyang Liu, Ziwei Full-spectrum out-of-distribution detection |
description |
Existing out-of-distribution (OOD) detection literature clearly defines semantic shift as a sign of OOD but does not have a consensus over covariate shift. Samples experiencing covariate shift but not semantic shift from the in-distribution (ID) are either excluded from the test set or treated as OOD, which contradicts the primary goal in machine learning—being able to generalize beyond the training distribution. In this paper, we take into account both shift types and introduce full-spectrum OOD (F-OOD) detection, a more realistic problem setting that considers both detecting semantic shift and being tolerant to covariate shift; and design three benchmarks. These new benchmarks have a more fine-grained categorization of distributions (i.elet@tokeneonedot, training ID, covariate-shifted ID, near-OOD, and far-OOD) for the purpose of more comprehensively evaluating the pros and cons of algorithms. To address the F-OOD detection problem, we propose SEM, a simple feature-based semantics score function. SEM is mainly composed of two probability measures: one is based on high-level features containing both semantic and non-semantic information, while the other is based on low-level feature statistics only capturing non-semantic image styles. With a simple combination, the non-semantic part is canceled out, which leaves only semantic information in SEM that can better handle F-OOD detection. Extensive experiments on the three new benchmarks show that SEM significantly outperforms current state-of-the-art methods. Our code and benchmarks are released in https://github.com/Jingkang50/OpenOOD . |
author2 |
School of Computer Science and Engineering |
author_facet |
School of Computer Science and Engineering Yang, Jingkang Zhou, Kaiyang Liu, Ziwei |
format |
Article |
author |
Yang, Jingkang Zhou, Kaiyang Liu, Ziwei |
author_sort |
Yang, Jingkang |
title |
Full-spectrum out-of-distribution detection |
title_short |
Full-spectrum out-of-distribution detection |
title_full |
Full-spectrum out-of-distribution detection |
title_fullStr |
Full-spectrum out-of-distribution detection |
title_full_unstemmed |
Full-spectrum out-of-distribution detection |
title_sort |
full-spectrum out-of-distribution detection |
publishDate |
2023 |
url |
https://hdl.handle.net/10356/171361 |
_version_ |
1781793910387900416 |