mlsanityData to 7 Oct 2026

Towards Optimal Feature-Shaping Methods for Out-of-Distribution Detection

arXiv 2402.00865 ↗First posted 1 Feb 2024cs.CV cs.LGcited by 13

Not on the map. Why?

Abstract (arXiv)

Feature shaping refers to a family of methods that exhibit state-of-the-art performance for out-of-distribution (OOD) detection. These approaches manipulate the feature representation, typically from the penultimate layer of a pre-trained deep learning model, so as to better differentiate between in-distribution (ID) and OOD samples. However, existing feature-shaping methods usually employ rules manually designed for specific model architectures and OOD datasets, which consequently limit their generalization ability. To address this gap, we first formulate an abstract optimization framework for studying feature-shaping methods. We then propose a concrete reduction of the framework with a simple piecewise constant shaping function and show that existing feature-shaping methods approximate the optimal solution to the concrete optimization problem. Further, assuming that OOD data is inaccessible, we propose a formulation that yields a closed-form solution for the piecewise constant shaping function, utilizing solely the ID data. Through extensive experiments, we show that the feature-shaping function optimized by our method improves the generalization ability of OOD detection across a large variety of datasets and model architectures.

Key facts. Cited by 13 papers in the map (data through 7 Oct 2026). Builds on 24 of its 35 references that are in the map. First posted on arXiv 1 Feb 2024.

Builds on

24 of 35 references.

References · 24

  1. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  3. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  4. 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
  5. 2016Densely Connected Convolutional Networkscited by 6,691
  6. 2018MobileNetV2: Inverted Residuals and Linear Bottleneckscited by 4,773
  7. 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,362
  8. 2013Describing Textures in the Wildcited by 2,110
  9. 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
  10. 2019Natural Adversarial Examplescited by 1,401
  11. 2015LSUN: Construction of a Large-scale Image Dataset using Deep Learning with Humans in the Loopcited by 1,350
  12. 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,325
12 more
  1. 2020Energy-based Out-of-distribution Detectioncited by 1,296
  2. 2021Generalized Out-of-Distribution Detection: A Surveycited by 796
  3. 2021ReAct: Out-of-distribution Detection With Rectified Activationscited by 486
  4. 2019Scaling Out-of-Distribution Detection for Real-World Settingscited by 465
  5. 2022ViM: Out-Of-Distribution with Virtual-logit Matchingcited by 404
  6. 2022VOS: Learning What You Don't Know by Virtual Outlier Synthesiscited by 300
  7. 2021Exploring the Limits of Out-of-Distribution Detectioncited by 283
  8. 2022Extremely Simple Activation Shaping for Out-of-Distribution Detectioncited by 212
  9. 2021DICE: Leveraging Sparsification for Out-of-Distribution Detectioncited by 166
  10. 2015TurkerGaze: Crowdsourcing Saliency with Webcam based Eye Trackingcited by 165
  11. 2022RankFeat: Rank-1 Feature Removal for Out-of-distribution Detectioncited by 52
  12. 2022The Familiarity Hypothesis: Explaining the Behavior of Deep Open Set Methodscited by 28

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 3; 2025: 7; 2026: 3.

13 papers.

Sort:

By area: