Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

A Geometry-Based View of Mahalanobis OOD Detection

About

Out-of-distribution (OOD) detection is critical for reliable deployment of vision models. Mahalanobis-based detectors remain strong baselines, yet their performance varies widely across modern pretrained representations, and it is unclear which properties of a feature space cause these methods to succeed or fail. We conduct a large-scale study across diverse foundation-model backbones and Mahalanobis variants. First, we show that Mahalanobis-style OOD detection is not universally reliable: performance is highly representation-dependent and can shift substantially with pretraining data and fine-tuning regimes. Second, we link this variability to in-distribution geometry and identify a two-term ID summary that consistently tracks Mahalanobis OOD behavior across detectors: within-class spectral structure and local intrinsic dimensionality. Finally, we treat normalization as a geometric control mechanism and introduce radially scaled $\ell_2$ normalization, $\phi_\beta(z)=z/\|z\|^\beta$, which preserves directions while contracting or expanding feature radii. Varying $\beta$ changes the radii while preserving directions, so the same quadratic detector sees a different ID geometry. We choose $\beta$ from ID-only geometry signals and typically outperform fixed normalization baselines.

Denis Janiak, Jakub Binkowski, Tomasz Kajdanowicz• 2025

Related benchmarks

TaskDatasetResultRank
Image ClassificationImageNet-1K--
158
Out-of-Distribution DetectionOpenOOD average of NINCO, iNat, SSB-Hard, OpenImages-O, Textures
FPR @ 95%25.3
130
Out-of-Distribution DetectionImageNet
FPR9526.4
108
Showing 3 of 3 rows

Other info

Follow for update