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

Zhexiao Huang, Weihao He, Shutao Deng, Junzhe Chen, Chao Yuan +2 more
11/2/2025
stat.MLcs.LG

No confident code implementation found for this paper.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{huang2025perturbations,
  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},
  year   = {2025},
  eprint = {2511.00849},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.00849v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2511.00849.svg)](https://codeofpaper.com/paper/2511.00849)

Discussion