OpenAUC: Towards AUC-Oriented Open-Set Recognition

Zitai Wang, Qianqian Xu, Zhiyong Yang, Yuan He, Xiaochun Cao, Qingming Huang

TL;DR

OpenAUC is a novel evaluation metric and learning framework for Open-Set Recognition (OSR) that fixes a critical flaw in existing metrics: the tendency to ignore either classification accuracy or unknown detection. By using a pairwise formulation that "couples" these two goals, OpenAUC ensures that a model is only rewarded when it correctly identifies a known class and ranks an unknown sample as more "novel" than that known sample.

What Problem Does This Paper Address?

In the real world, machine learning models often encounter "unknown unknowns"—samples from classes they never saw during training. This is the challenge of Open-Set Recognition (OSR). A good OSR model must do two things simultaneously:

  1. Classify known samples into their correct categories (e.g., "this is a dog").
  2. Reject unknown samples (e.g., "this is not any of the animals I know").

The authors point out a major gap: we lack a consistent way to measure this dual objective. Existing metrics fall into two traps:

  • Classification-based metrics (like Open-set F-score or Normalized Accuracy) can be "gamed." A model with perfect close-set accuracy can achieve a high score even if it is terrible at detecting unknowns.
  • Detection-based metrics (like standard AUC) measure how well the model separates "knowns" from "unknowns" but completely ignore whether the "knowns" were classified into the right categories.

The paper identifies several "Inconsistency Properties" where these metrics fail to reflect true model quality, leading researchers to potentially favor sub-optimal models.

Methods

The core contribution is OpenAUC, a metric designed to be "consistent" with the dual goals of OSR.

The Metric

OpenAUC uses a pairwise formulation. Instead of looking at samples in isolation, it evaluates pairs consisting of one close-set sample ($x_k$) and one open-set sample ($x_u$). A "success" for a pair occurs only if:

  • The close-set sample $x_k$ is classified into its correct known class.
  • AND the open-set sample $x_u$ is assigned a higher "novelty score" than the close-set sample $x_k$.

This coupling prevents the metric from being inflated by a model that is good at only one of the two tasks.

The Learning Method

To optimize for this metric, the authors propose an end-to-end training objective. Since true open-set samples aren't available during training, they use Manifold Mixup to generate synthetic "pseudo-unknowns" by interpolating between different known classes in the hidden feature space. The loss function then acts as a "switch": it minimizes classification error first, and only when a sample is correctly classified does it focus on pushing the novelty scores of unknown samples above it.

Datasets

The authors evaluated their method on several standard computer vision benchmarks:

  • MNIST, SVHN, and CIFAR10: Standard small-scale datasets where a subset of classes is held out as "unknown."
  • CIFAR+10 and CIFAR+50: Known classes come from CIFAR10, while unknown samples are drawn from non-overlapping classes in CIFAR100.
  • TinyImageNet: A more challenging, larger-scale dataset with 20 known and 180 unknown classes.
  • CUB: A fine-grained bird classification dataset used to test the model's ability to distinguish between very similar categories.

Key Insights and Ideas

  • Coupling is Key: Evaluating classification and detection as separate tasks (decoupling) leads to inconsistent rankings of models. OpenAUC’s "product" logic (Correct Classify $\times$ Correct Rank) is the mathematical fix for this.
  • Threshold Independence: Unlike F-scores, which require picking a specific "rejection threshold," OpenAUC is based on ranking. This makes it more robust and easier to use for comparing models without worrying about hyperparameter tuning for the threshold.
  • The "Switch" Logic: The proposed loss function effectively tells the model: "Don't worry about ranking this sample against unknowns until you can at least get its label right." This prioritizes foundational classification before fine-tuning novelty detection.

Key Results

The authors compared OpenAUC-optimized models against state-of-the-art (SOTA) methods like ARPL, GCPL, and CE+.

Performance comparison and metric inconsistency
  • Consistent Superiority: The proposed method achieved the best or second-best performance across all benchmark datasets.
  • Significant Gains on Complexity: On the difficult TinyImageNet benchmark, the method achieved a score of 75.9%, outperforming the previous SOTA (74.3%).
  • Empirical Validation of Inconsistency: As shown in the plots above, traditional classification-based metrics can actually decrease or behave inconsistently across different thresholds, whereas the proposed approach remains stable and representative of true performance.

Limitations and Future Work

  • Partial OpenAUC: In safety-critical fields like autonomous driving, performance at very low False Positive Rates is paramount (i.e., we cannot afford to miss an unknown obstacle). The authors suggest "Partial OpenAUC" as a future direction to focus on specific regions of the performance curve.
  • Theoretical Bounds: While the empirical results are strong, the generalization bounds for this specific pairwise optimization in an open-set context remain an open research question.
  • Synthetic Sample Quality: The method relies on Manifold Mixup to create "unknowns." If the generated samples are too noisy or unrepresentative of real-world unknowns, the model's performance might degrade.

Summary updated

BibTeX
@inproceedings{wang2022openauc,
  author = {Zitai Wang and Qianqian Xu and Zhiyong Yang and Yuan He and Xiaochun Cao and Qingming Huang},
  title = {{OpenAUC: Towards AUC-Oriented Open-Set Recognition}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=Ddd6FqHXmHA},
}
Figure