cs.LGNov 4, 2026

Don't Replace, Complement: A Detector-Agnostic Subspace Signal for Near-OOD Detection

Authors: Wonseok Shin, Songkuk Kim

Organizations: Yonsei University, Republic of Korea

Abstract

Post-hoc out-of-distribution (OOD) detection is mature on far-OOD yet remains weak on near-OOD. These two settings differ in their use of class-characteristic feature directions: far-OOD inputs largely fail to activate those of their predicted class, whereas near-OOD inputs activate them much as in-distribution samples do. Because the axis separating far-OOD leaves near-OOD almost indistinguishable from ID, a score optimized for one setting is misaligned with the other; where a detector already saturates far-OOD, added near-OOD sensitivity is bought partly against it. This divergence motivates a targeted near-OOD signal designed to complement existing scores. We propose PLUS (Per-class Low-dimensional sUbspace Signal). For each class, PLUS selects the mm most class-active neurons from a sparse autoencoder, orthonormalizes the corresponding decoder directions to form a low-dimensional subspace, and scores an input by its per-class whitened squared Mahalanobis distance zz within the subspace of its predicted class. Designed as a dedicated complement rather than a standalone detector, the signal zz is fused additively with any calibrated base score at a single, fixed weight. This weight is a single global constant: no value is adjusted per backbone, per OOD dataset, or per deployment, and all calibration statistics are estimated from ID validation data alone. When applied to 18 existing detectors spanning diverse method families, zz consistently improves near-OOD AUROC in all 126 detector--backbone combinations. Far-OOD performance is broadly maintained or improved, with only marginal declines where the base score is near-optimal, making zz a robust, detector-agnostic complement across backbones.

Figures & tables

Appendix figures & tables13 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. DUO: Dual Readouts of Diffusion Models for OOD Detection

    Nov 9, 2026Alireza Javid, Shirin Shoushtari, Nuria González PrelcicDiffusion-Based OOD DetectionOOD Detection

  2. GEODE: Angle-Adaptive OOD Detection with Universal Scorer Compatibility

    May 1, 2026Bruno AbrahaoOOD Detection