English

Perturbations in the Orthogonal Complement Subspace for Efficient Out-of-Distribution Detection

Machine Learning 2025-11-04 v1 Machine Learning

Abstract

Out-of-distribution (OOD) detection is essential for deploying deep learning models in open-world environments. Existing approaches, such as energy-based scoring and gradient-projection methods, typically rely on high-dimensional representations to separate in-distribution (ID) and OOD samples. We introduce P-OCS (Perturbations in the Orthogonal Complement Subspace), a lightweight and theoretically grounded method that operates in the orthogonal complement of the principal subspace defined by ID features. P-OCS applies a single projected perturbation restricted to this complementary subspace, enhancing subtle ID-OOD distinctions while preserving the geometry of ID representations. We show that a one-step update is sufficient in the small-perturbation regime and provide convergence guarantees for the resulting detection score. Experiments across multiple architectures and datasets demonstrate that P-OCS achieves state-of-the-art OOD detection with negligible computational cost and without requiring model retraining, access to OOD data, or changes to model architecture.

Keywords

Cite

@article{arxiv.2511.00849,
  title  = {Perturbations in the Orthogonal Complement Subspace for Efficient Out-of-Distribution Detection},
  author = {Zhexiao Huang and Weihao He and Shutao Deng and Junzhe Chen and Chao Yuan and Hongxin Wang and Changsheng Zhou},
  journal= {arXiv preprint arXiv:2511.00849},
  year   = {2025}
}
R2 v1 2026-07-01T07:17:55.142Z