Operational Open-Set Recognition and PostMax Refinement

Steve Cruz, Ryan Rabinowitz, Manuel Günther, Terrance E. BoultECCV 2024

Introduction

Open-Set Recognition (OSR) is critical for deploying machine learning models in uncontrolled environments. While standard classifiers assume a closed world, real-world systems encounter "unknown" classes not present during training. A robust OSR system must correctly classify known samples while rejecting unknowns. However, current research often relies on unrealistic evaluation protocols and small-scale datasets, leading to a gap between academic results and operational performance.

The Operational Evaluation Gap

A primary issue in OSR literature is the use of "cheating" metrics. Metrics like AUROC evaluate performance across all possible thresholds, but in production, an engineer must select a single operational threshold. Often, researchers tune this threshold using the test set—information unavailable in practice.

To address this, the authors propose Operational Open-Set Accuracy (OOSA). This metric enforces a strict separation: a "surrogate" set of unknowns is used during a validation phase to determine an optimal threshold. This threshold is then fixed and applied to the final, unseen test set, mirroring real-world deployment.

The OOSA pipeline: (a) training GPD parameters on knowns, (b) validating thresholds on surrogate unknowns, and (c) testing on unseen data.

The PostMax Algorithm

The paper introduces PostMax, a post-processing method that enhances unknown detection without requiring model retraining. PostMax leverages two key components:

  1. Logit Normalization: Contrary to findings in smaller models, the authors discovered that modern, large-scale architectures (e.g., Transformers, ConvNeXts) often produce higher feature magnitudes ($L_2$ norms) for unknown samples. By dividing the maximum logit by the feature magnitude, PostMax creates a clearer separation between knowns and unknowns.
  2. Extreme Value Theory (EVT): Instead of relying on raw Softmax scores, PostMax uses the Generalized Pareto Distribution (GPD) to map normalized scores into theoretically grounded "known-ness" probabilities.
Feature $L_2$ norms across various datasets. Unknown samples (e.g., iNaturalist, SUN) consistently exhibit higher magnitudes than known validation samples.

Experimental Results

The authors benchmarked PostMax against state-of-the-art methods using ImageNet-1K as the known set and a diverse array of large-scale unknown datasets (e.g., iNaturalist, Places, SUN). Using high-performance architectures like Hiera-H and ConvNeXtV2-H, PostMax demonstrated significant gains:

  • Accuracy: PostMax improved OOSA by 2.3% to 12.4% over baselines.
  • Detection: It reduced the False Positive Rate (FPR95) by up to 28.1% compared to standard methods like MSP.
  • Generalization: The method remained the top performer across all seven unknown datasets, indicating high robustness to different types of "out-of-distribution" data.

Conclusion

PostMax demonstrates that sophisticated post-processing, grounded in proper operational evaluation, can outperform complex OSR-specific training regimes. By highlighting the "feature magnitude surprise" in modern models and introducing the OOSA metric, this work provides a more realistic and effective framework for deploying open-set recognition systems at scale.

Summary updated

BibTeX
@inproceedings{cruz2024operational,
  author = {Steve Cruz and Ryan Rabinowitz and Manuel Günther and Terrance E. Boult},
  title = {{Operational Open-Set Recognition and PostMax Refinement}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72658-3\_27},
}
Figure