Skip to main content
QUICK REVIEW

[Paper Review] Unsupervised Out-of-Distribution Detection by Maximum Classifier Discrepancy

Qing Yu, Kiyoharu Aizawa|arXiv (Cornell University)|Aug 14, 2019
Anomaly Detection Techniques and ApplicationsComputer Science28 references10 citations
TL;DR

This paper proposes an unsupervised out-of-distribution (OOD) detection method using a two-head deep CNN with a shared feature extractor and two distinct classifiers. By maximizing the discrepancy between the two classifiers' outputs on unlabeled in-distribution and out-of-distribution data, the method effectively separates OOD samples from the in-distribution manifold without requiring labeled OOD data, achieving state-of-the-art performance across multiple benchmarks and real-world simulations.

ABSTRACT

Since deep learning models have been implemented in many commercial applications, it is important to detect out-of-distribution (OOD) inputs correctly to maintain the performance of the models, ensure the quality of the collected data, and prevent the applications from being used for other-than-intended purposes. In this work, we propose a two-head deep convolutional neural network (CNN) and maximize the discrepancy between the two classifiers to detect OOD inputs. We train a two-head CNN consisting of one common feature extractor and two classifiers which have different decision boundaries but can classify in-distribution (ID) samples correctly. Unlike previous methods, we also utilize unlabeled data for unsupervised training and we use these unlabeled data to maximize the discrepancy between the decision boundaries of two classifiers to push OOD samples outside the manifold of the in-distribution (ID) samples, which enables us to detect OOD samples that are far from the support of the ID samples. Overall, our approach significantly outperforms other state-of-the-art methods on several OOD detection benchmarks and two cases of real-world simulation.

Motivation & Objective

  • To address the challenge of detecting out-of-distribution (OOD) inputs in real-world deep learning applications where OOD samples are common and unlabeled.
  • To improve OOD detection performance in high-class in-distribution scenarios (e.g., CIFAR-100) where existing methods fail due to overlapping confidence scores.
  • To develop a method that does not require labeled OOD data, enabling practical deployment in real-world systems with limited or no access to OOD annotations.
  • To demonstrate robustness and generalization of the method across diverse architectures and real-world simulation datasets such as FOOD-101 and DeepFashion.

Proposed method

  • A two-head deep convolutional neural network (CNN) is used, sharing a common feature extractor but employing two separate classifiers with different decision boundaries.
  • The model is trained using only labeled in-distribution (ID) data and unlabeled data (containing both ID and OOD samples), without requiring OOD labels.
  • A discrepancy loss is introduced to maximize the difference in predictions between the two classifiers on unlabeled data, pushing OOD samples into the gap between the two decision boundaries.
  • The training objective combines standard cross-entropy loss on labeled ID data and the discrepancy loss on unlabeled data, optimizing both correct ID classification and OOD separation.
  • The method is compatible with standard architectures like DenseNet and Wide ResNet and can be applied to any DNN without architectural modification.
  • The final OOD detection is performed by measuring the disagreement (discrepancy) between the two classifiers’ outputs, where high discrepancy indicates OOD input.

Experimental results

Research questions

  • RQ1Can unlabeled data from both in-distribution and out-of-distribution sources improve unsupervised OOD detection without requiring OOD labels?
  • RQ2How effective is maximizing classifier discrepancy in separating OOD samples from the in-distribution manifold, especially in high-class ID settings?
  • RQ3Does the proposed method generalize across different network architectures and real-world application domains such as food and fashion recognition?
  • RQ4How does the size and composition of the unlabeled data affect the robustness and performance of the OOD detection system?
  • RQ5Can the discrepancy between two classifiers serve as a reliable and effective OOD detection signal compared to confidence-based methods?

Key findings

  • The proposed method significantly outperforms state-of-the-art methods, including ODIN and ELOC, on all tested benchmarks, including CIFAR-100 vs. TinyImageNet and CIFAR-100 vs. iSUN.
  • On the FOOD-101 dataset as ID and TinyImageNet-crop or LSUN-crop as OOD, the method achieves near-perfect detection performance, with AUROC values exceeding 0.99 in several settings.
  • The method maintains strong performance even when the unlabeled set contains only 500 OOD samples among 9,000 ID samples, demonstrating robustness to imbalanced unlabeled data.
  • The discrepancy loss is consistently lower for in-distribution samples than for out-of-distribution samples, and the larger the gap, the lower the detection error, confirming the method’s core mechanism.
  • In real-world simulations using FOOD-101 and DeepFashion, the method achieves superior AUROC scores compared to ODIN and ELOC, with minimal performance drop across diverse OOD datasets.
  • Ablation studies confirm that the method is robust to variations in the size and composition of the unlabeled data, including when the OOD data used for training differs from that used for evaluation.

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.