Dynamic against Dynamic: An Open-Set Self-Learning Framework

Haifeng Yang, Chuanxing Geng, Pong C. Yuen, Songcan Chen

Abstract

Traditional Open-set Recognition (OSR) models rely on static decision boundaries learned during training, which often fail to generalize to the unpredictable nature of real-world "unknown" classes. We present the Open-set Self-learning (OSSL) framework, a dynamic approach that treats the testing phase as a continuous learning process. By leveraging logit score distributions to partition test data into known, uncertain, and unknown sets, OSSL employs adversarial matching to refine its boundaries on the fly. Experimental results demonstrate state-of-the-art performance across multiple benchmarks, including a 3.3% AUROC improvement on TinyImageNet.

Introduction

In machine learning, models are typically trained under a "closed-set" assumption, where the categories encountered during deployment are expected to match those seen during training. However, real-world environments are inherently open and dynamic. An autonomous system may encounter objects it has never seen before, necessitating Open-set Recognition (OSR)—the ability to identify known categories while rejecting unknown ones.

Conceptual overview of the OSSL framework compared to static existing methods.

Existing OSR methods often fail because they rely on static decision boundaries. As shown in Figure 1, while traditional methods remain fixed after training, the proposed Open-set Self-learning (OSSL) framework treats the test phase as an opportunity for continuous adaptation, allowing the model to evolve as it encounters new data distributions.

The Problem: Static Boundaries and Knowledge Waste

The authors identify two primary limitations in current OSR approaches:

  1. Static Boundaries: Unknown classes can appear anywhere in the feature space. A fixed boundary is inherently insufficient for a dynamic, open world.
  2. Knowledge Waste: When a model rejects a sample as "unknown," it usually discards that data. However, these rejected samples provide critical evidence of what the "unknown" space looks like in a specific environment.

The OSSL Framework

The core philosophy of OSSL is "dynamic against dynamic." Instead of a one-time training phase, the model enters a self-learning loop during testing to refine its understanding of both known and unknown spaces.

The OSSL workflow: identity inference, three-way data partitioning, and adversarial matching loop.

Identity Inference and Partitioning

As test samples arrive, OSSL uses their logit scores (raw model outputs) to perform identity inference. Rather than relying solely on maximum probability, the framework evaluates the relative difference between the highest and lowest logit values. This signal is used to partition data into three sets (Figure 2):

  • Known ($T_1$): High-confidence samples likely belonging to training classes.
  • Unknown ($T_3$): Samples that significantly differ from known classes.
  • Uncertainty ($T_2$): The "gray area" samples falling between the two extremes.

Adversarial Matching and Continuous Updates

The framework utilizes a Self-Matching Module to adapt the classifier. It employs adversarial matching to align the distribution of uncertain samples ($T_2$) with known samples ($T_1$), while using unknown samples ($T_3$) to explicitly define the boundaries of the unknown space. This process allows the model to treat rejected samples as "instantiated representations" of the unknown, providing a concrete target to move away from. The classifier is continuously updated, and the new model becomes the inferrer for subsequent test batches.

Experimental Evaluation

OSSL was evaluated across standard benchmarks (MNIST, CIFAR-10, TinyImageNet) and cross-dataset tasks. Key findings include:

  • State-of-the-Art Performance: On TinyImageNet, OSSL outperformed previous methods like ConOSR by 3.3 percentage points in AUROC.
  • Cross-Dataset Robustness: In challenging tasks like CIFAR-10 vs. ImageNet, OSSL achieved a 7.4% improvement over existing baselines.
  • Orthogonality: OSSL acts as a "plug-and-play" framework. When added to existing methods like ARPL, it consistently boosted performance by up to 1.8%, demonstrating its ability to enhance various OSR architectures.

Conclusion

The OSSL framework shifts the paradigm of Open-set Recognition from static classification to dynamic self-learning. By leveraging the information inherent in test-time data—including rejected samples—OSSL effectively adapts to changing data distributions. While computational overhead and hyperparameter sensitivity remain areas for future research, OSSL represents a significant step toward AI systems that can gracefully navigate the unknown.

Summary updated

BibTeX
@inproceedings{yang2024dynamic,
  author = {Haifeng Yang and Chuanxing Geng and Pong C. Yuen and Songcan Chen},
  title = {{Dynamic against Dynamic: An Open-Set Self-Learning Framework}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=mWDQrh7zjw},
}
Figure