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

Haoyang Liu, Yaojin Lin, Peipei Li, Jun Hu, Xuegang Hu

Abstract

Open set recognition is a crucial research theme for open-environment machine learning. For this problem, a common solution is to learn compact representations of known classes and identify unknown samples by measuring deviations from these known classes. However, the aforementioned methods (1) lack open training consideration, which is detrimental to the fitting of known classes, and (2) recognize unknown classes on an inadequate basis, which limits the accuracy of recognition. In this study, we propose an open reconstruction learning framework that learns a union boundary region of known classes to characterize unknown space. This facilitates the isolation of known space from unknown space to represent known classes compactly and provides a more reliable recognition basis from the perspective of both known and unknown space. Specifically, an adversarial constraint is used to generate class-specific boundary samples. Then, the known classes and approximate unknown space are fitted with manifolds represented by class-specific auto-encoders. Finally, the auto-encoders output the reconstruction error in terms of known and unknown spaces to recognize samples. Extensive experimental results show that the proposed method outperforms existing advanced methods and achieves new state-of-the-art performance.

Introduction

In traditional machine learning, models are typically trained under a "closed world" assumption, where the classes encountered during testing are identical to those seen during training. However, in real-world applications like autonomous driving or medical diagnosis, this assumption often fails. Open Set Recognition (OSR) addresses this by requiring models to accurately classify known categories while simultaneously rejecting "unknown" samples never seen before.

Current OSR methods often suffer from two major limitations. First, they frequently lack "open training," focusing solely on fitting known classes without considering the structure of the unknown space. Second, many rely on an inadequate recognition basis, typically measuring simple deviations from known class centers. This approach is risky, as unknown samples may fall near the margins of a known class manifold, leading to false positives.

The CSGRL Framework

To address these issues, the authors propose Class-Specific Semantic Generation and Reconstruction Learning (CSGRL). This framework explicitly models the "boundary" between known and unknown classes to provide a more robust basis for recognition.

Comparison of the proposed CSGRL framework with existing CSSR-based methods. CSGRL introduces a Generation Module for boundary samples and an additional Reconstruction Module for the unknown space.

The CSGRL architecture consists of three core components:

  1. Backbone Network: A standard feature extractor (e.g., a CNN) that maps input images into a latent feature space.
  2. Generation Module ($G$): This module uses adversarial constraints to produce "boundary samples" for every known class. These synthetic features are designed to sit at the edge of a known class's territory—close enough to be confusing, yet technically belonging to the unknown space. By generating these in the latent space, the model avoids the computational cost of high-resolution image generation.
  3. Reconstruction Module ($R$): Instead of a single classifier, CSGRL employs a set of class-specific Auto-Encoders (AEs). There are $k$ AEs for the $k$ known classes, plus a crucial $(k+1)$-th AE dedicated to fitting the "union boundary region" formed by the synthetic samples.

Dual-Score Inference

During testing, the model calculates two distinct reconstruction errors:

  • $S_k$: The reconstruction error from the best-matching known class AE.
  • $S_u$: The reconstruction error from the "unknown" boundary AE.

By combining these scores, the model can distinguish between samples that truly belong to a known class and those that merely reside near the boundary, effectively characterizing the "immediate" unknown space.

Experimental Results

The researchers evaluated CSGRL on standard computer vision benchmarks, including CIFAR-10, SVHN, and TinyImageNet. To test robustness, they also utilized Out-of-Distribution (OOD) benchmarks like CIFAR-100 and LSUN.

Performance comparison of CSGRL against state-of-the-art methods across various benchmarks. CSGRL consistently achieves the highest scores.

CSGRL achieved new state-of-the-art (SOTA) results across multiple metrics. On CIFAR-10, it reached an AUROC of 94.0%, and on SVHN, it achieved 98.3%, outperforming previous leaders such as CSSR and ARPL. In challenging tasks like distinguishing CIFAR-10 from the semantically similar CIFAR-100, CSGRL showed a significant lead in both Detection Accuracy (DTACC) and AUROC. Ablation studies further confirmed that both the generation module and the unknown reconstruction score are essential for this performance leap.

Conclusion and Future Work

CSGRL demonstrates that modeling the boundary region is a powerful strategy for Open Set Recognition. By actively learning what the "immediate" unknown space looks like, the model gains a superior ability to reject novel samples.

While highly effective, the model's performance can be sensitive to hyperparameters like the weighting of known vs. unknown scores and the "tightness" of generated boundary samples. Future work may explore extending this boundary-learning approach to more complex domains such as video analysis or natural language processing, where manifold complexity is even higher.

The implementation of CSGRL is available at https://github.com/Ashowman98/CSGRL.

Summary updated

BibTeX
@inproceedings{liu2024class,
  author = {Haoyang Liu and Yaojin Lin and Peipei Li and Jun Hu and Xuegang Hu},
  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