Skip to main content
QUICK REVIEW

[Paper Review] Inhibited Softmax for Uncertainty Estimation in Neural Networks

Marcin Możejko, Mateusz Susik|arXiv (Cornell University)|Oct 3, 2018
Adversarial Robustness in Machine LearningComputer Science35 references24 citations
TL;DR

This paper proposes Inhibited Softmax, a method for uncertainty estimation in neural networks that extends the standard softmax with a learnable constant input to produce an additional output representing model uncertainty. The approach requires no additional parameters, multiple forward passes, or out-of-distribution data, and it achieves performance comparable to state-of-the-art methods while outperforming baselines in both image recognition and sentiment analysis tasks.

ABSTRACT

We present a new method for uncertainty estimation and out-of-distribution detection in neural networks with softmax output. We extend softmax layer with an additional constant input. The corresponding additional output is able to represent the uncertainty of the network. The proposed method requires neither additional parameters nor multiple forward passes nor input preprocessing nor out-of-distribution datasets. We show that our method performs comparably to more computationally expensive methods and outperforms baselines on our experiments from image recognition and sentiment analysis domains.

Motivation & Objective

  • To develop a simple, efficient method for uncertainty estimation in neural networks that does not require additional parameters or multiple forward passes.
  • To enable out-of-distribution detection without relying on adversarial or OOD datasets during training.
  • To provide a mathematically interpretable uncertainty measure using an extended softmax layer.
  • To improve uncertainty approximation in neural networks while preserving predictive accuracy.
  • To demonstrate that the method performs comparably to more complex Bayesian or ensemble-based approaches.

Proposed method

  • The method replaces the standard softmax layer with an Inhibited Softmax layer that adds a constant input and an additional output head to represent uncertainty.
  • The additional output is learned during training and interpreted as a measure of model confidence or uncertainty.
  • The Inhibited Softmax layer is applied at the final classification layer, enabling uncertainty estimation with a single forward pass.
  • The method does not require any architectural changes beyond adding a single constant input to the softmax computation.
  • The approach is compatible with standard backpropagation and does not introduce additional learnable parameters in the final layer.
  • The method is evaluated on image classification (MNIST, CIFAR-10) and sentiment analysis (IMDB) benchmarks.

Experimental results

Research questions

  • RQ1Can a simple, single-forward-pass method estimate uncertainty in neural networks without additional parameters or OOD data?
  • RQ2How does the Inhibited Softmax output compare to uncertainty measures from Monte Carlo dropout or Bayesian neural networks?
  • RQ3Does the method maintain or improve predictive accuracy while estimating uncertainty?
  • RQ4Can the method detect out-of-distribution samples effectively with minimal computational overhead?
  • RQ5What is the mathematical basis for interpreting the additional Inhibited Softmax output as a valid uncertainty measure?

Key findings

  • Inhibited Softmax outperforms baseline methods on out-of-distribution detection, achieving an AUC of 0.987 on MNIST, compared to 0.982 for MCD and 0.983 for IS.
  • On the IMDB sentiment analysis dataset, Inhibited Softmax achieved an AUC of 0.689, outperforming the baseline and matching or exceeding other methods.
  • The method maintains high predictive accuracy, with test accuracy of 0.885 on IMDB and 0.875 on CIFAR-10, comparable to baseline and state-of-the-art models.
  • Inhibited Softmax requires only a single forward pass and no additional parameters, unlike methods such as Monte Carlo dropout or Bayesian neural networks.
  • Visualizations show strong similarity between Inhibited Softmax and Monte Carlo dropout in uncertainty estimation across the latent space of a VAE.
  • The method performs particularly well on shallow networks in sentiment analysis, suggesting potential for deeper architectures with further tuning.

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.