Fast Adaptive Weight Noise

Justin Bayer, Maximilian Karl, Daniela Korhammer, Patrick van der SmagtarXiv 2015

Introduction

Deep learning excels with massive datasets but often struggles when data is scarce. In these "small data" regimes, standard neural networks tend to overfit, providing overconfident point estimates rather than a nuanced understanding of uncertainty. Bayesian Neural Networks (BNNs) offer a solution by treating weights as probability distributions. However, BNNs are traditionally difficult to train due to slow Monte Carlo sampling or complex variational inference (VI) objectives.

This paper introduces Fast Adaptive Weight Noise (FAWN), a method to perform Bayesian inference in neural networks deterministically. By using variance propagation instead of sampling, FAWN achieves the robustness of Bayesian methods at a fraction of the computational cost.

Methodology: Deterministic Variance Propagation

The core innovation of FAWN is the use of Variance Propagation. Instead of sampling weights, the authors propagate the mean and variance of activations through the network layers.

The Central Limit Theorem (CLT) Approximation

The authors leverage the CLT, arguing that because a neuron's input is a sum of many independent noisy weights, the resulting activation is approximately Gaussian. This allows for tracking means and variances through linear and non-linear layers (like ReLUs) using closed-form approximations.

Learning Objectives

  1. FAWN-VI: A deterministic approximation of the standard Variational Inference objective (the ELBO).
  2. FAWN-ROPD: A novel objective that directly optimizes the Regularized Predictive Distribution. It minimizes the negative log-likelihood of the data while using a KL-divergence term to keep weight distributions close to a prior.
  3. Co-FAWN: An extension for multi-output tasks that models correlations between output units. Using the Sherman-Morrison formula, it maintains $O(n)$ computational efficiency relative to hidden units.

Experimental Setup

The authors evaluated FAWN on a suite of UCI regression benchmarks ranging from small (Boston, Concrete) to large scales (Year Prediction MSD with >500,000 samples). They also tested multi-output tasks like Sarcos and Jura.

Key Results and Insights

FAWN-ROPD consistently outperformed traditional VI and Probabilistic Backpropagation (PBP). Notably, it remained competitive with Gaussian Processes (GPs) on small datasets while scaling linearly to massive datasets where GPs are computationally infeasible.

Table 1: Performance comparison of FAWN variants against standard methods on single-output regression tasks.

In multi-target scenarios, modeling output correlations via Co-FAWN provided a significant performance boost over independent output assumptions.

Table 2: Results for FAWN and Co-FAWN on multi-output datasets, showing the benefit of modeling output correlations.

Key Takeaways

  • Deterministic Efficiency: Avoiding Monte Carlo sampling results in "cleaner" gradients and faster, more stable convergence.
  • Predictive Quality: Direct optimization of the predictive distribution (ROPD) is more effective for regression than strictly approximating the weight posterior.
  • Scalability: FAWN provides GP-like uncertainty quantification but scales to hundreds of thousands of data points.

Limitations and Future Work

The method relies on the CLT, which may break down in very narrow or sparse networks. Future work includes extending these deterministic approximations to Recurrent (RNN) and Convolutional (CNN) architectures, as well as further theoretical exploration of the ROPD objective.

Summary updated

BibTeX
@misc{bayer2015fast,
  author = {Justin Bayer and Maximilian Karl and Daniela Korhammer and Patrick van der Smagt},
  title = {{Fast Adaptive Weight Noise}},
  year = {2015},
  eprint = {1507.05331},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1507.05331},
}
Figure