Difficulty-Aware Simulator for Open Set Recognition

WonJun Moon, Jun Ho Park, Hyun Seok Seong, Cheol-Ho Cho, Jae-Pil Heo

Abstract

Open set recognition (OSR) assumes unknown instances appear out of the blue at the inference time. The main challenge of OSR is that the response of models for unknowns is totally unpredictable. Furthermore, the diversity of open set makes it harder since instances have different difficulty levels. Therefore, we present a novel framework, DIfficulty-Aware Simulator (DIAS), that generates fakes with diverse difficulty levels to simulate the real world. We first investigate fakes from generative adversarial network (GAN) in the classifier’s viewpoint and observe that these are not severely challenging. This leads us to define the criteria for difficulty by regarding samples generated with GANs having moderate-difficulty. To produce hard-difficulty examples, we introduce Copycat, imitating the behavior of the classifier. Furthermore, moderate- and easy-difficulty samples are also yielded by our modified GAN and Copycat, respectively. As a result, DIAS outperforms state-of-the-art methods with both metrics of AUROC and F-score.

Introduction

In deep learning, models are typically trained under a "Closed Set" assumption, where training categories are the only ones expected at test time. However, real-world deployment often involves encountering unknown classes—a challenge known as Open Set Recognition (OSR). A self-driving car, for instance, must identify objects it has never seen before as "unknown" rather than misclassifying them into a known category.

The fundamental struggle in OSR is the unpredictable nature of a model's response to unknown classes. Most current methods attempt to mitigate this by generating "fake" unknown data (often via GANs) and training the model to assign these samples low confidence.

Problem Statement: The Spectrum of Difficulty

A critical observation in OSR is that not all unknowns present the same level of difficulty. Unknowns can be categorized into three levels:

  1. Easy unknowns: Outliers that look nothing like the training data.
  2. Moderate unknowns: Samples sharing general characteristics with known classes.
  3. Hard unknowns: Samples sharing specific discriminative features with known classes, often leading to high-confidence misclassifications.
Difficulty levels of simulated unknowns compared to real open sets.

Existing methods often fail because they primarily generate "easy" or "moderate" fakes. If a model only learns to reject obvious outliers, it remains vulnerable to "hard" unknowns that reside near or within its decision boundaries.

Methodology: DIfficulty-Aware Simulator (DIAS)

The DIAS framework addresses this by using two distinct generators to create a diverse spectrum of fake samples.

The Modified GAN (Moderate Difficulty)

Standard GANs generate images that look "real" to a discriminator. DIAS modifies this process to produce images that resemble closed-set data but are intentionally "cautious," representing moderate-difficulty unknowns.

The Copycat (Hard & Easy Difficulty)

The Copycat is a feature generator that uses Knowledge Distillation to mimic the internal behavior of the classifier.

  • Hard Fakes: The Copycat is trained to produce internal features nearly identical to those of real, known classes, forcing the classifier to identify unknowns deep inside its decision boundaries.
  • Easy Fakes: The Copycat produces features intentionally different from the classifier's learned representations.
The DIAS framework architecture, utilizing GANs for moderate-difficulty samples and the Copycat for hard and easy samples.

Joint Training and Inherent Thresholding

The framework employs a two-stage training process where generators and the classifier evolve together. The classifier learns to categorize known classes while assigning a uniform probability (high uncertainty) to generated fakes. Notably, DIAS calculates an inherent threshold based on the target confidence used for hard fakes during training, eliminating the need for expensive post-hoc threshold tuning.

Experimental Results

DIAS was evaluated on standard benchmarks including MNIST, SVHN, CIFAR10, and Tiny-ImageNet.

Performance

DIAS consistently outperformed state-of-the-art (SOTA) methods in both AUROC and F1-score. For example, on CIFAR10, DIAS achieved an AUROC of 0.850, surpassing the previous SOTA of 0.835. On the more complex Tiny-ImageNet, it reached an AUROC of 0.731.

Key Insights

  • Hard Fake Advantage: Ablation studies confirm that "hard" fakes from the Copycat are the primary drivers of OSR performance. Calibrating the model inside its decision boundaries is more effective than just defining the external "empty space."
  • Closed-Set Synergy: Training with DIAS often improves accuracy on known classes, suggesting that learning to reject sophisticated fakes forces the model to learn more robust features.

Conclusion

DIAS represents a significant advancement in OSR by explicitly modeling the difficulty of unknown samples. By "hacking" the classifier's logic with the Copycat mechanism, the framework identifies and secures blind spots that traditional GAN-based methods miss. While the computational overhead of training multiple generators is a consideration, the robustness and the automated thresholding capability make DIAS a compelling solution for real-world open-set challenges.

Summary updated

BibTeX
@inproceedings{moon2022difficulty,
  author = {WonJun Moon and Jun Ho Park and Hyun Seok Seong and Cheol-Ho Cho and Jae-Pil Heo},
  title = {{Difficulty-Aware Simulator for Open Set Recognition}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  url = {https://openreview.net/forum?id=SUvHPFp_UdS},
}
Figure