Skip to main content
QUICK REVIEW

[Paper Review] Confidence estimation in Deep Neural networks via density modelling

Akshayvarun Subramanya, Suraj Srinivas|arXiv (Cornell University)|Jul 21, 2017
Adversarial Robustness in Machine LearningComputer Science14 references33 citations
TL;DR

This paper proposes a density modelling-based confidence estimation method for deep neural networks that outperforms traditional softmax by producing monotonically decreasing confidence scores under image distortions—such as noise, blur, JPEG compression, and adversarial perturbations—where softmax fails. The method uses a diagonal Gaussian model to estimate predictive uncertainty, demonstrating superior robustness in detecting unreliable predictions.

ABSTRACT

State-of-the-art Deep Neural Networks can be easily fooled into providing incorrect high-confidence predictions for images with small amounts of adversarial noise. Does this expose a flaw with deep neural networks, or do we simply need a better way to estimate confidence? In this paper we consider the problem of accurately estimating predictive confidence. We formulate this problem as that of density modelling, and show how traditional methods such as softmax produce poor estimates. To address this issue, we propose a novel confidence measure based on density modelling approaches. We test these measures on images distorted by blur, JPEG compression, random noise and adversarial noise. Experiments show that our confidence measure consistently shows reduced confidence scores in the presence of such distortions - a property which softmax often lacks.

Motivation & Objective

  • Address the critical flaw in deep neural networks where softmax produces overconfident predictions even under image distortions or adversarial noise.
  • Investigate whether confidence estimation can be improved by moving beyond softmax to density modelling approaches.
  • Develop a method that produces reliable, monotonically decreasing confidence scores as image quality degrades.
  • Evaluate the proposed method on diverse distortions and adversarial examples to demonstrate robustness compared to softmax.
  • Provide empirical evidence that density-based confidence estimation correlates better with actual model accuracy than softmax.

Proposed method

  • Formulate confidence estimation as a density modelling problem, estimating the predictive distribution P(y|X) using a probabilistic model instead of softmax.
  • Model the pre-softmax activations z as a multivariate Gaussian with diagonal covariance, enabling uncertainty estimation via likelihood under this distribution.
  • Compute confidence as the likelihood of the true class under the estimated Gaussian model, normalized across classes.
  • Use the log-likelihood of the true class label under the fitted Gaussian to represent confidence, ensuring sensitivity to input perturbations.
  • Train the model end-to-end with standard cross-entropy loss, then apply the density model at inference time to estimate confidence.
  • Scale confidence scores such that clean images have a reference confidence value (e.g., 1.0) for visualization and comparison.

Experimental results

Research questions

  • RQ1Can density modelling produce more reliable confidence estimates than softmax in the presence of image distortions?
  • RQ2Does the proposed method exhibit a monotonically decreasing confidence profile as image quality degrades due to noise, blur, or compression?
  • RQ3How does the proposed confidence measure compare to softmax in detecting adversarial examples?
  • RQ4Why does softmax fail to reflect reduced confidence under perturbations, and can this be attributed to its sensitivity to activation scale?
  • RQ5To what extent does the choice of density model (e.g., diagonal Gaussian) affect performance in high-dimensional input spaces?

Key findings

  • The proposed density-based confidence measure shows a monotonically decreasing profile under increasing Gaussian noise and blur, while softmax fails to reduce confidence even under high distortions.
  • On the MNIST dataset, the proposed method consistently reduces confidence with increasing noise (σ = 0 to 1), whereas softmax remains high and unstable.
  • For ImageNet, the method detects reduced confidence under Gaussian blur (σ = 0 to 36), though performance is less consistent than on MNIST, suggesting challenges in high-dimensional density estimation.
  • Under JPEG compression, both softmax and the proposed method show decreasing confidence with lower quality factors, but the proposed method maintains a more reliable profile.
  • On adversarial examples from the ImageNet validation set, the proposed method failed to correctly reduce confidence in only 2,214 out of 5,795 cases, compared to 5,795 failures for softmax, indicating a significant improvement.
  • The method’s confidence scores (unnormalized) drop consistently from clean to distorted images, while softmax scores remain largely unchanged or even increase, especially in adversarial cases.

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.