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

Multiplicative Normalizing Flows for Variational Bayesian Neural Networks

Christos Louizos, Max Welling

Introduction

Standard deep learning models are notoriously overconfident. When presented with out-of-distribution data—such as a rotated image or a completely different dataset—they often assign a high probability to an incorrect class. Bayesian Neural Networks (BNNs) offer a solution by treating weights as probability distributions rather than single point estimates, allowing the model to express uncertainty.

However, BNNs are notoriously difficult to train. The most common shortcut is Variational Inference (VI) using a "mean-field" approximation, which assumes every weight is an independent Gaussian. While computationally tractable, this fails to capture the intricate correlations and multimodality of the true weight posterior. Previous attempts to apply Normalizing Flows—sequences of transformations that turn simple distributions into complex ones—directly on the weights were often too computationally expensive for large networks. This paper introduces Multiplicative Normalizing Flows (MNFs), a method to make BNNs both highly flexible and computationally efficient.

Methodology

To create complex, multi-modal posterior distributions for network weights without prohibitive computational costs, the authors propose a clever middle ground:

  1. Auxiliary Variables: Instead of applying flows directly to the massive weight matrices ($\mathbf{W}$), they introduce a much smaller vector of auxiliary random variables ($\mathbf{z}$).
  2. Multiplicative Noise: They interpret $\mathbf{z}$ as multiplicative noise (conceptually similar to Dropout). The weights $\mathbf{W}$ are then conditioned on $\mathbf{z}$.
  3. Normalizing Flows on $\mathbf{z}$: Because $\mathbf{z}$ is low-dimensional (e.g., one value per row or per filter), the model can afford to apply sophisticated Normalizing Flows (like Inverse Autoregressive Flows) to it. This induces a highly complex, non-Gaussian distribution on the weights $\mathbf{W}$ without the memory overhead of flowing on every single parameter.
  4. Tractable Lower Bound: To train this architecture, they use an auxiliary distribution $r(\mathbf{z}|\mathbf{W})$ to create a tractable variational lower bound (ELBO), ensuring the model can be optimized using standard stochastic gradient descent.

Key Insights

  • Efficiency through Dimensionality: The core innovation is realizing that one does not need to apply flows to the weights themselves to achieve a complex weight posterior. Flowing on the noise that generates the weights is sufficient and significantly cheaper.
  • Local Reparameterization: The method maintains the "local reparameterization trick," which is essential for keeping the variance of gradients low during training, making the model stable enough for deep architectures.
  • Adversarial Robustness: On adversarial examples (images subtly tweaked to fool AI), standard models and even some BNNs remain confidently wrong. MNFs, however, show a sharp increase in entropy (uncertainty) as the perturbation increases. They might still get the answer wrong, but they successfully recognize that they are being fooled.
Adversarial robustness showing accuracy and entropy

Experiments and Results

The researchers evaluated their method on several benchmarks focused on both predictive performance and robustness to unknown data (MNIST, notMNIST, CIFAR-10, and Toy Regression).

  • Accuracy: MNFs achieved lower test errors than standard Variational Inference (FFG) and were competitive with Deep Ensembles. For example, on a 5-class subset of CIFAR-10, MNFG achieved 16% error, significantly beating standard Dropout (21%) and mean-field BNNs (22%).
  • Uncertainty Quality: In experiments using the notMNIST dataset (letters A-J) to test out-of-distribution uncertainty on a model trained on digits, MNFs produced the most "honest" entropy distributions. While other models often assigned low entropy (high confidence) to these unseen letters, MNFs consistently assigned high entropy to the unknown data.
Empirical CDF of entropy in notMNIST
  • Visual Calibration: On toy regression tasks, MNFs produced a predictive distribution that closely matched the true posterior, showing narrow uncertainty where data exists and wide, realistic uncertainty in gaps.

Limitations and Future Work

The authors noted that training can be sensitive to initialization. They had to constrain the standard deviations of the weights during the forward pass to avoid getting stuck in bad local minima early in training. Additionally, while the paper mostly uses standard Gaussian priors, exploring more exotic priors (like the Cauchy distribution) could further improve how the model handles different types of uncertainty. Finally, there is a promising link between this multiplicative approach and model compression that remains to be fully explored.

Summary updated

BibTeX
@inproceedings{louizos2017multiplicative,
  author = {Christos Louizos and Max Welling},
  title = {{Multiplicative Normalizing Flows for Variational Bayesian Neural Networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2017},
  url = {https://openreview.net/forum?id=rJEies-_bS},
}
Figure