Abstract
Open Set Recognition (OSR) is the challenge of identifying whether a test sample belongs to one of the classes seen during training or is an "unknown" outlier. Traditional classifiers often fail by overconfidently assigning unknown data to known categories. We present OpenHybrid, a framework that combines a discriminative classifier with a flow-based generative model through a shared latent space. By training these components jointly, the model learns to accurately classify known objects while effectively rejecting outliers, overcoming the common failure of generative models assigning high likelihood to noise.
The Open Set Challenge
Most machine learning classifiers operate under a "closed-set" assumption, meaning they expect all test-time data to belong to the categories seen during training. In real-world applications, models frequently encounter "unknown" objects. A standard classifier forced to categorize a bicycle as a car or a truck often does so with high confidence, leading to potential system failures.
Open Set Recognition (OSR) seeks to build models capable of identifying these outliers. Current approaches generally fall into two categories: discriminative methods, which attempt to adapt standard classifiers, and generative methods, which model data distributions. However, flow-based generative models often suffer from a "likelihood paradox," where they assign higher probability to out-of-distribution (OOD) noise than to the actual training data.
The OpenHybrid Architecture
To address these issues, the authors propose OpenHybrid, a framework consisting of three integrated modules: an Encoder, a Classifier, and a Flow-based Density Estimator.
- The Encoder ($F$): Maps input images into a joint latent embedding space.
- The Classifier ($C$): Performs supervised classification into $k$ known classes using cross-entropy loss on the latent features.
- The Flow-based Density Estimator ($D$): Estimates the probability density of the latent features rather than raw pixels. It utilizes Residual Flows to calculate the exact log-likelihood of a sample.
The core innovation is Joint Training. Unlike previous hybrid models that use pre-trained components, OpenHybrid trains all three modules end-to-end. This forces the encoder to learn representations that are simultaneously discriminative for classification and well-suited for unimodal density estimation, effectively resolving the flow model likelihood paradox.
Experimental Evaluation
The model was evaluated on standard benchmarks including MNIST, SVHN, CIFAR10, and TinyImageNet. To test "openness," researchers used CIFAR+10 and CIFAR+50 setups, where classes from CIFAR100 served as unknowns.
OpenHybrid consistently outperformed state-of-the-art (SOTA) methods like OpenMax and CROSR. On CIFAR10, it achieved an AUROC of 0.950, a significant jump from the previous SOTA of 0.895. In high-openness scenarios like TinyImageNet (where 90% of classes are unknown), it maintained a strong AUROC of 0.793. Notably, in the "CIFAR10 vs. SVHN" cross-dataset test—a known failure case for flow models—OpenHybrid achieved a near-perfect 0.998 AUROC.
Discussion and Conclusion
OpenHybrid demonstrates that performing density estimation in the latent space of a trained encoder allows the model to focus on semantic features rather than low-level background noise. While the model requires a threshold ($\tau$) to identify unknowns and carries a higher computational cost due to the flow-based component, its empirical success in fixing the "outlier likelihood" problem marks a significant step forward for robust OSR. Future work will aim to provide a theoretical proof for why joint training flattens complex input data into a more manageable latent distribution.
Summary updated