Skip to main content
QUICK REVIEW

[Paper Review] Predictive Uncertainty Quantification with Compound Density Networks

Agustinus Kristiadi, Däubener, Sina|arXiv (Cornell University)|Feb 4, 2019
Adversarial Robustness in Machine LearningComputer Science42 references11 citations
TL;DR

This paper introduces Compound Density Networks (CDNs), a continuous, input-dependent mixture model that generalizes Mixture Density Networks by using neural networks to parameterize both component distributions and adaptive, input-specific mixing weights over uncountably many components. CDNs achieve superior uncertainty quantification and robustness to adversarial examples compared to Bayesian neural networks and deep ensembles, particularly under FGSM attacks, with variational Bayesian training enabling detection of out-of-distribution and adversarial inputs via increased predictive entropy.

ABSTRACT

Despite the huge success of deep neural networks (NNs), finding good mechanisms for quantifying their prediction uncertainty is still an open problem. Bayesian neural networks are one of the most popular approaches to uncertainty quantification. On the other hand, it was recently shown that ensembles of NNs, which belong to the class of mixture models, can be used to quantify prediction uncertainty. In this paper, we build upon these two approaches. First, we increase the mixture model's flexibility by replacing the fixed mixing weights by an adaptive, input-dependent distribution (specifying the probability of each component) represented by NNs, and by considering uncountably many mixture components. The resulting class of models can be seen as the continuous counterpart to mixture density networks and is therefore referred to as compound density networks (CDNs). We employ both maximum likelihood and variational Bayesian inference to train CDNs, and empirically show that they yield better uncertainty estimates on out-of-distribution data and are more robust to adversarial examples than the previous approaches.

Motivation & Objective

  • To address the challenge of reliable predictive uncertainty quantification in deep neural networks, especially for out-of-distribution (OOD) and adversarial inputs.
  • To improve upon existing methods like Bayesian neural networks and deep ensembles by introducing a more flexible, continuous mixture model architecture.
  • To develop a framework that captures both epistemic and aleatoric uncertainty through a continuous, input-dependent mixture of predictive distributions.
  • To evaluate the robustness of uncertainty estimates under adversarial attacks and compare performance against state-of-the-art baselines.

Proposed method

  • CDNs model the predictive distribution as a continuous mixture over an uncountable number of component distributions, parameterized by a neural hypernetwork that outputs a distribution over model parameters.
  • The mixing distribution is input-dependent and modeled via a neural network, enabling adaptive weighting of components based on input context.
  • Maximum likelihood training is performed by optimizing the log-likelihood of the predictive distribution under the CDN framework.
  • Variational Bayesian inference is applied to learn a posterior over CDN parameters, enabling uncertainty quantification over model weights and predictions.
  • The method uses hypernetworks to generate the parameters of the predictive network (e.g., mean and variance) conditioned on input, allowing for flexible, input-specific uncertainty estimates.
  • The framework is applied to feedforward networks and evaluated on MNIST, Fashion-MNIST, and CIFAR-10 using FGSM adversarial examples and OOD data.

Experimental results

Research questions

  • RQ1Can a continuous, input-dependent mixture model improve uncertainty quantification in deep neural networks compared to discrete mixture models and Bayesian baselines?
  • RQ2How do CDNs perform in detecting out-of-distribution inputs through increased predictive entropy?
  • RQ3To what extent do CDNs enhance robustness to adversarial examples, particularly under FGSM attacks?
  • RQ4Does variational Bayesian training of CDNs lead to better epistemic uncertainty estimation and improved detection of distributional shift?

Key findings

  • The ML-CDN achieves significantly higher accuracy than all baselines on adversarial MNIST examples with perturbation strength up to 1.0, while maintaining a steadily increasing predictive entropy.
  • The VB-CDN matches or exceeds the uncertainty estimates of the Deep Probabilistic Network (DPN) baseline on MNIST and Fashion-MNIST, while achieving higher accuracy and without requiring additional OOD data during training.
  • Both ML-CDN and VB-CDN show strong robustness to adversarial attacks: with 10 gradient steps per training iteration, ML-CDN maintains over 70% accuracy even under strong FGSM perturbations.
  • When adversarial examples are generated via multiple forward-backward passes (stronger attacks), the performance of CDNs degrades only marginally, indicating high robustness.
  • On CIFAR-10, the VB-CDN achieves competitive performance, demonstrating the scalability of the approach to more complex vision benchmarks.
  • The CDNs effectively capture uncertainty on OOD data, showing high entropy on out-of-distribution samples while retaining high confidence on in-distribution inputs.

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.