Unified Classification and Rejection: A One-versus-All Framework
Zhen Cheng, Xu-Yao Zhang, Cheng-Lin Liu
TL;DR
This work presents a unified framework for open set recognition and OOD rejection by recasting the problem as a $K{+}1$-class task trained with one-versus-all (OVA) classifiers. Binary OVA posteriors are fused via Dempster–Shafer theory to yield a coherent set of $K$ known-class posteriors plus an explicit OOD posterior, enabling simultaneous classification and rejection without requiring OOD data during training. To preserve closed-set accuracy while maintaining strong rejection capability, the authors introduce a hybrid learning strategy that combines OVA loss with a regularized multi-class objective, and instantiate the approach on convolutional prototype networks with ViT backbones. Empirical results on OSR and OOD benchmarks (CIFAR and ImageNet-scale) show competitive or superior performance in InD accuracy, OOD detection, and misclassification detection, with notable gains when using modern architectures like ViT. The work highlights the practicality of a single, unified model for both classification and outlier rejection in open-world settings, and outlines future directions including broader backbones and joint evaluation of multiple failure modes.
Abstract
Classifying patterns of known classes and rejecting ambiguous and novel (also called as out-of-distribution (OOD)) inputs are involved in open world pattern recognition. Deep neural network models usually excel in closed-set classification while performs poorly in rejecting OOD inputs. To tackle this problem, numerous methods have been designed to perform open set recognition (OSR) or OOD rejection/detection tasks. Previous methods mostly take post-training score transformation or hybrid models to ensure low scores on OOD inputs while separating known classes. In this paper, we attempt to build a unified framework for building open set classifiers for both classification and OOD rejection. We formulate the open set recognition of $ K $-known-class as a $ (K+1) $-class classification problem with model trained on known-class samples only. By decomposing the $ K $-class problem into $ K $ one-versus-all (OVA) binary classification tasks and binding some parameters, we show that combining the scores of OVA classifiers can give $ (K+1) $-class posterior probabilities, which enables classification and OOD rejection in a unified framework. To maintain the closed-set classification accuracy of the OVA trained classifier, we propose a hybrid training strategy combining OVA loss and multi-class cross-entropy loss. We implement the OVA framework and hybrid training strategy on the recently proposed convolutional prototype network and prototype classifier on vision transformer (ViT) backbone. Experiments on popular OSR and OOD detection datasets demonstrate that the proposed framework, using a single multi-class classifier, yields competitive performance in closed-set classification, OOD detection, and misclassification detection.
