Open-Set Recognition with Gaussian Mixture Variational Autoencoders

Alexander Cao, Yuan Luo, Diego Klabjan

Abstract

Traditional deep learning classifiers often fail when encountering "unknown" classes not present during training. This paper proposes a supervised Gaussian Mixture Variational Autoencoder (GMVAE) for Open-Set Recognition (OSR). By modeling the latent space as a mixture of Gaussians with multiple subclusters per class and introducing a novel uncertainty-based thresholding mechanism, the proposed method significantly outperforms existing state-of-the-art approaches, particularly in complex multi-modal data distributions.

Introduction

Most machine learning models operate under a "closed-set" assumption, where all test-time samples are assumed to belong to one of the training classes. In real-world applications like autonomous driving or medical diagnosis, encountering novel, "unknown" categories is inevitable. Open-Set Recognition (OSR) addresses this by requiring models to classify known categories accurately while identifying and rejecting unknown ones.

Existing deep learning methods for OSR often struggle because standard softmax classifiers force inputs into known categories. Furthermore, many generative approaches treat classification and reconstruction as separate tasks, leading to diluted latent representations that fail to distinguish between known and unknown data effectively.

Methodology: The GMVAE Framework

The authors introduce a supervised Gaussian Mixture Variational Autoencoder (GMVAE). Unlike standard VAEs that utilize a single Gaussian prior, the GMVAE models the latent space as a mixture of Gaussians, allowing for more flexible representation.

Technical Innovations

  1. Multiple Subclusters ($K_c$): Instead of representing each class as a single convex "blob," the GMVAE allows each class to be composed of multiple subclusters. This flexibility is crucial for capturing complex, non-convex data distributions.
  2. Modified ELBO: The training objective (Evidence Lower Bound) is modified by removing the "v-prior" term. This prevents "mode collapse," ensuring that subclusters remain distinct and do not merge during training.
  3. Uncertainty Thresholding: The authors propose a new uncertainty metric, $U$, defined as the ratio of the distance to the nearest centroid versus the average distance to all other centroids. This metric captures the relative orientation of a sample, effectively penalizing those that fall into the ambiguous "open space" between known clusters.
t-SNE visualizations of the latent space, demonstrating the separation of classes achieved by the GMVAE framework.

Experimental Results

The model was evaluated on several benchmarks, including Fashion MNIST, CIFAR-10, and specialized "multi-modal" tasks like CIFAR-10 Animals vs. Vehicles.

Performance and Robustness

The GMVAE approach consistently outperformed the state-of-the-art CROSR benchmark. A key finding was the model's stability as the number of unknown classes increased. While traditional methods using Extreme Value Theory (EVT) showed sharp performance declines, the GMVAE maintained high F1-scores.

F1-score performance on CIFAR-10 (Animals vs. Vehicles) as the number of unknown classes increases, showing the significant performance gap between GMVAE and benchmarks.

On the challenging CIFAR-10 "Animals vs. Vehicles" task, the GMVAE combined with the uncertainty algorithm achieved an F1-score significantly higher than the benchmark, demonstrating its efficacy in handling non-convex class distributions.

Discussion

The success of the GMVAE highlights two critical insights:

  • Cooperative Learning: Simultaneously training for reconstruction and clustering in the same latent space produces more robust features. As shown in t-SNE visualizations, this leads to cleaner class separation compared to disjoint approaches.
  • Non-Convexity: Real-world data is rarely simple. By allowing for multiple subclusters, the model significantly reduces "open-space risk"—the likelihood of misclassifying an unknown sample simply because it resides near a broad, single-centroid class representation.

Conclusion

This paper demonstrates that modeling latent spaces with Gaussian mixtures and employing uncertainty-based rejection significantly improves Open-Set Recognition. The proposed GMVAE framework offers a robust solution for real-world deployment where unknown classes are common. Future work will explore more complex domains and further refine the selection of subcluster counts.

Summary updated

BibTeX
@inproceedings{cao2021open,
  author = {Alexander Cao and Yuan Luo and Diego Klabjan},
  title = {{Open-Set Recognition with Gaussian Mixture Variational Autoencoders}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i8.16848},
}
Figure