Lune

ICML2026Top-tier venue

A Geometry-Based View of Mahalanobis OOD Detection

Denis Janiak, Jakub Binkowski, Tomasz Kajdanowicz

2026Year
3Citations

Abstract

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 foundationmodel 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 indistribution 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 ℓ 2 normalization, ϕ β (z) = z/∥z∥ β , which preserves directions while contracting or expanding feature radii. Varying β changes the radii while preserving directions, so the same quadratic detector sees a different ID geometry. We choose β from ID-only geometry signals and typically outperform fixed normalization baselines.

Ask about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext ac42a724-5191-4380-9578-1a50c2a68cd0

Builds on7

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines