SphOR: A Representation Learning Perspective on Open-set Recognition for Identifying Unknown Classes in Deep Learning Models

Nadarasar Bahavan, Sachith Seneviratne, Saman Halgamuge
3/11/2025
4 citations
cs.CV

Official code: nadarasarbahavan/SpHOR (3 stars, Python, MIT, last commit 2026-06-08).

Abstract

The reliance on Deep Neural Network (DNN)-based classifiers in safety-critical and real-world applications necessitates Open-Set Recognition (OSR). OSR enables the identification of input data from classes unknown during training as unknown, as opposed to misclassifying them as belonging to a known class.

Show full abstract

DNNs consist of a feature extraction backbone and classifier head; however, most OSR methods typically train both components jointly, often yielding feature representations that adapt poorly to unknown data. Other approaches employ off-the-shelf objectives, such as supervised contrastive learning, which are not specifically designed for OSR. To address these limitations, we propose SpHOR, which explicitly shapes the feature space via supervised representation learning, before training a classifier. Instead of relying on generic feature learning, SpHOR custom-designs representation learning for OSR through three key innovations: (1) enforcing discriminative class-specific features via orthogonal label embeddings, ensuring clearer separation between classes. (2) imposing a spherical constraint, modeling representations as a mixture of von Mises-Fisher distributions. (3) integrating Mixup and Label Smoothing (LS) directly into the representation learning stage. To quantify how these techniques enhance representations for OSR, we introduce two metrics: the Angular Separability (AS) and Norm Separability (NS). Combining all three innovations, SpHOR achieves state-of-the-art results (in AUROC and OSCR) across various coarse-grained and fine-grained open-set benchmarks, particularly excelling on the Semantic Shift Benchmark with improvements up to 5.1\%. Code at https://github.com/nadarasarbahavan/SpHOR

View on arXivView PDF

Code Implementations(1)

MIT

Code for "SphOR: A Representation Learning Perspective on Open-set Recognition for Identifying Unknown Classes in Deep Learning Models " accepted at CVPR'26 (Findings)

30Python, ShellFeb 22, 20265 months agoMIT
deep-learningopen-set-classificationopen-set-recognition

Similar Papers

Cite this paper

@article{bahavan2025sphor,
  title  = {SphOR: A Representation Learning Perspective on Open-set Recognition for Identifying Unknown Classes in Deep Learning Models},
  author = {Nadarasar Bahavan and Sachith Seneviratne and Saman Halgamuge},
  year   = {2025},
  eprint = {2503.08049},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.08049v3}
}

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/2503.08049.svg)](https://codeofpaper.com/paper/2503.08049)

Discussion