Out-of-Distribution Detection with Prototypical Outlier Proxy

Mingrong Gong, Chaoqi Chen, Qingqiang Sun, Yue Wang, Hui Huang

Abstract

Deep learning models often exhibit overconfidence when encountering Out-of-Distribution (OOD) data, leading to potential failures in safety-critical applications. We present Prototypical Outlier Proxy (POP), a novel framework that enables models to recognize "unknowns" without exposure to real or synthetic outliers during training. By integrating virtual OOD prototypes into a fixed, hierarchy-aware classifier, POP reserves feature space for unseen data, significantly reducing overconfidence. Experimental results demonstrate that POP achieves state-of-the-art performance, reducing False Positive Rates (FPR95) by up to 7.70% while operating up to 19.5x faster than existing synthesis-based methods.

Introduction

Standard deep learning classifiers are typically trained under a closed-world assumption, where test-time data is expected to belong to one of the known training classes. When faced with OOD data, these models often assign high-confidence scores to incorrect categories. While existing techniques like Outlier Exposure (OE) attempt to mitigate this by training on auxiliary outlier datasets, they are computationally expensive and often fail to generalize to truly novel data distributions. POP addresses these limitations by shifting the paradigm from outlier collection to structural representation, creating "sinkholes" for unknown data within the model's internal feature space.

The POP Framework

The core philosophy of POP is to proactively reserve space for outliers in the representation space. This is achieved through three primary components:

  1. Fixed Hierarchy-Aware Classifier: Instead of allowing classifier weights to evolve freely, POP utilizes a fixed classifier where class prototypes are pre-calculated based on a semantic hierarchy (e.g., WordNet). This prevents the "neural collapse" phenomenon from shrinking decision boundaries too tightly around known classes.
  2. Prototypical Outlier Proxies: The framework introduces "virtual" OOD prototypes—mathematical vectors placed in the gaps between known class centers. These proxies act as attractors for OOD data, preventing it from being forced into In-Distribution (ID) categories.
  3. Hierarchical Similarity Boundary Loss (HSBL): To ensure robust boundaries, HSBL applies adaptive penalties based on semantic distance. For instance, misclassifying a "dog" as a "cat" is penalized less than misclassifying it as a "car," forcing the model to learn semantically meaningful feature separations.
Conceptual comparison of decision boundaries for vanilla training, outlier-based training, and the proposed POP framework.

Experimental Evaluation

Datasets and Benchmarks

POP was evaluated using the OpenOOD benchmark. Models were trained on ID datasets including CIFAR-10, CIFAR-100, and ImageNet-200. Evaluation spanned diverse OOD scenarios, ranging from "far-OOD" (e.g., MNIST vs. CIFAR) to "near-OOD" (e.g., SSB-hard and NINCO), which contain semantically similar but distinct objects.

Performance and Efficiency

POP consistently outperforms both post-hoc and outlier-based methods. On CIFAR-10, it achieved a 7.70% reduction in FPR95 compared to the previous state-of-the-art. Notably, POP maintains high performance across both near-OOD and far-OOD tasks, a common failure point for specialized outlier-detection models.

Performance comparison of POP against state-of-the-art methods on Far-OOD (MNIST) and Near-OOD (CIFAR-100) tasks. Lower values indicate better performance.

Beyond accuracy, POP offers significant computational advantages. By avoiding the need for complex generative models (like GANs or Diffusion) to synthesize outliers, POP is 7.2x faster during training and 19.5x faster during inference compared to synthesis-based methods like NPOS.

Conclusion

Prototypical Outlier Proxy (POP) provides a highly efficient and robust solution for OOD detection by leveraging fixed hierarchical prototypes and virtual outlier proxies. By defining the boundaries of what a model does know, POP effectively identifies what it does not know without the need for external outlier data. Future work will focus on automating the selection of the optimal number of proxies to further generalize the framework across niche domains lacking pre-defined semantic hierarchies.

Summary updated

BibTeX
@inproceedings{gong2025out,
  author = {Mingrong Gong and Chaoqi Chen and Qingqiang Sun and Yue Wang and Hui Huang},
  title = {{Out-of-Distribution Detection with Prototypical Outlier Proxy}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i16.33850},
}
Figure