Class-Specific Semantic Generation and Reconstruction Learning for Open Set Recognition

Haoyang Liu, Yaojin Lin, Peipei Li

Abstract

Open Set Recognition (OSR) presents a significant challenge for machine learning models, which must accurately classify known categories while robustly identifying and rejecting unseen "unknown" classes. Current methods often struggle to define the boundaries of known classes, leading to the accidental acceptance of unknown samples. This paper introduces Class-Specific Semantic Generation and Reconstruction Learning (CSGRL), a framework that explicitly models the boundary region between known and unknown classes. By utilizing class-specific auto-encoders and an adversarial generation module to synthesize "boundary samples," CSGRL creates a dedicated mathematical representation for the open space. Extensive evaluations on benchmarks such as CIFAR-10 and TinyImageNet demonstrate that CSGRL achieves state-of-the-art performance, particularly in distinguishing semantically similar unknown categories.

Introduction

Most traditional machine learning models operate under a "closed-set" assumption, where all test-time samples are expected to belong to training categories. However, real-world applications like autonomous driving and medical diagnosis frequently encounter novel objects. OSR addresses this by requiring models to maintain high classification accuracy for known data while rejecting outliers.

The authors identify two primary limitations in existing OSR approaches: a lack of "open training" that defines the space surrounding known classes, and an over-reliance on low confidence or reconstruction error for rejection. These weaknesses allow unknown samples to potentially "fit" into the loosely bounded feature spaces of known classes. CSGRL addresses these gaps by tightening the manifolds of known classes and explicitly modeling the boundary region.

Methodology

The CSGRL framework is built upon three core components designed to refine the model's understanding of class boundaries:

  1. Class-Specific Manifold Fitting: Instead of a monolithic architecture, CSGRL employs a set of $k$ Auto-Encoders (AEs), each dedicated to learning the low-dimensional manifold of a specific known class.
  2. The "Unknown" Auto-Encoder ($A_{k+1}$): A unique addition to the architecture, this AE is specifically trained to fit the "union boundary region" of all known classes, providing a formal representation for the space where unknowns are most likely to appear.
  3. Adversarial Generation Module: To simulate unknown data during training, a GAN-based generator synthesizes "boundary samples" in the feature space. These samples are forced to reside near the edges of known manifolds, pushing the known-class AEs to become more compact while pulling the unknown-class AE to define the boundary.
The CSGRL architecture (bottom) compared to standard CSSR methods (top), highlighting the integration of the Generation Module and the dedicated Unknown Class Reconstruction ($A_{k+1}$).

At test time, the model employs a Dual-Perspective Recognition strategy. It calculates a final score by combining the reconstruction error from the best-fitting known-class AE with the error from the unknown-space AE. This two-way verification ensures that outliers are rejected with higher reliability.

Experimental Results

CSGRL was evaluated against standard computer vision benchmarks, including CIFAR-10, SVHN, and TinyImageNet. To test Out-of-Distribution (OOD) detection, the authors utilized ImageNet and LSUN datasets as unknown sets against models trained on CIFAR-10.

As shown in the table below, CSGRL achieved new state-of-the-art (SOTA) results across multiple metrics. Notably, on CIFAR-10, the model reached an AUROC of 94.0%, significantly outperforming previous leading methods like CSSR and ARPL. The framework also demonstrated superior robustness in "near" unknown tasks (e.g., CIFAR-10 vs. CIFAR-100), where the semantic similarity between known and unknown classes typically causes high error rates in other models.

Performance comparison of CSGRL against SOTA methods across various OOD benchmarks, showing consistent improvements in AUROC.

Ablation studies confirmed that both the Generation Module and the dedicated Unknown AE are critical to success; removing either component resulted in a significant degradation of the model's ability to reject unknown samples.

Conclusion

CSGRL advances Open Set Recognition by shifting the focus from simply modeling known data to explicitly defining the boundaries where unknown data resides. By generating synthetic boundary samples in the feature space, the model learns to create tighter, more discriminative manifolds. While the computational cost of training multiple auto-encoders is higher than standard classifiers, the gains in robustness and rejection accuracy provide a vital step forward for deploying reliable AI in open-world environments.

Summary updated

BibTeX
@inproceedings{liu2024class,
  author = {Haoyang Liu and Yaojin Lin and Peipei Li},
  title = {{Class-Specific Semantic Generation and Reconstruction Learning for Open Set Recognition}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=WCO6kmc3Fa},
}
Figure