Robustness to Spurious Correlations Improves Semantic Out-of-Distribution Detection

Lily H. Zhang, Rajesh Ranganath
2/8/2023
cs.LGcs.AI

No official code found. Best implementation: rajesh-lab/nuisance-aware-ood-detection (7 stars, last commit 2022-11-06).

Abstract

Methods which utilize the outputs or feature representations of predictive models have emerged as promising approaches for out-of-distribution (OOD) detection of image inputs. However, these methods struggle to detect OOD inputs that share nuisance values (e.g. background) with in-distribution inputs. The detection of shared-nuisance out-of-distribution (SN-OOD) inputs is particularly relevant in real-world applications, as anomalies and in-distribution inputs tend to be captured in the same settings during deployment. In this work, we provide a possible explanation for SN-OOD detection failures and propose nuisance-aware OOD detection to address them. Nuisance-aware OOD detection substitutes a classifier trained via empirical risk minimization and cross-entropy loss with one that 1. is trained under a distribution where the nuisance-label relationship is broken and 2. yields representations that are independent of the nuisance under this distribution, both marginally and conditioned on the label. We can train a classifier to achieve these objectives using Nuisance-Randomized Distillation (NuRD), an algorithm developed for OOD generalization under spurious correlations. Output- and feature-based nuisance-aware OOD detection perform substantially better than their original counterparts, succeeding even when detection based on domain generalization algorithms fails to improve performance.

View on arXivView PDF

Code Implementations(1)

Code for paper "Robustness to Spurious Correlations Improves Semantic Out-of-Distribution Detection"

71PythonJun 8, 20223 years ago

Similar Papers

Cite this paper

@article{zhang2023robustness,
  title  = {Robustness to Spurious Correlations Improves Semantic Out-of-Distribution Detection},
  author = {Lily H. Zhang and Rajesh Ranganath},
  year   = {2023},
  eprint = {2302.04132},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.04132v1}
}

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/2302.04132.svg)](https://codeofpaper.com/paper/2302.04132)

Discussion