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

Bayesian Evidential Deep Learning with PAC Regularization

Manuel Haussmann, Sebastian Gerwinn, Melih Kandemir

TL;DR

Evidential Deep Learning (EDL) offers fast, closed-form predictive uncertainty, but its deterministic weights prevent it from disentangling data noise from model ignorance. This paper introduces Bayesian Evidential Deep Learning (BEDL), extending EDL with Bayesian neural networks via per-data-point weight marginalization and recursive moment matching. To stop the resulting explosion of hyperparameters from overfitting, the authors derive a novel PAC-Bayesian regularizer that yields state-of-the-art uncertainty estimation and out-of-domain detection without costly test-time sampling.

What Problem Does This Paper Address?

Reliable uncertainty quantification is critical for safety-critical machine learning, active learning, and decision-making. Existing approaches face tough trade-offs:

  1. Bayesian Neural Networks (BNNs) capture epistemic (model) uncertainty well, but standard posterior inference (e.g., MCMC or Variational Inference) is computationally burdensome and usually requires Monte Carlo weight sampling at test time.
  2. Evidential Deep Learning (EDL) places a prior directly over likelihood parameters (e.g., a Dirichlet distribution over categorical probabilities), providing closed-form aleatoric (data) uncertainty. However, because it relies on deterministic network weights, it cannot isolate epistemic uncertainty.
  3. Type-2 Maximum Likelihood (Empirical Bayes) can train BNNs by marginalizing out weights directly. However, assigning learnable distributions to each synaptic weight introduces twice as many parameters as deterministic networks, leaving the model highly susceptible to severe overfitting without an inherent complexity penalty.

Methods

  • Bayesian Local Neural Networks (BLNN): Instead of sharing global latent weight variables across all training examples, BEDL assigns independent local weight random variables $w_n \sim \mathcal{N}(\mu, \operatorname{diag}(\sigma^2))$ to each data point $(x_n, y_n)$. This allows the marginal log-likelihood to factorize completely across training points, enabling standard mini-batch training.
  • Analytic Weight Marginalization via Moment Matching: To integrate out weights analytically without sampling, the authors leverage the Central Limit Theorem (CLT) to propagate means and variances layer-by-layer across activations (deriving closed forms for both ReLU and ELU activations).
  • Uncertainty Decomposition: By combining EDL likelihood priors with weight distributions, predictive variance can be decomposed into epistemic uncertainty (variance across weight realizations) and aleatoric uncertainty (expected observation noise).
  • Vacuous PAC Regularization (BEDL+Reg): To regularize the vast number of prior hyperparameters $(\mu, \sigma^2)$, the authors derive an empirical risk bound using Probably Approximately Correct (PAC) learning theory with a quadratic distance metric. Minimizing this bound yields an objective combining the marginal log-likelihood with a tractable Kullback-Leibler (KL) penalty against a non-informative regularizing prior (e.g., a uniform Dirichlet), penalizing unjustified confidence.
Input x ──► [Layer-by-Layer CLT Moment Matching] ──► Output Distribution over Prior (Dirichlet / Normal) ──► Likelihood y
                      │                                                                   ▲
                      ▼                                                                   │
    Local Weights: w_n ~ N(μ, diag(σ²)) ──────────────────────────── PAC Regularizer: KL(Q || P_uniform)

Datasets

  • Out-of-Domain (OOD) & Image Classification:
  • MNIST (in-domain) paired with Fashion-MNIST (out-of-domain).
  • CIFAR-10 split into classes 1–5 (in-domain) and classes 6–10 (out-of-domain).
  • Full MNIST and CIFAR-10 benchmarks for comparison against Gaussian Process (GP) equivalents.
  • Regression:
  • 8 standard UCI benchmark datasets: Boston, Concrete, Energy, Kin8nm, Naval, Power, Protein, and Wine evaluated across 20 random 90/10 train-test splits.

Key Insights and Ideas

  • Local Weights Enable True Scalability: Defining weights locally per data point decouples dependencies across observations. Unlike Gaussian Processes, which incur cubic scaling from large covariance matrices, BEDL scales linearly with dataset size.
  • The Power of Swapping Log and Expectation: Standard variational inference optimizes $\mathbb{E}_{q}[\log p(y|x, w)]$, whereas BEDL optimizes $\log \mathbb{E}_{p}[p(y|x, w)]$. Marginalizing prior to taking the log acts as an intrinsic, learned loss-attenuation mechanism.
  • PAC Bounds as Practical Regularizers: While the derived PAC bound is theoretically "vacuous" (the numerical bound on generalization error exceeds maximum possible risk), its mathematical form provides a principled complexity penalty that drastically outperforms traditional Maximum A Posteriori (MAP) hyperpriors.

Key Results

  • OOD Detection & Calibration: On MNIST vs. Fashion-MNIST, BEDL+Reg reduced test classification error to 0.66% and achieved an Empirical CDF Area Under the Curve (ECDF-AUC) of predictive entropy of 0.055 (down from 0.132 for EDL and 1.381 for Variational Dropout). On CIFAR-10 (classes 1–5 vs. 6–10), BEDL+Reg achieved 20.02% test error and an ECDF-AUC of 0.083 (compared to 0.451 for EDL and 0.946 for MC Dropout).
  • UCI Regression: BEDL+Reg achieved state-of-the-art or competitive test log-likelihoods against Probabilistic Backpropagation (PBP) and Deterministic Variational Inference (DVI) on almost all datasets (e.g., -0.73 on Energy vs. -1.01 for DVI; 1.15 on Kin8nm vs. 1.13 for DVI).
  • Outperforming GP Baselines: A small, 2-layer convolutional BEDL+Reg network achieved lower test error on MNIST (0.63%) and CIFAR-10 (32.47%) than infinite-width Neural Network Gaussian Processes (NNGP: 1.21% / 44.3%) and Convolutional GPs (1.17% / 35.4%) in ~30 minutes of training on a single GPU.

Limitations and Future Work

  • Vacuous Generalization Guarantee: The PAC bound is loose and trivially fulfilled; it serves purely as an engineering objective for regularization rather than a formal guarantee on test risk.
  • Diagonal Covariance Assumption: The framework ignores correlations between neurons within the same layer to avoid computational bottlenecks.
  • Residual Sampling in Classification: While regression is completely sampling-free, multi-class classification still requires a minor Monte Carlo sampling step over the low-dimensional output Dirichlet distribution (though forward propagation through network weights remains analytic).
  • Future Directions: Applying the BEDL+Reg framework to active learning, model-based reinforcement learning, and uncertainty-guided data synthesis.

Summary updated

BibTeX
@inproceedings{haussmann2020bayesian,
  author = {Manuel Haussmann and Sebastian Gerwinn and Melih Kandemir},
  title = {{Bayesian Evidential Deep Learning with PAC Regularization}},
  booktitle = {AABI},
  year = {2020},
  url = {https://openreview.net/forum?id=QJVfIwtiJN},
}

Loading related content...

Figure