Skip to main content
QUICK REVIEW

[Paper Review] Being Bayesian about Categorical Probability

Taejong Joo, Uijung Chung|ArXiv.org|Feb 19, 2020
Anomaly Detection Techniques and ApplicationsComputer Science62 references10 citations
TL;DR

This paper proposes a Bayesian alternative to the softmax function by modeling categorical probabilities as random variables with Dirichlet priors, enabling better uncertainty estimation and model calibration. The method replaces cross-entropy loss with a belief matching framework that updates beliefs using Bayes' rule, achieving consistent improvements in generalization and calibration with minimal computational overhead.

ABSTRACT

Neural networks utilize the softmax as a building block in classification tasks, which contains an overconfidence problem and lacks an uncertainty representation ability. As a Bayesian alternative to the softmax, we consider a random variable of a categorical probability over class labels. In this framework, the prior distribution explicitly models the presumed noise inherent in the observed label, which provides consistent gains in generalization performance in multiple challenging tasks. The proposed method inherits advantages of Bayesian approaches that achieve better uncertainty estimation and model calibration. Our method can be implemented as a plug-and-play loss function with negligible computational overhead compared to the softmax with the cross-entropy loss function.

Motivation & Objective

  • To address the overconfidence and poor uncertainty calibration of standard softmax in deep neural networks.
  • To improve generalization performance in deep learning models without major architectural changes.
  • To enable efficient Bayesian inference in classification by treating categorical probabilities as random variables.
  • To provide a plug-and-play loss function that enhances uncertainty representation with negligible computational cost.

Proposed method

  • Models the categorical probability distribution as a random variable with a Dirichlet prior to encode label noise and uncertainty.
  • Applies Bayes' rule to update the prior belief using observed labels, forming a posterior distribution over class probabilities.
  • Replaces the standard softmax cross-entropy loss with a belief matching loss that minimizes KL divergence between predicted and posterior distributions.
  • Uses variational inference to approximate the intractable posterior, enabling end-to-end training.
  • Implements the method as a plug-in loss function, compatible with existing deep learning frameworks and models.
  • Employs Dirichlet conjugate priors to allow analytical updates and efficient computation of posterior distributions.

Experimental results

Research questions

  • RQ1Can modeling categorical probabilities as random variables improve model calibration and uncertainty estimation in deep neural networks?
  • RQ2How does the proposed belief matching framework compare to standard softmax cross-entropy in terms of generalization and robustness?
  • RQ3Can the Bayesian approach be integrated into existing deep learning models with minimal architectural changes and computational cost?
  • RQ4Does the method improve performance in semi-supervised learning by capturing richer probabilistic structures in predictions?

Key findings

  • The belief matching (BM) method reduced test error rates to 12.40% ± 0.23 on CIFAR-10 using VAT, compared to 13.33% ± 0.37 for standard softmax.
  • On CIFAR-10 with the Π-model, BM achieved a test error of 16.01% ± 0.36, outperforming the 16.52% ± 0.21 error rate of the standard softmax.
  • The method improved generalization performance on large models, including ResNeXt-101 on ImageNet, demonstrating consistent gains across benchmarks.
  • The belief matching framework captured richer probabilistic structures than moment-based consistency losses, such as (co)variances in predictions.
  • The approach achieved better uncertainty estimation and model calibration without requiring changes to network architecture or significant computational overhead.
  • The method demonstrated effectiveness in semi-supervised learning by enabling more sophisticated consistency measures through distribution-level matching.

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.