Towards Optimal Feature-Shaping Methods for Out-of-Distribution Detection
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
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
- 2016Densely Connected Convolutional Networkscited by 6,691
- 2018MobileNetV2: Inverted Residuals and Linear Bottleneckscited by 4,773
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,362
- 2013Describing Textures in the Wildcited by 2,110
- 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
- 2019Natural Adversarial Examplescited by 1,401
- 2015LSUN: Construction of a Large-scale Image Dataset using Deep Learning with Humans in the Loopcited by 1,350
- 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,325
12 more
- 2020Energy-based Out-of-distribution Detectioncited by 1,296
- 2021Generalized Out-of-Distribution Detection: A Surveycited by 796
- 2021ReAct: Out-of-distribution Detection With Rectified Activationscited by 486
- 2019Scaling Out-of-Distribution Detection for Real-World Settingscited by 465
- 2022ViM: Out-Of-Distribution with Virtual-logit Matchingcited by 404
- 2022VOS: Learning What You Don't Know by Virtual Outlier Synthesiscited by 300
- 2021Exploring the Limits of Out-of-Distribution Detectioncited by 283
- 2022Extremely Simple Activation Shaping for Out-of-Distribution Detectioncited by 212
- 2021DICE: Leveraging Sparsification for Out-of-Distribution Detectioncited by 166
- 2015TurkerGaze: Crowdsourcing Saliency with Webcam based Eye Trackingcited by 165
- 2022RankFeat: Rank-1 Feature Removal for Out-of-distribution Detectioncited by 52
- 2022The Familiarity Hypothesis: Explaining the Behavior of Deep Open Set Methodscited by 28
Built on by
Citing papers per year: 2024: 3; 2025: 7; 2026: 3.
13 papers.
Sort:
By area:
- 2024Out-of-Distribution Detection: A Task-Oriented Survey of Recent Advancescited by 24
- 2025CADRef: Robust Out-of-Distribution Detection via Class-Aware Decoupled Relative Feature Leveragingcited by 8
- 2025AdaSCALE: Adaptive Scaling for OOD Detectioncited by 7
- 2024Diffusion-based Layer-wise Semantic Reconstruction for Unsupervised Out-of-Distribution Detectioncited by 5
- 2025Outlier Synthesis via Hamiltonian Monte Carlo for Out-of-Distribution Detectioncited by 4
- 2025An Information-Theoretic Framework for Feature Construction in Out-of-Distribution Detectioncited by 4
- 2025A Geometry-Based View of Mahalanobis OOD Detectioncited by 4
- 2024Logit Scaling for Out-of-Distribution Detectioncited by 3
- 2026Tuning Out-of-Distribution (OOD) Detectors Without Given OOD Datacited by 2
- 2025Frustratingly Easy Feature Reconstruction for Out-of-Distribution Detectioncited by 0
- 2025Local Background Features Matter in Out-of-Distribution Detectioncited by 0
- 2026DynProto: Dynamic Prototype Evolution for Out-of-Distribution Detectioncited by 0
1 more
- 2026Out-of-Distribution (OOD) Detectors for Open-Set RF Fingerprinting10 Jun 2026
- 2026DynProto: Dynamic Prototype Evolution for Out-of-Distribution Detection26 Apr 2026
- 2026Tuning Out-of-Distribution (OOD) Detectors Without Given OOD Data5 Feb 2026
- 2025A Geometry-Based View of Mahalanobis OOD Detection17 Oct 2025
- 2025Local Background Features Matter in Out-of-Distribution Detection14 Oct 2025
- 2025Frustratingly Easy Feature Reconstruction for Out-of-Distribution Detection2 Sep 2025
- 2025An Information-Theoretic Framework for Feature Construction in Out-of-Distribution Detection17 Jun 2025
- 2025AdaSCALE: Adaptive Scaling for OOD Detection11 Mar 2025
- 2025CADRef: Robust Out-of-Distribution Detection via Class-Aware Decoupled Relative Feature Leveraging1 Mar 2025
- 2025Outlier Synthesis via Hamiltonian Monte Carlo for Out-of-Distribution Detection28 Jan 2025
- 2024Diffusion-based Layer-wise Semantic Reconstruction for Unsupervised Out-of-Distribution Detection16 Nov 2024
- 2024Out-of-Distribution Detection: A Task-Oriented Survey of Recent Advances18 Sep 2024
1 more
- 2024Logit Scaling for Out-of-Distribution Detection2 Sep 2024
- 2024Out-of-Distribution Detection: A Task-Oriented Survey of Recent Advancescited by 24
- 2025CADRef: Robust Out-of-Distribution Detection via Class-Aware Decoupled Relative Feature Leveragingcited by 8
- 2025AdaSCALE: Adaptive Scaling for OOD Detectioncited by 7
- 2025Outlier Synthesis via Hamiltonian Monte Carlo for Out-of-Distribution Detectioncited by 4
- 2025An Information-Theoretic Framework for Feature Construction in Out-of-Distribution Detectioncited by 4
- 2025A Geometry-Based View of Mahalanobis OOD Detectioncited by 4
- 2024Logit Scaling for Out-of-Distribution Detectioncited by 3
- 2026Tuning Out-of-Distribution (OOD) Detectors Without Given OOD Datacited by 2
- 2025Frustratingly Easy Feature Reconstruction for Out-of-Distribution Detectioncited by 0
- 2025Local Background Features Matter in Out-of-Distribution Detectioncited by 0
- 2026Out-of-Distribution (OOD) Detectors for Open-Set RF Fingerprintingcited by 0
- 2026Out-of-Distribution (OOD) Detectors for Open-Set RF Fingerprinting10 Jun 2026
- 2026Tuning Out-of-Distribution (OOD) Detectors Without Given OOD Data5 Feb 2026
- 2025A Geometry-Based View of Mahalanobis OOD Detection17 Oct 2025
- 2025Local Background Features Matter in Out-of-Distribution Detection14 Oct 2025
- 2025Frustratingly Easy Feature Reconstruction for Out-of-Distribution Detection2 Sep 2025
- 2025An Information-Theoretic Framework for Feature Construction in Out-of-Distribution Detection17 Jun 2025
- 2025AdaSCALE: Adaptive Scaling for OOD Detection11 Mar 2025
- 2025CADRef: Robust Out-of-Distribution Detection via Class-Aware Decoupled Relative Feature Leveraging1 Mar 2025
- 2025Outlier Synthesis via Hamiltonian Monte Carlo for Out-of-Distribution Detection28 Jan 2025
- 2024Out-of-Distribution Detection: A Task-Oriented Survey of Recent Advances18 Sep 2024
- 2024Logit Scaling for Out-of-Distribution Detection2 Sep 2024