cs.CVSep 6, 2026

Unified Multi-Layer Subspace Modeling for Cross-Domain OOD Detection

Authors: Gerhard Krumpl, Henning Avenhaus, Horst Possegger

Organizations: Institute of Visual Computing, Graz University of Technology, Austria · KESTRELEYE GmbH, Austria

Abstract

Out-of-Distribution (OOD) detection remains a fundamental challenge for neural networks, whose predictions can be overconfident on inputs that deviate from the training distribution. Most post-hoc OOD detection methods derive scores from a single representation level (eg., logits or penultimate features) or combine multiple layers via depth selection or OOD-calibrated weighting. However, because OOD shifts are diverse, the most informative representation level can vary strongly across OOD types and domains, making fixed-layer choices and OOD-calibrated aggregation brittle. In this paper, we propose PRISM (Projected Representation with Intermediate-layer Subspace Modeling), a model-agnostic post-hoc OOD detection method that models a unified multi-layer feature representation rather than aggregating independently scored layers. PRISM fuses intermediate and deep features into a single hierarchical embedding, estimates an in-distribution (ID) principal subspace, and then combines two complementary signals: (i) a class-conditional Mahalanobis distance in the projected subspace and (ii) the residual energy orthogonal to the learned manifold. This simple design avoids OOD-tuned layer weighting while capturing both in-subspace semantic deviations and off-subspace anomalies. Across diverse benchmarks spanning natural images, medical imaging, and industrial visual inspection, PRISM achieves consistent state-of-the-art cross-domain OOD detection performance with a single default configuration across all evaluated domains and architectures. We further show that PRISM incurs minimal inference overhead, making it practical for real-world deployment.

Figures & tables

Appendix figures & tables14 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Prototype Fusion: A Training-Free Multi-Layer Approach to OOD Detection

    Mar 24, 2026Shreen Gul, Mohamed Elmahallawy, Ardhendu Tripathy +1OOD Detection

  2. MM++: Post-Hoc Scale-Invariant Multilayer OOD Detection via Top-K Gated Feature Fusion

    Jun 15, 2026Rahim Hossain, Md Tawheedul Islam Bhuian, Md Farhan Shadiq +1Diffusion-Based OOD DetectionOOD Detection

  3. Geometry over Density: Few-Shot Cross-Domain OOD Detection

    May 5, 2026Shawn Li, You Qin, Jiate Li +4Diffusion-Based OOD DetectionDistribution Shift Detection