atlas

Research map / Label-efficient and robust learning / OOD and anomaly detection

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

ICLR 2024 · Label-efficient and robust learning › OOD and anomaly detection · approach: Provable and feature-based OOD detection · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Formulates an optimization framework for feature-shaping OOD detection, reduces it to a piecewise-constant shaping function, and derives a closed-form ID-only solution (Ours) that matches OOD-aware optimization across ConvNets, transformers and MLPs.

Problem

Existing feature-shaping methods for OOD detection rely on hand-designed rules tied to specific OOD datasets and architectures, so they generalize poorly, especially to transformers and MLP models.

Approach

Partition feature values into intervals and learn a piecewise-constant reshaping factor per interval that maximizes the expected ID maximum-logit contribution under a norm constraint; dropping the OOD term yields a closed-form solution using only ID training data, and existing methods (ReAct, BFAct, VRA-P) are shown to approximate this optimum.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply ID-only feature shapingOurs (V) · ImageNet-1k, average over 8 OOD datasets and architecturesAUC: 78.48 -> 83.23Helped
Apply ID-only feature shapingOurs (V) · ImageNet-1k, average over 8 OOD datasets and architecturesFPR95: 69.90 -> 65.53Helped
Apply feature shapingOOD detection on CIFAR10 · CIFAR10, average over OOD datasets and architecturesAUC: 91.21 -> 88.30Hurt
Apply feature shapingOOD detection on CIFAR100 · CIFAR100, average over OOD datasets and architecturesAUC: +0.84Helped
Use energy score rather than maximum-logit scoreOurs · ImageNet-1k, average over OOD datasets and architecturesAUC: 83.23 -> 83.00No clear effect
Use energy score rather than maximum-logit scoreOurs · CIFAR10, average over OOD datasets and architecturesAUC: 88.30 -> 87.70Hurt
Optimize with real iNaturalist OOD data instead of ID-only data (ablation)Ours (V) · ImageNet-1k, average over 8 OOD datasets and architecturesAUC: 83.23 -> 82.82No clear effect
Optimize with Gaussian surrogate OOD data instead of ID-only data (ablation)Ours (V) · ImageNet-1k, average over 8 OOD datasets and architecturesAUC: 83.23 -> 82.99No clear effect
Optimize with Uniform surrogate OOD data instead of ID-only data (ablation)Ours (V) · ImageNet-1k, average over 8 OOD datasets and architecturesAUC: 83.23 -> 82.83No clear effect
Allow maximum-logit weight indices to change during optimization (ablation)Ours (V) · ImageNet-1k, average over 8 OOD datasets and architecturesAUC: 83.23 -> 83.22No clear effect
Use 1.0 and 99.0 feature percentiles instead of 0.1 and 99.9 (ablation)Ours (V) with ResNet50 · ImageNet-1k, average over 8 OOD datasetsAUC: 88.11 -> 88.50Helped
Use 5.0 and 95.0 feature percentiles instead of 0.1 and 99.9 (ablation)Ours (V) with ResNet50 · ImageNet-1k, average over 8 OOD datasetsAUC: 88.11 -> 86.41Hurt

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet-1k CIFAR10 CIFAR100 Species iNaturalist SUN Places OpenImage-O ImageNet-O Texture MNIST TinyImageNet

Benchmarks: ImageNet-1k OOD benchmark (8 OOD datasets) CIFAR10 OOD benchmark (8 OOD datasets) CIFAR100 OOD benchmark (8 OOD datasets)

Metrics: FPR95 AUROC

Baselines: MSP ODIN MLS Energy DICE ReAct BFAct ASH-P ASH-B ASH-S VRA-P

Builds on: ReAct ASH DICE BFAct VRA-P

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy