Skip to main content
QUICK REVIEW

[Paper Review] MOS: Towards Scaling Out-of-distribution Detection for Large Semantic Space

Rui Huang, Yixuan Li|arXiv (Cornell University)|May 5, 2021
Adversarial Robustness in Machine LearningComputer Science48 references9 citations
TL;DR

This paper proposes MOS (Minimum Others Score), a group-based out-of-distribution (OOD) detection framework that decomposes large semantic spaces into conceptually similar groups to simplify decision boundaries. By leveraging group-wise softmax with a dedicated 'others' category and computing the minimum confidence across all groups, MOS achieves state-of-the-art performance with 14.33% lower average FPR95 and 6x faster inference on ImageNet-1k compared to prior methods.

ABSTRACT

Detecting out-of-distribution (OOD) inputs is a central challenge for safely deploying machine learning models in the real world. Existing solutions are mainly driven by small datasets, with low resolution and very few class labels (e.g., CIFAR). As a result, OOD detection for large-scale image classification tasks remains largely unexplored. In this paper, we bridge this critical gap by proposing a group-based OOD detection framework, along with a novel OOD scoring function termed MOS. Our key idea is to decompose the large semantic space into smaller groups with similar concepts, which allows simplifying the decision boundaries between in- vs. out-of-distribution data for effective OOD detection. Our method scales substantially better for high-dimensional class space than previous approaches. We evaluate models trained on ImageNet against four carefully curated OOD datasets, spanning diverse semantics. MOS establishes state-of-the-art performance, reducing the average FPR95 by 14.33% while achieving 6x speedup in inference compared to the previous best method.

Motivation & Objective

  • Address the critical gap in out-of-distribution detection for large-scale image classification, where existing methods are largely untested beyond small datasets like CIFAR.
  • Develop a scalable OOD detection framework that effectively handles high-dimensional class spaces with thousands of semantic classes.
  • Reduce uncertainty in OOD detection by simplifying decision boundaries through semantic grouping of similar concepts.
  • Improve both detection performance and inference efficiency in large-scale settings without requiring auxiliary outlier data.
  • Curate diverse, high-resolution OOD evaluation datasets to enable realistic benchmarking for future large-scale OOD detection research.

Proposed method

  • Decompose the large semantic space into smaller, semantically coherent groups based on concept similarity to reduce decision boundary complexity.
  • Introduce group-wise softmax that computes probability distributions within each group, including a dedicated 'others' category for OOD likelihood per group.
  • Define the Minimum Others Score (MOS) as the minimum confidence across all groups for the 'others' category, which serves as the final OOD score.
  • Use the MOS score to distinguish OOD inputs (high confidence in 'others' across all groups) from in-distribution inputs (low confidence in 'others' for their true group).
  • Fine-tune only the top fully connected layers of pre-trained BiT-S models to maintain OOD detection performance while improving efficiency.
  • Apply the framework to models trained on ImageNet-1k and evaluate on four curated, high-resolution OOD datasets with diverse semantics.
Figure 1 : Top : Examples of in-distribution images sampled from ImageNet-1k (in green ) and OOD images sampled from 4 datasets described in Section 4.1 (in orange ). Bottom : Overview of the proposed group-based OOD detection framework. The key idea is to decompose the large semantic space into sma
Figure 1 : Top : Examples of in-distribution images sampled from ImageNet-1k (in green ) and OOD images sampled from 4 datasets described in Section 4.1 (in orange ). Bottom : Overview of the proposed group-based OOD detection framework. The key idea is to decompose the large semantic space into sma

Experimental results

Research questions

  • RQ1Can OOD detection performance be significantly improved in large-scale image classification with 1,000+ classes compared to existing methods designed for small benchmarks?
  • RQ2Does grouping semantically similar classes simplify the OOD decision boundary and reduce uncertainty in high-dimensional semantic spaces?
  • RQ3How does the MOS scoring function compare to existing OOD detection methods like MSP, ODIN, and KL matching in terms of accuracy and inference speed?
  • RQ4What impact do different grouping strategies, model architectures, and fine-tuning configurations have on OOD detection performance in large-scale settings?
  • RQ5Can a group-based framework achieve state-of-the-art performance without requiring auxiliary outlier data or complex training procedures?

Key findings

  • MOS achieves a 14.33% reduction in average FPR95 across four diverse OOD datasets compared to the previous best method, demonstrating superior detection performance.
  • The method achieves a 6x speedup in inference time while maintaining or improving detection accuracy, making it highly efficient for real-world deployment.
  • Fine-tuning only the top fully connected layers yields better OOD detection performance than fine-tuning deeper layers, suggesting reduced risk of label overfitting.
  • The group-based approach significantly outperforms baseline methods like MSP and KL matching, especially as the number of classes increases from 50 to 1,000.
  • The curated OOD evaluation datasets from real-world high-resolution databases provide a more realistic benchmark for large-scale OOD detection than synthetic or simplified benchmarks.
Figure 2 : OOD detection performance of a common baseline MSP [ 16 ] decreases rapidly as the number of ImageNet-1k classes increases ( left : AUROC; right : FPR95).
Figure 2 : OOD detection performance of a common baseline MSP [ 16 ] decreases rapidly as the number of ImageNet-1k classes increases ( left : AUROC; right : FPR95).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.