Elamur Research

Multiplicative Normalizing Flows for Variational Bayesian Neural Networks

Paper · 2017 · Christos Louizos and Max Welling

Summary

A digit classifier can assign a high probability to a digit even when the image shows a letter. The authors ask whether a better account of uncertainty in the network’s weights can make such predictions more cautious while preserving accuracy on the task the network was trained to do. They study Bayesian neural networks, which use a distribution over plausible weights and average the predictions those weights produce. The practical difficulty is fitting that distribution. A common approximation gives every weight its own independent bell-shaped distribution. That is easy to work with, but it leaves out the possibility that plausible changes in several weights depend on one another.

The proposed method, multiplicative normalizing flows, introduces random multipliers that shift groups of weight means together. A normalizing flow is a sequence of reversible transformations that reshapes a simple starting distribution while keeping its density calculable. The authors apply the flow to the multipliers, a much smaller collection of variables than the weights. Once those multipliers are fixed, the weights have independent Gaussian distributions. Averaging over the multipliers produces a richer distribution over weights, potentially with several concentrations of probability and dependencies between weights. The Gaussian conditionals also allow the network to draw random activations directly in parts of the calculation. An auxiliary distribution that estimates the multipliers from the weights supplies a computable training objective where the marginal weight density would otherwise be needed.

On MNIST digit recognition, the method improves on independent-Gaussian inference and reaches accuracy similar to the tested deep ensemble. When those digit classifiers process letters from notMNIST, predictions from the flow-based network are less frequently concentrated on a particular digit than those of the compared systems. On CIFAR 10, the flow-based network combines strong accuracy on the classes used for training with uncertainty on the withheld classes comparable to that of several Bayesian alternatives. In a small regression experiment, its uncertainty grows more clearly in regions without observations. With randomized labels, the authors report chance-level accuracy on the training and test sets for their Gaussian-prior flow network.

The results under deliberately perturbed inputs show how far these improvements carry. On MNIST, accuracy for the flow-based classifier falls quickly as perturbations increase, and its predictions also become much less confident. On the CIFAR task, all the tested approaches remain overconfident under perturbation. The paper shows how to broaden the family of weight distributions available to variational inference while retaining workable training calculations. The quality of the resulting confidence still depends on the prior over weights, how successfully the training objective is optimized, and what kind of input the network encounters.

Deep dive: Multiplicative Normalizing Flows for Variational Bayesian Neural Networks

Learn how multiplicative normalizing flows represent uncertainty in neural network weights and what the prediction experiments reveal. · about 44 minutes to read

The problem and its context

When a probability is too decisive

A classifier’s output can serve two purposes. It can name the class it considers most likely, and it can indicate how strongly it favors that class over the alternatives. Ordinary evaluation through classification error checks the first purpose. A high top-class probability on a wrong answer exposes a problem with the second, especially when the example has little in common with the training inputs. A person relying on the prediction may use that probability to judge whether further scrutiny is warranted.

The issue arises naturally when the output is a softmax, a transformation that turns the network’s scores into probabilities summing to one. The classifier has a fixed set of answers, and the transformation allocates all probability among them for every input. If training has given the network little reason to distinguish among those answers for an unfamiliar image, a strongly favored class can convey more certainty than the evidence warrants. The introduction illustrates the concern with orientations of a handwritten digit, including an MNIST 3 rotated by 90 degrees. A network trained with weight decay, a penalty on the size of its weights, can put a large share of probability on an incorrect answer for an orientation it has scarcely encountered.

The authors connect this concern to another difficulty in machine learning. When training observations are scarce, a network can fit peculiarities of the examples it has seen and generalize poorly. Maximum likelihood chooses weights that make the observations probable. Maximum a posteriori estimation, or MAP, also gives weight to a prior, which states what parameter values are plausible before observing the training data. Both procedures return a particular weight setting. Once it has been chosen, the prediction uses that setting even where the training data would have been consistent with substantially different choices. The paper motivates this problem with medical examples, where labels can be scarce and a prediction may inform a consequential decision.

A Bayesian treatment keeps track of a range of weight settings. The posterior is the distribution obtained by using the likelihood of the observed data to update the prior. If several plausible configurations give similar class probabilities on a new example, averaging their predictions preserves their agreement. If they favor different answers, the average reflects that disagreement. This supplies a way for uncertainty about the weights to become visible in predictions. Its effectiveness depends on which configurations the posterior regards as plausible and how they respond to the input.

The exact posterior is difficult to obtain for a network whose output depends nonlinearly on a large collection of weights. The problem is therefore partly a choice of approximation. A very simple distribution may omit changes in the weights that matter to prediction. A rich distribution may be too costly to draw from, evaluate, or fit. The paper looks for a distribution that increases the scope for coordinated changes while keeping the calculations needed for training within reach.

How earlier approaches handled the posterior

The authors describe several lines of earlier work. The Laplace approximation begins at a MAP estimate and uses local curvature to set the covariance of a Gaussian centered there. Covariance describes which coordinates tend to vary together. Curvature gives this approximation information about the directions in which the fitted solution is more or less sharply determined. Calculating and using that information becomes difficult in a large network, and the paper notes that further approximations used to make the procedure scalable can cost performance. The underlying description also centers on variation around a particular fitted point.

Hamiltonian Monte Carlo represents the posterior through samples generated by a Markov chain. The authors treat it as a reference method for approximate Bayesian inference and identify difficulties applying it at scale. A large network makes each stored weight sample large, and a practitioner must assess whether the chain has run far enough to represent the desired distribution. The paper places stochastic-gradient sampling and distillation among the attempts to address these practical difficulties. It also discusses methods based on Langevin dynamics, which bring stochastic dynamics into procedures related to gradient-based training.

Expectation propagation supplies another route. As the paper describes it, earlier work used it with factorized weight distributions and reported favorable results on regression tasks. Variational inference, the route chosen here, formulates posterior approximation as an optimization problem. A researcher specifies a family of distributions and adjusts its parameters to improve a bound on the probability assigned to the observations. This replaces the problem of storing and assessing a sampling chain with decisions about the family, the objective, and the way gradients are estimated.

The paper traces variational approaches from early treatments of neural-network weights to practical estimators that could be used for training. It describes Weight Uncertainty in Neural Networks as using an unbiased gradient estimator and a scale-mixture prior. The estimator comes from a way to differentiate through continuous random computation. A draw is written as a deterministic transformation of noise whose distribution is fixed. Changes to the distribution being fitted then change the transformation, giving a gradient a path through the sample. The paper draws on this technique from Auto-Encoding Variational Bayes and Stochastic Backpropagation and Approximate Inference in Deep Generative Models.

The study also recognizes that useful predictive uncertainty can come from procedures outside Bayesian weight inference. Bootstrap methods and deep ensembles offer other ways to obtain several plausible predictions. The paper mentions bootstrap work in Deep Exploration via Bootstrapped DQN and evaluates uncertainty against the approach described in Simple and Scalable Predictive Uncertainty Estimation using Deep Ensembles.

What the Gaussian approximation leaves out

A common variational choice is mean field. In the form studied here, the density over the weights is a product of separate Gaussian densities, each with its own mean and variance. This makes a draw easy to generate and gives a direct way to calculate its density. It also means that knowing the sampled value of one weight tells us nothing about any other weight under the approximation. The whole distribution has a single peak, with its spread along each weight coordinate described independently.

Consider the weights entering an output from several hidden units. The likelihood evaluates the combined effect on the output. A distribution restricted to independent variation cannot express the idea that a change in one contribution is plausible mainly when another contribution changes with it. The issue becomes more pronounced when plausible configurations occupy differently shaped regions of weight space. Fitting the means and variances of separate Gaussians gives the approximation freedom to adjust the center and width along each coordinate, while the form of their joint variation stays fixed.

Earlier extensions gave the joint distribution additional structure. A matrix Gaussian permits covariance among weights while retaining a Gaussian joint shape. Bayesian interpretations of Dropout use random masks to produce different effective weight configurations. In the Bernoulli interpretation, each mask coordinate selects between turning a contribution on and turning it off. The resulting approximation has probability concentrated on masked configurations. The paper also discusses Gaussian dropout, whose earlier variational treatment used a log-uniform prior and made it possible to learn dropout rates through local reparametrization. Here local reparametrization means drawing noise at the level of quantities computed by the layer, such as individual pre-activations, by using the distribution induced by Gaussian weights.

Two developments in variational inference suggested ways to go further. Auxiliary random variables create a mixture by letting a hidden draw select a simpler conditional distribution. Normalizing flows reshape a simple density by applying invertible transformations whose effects on density can be computed. The paper takes the flow idea from Variational Inference with Normalizing Flows. A flow acting on the entire weight matrix could add substantial computational work. In the authors’ example, every planar-flow step would require two extra matrices. A direct transformation of the weights could also destroy the Gaussian properties that make local reparametrization possible. The method starts from a question about where to put the transformation so that it changes the joint weight distribution while leaving those properties available at the point where the network needs them.

The method, step by step

Follow a draw through a layer

Imagine drawing a random vector before computing a layer’s output. In a fully connected layer, each entry of the vector modifies the mean of all the weights leaving a given input coordinate. A high draw for that entry can increase the absolute size of several means at once. The individual weights also have their own Gaussian noise, with variances set separately. In a convolutional layer, the shared multiplier attaches to a filter. The same principle applies in both cases. The draw determines the centers of a collection of Gaussian distributions, then the conditional calculation accounts for the spread around those centers.

The initial random vector is easy to sample. It begins as a collection of independent Gaussian variables. A sequence of transformations mixes and reshapes their variation before the vector reaches the weight distributions. A second flow enters the calculation when the training objective needs to account for the relationship between a weight draw and the multipliers that generated it. The first flow makes the approximation richer. The second helps price that added flexibility in the objective.

Training a layer with multiplicative normalizing flows

The steps in order.

Training a layer with multiplicative normalizing flowsStep 1: Draw the Gaussian starting vector1. Draw the Gaussian starting vectorStep 2: Transform it into a vector of multipliers2. Transform it into a vector of multipliersStep 3: Scale the conditional weight means3. Scale the conditional weight meansStep 4: Sample layer computations through local reparametrization4. Sample layer computations through local reparametrizationStep 5: Score the multipliers with an auxiliary density5. Score the multipliers with an auxiliary densityStep 6: Evaluate the bound and update its parameters6. Evaluate the bound and update its parameters

The weight prior sits outside this sampling hierarchy. It is part of the Bayesian specification, along with the likelihood. The multipliers and the distributions fitted around them are part of the inference procedure. This distinction is important when interpreting the method. The goal is still to use a posterior over weights to predict outputs. The new variables give the authors a way to represent and fit that posterior approximately.

Set up the variational objective

Write the training data as 𝒟, a collection of input and output pairs. Use W₁:ᴸ for the weight matrices from the first layer through layer L, where L is the number of layers. The paper uses x and y for the training inputs and outputs in the likelihood. The prior density p over the weights gives the starting distribution, and the variational density qφ is the distribution to be fitted. Its parameters are collected in φ, which governs quantities such as Gaussian means, variances, and the forward flow.

ℒ(φ) = E_qφ(W₁:ᴸ)[log p(y | x, W₁:ᴸ) + log p(W₁:ᴸ) − log qφ(W₁:ᴸ)]

The expression ℒ is the lower bound being maximized. The expectation E averages over draws from qφ for the complete collection of weights W₁:ᴸ. The term with y and x is the log likelihood of the outputs given the inputs and weights. The symbol log denotes the logarithm, and the vertical bar means “given.” The other two logarithms compare the prior density p with the variational density qφ at those same weights. Their expected difference is the negative of the Kullback–Leibler divergence, or KL divergence, from the approximation to the prior. The KL term summarizes the cost of departing from the prior in order to explain the training observations.

Maximizing the bound also has a posterior interpretation. It favors an approximation close to the weight posterior induced by the likelihood and prior. The gap between the bound and the marginal log likelihood is the divergence from the fitted distribution to that posterior. Since the marginal log likelihood is fixed for a given prior, likelihood, and dataset, the optimization can proceed through the bound. The family of distributions still determines which approximations can be reached. A gradient method may also settle on only one of several possible solutions.

The reparametrization step makes the expectation usable for gradient training. For a distribution with continuous draws, the authors write the random weights as a deterministic function of a noise draw and the parameters of the variational density. The corresponding objective is expressed as follows.

ℒ(φ) = E_p(ε)[log p(y | x, f(φ, ε)) + log p(f(φ, ε)) − log qφ(f(φ, ε))]

Here ε is the noise drawn from a fixed density p(ε), and f maps φ and ε to sampled weights. The expectation E is now over ε. The first use of p inside the brackets is the data likelihood for x and y, and the second is the prior evaluated at the sampled weights. The symbol qφ remains the trainable weight density, log takes each indicated logarithm, and ℒ is the same variational objective in reparametrized form. During a gradient calculation a realized ε can be held fixed while the dependence of the bracketed expression on φ is differentiated.

In a Gaussian example, the operation amounts to taking a draw with a fixed mean and variance, scaling it by the desired standard deviation, and adding the desired mean. One can then change the mean or standard deviation and see how that same underlying draw would move. This is the elementary operation behind the Gaussian portions of the procedure. The flow supplies a more complicated differentiable transformation for the multipliers.

Make some weight changes occur together

For a single layer, write z for the vector of random multipliers and W for its weights. The sampling order defines a joint distribution.

z ∼ qφ(z);  W ∼ qφ(W | z)

The symbol ∼ means a draw is distributed according to the density on its right. The density qφ(z) governs the multipliers, and qφ(W | z) governs the weights after the multipliers have been drawn. Both belong to the family controlled by φ. The vertical bar in the weight distribution marks its dependence on the realized z.

For any prediction ultimately based on W, the joint distribution induces a marginal distribution over W, obtained by averaging over z.

qφ(W) = ∫ qφ(W | z) qφ(z) dz

The integral ranges over the possible values of z, with dz denoting integration in multiplier space. The product inside it is the joint density for the weights and multipliers. The result qφ(W) is the marginal approximate posterior for the layer. It gives a weight configuration credit under every multiplier value that could have generated it, weighted by how likely that value is.

The conditional distribution for a fully connected layer has one Gaussian factor per weight. The paper’s product can be written by making the evaluated weight explicit.

qφ(W | z) = ∏_{i = 1}^{Dᵢₙ} ∏_{j = 1}^{Dₒᵤₜ} 𝒩(Wᵢⱼ; zᵢμᵢⱼ, σᵢⱼ²)

The product ∏ multiplies densities for input indices i from 1 through Dᵢₙ and output indices j from 1 through Dₒᵤₜ. Those dimensions give the counts of input and output coordinates. The density 𝒩 is Gaussian, evaluated at weight Wᵢⱼ to the left of its separator. Its mean is the product of zᵢ with the trainable base mean μᵢⱼ. Its variance is σᵢⱼ², the square of the separately fitted standard deviation σᵢⱼ. The parameters belong to φ.

For a fixed i, changing zᵢ jointly shifts the conditional centers for all j. The individual base means determine the direction and size of those shifts. When the multiplier is integrated out, the group of weights consequently shares a source of movement even though its Gaussian draws are conditionally independent. Dependence can also pass between groups if their multipliers depend on one another. The flow gives the authors a means of expressing such dependencies in z.

The convolutional expression groups the conditional means by filter in the paper’s kernel notation.

qφ(W | z) = ∏_{i = 1}^{Dₕ} ∏_{j = 1}^{D_w} ∏_{k = 1}^{D_f} 𝒩(Wᵢⱼₖ; zₖμᵢⱼₖ, σᵢⱼₖ²)

Here Dₕ and D_w give kernel height and width, giving spatial indices i and j. The filter index k runs through the D_f filters. The Gaussian density 𝒩 is evaluated at Wᵢⱼₖ and has mean zₖμᵢⱼₖ and variance σᵢⱼₖ². The base mean μᵢⱼₖ and standard deviation σᵢⱼₖ are fitted, while zₖ is the draw shared within filter k. The product signs indicate conditional factorization just as for the fully connected layer.

The paper keeps the effect of z in the means. This allows variation from independent conditional weight noise and variation from shared shifts in the means to be adjusted separately. In a pilot study, a parametrization in which the multipliers also affected the variance tended to reach poor local solutions. The authors associate that behavior with large gradients for the variance terms. The remaining mean structure is expressive enough to let the marginal density have several modes, meaning separate concentrations of probability, as well as dependencies more complicated than those of a Gaussian. Which of those possibilities the fitted approximation uses is determined by training.

Draw local quantities without building a weight sample

Given a multiplier draw and the input to a layer, a pre-activation in a fully connected layer is a weighted sum of Gaussian variables. Its conditional mean can be computed by applying the input to the scaled weight means. Its conditional variance comes from the weight variances, each weighted by the square of the corresponding input. Independence conditional on the multipliers is what makes these variance contributions additive. A Gaussian draw with the resulting mean and variance supplies a sample of the pre-activation. The network can then apply the layer’s nonlinearity to that draw.

This is local reparametrization. Its unit of sampling is the quantity needed in the computation at hand. For a minibatch, meaning the group of examples handled in a training step, the calculations can be expressed through activations and mean and variance arrays. For the first layer the activations entering the calculation are the input batch. In convolution the mean and variance calculations use the filter structure and convolution. The authors give separate forward-pass procedures for the two kinds of layers.

The Gaussian argument applies after conditioning on z. Mixing over z before doing the calculation would generally yield a distribution outside the Gaussian family. Keeping the draw of z visible lets the forward pass use Gaussian calculations and still incorporate changes in the shared multiplier from one realization to another. Sampling locally supplies the quantities used for the training expectation. A literal common draw of a weight tensor would also encode joint relationships among every computation that uses it, a distinction that matters when interpreting local draws as representations of whole network realizations.

The first flow operates on a vector with a coordinate for a unit of sharing, such as an input or filter. Its parameter count and computation can therefore be organized around a much smaller space than the collection of all weights. The individual means and variances of the weights still have to be learned. The construction reduces the scale of the extra density transformations while keeping the usual conditional weight parameters.

Reshape the distribution of the multipliers

The initial flow state z₀ has a fully factorized Gaussian density. Each transformation uses the masked coupling structure of RealNVP, with an update of the form the paper attributes to inverse autoregressive flow. A mask chooses which coordinates to keep unchanged. Functions of those coordinates then supply a scale and a location for transforming the coordinates outside the mask.

m ∼ Bern(0.5)

The mask m is a vector of binary selections. The notation Bern denotes Bernoulli sampling, with success probability 0.5 for a mask coordinate. The symbol ∼ identifies the distribution used to draw the mask. The authors resample it so that the same split of multiplier coordinates need not be used each time.

h = tanh(f(m ⊙ zₜ))

The vector zₜ is the multiplier state entering step t. Elementwise multiplication, denoted by ⊙, uses m to zero the coordinates outside the selected subset. The linear map f in this expression belongs to the flow step, distinct from the earlier generic weight sampling function. The hyperbolic tangent tanh is applied to the map’s output and yields the hidden vector h.

μ = g(h)

The linear map g converts h to the flow’s location vector μ. This vector has a role in the coordinate transformation and uses a different index convention from the base weight means.

s = sigmoid(k(h))

The distinct linear map k acts on the same hidden vector h. The sigmoid then maps its outputs to positive scales s smaller than one. The symbol s here denotes a flow scale, while the paper also uses sigma notation for scales and for the sigmoid itself.

sigmoid(a) = 1 / (1 + exp(−a))

The argument a is a scalar, or a coordinate when the function is applied to a vector. The function exp is the exponential, and −a is the argument with its sign reversed. The result is the scale used in the update.

zₜ₊₁ = m ⊙ zₜ + (1 − m) ⊙ (zₜ ⊙ s + (1 − s) ⊙ μ)

The output zₜ₊₁ feeds the next step. In this expression 1 denotes the value one broadcast across the required coordinates. The vector 1 − m selects the complement of the mask, and 1 − s supplies the weight on the location μ in the transformed coordinates. The multiplication ⊙ remains elementwise. On a selected coordinate, the first term copies the input zₜ. On its complement, the update blends the input with μ using s as the weight on the input.

The copied coordinates allow the step to be reversed. Their values are available at the output, so the hidden computation can be repeated to obtain the same scales and locations. Each other coordinate underwent an affine change, meaning a scale and a shift, with a positive scale. It can therefore be recovered by reversing that change. A later mask can allow a coordinate modified by one step to determine the changes in another step.

The density calculation uses the Jacobian, the matrix of derivatives of output coordinates with respect to input coordinates. Its determinant describes the local factor by which the change of variables stretches or compresses volume. If the copied coordinates are put first, their derivatives give a diagonal identity block. The other diagonal block consists of the scales on the changed coordinates. Off-diagonal derivatives can express dependence on the copied coordinates while leaving the determinant easy to calculate.

log |det(∂zₜ₊₁ / ∂zₜ)| = (1 − m)ᵀ log s

The notation ∂zₜ₊₁ / ∂zₜ denotes the Jacobian for step t. The symbol det takes its determinant, the bars give absolute value, and log takes its logarithm. On the right, log s is a vector of coordinatewise logarithms. The transpose mark ᵀ makes multiplication by 1 − m a sum over the coordinates updated at that step.

Write z_Tf for the last state of the forward flow. Its log density follows from the base density and the volume changes of the steps.

log qφ(z_Tf) = log qφ(z₀) − ∑ₜ log |det(∂zₜ₊₁ / ∂zₜ)|

The density qφ(z₀) on the right is the factorized Gaussian density of the starting point. The density qφ(z_Tf) is for the final multiplier, with Tf labeling the forward endpoint. The sum ∑ₜ runs over the forward transitions from the initial state to that endpoint. Each determinant term is the absolute volume factor for its transition. Subtracting log volume gives the density at the new coordinates because the same probability mass is now spread over the transformed volume.

At this stage the method has an evaluable density for z_Tf and an evaluable conditional density for W given z_Tf. The original variational objective requires the density of W after the multipliers have been integrated out. The ability to score a draw of the multiplier and a conditional draw of the weights is insufficient to evaluate that integral for an arbitrary W. This is the gap the auxiliary calculation addresses.

Lower-bound the weight entropy

In the original objective, the negative expected log variational density is the entropy of the weight approximation. That contribution is difficult to evaluate for the mixture because it contains the logarithm of the integral over z. The order of the operations matters. Sampling from the joint gives a multiplier and weights, but taking the logarithm of the joint density does not give the logarithm of the marginal. The authors introduce a density rθ(z | W) for describing the multiplier from the weights.

The conditional distribution that this auxiliary density aims to approximate follows from the joint construction.

qφ(z | W) = qφ(W | z) qφ(z) / qφ(W)

The numerator combines the conditional weight density and the mixing density, while the denominator is the marginal weight density. The variables W and z refer to weights and their multipliers, φ controls all of these q densities, and the vertical bar indicates a conditional. For fixed weights, this expression describes which multiplier values are plausible under the variational joint distribution. Computing it directly would require the unavailable denominator.

The paper treats the auxiliary density as a way to extend the Bayesian calculation to a space containing W and z. Multiplying the weight prior by rθ(z | W) adds a conditional density that integrates to one for any W. The likelihood depends on the weights. Consequently integrating out the added variables recovers the same marginal data distribution and the same weight posterior. The practical benefit is that it is now possible to score densities in the same joint space that produced the draw.

ℒ(φ, θ) = E_qφ(z,W)[log p(y | x,W) + log p(W) + log rθ(z | W) − log qφ(W | z) − log qφ(z)]

Here W and z collect the weights and auxiliary variables across the layers. The expectation E is over their variational joint density qφ(z,W), which factors into qφ(z) and qφ(W | z). The conditional probability p(y | x,W) is the likelihood of outputs y for inputs x under the sampled weights. The prior density is p(W). The fitted reverse density is rθ, controlled by new parameters θ, and log gives the indicated log probabilities or densities. The expression ℒ is now a bound that depends on both sets of variational parameters.

The cost paid for the auxiliary construction can be read from the difference between the original and augmented objectives.

ℒ(φ) − ℒ(φ, θ) = E_qφ(W)[KL(qφ(z | W) ‖ rθ(z | W))]

The left side compares the original weight-marginal bound to the augmented one at the same φ and a specified θ. The expectation E averages over marginal weight draws qφ(W). The divergence KL is from the implied multiplier conditional qφ(z | W) to the auxiliary conditional rθ(z | W), with the two arguments separated by ‖. Both condition on the same W. The divergence is non-negative, and it vanishes when the two conditional densities agree.

That difference explains why the reverse density needs sufficient flexibility. If many different multipliers could explain a particular weight sample, the auxiliary distribution needs to put probability where those alternatives occur. Too simple a reverse approximation can make a good weight distribution look less favorable in optimization. The authors accept the extra gap because the hierarchical family expands what can be represented in the first place. The richer family may yield a better fitted solution even after the added cost of the auxiliary approximation.

Estimate the reverse density from weight projections

The auxiliary calculation transforms the realized forward multiplier z_Tf into a coordinate system in which its density conditional on W is a product of Gaussians. The paper calls the result z_Tb and parametrizes the inverse direction directly with coupling steps of the same form used for the forward construction.

z_Tb = NF⁻¹(z_Tf)

In this expression NF⁻¹ maps the final multiplier z_Tf to z_Tb, the argument of the auxiliary Gaussian density. The labels Tf and Tb distinguish the endpoint used by the mixing distribution and the coordinate at which the auxiliary Gaussian is evaluated. This inverse is part of the auxiliary density, with its own fitted parameters. Its purpose is to assign density to a multiplier already drawn.

r(z_Tb | W) = ∏_{i = 1}^{D_z} 𝒩(z_Tb,i; μ̃ᵢ, σ̃ᵢ²)

The product ∏ runs over coordinates i of the multiplier, with D_z giving their number. Each 𝒩 is a Gaussian density for the coordinate z_Tb,i, centered at μ̃ᵢ with variance σ̃ᵢ². These centers and standard deviations depend on W. The density r is the auxiliary distribution, with its parameters θ left implicit.

For a fully connected layer the authors obtain the parameters from the projection cᵀW, apply a hyperbolic tangent, and average the entries of the resulting row. Two trainable vectors separately scale that feature for the means and for the arguments to the standard-deviation sigmoid. With the averaging written out, the fully connected equations take the following form.

μ̃ᵢ = b₁,ᵢ ∑ⱼ tanh((cᵀW)ⱼ) / Dₒᵤₜ

The coordinate b₁,ᵢ of the trainable vector b₁ scales the auxiliary mean μ̃ᵢ. The trainable vector c is transposed, indicated by ᵀ, and multiplied by the weight matrix W. The subscript j picks an output entry of that projection. The sum ∑ⱼ adds its tanh-transformed entries across the Dₒᵤₜ outputs, and division gives the average.

σ̃ᵢ = sigmoid(b₂,ᵢ ∑ⱼ tanh((cᵀW)ⱼ) / Dₒᵤₜ)

The trainable b₂,ᵢ is the corresponding element of a separate vector b₂, and σ̃ᵢ is the auxiliary standard deviation. The projected and transformed weight entries and the averaging over j have the same meaning as in the mean. The sigmoid delivers a positive scale. These expressions write in coordinates the paper’s outer product with a trainable vector followed by averaging over the output entries.

For convolutional weights, the projection works with a matrix formed by reshaping the kernel tensor. The average is over the spatial entries. Using a scalar a for that average makes the role of the spatial and filter dimensions explicit.

a = ∑ⱼ tanh((mat(W)c)ⱼ) / (DₕD_w)

The operation mat turns the convolutional weight tensor W into the matrix used for projection. The trainable c acts along the filter dimension. The index j ranges over projected spatial entries, and tanh is applied before the sum ∑ⱼ. The product DₕD_w gives the number of kernel positions, so a is the spatial average of the transformed projection.

μ̃ᵢ = b₁,ᵢ a

The mean μ̃ᵢ of auxiliary coordinate i uses the average a scaled by coordinate b₁,ᵢ of the trainable mean vector b₁.

σ̃ᵢ = sigmoid(b₂,ᵢ a)

The standard deviation σ̃ᵢ uses the same average a, a separate trainable coefficient b₂,ᵢ, and a sigmoid to keep the result positive. The vectors b₁, b₂, and c in the auxiliary construction have dimensionality D_z. The projection and averaging give the auxiliary distribution information about the weights through a small set of computations. Conditional Gaussian projections can themselves be sampled locally, so evaluating this part of the bound need not require assembling the full weight matrix.

The log density at z_Tf requires the Gaussian log density at z_Tb and the volume changes for the inverse steps.

log r(z_Tf | W) = log r(z_Tb | W) + ∑ₜ log |det(∂zₜ₊₁ / ∂zₜ)|

On the left r is the auxiliary density at the observed forward multiplier conditional on W. On the right it is evaluated in the factorized coordinates z_Tb at the end of the inverse mapping. The index t in the sum ranges over the auxiliary steps in the direction from z_Tf to z_Tb. The Jacobian for each step is ∂zₜ₊₁ / ∂zₜ, and the absolute determinant supplies its volume factor. The terms are added because density is being evaluated at the input of the inverse transformation using the Gaussian density at its output.

Account for the prior and fit the distributions

With a standard normal prior, the divergence from the conditional weight density has a closed form. For the fully connected example it is a sum of contributions from individual weights.

KL(qφ(W | z_Tf) ‖ p(W)) = (1 / 2) ∑ᵢ,ⱼ [−log σᵢⱼ² + σᵢⱼ² + z_Tf,i² μᵢⱼ² − 1]

The first argument of KL is the conditional Gaussian product and the second is the standard normal weight prior p. The indices i and j label input and output coordinates, and ∑ᵢ,ⱼ adds the terms for the weights between them. The value σᵢⱼ² is a conditional variance. The product z_Tf,i² μᵢⱼ² is the squared conditional mean, with z_Tf,i denoting multiplier i at the forward endpoint. The constants arise from using the standard normal as the reference density. The bracketed expansion gives the positive KL divergence. The objective subtracts that divergence. The paper’s displayed expansion attaches a negative-KL label to the positive expression.

The full auxiliary contribution combines that conditional Gaussian calculation with the reverse log density and subtracts the forward multiplier log density. Averaging these contributions under the joint variational draw gives the regularization part of the augmented bound. For the conditional Gaussian calculation, integration over the weights is analytic once z is fixed. The reverse term depends on the weight projections, and both flow terms use the Jacobian corrections. The result is a score that can be evaluated for the drawn multipliers and the locally sampled quantities.

The paper also connects the bound to the Bayesian treatment of Bernoulli Dropout. In that construction, r is set equal to the mixing density, so the two log multiplier terms cancel. The multiplier is Bernoulli, with success probability π, and the conditional weight variances are taken toward zero. Variance-dependent terms diverge in the limit. The authors set those terms aside because the variances are fixed for this argument, leaving the finite mean-dependent penalty under the Gaussian prior.

E_q(z)[(1 / 2) tr((diag(z)M)ᵀ(diag(z)M))] = (π / 2) ‖M‖₂²

Here M is the matrix of base weight means, diag(z) places the Bernoulli multipliers on a diagonal, and ᵀ transposes the scaled mean matrix. The trace tr sums the diagonal of the product, giving the sum of squared masked means. The expectation E_q(z) averages over the mask, and π is the probability that an entry stays active. The squared norm ‖M‖₂² in this expression denotes the sum of squared entries. The dropout rate is one minus π. This limit explains the appearance of a weight penalty proportional to the retention probability in the earlier Dropout bound.

For the reported experiments, the authors implemented the computations in TensorFlow and used Adam with its default settings. The image experiments used LeNet 5 and a larger LeNet variant, with rectified linear units, which pass positive inputs and return zero for negative ones. Conditional weight means were initialized using the scheme the paper cites for rectifiers. The initial log variances were drawn from a Gaussian with mean -9 and variance 0.001. Those initial values concern the conditional weight distributions, distinct from either flow’s hidden representation.

Unless specified otherwise, the forward multiplier flow has length two and uses 50 hidden units in each step. The auxiliary flow also has length two and uses 100 hidden units per step. Training uses 1 posterior sample to estimate the relevant stochastic quantities per draw of the objective. At test time the authors use 100 posterior samples to estimate predictive distributions. In classification, averaging the class probabilities across draws gives the predictive distribution from which the final label and entropy are obtained.

There is a further modification in the likelihood calculation. During the forward pass, the authors restrict the conditional weight standard deviations to a smaller range than they otherwise consider with the standard normal prior. They use a ceiling of .5 for the Gaussian-prior MNIST runs and .4 for the corresponding CIFAR runs. They report that this helps avoid poor local solutions and acknowledge a bias from the restriction. As a consequence, the practical objective includes this adjustment alongside the auxiliary bound derived for the probabilistic construction.

Experiments and results

What the comparisons measure

The main image experiments separate two questions. How many test examples from the trained categories are classified correctly? How concentrated are the predictions when the categories that generated the images lie outside the classifier’s training inventory? The first question uses test error, the percentage of incorrect labels. The second uses entropy, which summarizes how dispersed a probability distribution is. Concentrating most of the mass on a class gives low entropy. Spreading the mass uniformly over the class inventory gives the largest entropy for that inventory.

Several comparisons generate predictions by different routes. A weight-decay network supplies a point-estimate reference. Dropout uses Bernoulli masking to produce variation. The Bayesian baseline identified as FFG uses a fully factorized Gaussian approximation. The other Bayesian alternative, FFLU, pairs a log-uniform prior with an additively parametrized approximation. The paper refers to the proposed combination of a Gaussian prior and multiplicative normalizing flows as MNFG. The deep ensemble combines independently trained members and also uses adversarial examples during training. That makes it a comparison with a distinct training recipe as well as a distinct way to combine predictions.

For the unfamiliar-class tests, the authors plot an empirical cumulative distribution of entropy. Pick a threshold on its horizontal axis and the height of the curve gives the fraction of tested images whose predictive entropy is at or below that threshold. A curve already high at a low threshold indicates many concentrated predictions. For these tests the authors favor curves whose mass accumulates farther to the right. This gives a comparison across examples and can reveal differences hidden by an average. For example, a system could make mostly diffuse predictions yet still make highly confident predictions on a substantial portion of unfamiliar images.

MNIST recognition and notMNIST letters

On MNIST, the LeNet systems are trained to recognize handwritten digits. Dropout uses a rate of 0.5. The ensemble has 10 members and uses an adversarial training setting of .25 for its perturbation magnitude. During the forward likelihood calculation, the Gaussian-prior systems use the conditional standard-deviation ceiling of .5. The comparison in the paper concerns test error. Its stated finding is that the flow posterior improves accuracy relative to mean field and performs similarly to the deep ensemble.

For the uncertainty experiment, the authors take those same digit classifiers and ask for their predictions on notMNIST images. The images show letters, so the trained classifier’s entire answer inventory consists of labels from the wrong category of objects. The authors use the uniform distribution over digit outputs as the desired reference in this situation. Even a strongly preferred digit produces no correct category for a letter. Consequently the metric here describes the concentration of the digit probabilities, while the usual classification score applies to the separate digit test set.

The empirical entropy curves are shown over the range [0, 2.5]. The MNF classifier has fewer low-entropy predictions overall than the compared approaches. The weight-decay network is the most confident of the systems on these unfamiliar inputs, with its median entropy described as almost zero. Dropout lies between that behavior and the flow result. The log-uniform-prior alternative also makes concentrated predictions. Thus the favorable comparison for MNFs on letters concerns how often a digit probability is dominant across the unfamiliar set.

The authors examine the log-uniform-prior network for a possible explanation of its uncertainty. They classify weights as prunable when the log of the variance minus the log of the squared mean is at least 5. The percentages describe sparsity in the network trained on digits and subsequently used in the letter test. The highest-pruning layer is marked in the chart to show where sparsity was most extensive.

MNIST-trained FFLU LeNet, percentage of weights pruned by layer

The most extensive pruning occurs in the first fully connected layer.

MNIST-trained FFLU LeNet, percentage of weights pruned by layerFirst convolutional layer: 62First convolutional layer62Second convolutional layer: 95.2Second convolutional layer95.2First fully connected layer (this paper): 99.5First fully connected layer (this paper)99.5Second fully connected layer: 93.3Second fully connected layer93.3
The numbers
System or settingweights pruned %
First convolutional layer62
Second convolutional layer95.2
First fully connected layer (this paper)99.5
Second fully connected layer93.3

The ordering in this chart describes the amount of pruning. The authors propose that removing many possible contributors to variation leaves the network with fewer ways for weight uncertainty to affect predictions on letters. The novelty test and the pruning diagnostic measure different things. The former looks at class probabilities after averaging predictions. The latter looks at which weights meet a criterion internal to the fitted network. Their relationship is part of the authors’ explanation of the observed behavior.

The ensemble comparison on notMNIST is also informative because earlier work had found better uncertainty from ensembles than from Dropout with fully connected networks. The paper finds that the advantage fails to carry over to the LeNet used here. The authors suggest the number of members and the adversarial training noise as settings that could influence the result. The tested configurations therefore anchor the comparison. They place the flow network ahead on the stated entropy criterion for this architecture and training setup.

Observed and withheld classes from CIFAR 10

The CIFAR 10 experiment creates a different mismatch between training and evaluation. The authors withhold 5 categories and train the classifiers only on the others. The observed categories are airplane, automobile, bird, cat, and deer. The held-out categories are dog, frog, horse, ship, and truck. Both groups come from CIFAR 10. A test example from the held-out group still has to be assigned probabilities over the observed categories, making it possible to study the confidence of a classifier whose available labels exclude the class of the input.

The authors use the larger LeNet variant, with 192 filters per convolutional layer and 1000 units in the fully connected hidden layer. For the Gaussian-prior systems they impose a forward-pass ceiling of .4 on the conditional standard deviations. The ensemble has five members and uses .1 as the setting for adversarial-example generation during training. The supervised comparison measures test error on the classes that were available during training. Dropout and MNFs give the strongest accuracy in the authors’ account.

The authors then apply the trained classifiers to the withheld categories and compare distributions of predictive entropy. Weight decay again produces the most concentrated predictions. Dropout and the deep ensemble have similar uncertainty on the withheld categories, with lower accuracy for the ensemble on the observed classes. The two Gaussian-prior Bayesian approaches and the log-uniform-prior alternative show similar uncertainty in this experiment. Within that comparison, the flow posterior has much better observed-class accuracy than the log-uniform-prior network. The authors favor MNFs for the combination of those outcomes.

The sparsity diagnostic for the log-uniform-prior network gives 94.9% and 99.8% pruned weights in the convolutional layers. The corresponding figures for the fully connected layers are 99.9% and 92.7%. These results help qualify the interpretation drawn from notMNIST. Extensive sparsity occurs in both networks fitted with the log-uniform prior, while its uncertainty relative to the Gaussian-prior alternatives differs across the unfamiliar-input tests. The classification discussion gives the relative performance for the digit test and for the observed CIFAR classes. It leaves the sizes of the test-error gaps unquantified in its account of those comparisons.

Accuracy and uncertainty under deliberate perturbation

The adversarial experiments ask a different question about unfamiliar inputs. The starting images have labels among the classes the classifier was trained to recognize. A perturbation is chosen to induce an error in a previously trained classifier. The paper varies the perturbation magnitude and examines both classification accuracy and predictive entropy as it increases. It situates these tests in the work on Intriguing Properties of Neural Networks and uses the fast sign method from Explaining and Harnessing Adversarial Examples, through Cleverhans. Deep ensembles are left out of this experiment because their training already used adversarial examples.

Accuracy here still has a target because the perturbations begin with labeled inputs from the trained categories. Entropy answers a separate question about how predictions change as the perturbation interferes with recognition. Tracking both quantities makes it possible to see a system that continues to classify some inputs correctly, a system that loses accuracy and spreads its predictions, or a system that makes errors with strong preferences. The relative ordering of systems on one of these quantities need not predict their ordering on the other.

On MNIST, Dropout generally retains more classification accuracy under the tested perturbations. Its predictions still assign, on average, above 0.7 probability to the dominant class, according to the authors’ description of this experiment. The entropy remains low. The flow-based network loses accuracy quickly, approaching random performance, while its predictive entropy rises towards the maximum. When its label choices become unreliable, the averaged probabilities tend to give much less emphasis to any one label. The result supports a claim about confidence during failure and gives Dropout the advantage on the reported comparative accuracy under attack.

The experiment on the trained CIFAR subset gives a different result. All tested systems exhibit overconfidence on the perturbed images. The authors hypothesize that higher dimensionality makes appropriate uncertainty harder to achieve in this case. The experiment changes the dataset and network setting together, so the dimensionality explanation remains open. Empirically, the favorable changes in entropy on MNIST do not carry across to the CIFAR perturbation test.

Regression between and beyond observations

The regression task gives a direct view of how uncertainty varies across an input space. The authors draw 20 training inputs from a uniform distribution on [-4, 4], then generate a target by adding Gaussian noise to a cubic function.

y = x³ + ε

The scalar input is x, the observed output is y, and ε is the random error added to the cube of the input. The superscript 3 gives the cubic dependence used to construct the data.

ε ∼ 𝒩(0, 9)

The symbol ∼ marks the distribution of the error ε. The Gaussian 𝒩 has mean 0 and variance 9. The experiment fixes the likelihood noise at its generating value, leaving differences in the fitted predictive spread to be examined under that common assumption.

The comparison includes the proposed Gaussian-prior flow network, the log-uniform-prior alternative, and two Dropout versions. One uses π = 0.5 in the hidden layer, where π is the Bernoulli retention probability. The other estimates the hidden-layer probability through the Dropout-related variational bound. The paper uses the REINFORCE gradient estimator and a global baseline for that fit. The input has a single coordinate, and the authors apply Dropout in the hidden layer only.

Each plot shows a predictive mean with a band of ±3 predictive standard deviations. The authors judge the MNF prediction to be closer to the reference posterior predictive behavior discussed in the earlier work that introduced the task. The flow-based band widens where training observations are absent. The fixed-probability Dropout band widens less, while the log-uniform-prior alternative yields uncertainty the authors regard as less satisfactory. The latter prunes 95% and 44% of the parameters in the respective layers, which the authors again suggest as a potential explanation for restricted variation.

The learned-rate Dropout network gives the least convincing predictive uncertainty in the authors’ visual assessment. Optimizing the probability brings a tighter-looking prediction in parts of the input space with little support from observations. This example helps distinguish the fit of a variational objective from the usefulness of the resulting uncertainty. The authors compare the shape of the bands and the behavior away from the data. They do so through plots of the predictive distributions, without a numerical measure of distance to the reference posterior.

Training with random labels

The appendix examines whether the Gaussian-prior MNF network will fit arbitrary associations between images and labels. Random labels change what can be learned from the training set. A network that predicts those labels accurately on the training images yet does no better than chance on test images is demonstrating memorization under this setup. The authors motivate the experiment with earlier observations of such behavior for ordinary training, including with weight decay or Dropout, and with a reported absence of it for sparse variational Dropout.

For the MNF network, the paper describes accuracy on both the training and test sets as near random chance. Its caption lists the chance benchmarks as 11% on MNIST and 20% on CIFAR 5. Those figures are the chance reference values for the random-label task. The reported train and test behavior indicates that this particular approximate Bayesian procedure did not fit the randomized associations. It gives a separate check on the effect of the inference procedure, since the entropy experiments ask what confidence a classifier expresses after being trained on meaningful categories.

What the ablations show

Which explanations the comparisons can isolate

The paper offers no systematic component ablation of the flow construction, but it does report a pilot parametrization comparison, a fixed-versus-learned Dropout analysis, and diagnostics based on sparsity, entropy, and random labels.

The Gaussian-prior comparison with independent weights is the most direct test of the complete MNF proposal against the approximation it was designed to improve. The independent approximation supplies a baseline with tractable Gaussian calculations. MNFs retain Gaussian conditionals and add the shared multipliers, their density flow, and a learned auxiliary calculation. The classification and entropy comparisons show what happens when that construction is used as a whole. They supply limited evidence about the contribution of a particular flow step, the decision to resample masks, or the capacity of the auxiliary density.

The pilot study addresses one narrower choice. Allowing z to affect the variance gives the mixture another way to change when a multiplier changes. In the authors’ fitting experience, this parametrization was prone to unfavorable local solutions, associated with large variance gradients. The adopted version puts multiplier effects in the means and gives the conditional spread dedicated parameters. The observation explains why the authors settled on that division. The paper gives a qualitative account of the pilot and of the benefit of constraining forward-pass standard deviations. It provides no numerical decomposition of the performance gains attributable to either decision.

What learning a Dropout probability changes

The regression comparison of fixed and learned Dropout rates deliberately varies how one source of uncertainty is set. The location of that source in the network is the hidden layer in both cases. The likelihood noise is fixed at its known value. This makes the differences in the displayed predictive bands easier to associate with the fitted networks and their handling of a Bernoulli mask.

The paper relates the result to the variance of a Bernoulli variable.

Var(z) = π(1 − π)

The notation Var gives the variance of the Bernoulli multiplier z. The success probability π determines how frequently a contribution is kept. Its complement, 1 − π, is the probability of dropping it. The product expresses the scale of variation contributed by that random variable.

This variance is greatest at π = 0.5. A move away from that value reduces the variance of the mask variable. With sufficiently wide layers, the authors use a Gaussian approximation to the resulting activation distribution to explain how such changes can reduce the fluctuation in hidden units. Given the fitted connection strengths, less fluctuation can leave predictions more concentrated. The regression comparison is consistent with that explanation. The fitted-rate network appears overly certain away from observations, where the authors expect more variation. Learning the rates also changes the fit of the weights, so the variance identity alone gives no general ordering of predictive uncertainty for every pair of fully trained Dropout networks.

The corresponding lesson about the MNF construction is specific. Its multiplier distribution has more degrees of freedom than a collection of binary switches. Its uncertainty can change through the shape of the mixing distribution and through individually fitted conditional weight variances. The experiment finds that optimizing those quantities produced more plausible uncertainty in this regression task than learning a Bernoulli probability. The setup supports that comparison within the chosen objective, data, and networks.

When sparsity tracks confidence

The layerwise pruning percentages make the log-uniform-prior alternative more interpretable as a comparison. The authors propose that strongly pruning the network removes uncertain contributions, which can reduce how much predictions vary across draws. The notMNIST confidence result and the narrow-looking regression uncertainty give examples that fit this account. The withheld CIFAR classes give a check on its scope. There the log-uniform-prior network has entropy similar to that of the Gaussian-prior networks in spite of extensive pruning. How the remaining weights respond to the inputs is part of what determines whether pruning translates into concentrated predictive probabilities.

A controlled comparison of the causal effect of sparsity would require changing how much of a network is pruned while holding other relevant properties of inference fixed. In the paper’s comparisons, the prior, posterior parametrization, and resulting weight structure differ together. The pruning figures therefore document a feature of the fitted networks and help formulate a mechanism. They leave open how much probability concentration would change solely from eliminating the same proportion of weights in another fit.

The paired accuracy and entropy plots supply another kind of diagnostic. On MNIST, the movement of the two curves separates classification resilience from a loss of confidence. On CIFAR, the uncertainty result shows a failure shared across the tested approaches. The random-label control addresses the objective from a different direction by asking whether the fitted network uses its capacity to reproduce arbitrary training assignments. Together these tests distinguish properties of the fitted predictor that regular test error alone cannot establish. The contribution of each individual flow design choice remains unresolved.

Limitations

Limits the authors state

The auxiliary objective is looser than the ordinary weight-marginal bound for a fixed approximate posterior. Its extra gap depends on the match between the auxiliary distribution and the multiplier conditional induced by the approximate posterior. A more expressive forward family can help fit the weights while making that reverse conditional harder to approximate. Performance therefore depends on fitting both parts of the construction. The paper gives a tractable procedure for doing so and leaves the magnitude of the gap unmeasured in the experiments.

Optimization presents a further difficulty. The authors identify unfavorable local solutions when allowing multiplier effects on conditional variances. They also acknowledge bias from reducing the range of standard deviations used in the forward likelihood calculation. The fitting procedure therefore reflects a practical choice about what can be optimized as well as a choice about what the posterior family can represent. The conclusion raises better optimization as a possible way to improve prediction. It leaves the results of such a change to future research.

The authors explicitly report failure to attain suitably diffuse probabilities on the adversarial CIFAR task. Their suggestion about higher dimensionality is tentative. They also qualify the ensemble comparison, pointing to settings such as training perturbations and ensemble size that may affect performance on LeNet. The cross-system findings describe the architectures and tuning used in the study. More extensive tuning or another architecture could change the ordering.

Prior choice remains open. The authors discuss the possibility of exploring MNFs with sparsity-inducing or empirical priors to find out whether the method can support compression. They point to the Cauchy as an example of an alternative discussed in earlier Bayesian neural-network work. They also suggest that priors suitable for particular problems could yield different sorts of predictive uncertainty, including under adversarial perturbation. These are proposed directions. The experiments concern the priors and tasks the authors actually fit.

Limits visible in the design

The image experiments evaluate specific ways of departing from training. notMNIST gives the digit classifier objects outside its answer space. Withheld CIFAR categories test unfamiliar classes from the same named dataset as the observed categories. Deliberately perturbed images challenge discrimination within the trained categories. These shifts create different reasons for predictions to become uncertain, and the paper finds different outcomes across them. Evidence from a letter test is therefore most informative about that test and related closed-answer settings. The introduction’s medical examples motivate the question of confidence, while the empirical scope stays with the classification and regression tasks described above.

Entropy quantifies concentration. High entropy on an unfamiliar image shows a distribution with relatively little preference for one of the available labels. It gives no direct estimate of whether stated probabilities match frequencies of correct answers on ordinary test data. The choice of a uniform distribution as an ideal reference for letters is tied to the fact that none of the trained outputs is a letter. It is a useful standard for this measurement, with a scope determined by the experiment’s known label mismatch.

The perturbation experiments likewise concern a particular generation procedure and set of trained networks. The MNIST finding establishes that a drop in correctness can be accompanied by an increase in uncertainty under these perturbations. It leaves robustness to other perturbations untested. The CIFAR failure places a concrete limit on how broadly even the confidence result can be generalized. The study evaluates prediction and entropy, without evaluating the actions a person or system might take in response to those outputs.

The regression comparison uses sparse observations from one known curve and fixes the likelihood noise to the generating value. That setup lets the reader see how predictive bands behave with limited observations. The closeness to a reference distribution is a visual assessment, and the results provide no general measurement of regression uncertainty across other functions, noise conditions, or input spaces. The random-label experiment has a similarly focused interpretation. Chance-level training accuracy describes the fitted Gaussian-prior MNF networks in that test. Prior choices and optimization behavior are part of the conditions under which it was observed.

Finally, tractability and total computational cost are distinct. The method avoids a flow on the full weight array, and local calculations can avoid materializing a large draw of weights. It still trains additional flow and auxiliary parameters and evaluates predictions by repeated sampling. The experiments use 100 posterior samples for prediction. They give no runtime or memory comparison that would establish the practical cost relative to the competing methods at a matched level of predictive accuracy or uncertainty.

The form of the multiplier also constrains the kinds of posterior structure that can be expressed. Within a group, the conditional means move along directions set by the base weights as the multiplier changes. A more flexible density over z adds possibilities for how those directions vary together, while their assignment to inputs or filters remains fixed by the construction. The classification experiments examine the consequences in predictions. They supply no independent reference posterior over the classification weights against which to measure how closely that structure matches the true posterior.

What came after

An Introduction to Variational Autoencoders cites the paper in 2019. Its subject is variational autoencoders. The point of contact apparent from the earlier paper is the machinery for fitting expressive distributions, including reparametrized draws, invertible density transformations, and auxiliary variables. The citation establishes a connection to that broader inference literature. The role of MNFs in the later work is unspecified.

Calibrated Language Model Fine-Tuning for In- and Out-of-Distribution Data cites it in 2020. The later title identifies a study of calibration during language fine-tuning for familiar and unfamiliar data. The thematic connection is the behavior of predictive confidence when an input differs from what was seen during training. The earlier paper tests that question with image classifiers and entropy. The citation leaves the later work’s use of the weight-posterior construction unspecified.

Paragraph-level Rationale Extraction through Regularization cites it in 2021. The later work’s stated task is to extract paragraph-level rationales in a case study on European Court of Human Rights cases. Its connection to the MNF paper is documented as a citation, with the purpose of that citation unspecified. These links trace where the paper was cited across variational inference, confidence under distribution change, and rationale extraction. They leave implementation or extension of its particular flow construction unestablished.

Cite

Cite as Christos Louizos and Max Welling. 2017. Multiplicative Normalizing Flows for Variational Bayesian Neural Networks. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.1703.01961 · arXiv 1703.01961

@misc{louizos2017multiplicative,
  title = {{Multiplicative Normalizing Flows for Variational Bayesian Neural Networks}},
  author = {Christos Louizos and Max Welling},
  year = {2017},
  doi = {10.48550/arxiv.1703.01961},
  eprint = {1703.01961},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1703.01961}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/louizos-2017-multiplicative-normalizing-flows-variational-bayesian/

References

44 references, from the paper's own bibliography.

  1. Abadi, Martín, Agarwal, Ashish, Barham, Paul, Brevdo, Eugene, Chen, Zhifeng, Citro, Craig, Corrado, Greg S, Davis, Andy, Dean, Jeffrey, Devin, Matthieu, et al. Tensorflow: Large-scale machine learning on heterogeneous distributed systems. arXiv preprint arXiv:1603.04467, 2016. our card
  2. Agakov, Felix V and Barber, David. An auxiliary variational method. In International Conference on Neural Information Processing, pp. 561–566. Springer, 2004. OpenAlex ↗ · Scholar ↗
  3. Blundell, Charles, Cornebise, Julien, Kavukcuoglu, Koray, and Wierstra, Daan. Weight uncertainty in neural networks. Proceedings of the 32nd International Conference on Machine Learning, ICML 2015, Lille, France, 6-11 July 2015, 2015. our card
  4. Chen, Tianqi, Fox, Emily B, and Guestrin, Carlos. Stochastic gradient hamiltonian monte carlo. OpenAlex ↗ · Scholar ↗
  5. Damianou, Andreas C. and Lawrence, Neil D. Deep gaussian processes. In Proceedings of the Sixteenth International Conference on Artificial Intelligence and Statistics, AISTATS 2013, Scottsdale, AZ, USA, April 29 - May 1, 2013, pp. 207–215, 2013. OpenAlex ↗ · Scholar ↗
  6. Dinh, Laurent, Sohl-Dickstein, Jascha, and Bengio, Samy. Density estimation using real nvp. arXiv preprint arXiv:1605.08803, 2016. OpenAlex ↗ · Scholar ↗
  7. Gal, Yarin and Ghahramani, Zoubin. Bayesian convolutional neural networks with bernoulli approximate variational inference. arXiv preprint arXiv:1506.02158, 2015a. OpenAlex ↗ · Scholar ↗
  8. Gal, Yarin and Ghahramani, Zoubin. Dropout as a bayesian approximation: Representing model uncertainty in deep learning. arXiv preprint arXiv:1506.02142, 2015b. OpenAlex ↗ · Scholar ↗
  9. Goodfellow, Ian J, Shlens, Jonathon, and Szegedy, Christian. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014. our card
  10. Graves, Alex. Practical variational inference for neural networks. In Advances in Neural Information Processing Systems, pp. 2348–2356, 2011. OpenAlex ↗ · Scholar ↗
  11. He, Kaiming, Zhang, Xiangyu, Ren, Shaoqing, and Sun, Jian. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In Proceedings of the IEEE International Conference on Computer Vision, pp. 1026–1034, 2015. OpenAlex ↗ · Scholar ↗
  12. Hernández-Lobato, José Miguel and Adams, Ryan. Probabilistic backpropagation for scalable learning of bayesian neural networks. In Proceedings of the 32nd International Conference on Machine Learning, ICML 2015, Lille, France, 6-11 July 2015, pp. 1861–1869, 2015. OpenAlex ↗ · Scholar ↗
  13. Hernández-Lobato, José Miguel, Li, Yingzhen, Hernández-Lobato, Daniel, Bui, Thang, and Turner, Richard E. Black-box $\alpha$-divergence minimization. arXiv preprint arXiv:1511.03243, 2015. OpenAlex ↗ · Scholar ↗
  14. Hinton, Geoffrey E and Van Camp, Drew. Keeping the neural networks simple by minimizing the description length of the weights. In Proceedings of the sixth annual conference on Computational learning theory, pp. 5–13. ACM, 1993. OpenAlex ↗ · Scholar ↗
  15. Kingma, Diederik and Ba, Jimmy. Adam: A method for stochastic optimization. International Conference on Learning Representations (ICLR), San Diego, 2015. our card
  16. Kingma, Diederik P and Welling, Max. Auto-encoding variational bayes. International Conference on Learning Representations (ICLR), 2014. our card
  17. Kingma, Diederik P, Salimans, Tim, and Welling, Max. Variational dropout and the local reparametrization trick. Advances in Neural Information Processing Systems, 2015. OpenAlex ↗ · Scholar ↗
  18. Kingma, Diederik P, Salimans, Tim, and Welling, Max. Improving variational inference with inverse autoregressive flow. arXiv preprint arXiv:1606.04934, 2016. OpenAlex ↗ · Scholar ↗
  19. Korattikara, Anoop, Rathod, Vivek, Murphy, Kevin, and Welling, Max. Bayesian dark knowledge. arXiv preprint arXiv:1506.04416, 2015. OpenAlex ↗ · Scholar ↗
  20. Lakshminarayanan, Balaji, Pritzel, Alexander, and Blundell, Charles. Simple and scalable predictive uncertainty estimation using deep ensembles. arXiv preprint arXiv:1612.01474, 2016. our card
  21. LeCun, Yann, Bottou, Léon, Bengio, Yoshua, and Haffner, Patrick. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 860 (11):0 2278–2324, 1998. OpenAlex ↗ · Scholar ↗
  22. Louizos, Christos and Welling, Max. Structured and efficient variational deep learning with matrix gaussian posteriors. arXiv preprint arXiv:1603.04733, 2016. OpenAlex ↗ · Scholar ↗
  23. Maaløe, Lars, Sønderby, Casper Kaae, Sønderby, Søren Kaae, and Winther, Ole. Auxiliary deep generative models. arXiv preprint arXiv:1602.05473, 2016. OpenAlex ↗ · Scholar ↗
  24. MacKay, David JC. A practical bayesian framework for backpropagation networks. Neural computation, 40 (3):0 448–472, 1992. OpenAlex ↗ · Scholar ↗
  25. Minka, Thomas P. Expectation propagation for approximate bayesian inference. In Proceedings of the Seventeenth conference on Uncertainty in artificial intelligence, pp. 362–369. Morgan Kaufmann Publishers Inc., 2001. OpenAlex ↗ · Scholar ↗
  26. Mnih, Andriy and Gregor, Karol. Neural variational inference and learning in belief networks. arXiv preprint arXiv:1402.0030, 2014. OpenAlex ↗ · Scholar ↗
  27. Molchanov, D., Ashukha, A., and Vetrov, D. Variational Dropout Sparsifies Deep Neural Networks. ArXiv e-prints, January 2017. our card
  28. Nair, Vinod and Hinton, Geoffrey E. Rectified linear units improve restricted boltzmann machines. In Proceedings of the 27th International Conference on Machine Learning (ICML-10), pp. 807–814, 2010. OpenAlex ↗ · Scholar ↗
  29. Neal, Radford M. Bayesian learning for neural networks. PhD thesis, Citeseer, 1995. OpenAlex ↗ · Scholar ↗
  30. Osband, Ian, Blundell, Charles, Pritzel, Alexander, and Van Roy, Benjamin. Deep exploration via bootstrapped dqn. arXiv preprint arXiv:1602.04621, 2016. our card
  31. Papernot, Nicolas, Goodfellow, Ian, Sheatsley, Ryan, Feinman, Reuben, and McDaniel, Patrick. cleverhans v1.0.0: an adversarial machine learning library. arXiv preprint arXiv:1610.00768, 2016. OpenAlex ↗ · Scholar ↗
  32. Peterson, Carsten. A mean field theory learning algorithm for neural networks. Complex systems, 1:0 995–1019, 1987. OpenAlex ↗ · Scholar ↗
  33. Ranganath, Rajesh, Tran, Dustin, and Blei, David M. Hierarchical variational models. arXiv preprint arXiv:1511.02386, 2015. OpenAlex ↗ · Scholar ↗
  34. Rezende, Danilo Jimenez and Mohamed, Shakir. Variational inference with normalizing flows. arXiv preprint arXiv:1505.05770, 2015. our card
  35. Rezende, Danilo Jimenez, Mohamed, Shakir, and Wierstra, Daan. Stochastic backpropagation and approximate inference in deep generative models. In Proceedings of the 31th International Conference on Machine Learning, ICML 2014, Beijing, China, 21-26 June 2014, pp. 1278–1286, 2014. our card
  36. Salimans, Tim, Knowles, David A, et al. Fixed-form variational posterior approximation through stochastic linear regression. Bayesian Analysis, 80 (4):0 837–882, 2013. OpenAlex ↗ · Scholar ↗
  37. Salimans, Tim, Kingma, Diederik P, Welling, Max, et al. Markov chain monte carlo and variational inference: Bridging the gap. In International Conference on Machine Learning, pp. 1218–1226, 2015. OpenAlex ↗ · Scholar ↗
  38. Srivastava, Nitish, Hinton, Geoffrey, Krizhevsky, Alex, Sutskever, Ilya, and Salakhutdinov, Ruslan. Dropout: A simple way to prevent neural networks from overfitting. The Journal of Machine Learning Research, 150 (1):0 1929–1958, 2014. our card
  39. Szegedy, Christian, Zaremba, Wojciech, Sutskever, Ilya, Bruna, Joan, Erhan, Dumitru, Goodfellow, Ian, and Fergus, Rob. Intriguing properties of neural networks. arXiv preprint arXiv:1312.6199, 2013. our card
  40. Ullrich, Karen, Meeds, Edward, and Welling, Max. Soft weight-sharing for neural network compression. arXiv preprint arXiv:1702.04008, 2017. OpenAlex ↗ · Scholar ↗
  41. Wang, Sida and Manning, Christopher. Fast dropout training. In Proceedings of The 30th International Conference on Machine Learning, pp. 118–126, 2013. OpenAlex ↗ · Scholar ↗
  42. Welling, Max and Teh, Yee W. Bayesian learning via stochastic gradient langevin dynamics. In Proceedings of the 28th International Conference on Machine Learning (ICML-11), pp. 681–688, 2011. OpenAlex ↗ · Scholar ↗
  43. Williams, Ronald J. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine learning, 80 (3-4):0 229–256, 1992. OpenAlex ↗ · Scholar ↗
  44. Zhang, Chiyuan, Bengio, Samy, Hardt, Moritz, Recht, Benjamin, and Vinyals, Oriol. Understanding deep learning requires rethinking generalization. arXiv preprint arXiv:1611.03530, 2016. OpenAlex ↗ · Scholar ↗