Lune

AAAI2023Top-tier venue

Key Feature Replacement of In-Distribution Samples for Out-of-Distribution Detection

Jaeyoung Kim, Seo Taek Kong, Dongbin Na, Kyu-Hwan Jung

Abstract

Out-of-distribution (OOD) detection can be used in deep learning-based applications to reject outlier samples from being unreliably classified by deep neural networks. Learning to classify between OOD and in-distribution samples is difficult because data comprising the former is extremely diverse. It has been observed that an auxiliary OOD dataset is most effective in training a ``rejection'' network when its samples are semantically similar to in-distribution images. We first deduce that OOD images are perceived by a deep neural network to be semantically similar to in-distribution samples when they share a common background, as deep networks are observed to incorrectly classify such images with high confidence. We then propose a simple yet effective Key In-distribution feature Replacement BY inpainting (KIRBY) procedure that constructs a surrogate OOD dataset by replacing class-discriminative features of in-distribution samples with marginal background features. The procedure can be implemented using off-the-shelf vision algorithms, where each step within the algorithm is shown to make the surrogate data increasingly similar to in-distribution data. Design choices in each step are studied extensively, and an exhaustive comparison with state-of-the-art algorithms demonstrates KIRBY's competitiveness on various benchmarks.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Energy-based Out-of-distribution Detection cites Your classifier is secretly an energy based model and you should treat it like one
  • FodFoM: Fake Outlier Data by Foundation Models Creates Stronger Visual Out-of-Distribution Detector cites Energy-based Out-of-distribution Detection
  • FodFoM: Fake Outlier Data by Foundation Models Creates Stronger Visual Out-of-Distribution Detector cites ReAct: Out-of-distribution Detection With Rectified Activations
  • FodFoM: Fake Outlier Data by Foundation Models Creates Stronger Visual Out-of-Distribution Detector cites CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instances
  • Towards More Trustworthy Deep Code Models by Enabling Out-of-Distribution Detection cites Energy-based Out-of-distribution Detection
  • ReAct: Out-of-distribution Detection With Rectified Activations cites Energy-based Out-of-distribution Detection
  • Image-based Outlier Synthesis With Training Data cites FodFoM: Fake Outlier Data by Foundation Models Creates Stronger Visual Out-of-Distribution Detector
  • Image-based Outlier Synthesis With Training Data cites ReAct: Out-of-distribution Detection With Rectified Activations
  • Image-based Outlier Synthesis With Training Data cites CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instances
  • Spurious-Aware Prototype Refinement for Reliable Out-of-Distribution Detection cites Energy-based Out-of-distribution Detection
  • Spurious-Aware Prototype Refinement for Reliable Out-of-Distribution Detection cites ReAct: Out-of-distribution Detection With Rectified Activations
  • CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instances cites Your classifier is secretly an energy based model and you should treat it like one
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. Spurious-Aware Prototype Refinement for Reliable Out-of-Distribution DetectionReihaneh Zohrabi, Hosein Hasani, Mahdieh Soleymani Baghshah, Anna Rohrbach et al.NeurIPS 2025 · 6 citations
  2. FodFoM: Fake Outlier Data by Foundation Models Creates Stronger Visual Out-of-Distribution DetectorJiankang Chen, Ling Deng, Zhiyong Gan, Wei-Shi Zheng et al.ACM MM 2024 · 3 citations
  3. Towards More Trustworthy Deep Code Models by Enabling Out-of-Distribution DetectionYanfu Yan, Viet Duong, Huajie Shao, Denys PoshyvanykICSE 2025 · 1 citation
  4. Image-based Outlier Synthesis With Training DataSudarshan RegmiCVPR 2026

Builds on11

  1. Energy-based Out-of-distribution DetectionWeitang Liu, Xiaoyun Wang, John D. Owens, Yixuan LiNeurIPS 2020 · 2,213 citations
  2. CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted InstancesJihoon Tack, Sangwoo Mo, Jongheon Jeong, Jinwoo ShinNeurIPS 2020 · 755 citations
  3. ReAct: Out-of-distribution Detection With Rectified ActivationsYiyou Sun, Chuan Guo, Yixuan LiNeurIPS 2021 · 733 citations
  4. Your classifier is secretly an energy based model and you should treat it like oneWill Grathwohl, Kuan-Chieh Wang, Jörn-Henrik Jacobsen, David Duvenaud et al.ICLR 2020 · 643 citations
  5. Simple and Principled Uncertainty Estimation with Deterministic Deep Learning via Distance AwarenessJeremiah Z. Liu, Zi Lin, Shreyas Padhy, Dustin Tran et al.NeurIPS 2020 · 604 citations

Related papers

  1. Towards In-Distribution Compatible Out-of-Distribution DetectionBoxi Wu, Jie Jiang, Haidong Ren, Zifan Du et al.AAAI 2023 · 2 citations
  2. Pseudo Outlier Exposure for Out-of-Distribution Detection using Pretrained TransformersJaeyoung Kim, Kyuheon Jung, Dongbin Na, Sion Jang et al.ACL Findings 2023 · 6 citations
  3. Background Data Resampling for Outlier-Aware ClassificationYi Li, Nuno VasconcelosCVPR 2020
  4. Density-driven Regularization for Out-of-distribution DetectionWenjian Huang, Hao Wang, Jiahao Xia, Chengyan Wang et al.NeurIPS 2022 · 17 citations
  5. Out-Of-Distribution Detection with Diversification (Provably)Haiyun Yao, Zongbo Han, Huazhu Fu, Xi Peng et al.NeurIPS 2024 · 9 citations
Dusk over the sea between two cliffs drawn in fine vertical lines