[Paper Review] BaCOUn: Bayesian Classifers with Out-of-Distribution Uncertainty
BaCOUn proposes a scalable Bayesian framework that enhances Neural Linear Models (NLMs) with reliable uncertainty estimation for out-of-distribution (OOD) data by introducing a data generator to create OOD-like boundary points. By training a normalizing flow to model the data manifold and using Bayesian inference on features, BaCOUn achieves GP-like uncertainty decomposition—epistemic and aleatoric—while outperforming standard NLMs and BNNs in OOD detection and uncertainty calibration on synthetic and real-world datasets.
Traditional training of deep classifiers yields overconfident models that are not reliable under dataset shift. We propose a Bayesian framework to obtain reliable uncertainty estimates for deep classifiers. Our approach consists of a plug-in "generator" used to augment the data with an additional class of points that lie on the boundary of the training data, followed by Bayesian inference on top of features that are trained to distinguish these "out-of-distribution" points.
Motivation & Objective
- To address the lack of reliable OOD uncertainty estimation in standard Neural Linear Models (NLMs), which fail to increase epistemic uncertainty in data-scarce regions.
- To develop a scalable alternative to Bayesian Neural Networks (BNNs) and Gaussian Processes (GPs) that provides accurate uncertainty decomposition: epistemic (OOD and model uncertainty) and aleatoric.
- To enable practical deployment of uncertainty-aware models in high-risk domains such as medical diagnosis, where model confidence must be calibrated for human-in-the-loop decision making.
- To demonstrate that OOD uncertainty can be effectively modeled in NLMs by modifying the training objective to include boundary-aware data augmentation.
Proposed method
- A plug-in generator creates synthetic out-of-distribution (OOD) points located on the boundary of the training data manifold, simulating data-poor regions.
- A normalizing flow is trained on the original data and the generated OOD points to model the underlying data density and geometry.
- The feature map φθ is trained to distinguish between in-distribution and OOD points, improving the expressiveness of the representation for uncertainty estimation.
- Bayesian inference is applied only to the last layer weights W, using a prior p(W), enabling analytical posterior computation and predictive uncertainty estimation.
- The posterior predictive distribution is computed as p(y*|x*, D) = ∫ p(y*|x*, W) p(W|D, θ*) dW, enabling uncertainty-aware predictions.
- Outlier detection is performed by ranking data points via the normalizing flow’s log-probability scores and removing the lowest-scoring k points.
Experimental results
Research questions
- RQ1Why do standard Neural Linear Models fail to increase epistemic uncertainty for out-of-distribution inputs, despite their Bayesian formulation?
- RQ2Can a scalable Bayesian framework be designed to provide accurate OOD uncertainty estimates comparable to Gaussian Processes, while maintaining the efficiency of NLMs?
- RQ3How can the training objective be modified to encourage decision boundaries that bound high-likelihood data regions, enabling better OOD generalization?
- RQ4Can a normalizing flow be used effectively to detect and remove outliers without prior knowledge of their distribution?
Key findings
- On synthetic datasets, BaCOUn achieves uncertainty estimates that closely match those of Gaussian Processes, particularly in increasing epistemic uncertainty for OOD points, whereas baseline NLMs and BNNs significantly underestimate it.
- On real-world datasets, BaCOUn attains higher AUC on in-distribution data and demonstrates superior ability to distinguish between in-distribution and OOD test samples.
- When applied to MNIST digits with increasing noise, BaCOUn correctly increases epistemic uncertainty as data points move farther from the data manifold, while baseline NLMs show no such increase.
- The method successfully identifies and removes outliers from synthetic data with artificial perturbations, as shown by visualizations of the normalizing flow’s log-probability heatmap and k-point selection results.
- BaCOUn maintains low uncertainty for rotated MNIST digits that resemble valid digits (e.g., a '9' rotated to look like a '6'), indicating robustness to distributional shifts.
- The framework enables disentangled uncertainty decomposition: epistemic uncertainty increases with OOD distance, while aleatoric uncertainty remains stable, reflecting the model’s correct understanding of uncertainty sources.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.