atlas

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

Mahalanobis++: Improving OOD Detection via Feature Normalization

ICML 2025 · Label-efficient and robust learning › OOD and anomaly detection · approach: Spurious-aware OOD detection

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.

Shows that l2-normalizing pre-logit features before post-hoc Mahalanobis OOD detection (Mahalanobis++) fixes feature-norm-driven failures across 44 ImageNet models and improves over Mahalanobis and other post-hoc baselines.

Problem

Post-hoc Mahalanobis-distance OOD detection on pre-logit features performs inconsistently across pretrained models, largely because feature norms vary strongly and violate the Gaussian shared-covariance assumption.

Approach

Discard feature norm by l2-normalizing pre-logit features before estimating class means and the shared covariance and computing the Mahalanobis score, applied purely post-hoc with no training changes.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
L2-normalize features before Mahalanobis scoringMahalanobis on ImageNet models · OpenOOD datasets (average over models)FPR: Maha++ improves over Maha on average by 7.6% in FPR over all modelsHelped
L2-normalize features before Mahalanobis scoringMahalanobis on ImageNet models · NINCO (average over models)FPR: Maha++ improves over Maha on average by 10.9% in FPR over all modelsHelped
L2-normalize features before Mahalanobis scoringMahalanobis on CIFAR100 models · CIFAR100 (average over OpenOOD datasets)FPR: 52.52 -> 44.13Helped
L2-normalize features before Mahalanobis scoringMahalanobis on ImageNet models · ImageNet unit testsFailed unit tests: 5/17 -> 0/17; 10/17 -> 0/17; 14/17 -> 0/17Helped
L2-normalize features before Mahalanobis scoringMahalanobis on ViT-B16-In21k-augreg · OpenOOD datasets (average over five)FPR: 25.7 -> 28.3Hurt
L2-normalize features before Mahalanobis scoringMahalanobis covariance fit for ViT-B16-In21k-augreg · ImageNet feature variance alignmentMean squared relative variance deviation: 0.05 -> 0.05No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet-1k CIFAR-10 CIFAR-100

Benchmarks: OpenOOD (NINCO, iNaturalist, SSB-hard, OpenImages-O, Texture) NINCO CIFAR-100 OpenOOD suite unit-test noise distributions

Metrics: FPR at 95% TPR AUC

Baselines: MSP MaxLogit Energy GEN ViM KNN NECO NNguide fDBD ASH Relative Mahalanobis Mahalanobis

Builds on: Mahalanobis distance OOD detection relative Mahalanobis distance KNN OOD detection ViM

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