Research map / Label-efficient and robust learning / OOD and anomaly detection
Mahalanobis++: Improving OOD Detection via Feature Normalization
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
- On NINCO with ConvNeXtV2-L-In21k, Mahalanobis++ reaches 18.4% FPR, a new state of the art in the paper's comparison.
- Averaged over 44 ImageNet models on OpenOOD, Mahalanobis++ improves over Mahalanobis by 7.6 FPR points and outperforms the previously best method ViM by about 7 points.
- Mahalanobis++ fails fewer unit tests: 0/17 failed for ConvNeXtV2, SwinV2 and ViT-CLIP, versus 5/17, 10/17 and 14/17 for standard Mahalanobis.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| L2-normalize features before Mahalanobis scoring | Mahalanobis on ImageNet models · OpenOOD datasets (average over models) | FPR: Maha++ improves over Maha on average by 7.6% in FPR over all models | Helped |
| L2-normalize features before Mahalanobis scoring | Mahalanobis on ImageNet models · NINCO (average over models) | FPR: Maha++ improves over Maha on average by 10.9% in FPR over all models | Helped |
| L2-normalize features before Mahalanobis scoring | Mahalanobis on CIFAR100 models · CIFAR100 (average over OpenOOD datasets) | FPR: 52.52 -> 44.13 | Helped |
| L2-normalize features before Mahalanobis scoring | Mahalanobis on ImageNet models · ImageNet unit tests | Failed unit tests: 5/17 -> 0/17; 10/17 -> 0/17; 14/17 -> 0/17 | Helped |
| L2-normalize features before Mahalanobis scoring | Mahalanobis on ViT-B16-In21k-augreg · OpenOOD datasets (average over five) | FPR: 25.7 -> 28.3 | Hurt |
| L2-normalize features before Mahalanobis scoring | Mahalanobis covariance fit for ViT-B16-In21k-augreg · ImageNet feature variance alignment | Mean squared relative variance deviation: 0.05 -> 0.05 | No clear effect |
Surprising findings
- Natural OOD images (NINCO) often have larger feature norms than ID images, contradicting the common assumption that OOD features have smaller norms.
- The ViT-augreg models already have well-behaved Gaussian-like features and do not benefit from normalization.
Limitations
- Gains are smaller on CIFAR-100, where the conventional Mahalanobis distance is already fairly effective.
- Normalization does not help the ViT-augreg models, which already have well-behaved feature norms; a few other models also see no improvement.
- Evaluation is limited to post-hoc settings with ImageNet and CIFAR; the paper does not study other ID datasets or training-time methods.
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
- Is Complex Training Necessary for Long-Tailed OOD Detection? A Re-think from Feature Geometry (NeurIPS 2026 · similarity 0.91)
- MahaVar: OOD Detection via Class-wise Mahalanobis Distance Variance under Neural Collapse (NeurIPS 2026 · similarity 0.89)
- Position: Supervised Classifiers Answer the Wrong Questions for OOD Detection (ICML 2025 · similarity 0.87)
- Leveraging Perturbation Robustness to Enhance Out-of-Distribution Detection (CVPR 2025 · similarity 0.87)
- Exploring Channel-Aware Typical Features for Out-of-Distribution Detection (AAAI 2024 · similarity 0.87)
- Spurious-Aware Prototype Refinement for Reliable Out-of-Distribution Detection (NeurIPS 2025 · similarity 0.87)
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.
