Skip to main content
QUICK REVIEW

[Paper Review] DOCTOR: A Simple Method for Detecting Misclassification Errors

Federica Granese, Marco Romanelli|arXiv (Cornell University)|Jun 4, 2021
Adversarial Robustness in Machine LearningComputer Science33 references10 citations
TL;DR

Doctor is a simple, post-hoc method for detecting misclassification errors in deep neural network predictions by leveraging soft-label probabilities. It outperforms state-of-the-art methods by reducing false rejection rates by up to 4% in the partially black-box setting, without requiring model retraining or architectural changes.

ABSTRACT

Deep neural networks (DNNs) have shown to perform very well on large scale object recognition problems and lead to widespread use for real-world applications, including situations where DNN are implemented as "black boxes". A promising approach to secure their use is to accept decisions that are likely to be correct while discarding the others. In this work, we propose DOCTOR, a simple method that aims to identify whether the prediction of a DNN classifier should (or should not) be trusted so that, consequently, it would be possible to accept it or to reject it. Two scenarios are investigated: Totally Black Box (TBB) where only the soft-predictions are available and Partially Black Box (PBB) where gradient-propagation to perform input pre-processing is allowed. Empirically, we show that DOCTOR outperforms all state-of-the-art methods on various well-known images and sentiment analysis datasets. In particular, we observe a reduction of up to $4\%$ of the false rejection rate (FRR) in the PBB scenario. DOCTOR can be applied to any pre-trained model, it does not require prior information about the underlying dataset and is as simple as the simplest available methods in the literature.

Motivation & Objective

  • To develop a reliable method for identifying whether a DNN's prediction should be trusted or rejected, regardless of whether inputs are in-distribution or out-of-distribution.
  • To address the overconfidence of DNNs in incorrect predictions, especially in real-world 'black box' deployments where interpretability is limited.
  • To propose a method that works with pre-trained models without requiring access to gradients, weights, or additional training data.
  • To improve the reliability of DNNs in safety-critical applications by minimizing both false rejections and false acceptances of predictions.
  • To provide a simple yet effective solution that outperforms existing methods in both totally and partially black-box scenarios.

Proposed method

  • Doctor uses the full distribution of soft probabilities (not just the maximum) to assess prediction confidence, enabling better discrimination between correct and incorrect predictions.
  • It introduces two detection scenarios: Totally Black Box (TBB), where only model outputs are accessible, and Partially Black Box (PBB), where input perturbations are allowed via gradient-based pre-processing.
  • The method is grounded in a theoretical trade-off between Type-I (false rejection) and Type-II (false acceptance) errors, leading to an optimal discriminator based on softmax probabilities.
  • In the PBB setting, Doctor applies input perturbations with temperature scaling and small ε-perturbations, similar to ODIN, but uses a novel decision rule based on the entire probability vector.
  • The core detection mechanism computes a confidence score using the full soft-label distribution, enabling more nuanced rejection decisions than methods relying only on maximum probability.
  • The method is model-agnostic and can be applied to any pre-trained classifier without retraining or architectural modifications.

Experimental results

Research questions

  • RQ1Can a simple, post-hoc method detect misclassification errors in DNNs without requiring access to model weights or gradients?
  • RQ2How does leveraging the full soft-label distribution improve detection performance compared to methods relying only on the maximum probability?
  • RQ3To what extent can Doctor reduce false rejection rates (FRR) in both TBB and PBB settings compared to state-of-the-art methods?
  • RQ4Can Doctor generalize to OOD detection tasks without explicit optimization for that purpose?
  • RQ5How does Doctor perform when OOD samples are similar to in-distribution data, a challenging scenario for existing detectors?

Key findings

  • Doctor reduces the false rejection rate (FRR) by up to 4% in the partially black-box (PBB) scenario compared to state-of-the-art methods.
  • In the TBB setting, Doctor achieves competitive performance, with AUROC scores consistently above 95% on CIFAR-10 and CIFAR-100 under various architectures.
  • On the LSUN (crop) dataset, Doctor improves FRR by 3.3% compared to the baseline ODIN in pure OOD detection, demonstrating strong generalization.
  • When OOD samples are similar to in-distribution data (e.g., CIFAR100 vs. CIFAR10), Doctor (PBB) achieves an AUROC of 76.8% and FRR of 64.2%, outperforming ODIN (70.5% AUROC, 79.5% FRR).
  • In the white-box scenario, the Mahalanobis-based method (MHLNB) performs poorly (AUROC 49.5% on CIFAR10), highlighting the advantage of Doctor’s approach in practical settings.
  • Doctor achieves strong performance without any model fine-tuning or additional training, relying only on inference-time soft predictions and minimal input perturbations.

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.