Classification-Reconstruction Learning for Open-Set Recognition

Ryota Yoshihashi, Wen Shao, Rei Kawakami, Shaodi You, Makoto Iida, Takeshi Naemura

Abstract

Open-set recognition (OSR) is the challenge of identifying whether a test sample belongs to a known training class or an "unknown" category. Traditional deep learning models, optimized solely for discrimination, often discard information necessary for outlier detection. We present CROSR (Classification-Reconstruction learning for Open-Set Recognition), a framework that integrates supervised classification with unsupervised reconstruction. By employing a Deep Hierarchical Reconstruction Net (DHRNet), CROSR learns a richer representation that facilitates the identification of unknown classes. Experimental results across image and text datasets demonstrate that CROSR significantly outperforms existing state-of-the-art OSR methods.

Introduction: The Open-World Challenge

Standard deep learning classifiers operate under a "closed-world" assumption, where all test-time inputs are expected to belong to the training distribution. In real-world scenarios, however, models frequently encounter "unknown unknowns." Because supervised learning is designed to be highly discriminative, it encourages the model to ignore any features that do not help distinguish between known classes. This specialization makes the model "blind" to the very characteristics that might signal an object is outside the training set, leading to high-confidence misclassifications.

The CROSR Framework

To address this, the authors propose CROSR, which treats reconstruction as a secondary task to regularize the primary classification objective.

Comparison of existing open-set classifiers vs. the proposed CROSR framework.

In the CROSR framework, the network produces both a class prediction ($y$) and a latent representation ($z$). During inference, an "Open-set classifier" evaluates both the prediction vector and the latent variables. If the combined $[y, z]$ vector deviates significantly from the established distribution of known classes—typically measured using a Weibull-calibrated distance—the input is flagged as "unknown." This approach ensures that the model retains descriptive information about the input, which is crucial for anomaly detection.

DHRNet: Deep Hierarchical Reconstruction Net

The architectural backbone of CROSR is the DHRNet. While standard autoencoders often suffer from limited expressive power due to narrow bottlenecks, DHRNet utilizes a hierarchical structure to capture features at multiple levels of abstraction.

Architectural comparison of supervised networks, autoencoders, LadderNets, and the proposed DHRNet.

Key features of DHRNet include:

  • Bottlenecked Lateral Connections: Compact latent representations ($z_0, z_1, ... z_L$) are extracted from various intermediate layers of the classification path.
  • Hierarchical Reconstruction: A decoder path mirrors the encoder, using these latents to reconstruct the input. This allows the model to detect anomalies ranging from low-level texture inconsistencies to high-level structural deviations.
  • Dimensionality Reduction: By compressing lateral streams into low-dimensional bottlenecks, the model avoids the "concentration on the sphere" phenomenon, making distance-based anomaly detection more robust in high-dimensional spaces.

Experimental Evaluation

The authors evaluated CROSR on several benchmarks:

  • Image Classification: MNIST, CIFAR-10, SVHN, and Tiny-ImageNet.
  • Text Classification: DBpedia ontology classification.
  • Outlier Protocols: The models were tested by holding out specific classes during training or by introducing entirely different datasets (e.g., Omniglot) as noise.

Key Results

CROSR consistently outperformed baseline methods like OpenMax and GAN-based approaches. On the MNIST dataset with Omniglot outliers, CROSR achieved a macro-averaged F1-score of 0.793, compared to 0.680 for OpenMax. Furthermore, the method proved efficient, adding only 3–5ms of latency per image at test time, and demonstrated cross-domain utility in text classification tasks.

Conclusion and Future Work

By combining classification with hierarchical reconstruction, CROSR provides a robust mechanism for open-set recognition without sacrificing performance on known categories. While highly effective, the authors note that the current distance-based detection could be further improved by integrating more sophisticated anomaly detectors like One-Class SVMs. Future research will also focus on "near-distribution" unknowns—objects that are subtly different from known classes—where more advanced generative modeling may be required.

Summary updated

BibTeX
@inproceedings{yoshihashi2019classification,
  author = {Ryota Yoshihashi and Wen Shao and Rei Kawakami and Shaodi You and Makoto Iida and Takeshi Naemura},
  title = {{Classification-Reconstruction Learning for Open-Set Recognition}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  doi = {10.1109/cvpr.2019.00414},
}
Figure