Skip to main content
QUICK REVIEW

[Paper Review] Implicit Weight Uncertainty in Neural Networks

Nick Pawlowski, Brock, Andrew|arXiv (Cornell University)|Nov 3, 2017
Adversarial Robustness in Machine LearningComputer Science29 references65 citations
TL;DR

Bayes by Hypernet (BbH) uses hypernetworks as implicit distributions to model weight uncertainty in neural networks, achieving competitive accuracy with strong uncertainty estimates and robustness to adversarial attacks on MNIST and CIFAR5, while scaling to modern architectures.

ABSTRACT

Modern neural networks tend to be overconfident on unseen, noisy or incorrectly labelled data and do not produce meaningful uncertainty measures. Bayesian deep learning aims to address this shortcoming with variational approximations (such as Bayes by Backprop or Multiplicative Normalising Flows). However, current approaches have limitations regarding flexibility and scalability. We introduce Bayes by Hypernet (BbH), a new method of variational approximation that interprets hypernetworks as implicit distributions. It naturally uses neural networks to model arbitrarily complex distributions and scales to modern deep learning architectures. In our experiments, we demonstrate that our method achieves competitive accuracies and predictive uncertainties on MNIST and a CIFAR5 task, while being the most robust against adversarial attacks.

Motivation & Objective

  • Motivate the need for reliable uncertainty estimates in neural networks for real-world decisions.
  • Propose Bayes by Hypernet (BbH) to model weight uncertainty with implicit distributions.
  • Enable scalable variational Bayesian inference that leverages hypernetworks to generate weight samples.
  • Evaluate BbH on MNIST and CIFAR5 against Bayesian and frequentist baselines.
  • Analyze posterior distributions to compare complexity of BbH against alternatives.

Proposed method

  • Model weights w as samples produced by a hypernetwork G with parameters θ: w = G(z | θ) where z ~ p(z).
  • Treat implicit distributions and use adversarial-like training to approximate the ELBO via a density-ratio estimator (kernel-based KL approximation).
  • Use a standard normal prior on weights and treat weights independently (d=1) for KL estimation.
  • Train 3-layer hypernetworks for generating weights of a multilayer perceptron and compare architectures (single G per layer, layer-wise G_l, or slice-wise G_l).
  • Compare BbH to MC-Dropout, BbB, deep ensembles, MNF, and MAP on MNIST and CIFAR5 with 100 posterior samples for predictions.
  • Investigate robustness to adversarial attacks and quantify predictive uncertainty via entropy AUC measures.

Experimental results

Research questions

  • RQ1Does BbH provide competitive predictive accuracy compared to existing Bayesian and frequentist approaches?
  • RQ2Can BbH produce meaningful and robust predictive uncertainties for in-dataset and out-of-dataset data?
  • RQ3How does BbH scale to modern architectures (e.g., ResNet) and maintain uncertainty estimates and robustness?
  • RQ4What are the qualitative characteristics of BbH posterior weight distributions compared to other variational methods?
  • RQ5How does the choice of hypernetwork architecture and auxiliary input z affect performance and uncertainty?

Key findings

  • BbH achieves competitive accuracy with higher predictive uncertainty than many baselines, and is particularly robust against adversarial attacks.
  • On MNIST, BbH yields higher MNIST AUC and outlier AUC compared to several methods, with competitive error rate and runtime.
  • On CIFAR5, BbH achieves competitive error and predictive uncertainty with lower runtime than some Bayesian baselines.
  • BbH produces more complex, multimodal posterior weight distributions than MNF, capturing weight correlations.
  • BbH demonstrates scalability to deeper architectures like ResNet-32 with competitive accuracy and uncertainty, and strong adversarial robustness.
  • Kernel-based KL estimation for implicit weights provides results close to analytical BbB while enabling scalability.

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.