Lune

ICML2026Top-tier venue

A Geometry-Based View of Mahalanobis OOD Detection

Denis Janiak, Jakub Binkowski, Tomasz Kajdanowicz

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 Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • In or Out? Fixing ImageNet Out-of-Distribution Detection Evaluation cites Exploring the Limits of Out-of-Distribution Detection
  • In or Out? Fixing ImageNet Out-of-Distribution Detection Evaluation cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Exploring the Limits of Out-of-Distribution Detection cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Scaling for Training Time and Post-hoc Out-of-distribution Detection Enhancement cites In or Out? Fixing ImageNet Out-of-Distribution Detection Evaluation
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on7

  1. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  2. Exploring the Limits of Out-of-Distribution DetectionStanislav Fort, Jie Ren, Balaji LakshminarayananNeurIPS 2021 · 443 citations
  3. In or Out? Fixing ImageNet Out-of-Distribution Detection EvaluationJulian Bitterwolf, Maximilian Müller, Matthias HeinICML 2023 · 154 citations
  4. Scaling for Training Time and Post-hoc Out-of-distribution Detection EnhancementKai Xu, Rongyu Chen, Gianni Franchi, Angela YaoICLR 2024 · 81 citations
  5. On the Importance of Feature Separability in Predicting Out-Of-Distribution ErrorRenchunzi Xie, Hongxin Wei, Lei Feng, Yuzhou Cao et al.NeurIPS 2023 · 19 citations

Related papers

  1. Mahalanobis++: Improving OOD Detection via Feature NormalizationMaximilian Müller, Matthias HeinICML 2025
  2. GradOrth: A Simple yet Efficient Out-of-Distribution Detection with Orthogonal Projection of GradientsSima Behpour, Thang Long Doan, Xin Li, Wenbin He et al.NeurIPS 2023 · 34 citations
  3. Equipping Vision Foundation Model with Mixture of Experts for Out-of-Distribution DetectionShizhen Zhao, Jiahui Liu, Xin Wen, Haoru Tan et al.ICCV 2025 · 3 citations
  4. Igeood: An Information Geometry Approach to Out-of-Distribution DetectionEduardo Dadalto Câmara Gomes, Florence Alberge, Pierre Duhamel, Pablo PiantanidaICLR 2022 · 32 citations
  5. Detecting Out-of-Distribution Through the Lens of Neural CollapseLitian Liu, Yao QinCVPR 2025
Dusk over the sea between two cliffs drawn in fine vertical lines