[Paper Review] Hybrid Models for Open Set Recognition
This paper proposes OpenHybrid, a novel end-to-end framework that jointly learns a shared latent representation for both a flow-based density estimator and a discriminative classifier to improve open set recognition. By training the encoder, classifier, and normalizing flow in tandem, the model effectively separates known from unknown classes, achieving state-of-the-art performance on benchmarks like CIFAR10 and SVHN, with AUROC scores up to 0.998, and resolves the common issue of flow models assigning higher likelihood to out-of-distribution samples.
Open set recognition requires a classifier to detect samples not belonging to any of the classes in its training set. Existing methods fit a probability distribution to the training samples on their embedding space and detect outliers according to this distribution. The embedding space is often obtained from a discriminative classifier. However, such discriminative representation focuses only on known classes, which may not be critical for distinguishing the unknown classes. We argue that the representation space should be jointly learned from the inlier classifier and the density estimator (served as an outlier detector). We propose the OpenHybrid framework, which is composed of an encoder to encode the input data into a joint embedding space, a classifier to classify samples to inlier classes, and a flow-based density estimator to detect whether a sample belongs to the unknown category. A typical problem of existing flow-based models is that they may assign a higher likelihood to outliers. However, we empirically observe that such an issue does not occur in our experiments when learning a joint representation for discriminative and generative components. Experiments on standard open set benchmarks also reveal that an end-to-end trained OpenHybrid model significantly outperforms state-of-the-art methods and flow-based baselines.
Motivation & Objective
- To address the limitation of existing open set recognition methods that rely on discriminative features alone, which may not be optimal for detecting unknown classes.
- To resolve the common failure mode in flow-based models where out-of-distribution samples are assigned higher likelihood than in-distribution samples.
- To improve open set recognition by jointly training a classifier and a flow-based density estimator on a shared latent space.
- To empirically validate that joint representation learning stabilizes flow-based likelihood estimation and enhances outlier detection.
Proposed method
- The OpenHybrid framework consists of a shared encoder, a classifier head for known class prediction, and a flow-based density estimator for likelihood computation.
- The model is trained end-to-end using maximum likelihood estimation on inlier data and cross-entropy loss for classification.
- The latent space learned by the encoder is shared between the classifier and the flow model, enabling joint optimization of discriminative and generative objectives.
- The flow-based model uses invertible coupling layers to model complex, multi-modal data distributions in the latent space.
- A threshold on the log-likelihood output from the flow model is used to detect unknown (out-of-distribution) samples.
- The framework is evaluated using standard open set benchmarks including MNIST, SVHN, CIFAR10, and TinyImageNet.
Experimental results
Research questions
- RQ1Can joint training of a discriminative classifier and a flow-based density estimator improve open set recognition performance?
- RQ2Does learning a shared representation mitigate the issue of flow models assigning higher likelihood to out-of-distribution samples?
- RQ3How does end-to-end training compare to using a pretrained encoder with a fine-tuned flow model?
- RQ4Can the model generalize to complex datasets like CIFAR10 and SVHN with high AUROC in open set detection?
Key findings
- The OpenHybrid model achieves state-of-the-art performance on standard open set benchmarks, with an AUROC of 0.998 on the CIFAR10 (known) and SVHN (unknown) setting.
- The end-to-end trained OpenHybrid model successfully separates unknown samples (e.g., digits 6–9 in MNIST) from known classes in the latent space, as shown by t-SNE visualization.
- The model resolves the common issue where flow-based models assign higher likelihood to out-of-distribution samples, which occurs in baseline DIGLM and even OE-augmented versions.
- Ablation studies confirm that joint training is critical, as models with pretrained encoders show less separation between known and unknown distributions.
- The performance remains stable across different flow depth configurations (4 to 16 residual blocks), suggesting robustness to architecture hyperparameters.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.