NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Assessing Deep Neural Networks as Probability Estimators

Yu Pan, Kwo‐Sen Kuo, M. L. Rilee, Hongfeng Yu

TL;DR

This paper introduces a novel framework to rigorously assess how well Deep Neural Networks (DNNs) estimate conditional probabilities, a crucial but often overlooked aspect for understanding their uncertainty. They found that the local data density and the distinctiveness between categories are more critical for accurate probability estimation than the prior class probabilities.

What Problem Does This Paper Address?

Deep Neural Networks (DNNs) excel at classification, but their ability to accurately quantify uncertainty in their predictions has been a significant challenge. For many applications, knowing how confident a DNN is in its classification is as important as the classification itself. This uncertainty is directly related to how well a DNN can estimate conditional probabilities, $p(y|x)$, which is the probability of a class $y$ given an input $x$. While the softmax output of a DNN might look like probabilities, there's a lack of systematic investigation into their actual quality and the factors influencing them. This paper aims to fill that gap by providing a method to evaluate DNNs as probability estimators and identify the key drivers of their performance.

Methods

The core of the paper's contribution is a novel two-path assessment framework.

  1. Generative Ground Truth: They first construct a generative model that allows them to define the "ground truth" conditional probabilities $p(y|x)$. This model specifies the prior probability of classes $p(y)$ and the likelihood of data given a class $p(x|y)$. By controlling these parameters, they can create synthetic datasets with known probabilistic properties.
  2. Bayesian Inference Path: Using the generative model's parameters, they can analytically compute the true conditional probability $p(y|x)$ via Bayes' theorem. This serves as the gold standard.
  3. DNN Estimation Path: They then generate synthetic datasets from their model and train a standard DNN classifier (using softmax output) to approximate $p(y|x)$. The DNN's output, denoted as $q(y|x)$, is then compared against the ground truth $p(y|x)$.

This framework allows for a controlled evaluation of DNNs' probabilistic estimation capabilities by comparing their learned probabilities against a known truth. They also explore both 1-D and high-dimensional cases, using dimensionality reduction for the latter.

Datasets

  • Synthetic Datasets: The primary "datasets" used are synthetically generated according to the proposed generative framework. This allows for precise control over various probabilistic factors like class priors, likelihood densities, and inter-class separability.
  • MNIST Dataset: Used for evaluating the framework in a pseudo high-dimensional setting. They employ t-SNE for dimensionality reduction to a 2-D manifold and then use a generative model on this 2-D space, mapping back to the original high-dimensional image space.

Key Insights and Ideas

  • Beyond Softmax: The paper highlights that a softmax output doesn't automatically guarantee accurate probability estimation. The DNN's ability to learn these probabilities is influenced by the underlying data distribution and its own architecture/training.
  • Density is King (for Uncertainty): The most significant finding is that the local data density (how many samples are in a region) and inter-categorical sparsity (how distinct the classes are in that region) have a much larger impact on the DNN's probability estimation accuracy than the prior probability of the classes.
  • Low data density and high sparsity (i.e., regions where classes are mixed and sparse) are where DNNs struggle the most to provide accurate probabilities.
  • Conversely, high density and low sparsity lead to more reliable probability estimates.
  • Distance Matters: Increasing the distance between the means of different class distributions generally improves prediction accuracy.
  • Variances are Tricky: The impact of variances is complex, but generally, smaller variances can lead to more accurate predictions, though this can be counteracted by other factors.

Key Results

  • Systematic Analysis: Through extensive grid searches on synthetic 1-D data, they demonstrated that density and sparsity are the dominant factors influencing prediction precision (measured by KL-Divergence and Absolute Difference).
  • High-Dimensional Confirmation: Experiments on the MNIST dataset (in a pseudo high-dimensional setting) corroborated the findings from the 1-D case, showing that density and sparsity remain critical.
  • Qualitative Examples: Figures in the paper visually demonstrate scenarios with large prediction errors occurring in low-density, high-sparsity regions, and vice-versa for low-error scenarios.

Limitations and Future Work

  • Generative Model Assumptions: The framework relies on a generative model to define the ground truth. The accuracy of the assessment is thus dependent on how well this generative model captures the true underlying data distribution.
  • Computational Cost: The grid search approach for exploring parametric space is computationally intensive.
  • Future Directions: The authors suggest applying this framework to more complex categorization scenarios and exploring more sophisticated generative models and remapping techniques. They also hint at the potential for this framework to aid in interpreting the inferences of various deep models.

Summary updated

BibTeX
@inproceedings{pan2021assessing,
  author = {Yu Pan and Kwo‐Sen Kuo and M. L. Rilee and Hongfeng Yu},
  title = {{Assessing Deep Neural Networks as Probability Estimators}},
  booktitle = {2021},
  year = {2021},
  doi = {10.1109/bigdata52589.2021.9671328},
}
Figure