Skip to main content
QUICK REVIEW

[Paper Review] Distance-based Confidence Score for Neural Network Classifiers

Amit Mandelbaum, Daphna Weinshall|arXiv (Cornell University)|Sep 28, 2017
Adversarial Robustness in Machine LearningComputer Science3 references79 citations
TL;DR

The paper introduces a distance-based confidence score computed from neural network embeddings to quantify prediction confidence, and shows its advantages over traditional scores across classification, ensembles, and novelty detection, with two embedding strategies: distance-based loss and Adversarial Training.

ABSTRACT

The reliable measurement of confidence in classifiers' predictions is very important for many applications and is, therefore, an important part of classifier design. Yet, although deep learning has received tremendous attention in recent years, not much progress has been made in quantifying the prediction confidence of neural network classifiers. Bayesian models offer a mathematically grounded framework to reason about model uncertainty, but usually come with prohibitive computational costs. In this paper we propose a simple, scalable method to achieve a reliable confidence score, based on the data embedding derived from the penultimate layer of the network. We investigate two ways to achieve desirable embeddings, by using either a distance-based loss or Adversarial Training. We then test the benefits of our method when used for classification error prediction, weighting an ensemble of classifiers, and novelty detection. In all tasks we show significant improvement over traditional, commonly used confidence scores.

Motivation & Objective

  • Motivate reliable prediction confidence in neural classifiers and address limitations of existing surrogate scores.
  • Propose a distance-based confidence score derived from the network embedding.
  • Show how embedding-focused training (distance-based loss or Adversarial Training) improves confidence quality.
  • Evaluate the score on multiple datasets for error prediction, ensembles, and novelty detection.
  • Compare performance against entropy-based and MC-Dropout-based confidence measures.

Proposed method

  • Define embedding f(x) from a trained classifier.
  • Compute D(x) as a normalized density-based score using k-nearest neighbors in the embedding space with respect to the training set.
  • Option 1: augment training with a distance-based loss L_dist to encourage favorable embedding structure (Eq. 2).
  • Option 2: use Adversarial Training to induce embedding favorable for density estimation (Eq. 3).
  • Discuss computational aspects and scaling, including nearest-neighbor approximations and memory considerations.
  • Explore ensemble weighting and hybrid architectures that leverage Distance networks alongside regular or Adversarial networks.

Experimental results

Research questions

  • RQ1Does the proposed distance-based confidence score improve reliability of predictions compared to traditional scores (margin, entropy) and recent methods (MC-Dropout, Adversarial Training alone) across datasets?
  • RQ2Can the score enhance ensemble performance and be effective in novelty detection?
  • RQ3How do distance-based training and Adversarial Training influence embedding quality and downstream confidence performance?

Key findings

  • The distance-based confidence score improves AUC for correct classifications across CIFAR-100, STL-10, and SVHN compared to Margin, Entropy, and MC-Dropout baselines.
  • ensembles weighted by the distance score outperform ensembles without the score, including when adversarial training is used.
  • Adversarial Training with the distance score yields strong results and requires fewer hyperparameter tuning than the distance-based loss alone.
  • A hybrid approach using a Distance network to inform another classifier achieves top performance on CIFAR-100 and SVHN.
  • The method improves novelty detection performance over standard confidence measures, with adversarial training offering the best baseline novelty performance and the distance score providing additional gains.

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.