Bayesian Feed Forward
Bayesian Feed Forward
divergence with the true Bayesian posterior on the weights: The deterministic function t(θ, ) transforms a sample of
parameter-free noise and the variational posterior param-
θ? = arg min KL[q(w|θ)||P (w|D)] eters θ into a sample from the variational posterior. Below
θ
Z we shall see how this transform works in practice for the
q(w|θ)
= arg min q(w|θ) log dw Gaussian case.
θ P (w)P (D|w)
We apply Proposition 1 to the optimisation problem in
= arg min KL [q(w|θ) || P (w)] − Eq(w|θ) [log P (D|w)] .
θ (1): let f (w, θ) = log q(w|θ) − log P (w)P (D|w). Us-
ing Monte Carlo sampling to evaluate the expectations,
The resulting cost function is variously known as the varia- a backpropagation-like (LeCun, 1985; Rumelhart et al.,
tional free energy (Neal and Hinton, 1998; Yedidia et al., 1988) algorithm is obtained for variational Bayesian infer-
2000; Friston et al., 2007) or the expected lower bound ence in neural networks – Bayes by Backprop – which uses
(Saul et al., 1996; Neal and Hinton, 1998; Jaakkola and unbiased estimates of gradients of the cost in (1) to learn a
Jordan, 2000). For simplicity we shall denote it as distribution over the weights of a neural network.
Proposition 1 is a generalisation of the Gaussian re-
F(D, θ) = KL [q(w|θ) || P (w)]
parameterisation trick (Opper and Archambeau, 2009;
− Eq(w|θ) [log P (D|w)] . (1) Kingma and Welling, 2014; Rezende et al., 2014) used for
latent variable models, applied to Bayesian learning of neu-
The cost function of (1) is a sum of a data-dependent part, ral networks. Our work differs from this previous work in
which we shall refer to as the likelihood cost, and a prior- several significant ways. Bayes by Backprop operates on
dependent part, which we shall refer to as the complexity weights (of which there are a great many), whilst most pre-
cost. The cost function embodies a trade-off between satis- vious work applies this method to learning distributions on
fying the complexity of the data D and satisfying the sim- stochastic hidden units (of which there are far fewer than
plicity prior P (w). (1) is also readily given an information the number of weights). Titsias and Lázaro-Gredilla (2014)
theoretic interpretation as a minimum description length considered a large-scale logistic regression task. Unlike
cost (Hinton and Van Camp, 1993; Graves, 2011). Exactly previous work, we do not use the closed form of the com-
minimising this cost naı̈vely is computationally prohibitive. plexity cost (or entropic part): not requiring a closed form
Instead gradient descent and various approximations are of the complexity cost allows many more combinations of
used. prior and variational posterior families. Indeed this scheme
is also simple to implement and allows prior/posterior com-
3.1. Unbiased Monte Carlo gradients binations to be interchanged. We approximate the exact
Under certain conditions, the derivative of an expectation cost (1) as:
can be expressed as the expectation of a derivative: n
X
Proposition 1. Let be a random variable having a prob- F(D, θ) ≈ log q(w(i) |θ) − log P (w(i) )
i=1
ability density given by q() and let w = t(θ, ) where
t(θ, ) is a deterministic function. Suppose further that − log P (D|w(i) ) (2)
the marginal probability density of w, q(w|θ), is such that
q()d = q(w|θ)dw. Then for a function f with deriva- where w(i) denotes the ith Monte Carlo sample drawn from
tives in w: the variational posterior q(w(i) |θ). Note that every term of
this approximate cost depends upon the particular weights
drawn from the variational posterior: this is an instance of
∂ ∂f (w, θ) ∂w ∂f (w, θ)
Eq(w|θ) [f (w, θ)] = Eq() + . a variance reduction technique known as common random
∂θ ∂w ∂θ ∂θ
numbers (Owen, 2013). In previous work, where a closed
form complexity cost or closed form entropy term are used,
Proof. part of the cost is sensitive to particular draws from the
Z posterior, whilst the closed form part is oblivious. Since
∂ ∂
Eq(w|θ) [f (w, θ)] = f (w, θ)q(w|θ)dw each additive term in the approximate cost in (2) uses the
∂θ ∂θ same weight samples, the gradients of (2) are only affected
Z
∂ by the parts of the posterior distribution characterised by
= f (w, θ)q()d
∂θ the weight samples. In practice, we did not find this to
∂f (w, θ) ∂w ∂f (w, θ) perform better than using a closed form KL (where it could
= Eq() +
∂w ∂θ ∂θ be computed), but we did not find it to perform worse. In
our experiments, we found that a prior without an easy-to-
compute closed form complexity cost performed best.
Weight Uncertainty in Neural Networks
3.2. Gaussian variational posterior cross-validation where possible. Empirically we found op-
timising the parameters of a prior P (w) (by taking deriva-
Suppose that the variational posterior is a diagonal Gaus-
tives of (1)) to not be useful, and yield worse results.
sian distribution, then a sample of the weights w can be
Graves (2011) and Titsias and Lázaro-Gredilla (2014) pro-
obtained by sampling a unit Gaussian, shifting it by a mean
pose closed form updates of the prior hyperparameters.
µ and scaling by a standard deviation σ. We parameterise
Changing the prior based upon the data that it is meant to
the standard deviation pointwise as σ = log(1 + exp(ρ))
regularise is known as empirical Bayes and there is much
and so σ is always non-negative. The variational posterior
debate as to its validity (Gelman, 2008). A reason why it
parameters are θ = (µ, ρ). Thus the transform from a sam-
fails for Bayes by Backprop is as follows: it can be eas-
ple of parameter-free noise and the variational posterior pa-
ier to change the prior parameters (of which there are few)
rameters that yields a posterior sample of the weights w is:
than it is to change the posterior parameters (of which there
w = t(θ, ) = µ + log(1 + exp(ρ)) ◦ where ◦ is point-
are many) and so very quickly the prior parameters try to
wise multiplication. Each step of optimisation proceeds as
capture the empirical distribution of the weights at the be-
follows:
ginning of learning. Thus the prior learns to fit poor initial
parameters quickly, and makes the cost in (1) less willing
1. Sample ∼ N (0, I). to move away from poor initial parameters. This can yield
2. Let w = µ + log(1 + exp(ρ)) ◦ . slow convergence, introduce strange local minima and re-
3. Let θ = (µ, ρ). sult in poor performance.
4. Let f (w, θ) = log q(w|θ) − log P (w)P (D|w).
We propose using a scale mixture of two Gaussian densi-
5. Calculate the gradient with respect to the mean
ties as the prior. Each density is zero mean, but differing
∂f (w, θ) ∂f (w, θ) variances:
∆µ = + . (3)
∂w ∂µ
6. Calculate the gradient with respect to the standard de- Y
viation parameter ρ P (w) = πN (wj |0, σ12 ) + (1 − π)N (wj |0, σ22 ), (7)
j
∂f (w, θ) ∂f (w, θ)
∆ρ = + . (4)
∂w 1 + exp(−ρ) ∂ρ
7. Update the variational parameters: where wj is the jth weight of the network, N (x|µ, σ 2 ) is
the Gaussian density evaluated at x with mean µ and vari-
µ ← µ − α∆µ (5) ance σ 2 and σ12 and σ22 are the variances of the mixture
ρ ← ρ − α∆ρ . (6) components. The first mixture component of the prior is
given a larger variance than the second, σ1 > σ2 , provid-
ing a heavier tail in the prior density than a plain Gaussian
Note that the ∂f∂w
(w,θ)
term of the gradients for the mean and
prior. The second mixture component has a small variance
standard deviation are shared and are exactly the gradients
σ2 1 causing many of the weights to a priori tightly con-
found by the usual backpropagation algorithm on a neural
centrate around zero. Our prior resembles a spike-and-slab
network. Thus, remarkably, to learn both the mean and the
prior (Mitchell and Beauchamp, 1988; George and McCul-
standard deviation we must simply calculate the usual gra-
loch, 1993; Chipman, 1996), where instead all the prior pa-
dients found by backpropagation, and then scale and shift
rameters are shared among all the weights. This makes the
them as above.
prior more amenable to use during optimisation by stochas-
tic gradient descent and avoids the need for prior parameter
3.3. Scale mixture prior optimisation based upon training data.
Having liberated our algorithm from the confines of Gaus-
sian priors and posteriors, we propose a simple scale mix- 3.4. Minibatches and KL re-weighting
ture prior combined with a diagonal Gaussian posterior.
As several authors have noted, the cost in (1) is amenable
The diagonal Gaussian posterior is largely free from nu-
to minibatch optimisation, often used with neural networks:
merical issues, and two degrees of freedom per weight only
for each epoch of optimisation the training data D is ran-
increases the number of parameters to optimise by a factor
domly split into a partition of M equally-sized subsets,
of two, whilst giving each weight its own quantity of un-
D1 , D2 , . . . , DM . Each gradient is averaged over all ele-
certainty.
ments in one of these minibatches; a trade-off between a
We pick a fixed-form prior and do not adjust its hyper- fully batched gradient descent and a fully stochastic gradi-
parameters during training, instead picking the them by ent descent. Graves (2011) proposes minimising the mini-
Weight Uncertainty in Neural Networks
batch cost for minibatch i = 1, 2, . . . , M : time, the agent can under-explore, as it may miss more re-
warding actions.1
1
FiEQ (Di , θ) = KL [q(w|θ) || P (w)] Thompson sampling (Thompson, 1933) is a popular means
M
of picking an action that trades-off between exploitation
− Eq(w|θ) [log P (Di |w)] . (8)
(picking the best known action) and exploration (picking
This is equivalent to the cost in (1) since i FiEQ (Di , θ) =
P what might be a suboptimal arm to learn more). Thomp-
F(D, θ). There are many ways to weight the complexity son sampling usually necessitates a Bayesian treatment of
cost relative to the likelihood cost on each minibatch. For the model parameters. At each step, Thompson sampling
example, if minibatches are partitioned uniformly at ran- draws a new set of parameters and then picks the action
dom, the KL cost can be distributed non-uniformly among relative to those parameters. This can be seen as a kind
the minibatches at each epoch. Let π ∈ [0, 1]M and of stochastic hypothesis testing: more probable parame-
PM ters are drawn more often and thus refuted or confirmed
i=1 πi = 1, and define:
the fastest. More concretely Thompson sampling proceeds
Fiπ (Di , θ) = πi KL [q(w|θ) || P (w)] as follows:
− Eq(w|θ) [log P (Di |w)] (9)
1. Sample a new set of parameters for the model.
PM π 2. Pick the action with the highest expected reward ac-
Then EM [ i=1 Fi (Di , θ)]= F(D, θ) where EM denotes
an expectation over the random partitioning of minibatches. cording to the sampled parameters.
M −i
In particular, we found the scheme πi = 22M −1 to work 3. Update the model. Go to 1.
well: the first few minibatches are heavily influenced by
the complexity cost, whilst the later minibatches are largely There is an increasing literature concerning the efficacy and
influenced by the data. At the beginning of learning this is justification of this means of exploration (Chapelle and Li,
particularly useful as for the first few minibatches changes 2011; May et al., 2012; Kaufmann et al., 2012; Agrawal
in the weights due to the data are slight and as more data and Goyal, 2012; 2013). Thompson sampling is easily
are seen, data become more influential and the prior less adapted to neural networks using the variational posterior
influential. found in Section 3:
# Units/Layer
# Weights
Dropout
Vanilla SGD
1.2
Test
Method
Error 0.8
SGD, no regularisation (Simard et al., 2003) 800 1.3m 1.6% 0 100 200 300
Epochs
400 500 600
Density
Bayes by Backprop
800 1.3m 1.99% Dropout
1200 2.4m 2.04% 5 Vanilla SGD
Bayes by Backprop, Scale mixture 400 500k 1.36%
800 1.3m 1.34%
0
1200 2.4m 1.32%
−0.2 −0.1 0.0 0.1 0.2
Weight
known that variational methods under-estimate uncertainty Figure 3. Histogram of the trained weights of the neural network,
(Minka, 2001; 2005; Bishop, 2006) which could lead to for Dropout, plain SGD, and samples from Bayes by Backprop.
under-exploration and premature convergence in practice,
but we did not find this in practice.
networks, using either a Gaussian or Gaussian scale mix-
5. Experiments ture prior. Performance is comparable to that of dropout,
perhaps slightly better, as also see on Figure 2. Note that
We present some empirical evaluation of the methods pro- we trained on 50,000 digits and used 10,000 digits as a val-
posed above: on MNIST classification, on a non-linear re- idation set, whilst Hinton et al. (2012) trained on 60,000
gression task, and on a contextual bandits task. digits and did not use a validation set. We used the vali-
dation set to pick the best hyperparameters (learning rate,
5.1. Classification on MNIST number of gradients to average) and so we also repeated
this protocol for dropout and SGD (Stochastic Gradient De-
We trained networks of various sizes on the MNIST dig-
scent on the MLE objective in Section 2). We considered
its dataset (LeCun and Cortes, 1998), consisting of 60,000
learning rates of 10−3 , 10−4 and 10−5 with minibatches
training and 10,000 testing pixel images of size 28 by 28.
of size 128. For Bayes by Backprop, we averaged over ei-
Each image is labelled with its corresponding number (be-
ther 1, 2, 5, or 10 samples and considered π ∈ { 41 , 12 , 34 },
tween zero and nine, inclusive). We preprocessed the pix-
− log σ1 ∈ {0, 1, 2} and − log σ2 ∈ {6, 7, 8}.
els by dividing values by 126. Many methods have been
proposed to improve results on MNIST: generative pre- Figure 2 shows the learning curves on the test set for Bayes
training, convolutions, distortions, etc. Here we shall focus by Backprop, dropout and SGD on a network with two lay-
on improving the performance of an ordinary feedforward ers of 1200 rectified linear units. As can be seen, SGD
neural network without using any of these methods. We converges the quickest, initially obtaining a low test er-
used a network of two hidden layers of rectified linear units ror and then overfitting. Bayes by Backprop and dropout
(Nair and Hinton, 2010; Glorot et al., 2011), and a softmax converge at similar rates (although each iteration of Bayes
output layer with 10 units, one for each possible label. by Backprop is more expensive than dropout – around two
times slower). Eventually Bayes by Backprop converges
According to Hinton et al. (2012), the best published feed-
on a better test error than dropout after 600 epochs.
forward neural network classification result on MNIST (ex-
cluding those using data set augmentation, convolutions, Figure 3 shows density estimates of the weights. The Bayes
etc.) is 1.6% (Simard et al., 2003), whilst dropout with by Backprop weights are sampled from the variational pos-
an L2 regulariser attains errors around 1.3%. Results from terior, and the dropout weights are those used at test time.
Bayes by Backprop are shown in Table 1, for various sized Interestingly the regularised networks found by dropout
Weight Uncertainty in Neural Networks
0.4
0.50
learnt to gracefully prune the ensemble down into a smaller
0.25
network. Thus even though networks trained by Bayes by
Backprop may have twice as many weights, the number of
0.00 parameters that actually need to be stored at run time can be
−7.5 −5.0 −2.5 0.0 far fewer. Graves (2011) also considered pruning weights
Signal−to−Noise Ratio (dB)
using the signal to noise ratio, but demonstrated results on
a network 20 times smaller and did not prune as high a
Figure 4. Density and CDF of the Signal-to-Noise ratio over all proportion of weights (at most 11%) whilst still maintain-
weights in the network. The red line denotes the 75% cut-off.
ing good test performance. The scale mixture prior used
by Bayes by Backprop encourages a broad spread of the
weights. Many of these weights can be successfully pruned
In Table 2, we examine the effect of replacing the vari-
without impacting performance significantly.
ational posterior on some of the weights with a constant
zero, so as to determine the level of redundancy in the
network found by Bayes by Backprop. We took a Bayes 5.2. Regression curves
by Backprop trained network with two layers of 1200 We generated training data from the curve:
units2 and ordered the weights by their signal-to-noise ra-
tio (|µi |/σi ). We removed the weights with the lowest sig- y = x + 0.3 sin(2π(x + )) + 0.3 sin(4π(x + )) +
nal to noise ratio. As can be seen in Table 2, even when
95% of the weights are removed the network still performs where ∼ N (0, 0.02). Figure 5 shows two examples of
well, with a significant drop in performance once 98% of fitting a neural network to these data, minimising a condi-
the weights have been removed. tional Gaussian loss. Note that in the regions of the input
space where there are no data, the ordinary neural network
In Figure 4 we examined the distribution of the signal-to-
reduces the variance to zero and chooses to fit a particu-
noise relative to the cut-off in the network uses in Table 2.
lar function, even though there are many possible extrap-
The lower plot shows the cumulative distribution of signal-
olations of the training data. On the left, Bayesian model
to-noise ratio, whilst the top plot shows the density. From
averaging affects predictions: where there are no data, the
the density plot we see there are two modalities of signal-
confidence intervals diverge, reflecting there being many
to-noise ratios, and from the CDF we see that the 75%
possible extrapolations. In this case Bayes by Backprop
cut-off separates these two peaks. These two peaks coin-
prefers to be uncertain where there are no nearby data, as
cide with a drop in performance in Table 2 from 1.24%
opposed to a standard neural network which can be overly
to 1.29%, suggesting that the signal-to-noise heuristic is in
confident.
fact related to the test performance.
2
We used a network from the end of training rather than pick- 5.3. Bandits on Mushroom Task
ing a network with a low validation cost found during training,
hence the disparity with results in Table 1. The lowest test error We take the UCI Mushrooms data set (Bache and Lichman,
observed was 1.12%. 2013), and cast it as a bandit task, similar to Guez (2015,
Weight Uncertainty in Neural Networks
1.2 1.2
for action selection. We kept the last 4096 reward, context
0.8 xxxx xx 0.8 xxxx x
and action tuples in a buffer, and trained the networks us-
xxxxxxxxxxxxxxx x xxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxx xxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxx x
xxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxx xxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxx x
ing randomly drawn minibatches of size 64 for 64 training
x x x x xxxxxx x xxxx x x x x xxxxxx x xxxx
0.4 xx
xxxxxxxx
xx
xxxxxxxxx
xxxxxxxx
x xxxxxxxxxxxxxx xxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxx 0.4
xxxxx
xxxxxxxx
xxxxxxxxx
xxxxxxxx
xxxxxxxxxxxxxx xxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxx
steps (64 × 64 = 4096) per interaction with the Mushroom
xxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxx xxxxxxxxxx
xxxxxxx
xxxx
xxxxxx
x
xxxxxxx
xxxx
xxxxxx
x bandit. A common heuristic for trading-off exploration vs.
xxxx xxxx
0.0 xxx
x
x 0.0 xxx
x
x
exploitation is to follow an ε-greedy policy: with proba-
bility ε propose a uniformly random action, otherwise pick
−0.4 −0.4
the best action according to the neural network.
0.0 0.4 0.8 1.2 0.0 0.4 0.8 1.2 Figure 6 compares a Bayes by Backprop agent with three
ε-greedy agents, for values of ε of 0% (pure greedy), 1%,
Figure 5. Regression of noisy data with interquatile ranges. Black and 5%. An ε of 5% appears to over-explore, whereas a
crosses are training samples. Red lines are median predictions. purely greedy agent does poorly at the beginning, greed-
Blue/purple region is interquartile range. Left: Bayes by Back- ily electing to eat nothing, but then does much better once
prop neural network, Right: standard neural network. it has seen enough data. It seems that non-local function
approximation updates allow the greedy agent to explore,
as for the first 1, 000 steps, the agent eats nothing but after
approximately 1, 000 the greedy agent suddenly decides to
Cumulative Regret
10000
eat mushrooms. The Bayes by Backprop agent explores
from the beginning, both eating and ignoring mushrooms
5% Greedy and quickly converges on eating and non-eating with an al-
1% Greedy most perfect rate (hence the almost flat regret).
1000 Greedy
Bayes by Backprop
6. Discussion
0 10000 20000 30000 40000 50000
Step
We introduced a new algorithm for learning neural net-
works with uncertainty on the weights called Bayes by
Figure 6. Comparison of cumulative regret of various agents on Backprop. It optimises a well-defined objective function
the mushroom bandit task, averaged over five runs. Lower is bet-
to learn a distribution on the weights of a neural network.
ter.
The algorithm achieves good results in several domains.
When classifying MNIST digits, performance from Bayes
Chapter 6). Each mushroom has a set of features, which we by Backprop is comparable to that of dropout. We demon-
treat as the context for the bandit, and is labelled as edible strated on a simple non-linear regression problem that the
or poisonous. An agent can either eat or not eat a mush- uncertainty introduced allows the network to make more
room. If an agent eats an edible mushroom, then it receives reasonable predictions about unseen data. Finally, for con-
a reward of 5. If an agent eats a poisonous mushroom, then textual bandits, we showed how Bayes by Backprop can
with probability 12 it receives a reward of −35, otherwise automatically learn how to trade-off exploration and ex-
a reward of 5. If an agent elects not to eat a mushroom, ploitation. Since Bayes by Backprop simply uses gradient
it receives a reward of 0. Thus an agent expects to receive updates, it can readily be scaled using multi-machine opti-
a reward of 5 for eating an edible reward, but an expected misation schemes such as asynchronous SGD (Dean et al.,
reward of −15 for eating a poisonous mushroom. 2012). Furthermore, all of the operations used are readily
implemented on a GPU.
Regret measures the difference between the reward achiev-
able by an oracle and the reward received by an agent. In
this case, an oracle will always receive a reward of 5 for an Acknowledgements The authors would like to thank Ivo
edible mushroom, or 0 for a poisonous mushroom. We take Danihelka, Danilo Rezende, Silvia Chiappa, Alex Graves,
the cumulative sum of regret of several agents and show Remi Munos, Ben Coppin, Liam Clancy, James Kirk-
them in Figure 6. Each agent uses a neural network with patrick, Shakir Mohamed, David Pfau, and Theophane We-
two hidden layers of 100 rectified linear units. The input ber for useful discussions and comments.
to the network is a vector consisting of the mushroom fea-
tures (context) and a one of K encoding of the action. The
output of the network is a single scalar, representing the ex-
References
pected reward of the given action in the given context. For Shipra Agrawal and Navin Goyal. Analysis of Thompson
Bayes by Backprop, we sampled the weights twice and av- sampling for the multi-armed bandit problem. In Pro-
eraged two of these outputs to obtain the expected reward ceedings of the 25th Annual Conference On Learning
Weight Uncertainty in Neural Networks
Theory (COLT), volume 23, pages 39.1–39.26, 2012. Alex Graves. Practical variational inference for neural net-
works. In Advances in Neural Information Processing
Shipra Agrawal and Navin Goyal. Further optimal regret Systems (NIPS), pages 2348–2356, 2011.
bounds for Thompson sampling. In Proceedings of the
16th International Conference on Artificial Intelligence Karol Gregor, Ivo Danihelka, Andriy Mnih, Charles Blun-
and Statistics Learning (AISTATS), pages 99–107, 2013. dell, and Daan Wierstra. Deep AutoRegressive net-
works. In Proceedings of the 31st International Confer-
Kevin Bache and Moshe Lichman. UCI Machine Learning ence on Machine Learning (ICML), pages 1242–1250,
Repository. University of California, Irvine, School of 2014.
Information and Computer Sciences, 2013. URL http:
//archive.ics.uci.edu/ml. Arthur Guez. Sample-Based Search Methods For Bayes-
Adaptive Planning. PhD thesis, University College Lon-
Christopher M Bishop. Section 10.1: variational inference. don, 2015.
In Pattern Recognition and Machine Learning. Springer,
2006. ISBN 9780387310732. Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling
the knowledge in a neural network. In NIPS 2014 Deep
Wray L Buntine and Andreas S Weigend. Bayesian back- Learning and Representation Learning Workshop, 2014.
propagation. Complex systems, 5(6):603–643, 1991.
Geoffrey E Hinton and Drew Van Camp. Keeping the neu-
Olivier Chapelle and Lihong Li. An empirical evaluation of ral networks simple by minimizing the description length
Thompson sampling. In Advances in Neural Information of the weights. In Proceedings of the 16th Annual Con-
Processing Systems (NIPS), pages 2249–2257, 2011. ference On Learning Theory (COLT), pages 5–13. ACM,
1993.
Hugh Chipman. Bayesian variable selection with related
predictors. Canadian Journal of Statistics, 24(1):17–36, Geoffrey E. Hinton, Nitish Srivastava, Alex Krizhevsky,
1996. Ilya Sutskever, and Ruslan R. Salakhutdinov. Improving
neural networks by preventing co-adaptation of feature
Jeffrey Dean, Greg Corrado, Rajat Monga, Kai Chen, detectors. arXiv:1207.0580, July 2012.
Matthieu Devin, Mark Mao, Andrew Senior, Paul
Tommi S. Jaakkola and Michael I. Jordan. Bayesian param-
Tucker, Ke Yang, Quoc V Le, et al. Large scale dis-
eter estimation via variational methods. Statistics and
tributed deep networks. In Advances in Neural Infor-
Computing, 10(1):25–37, 2000.
mation Processing Systems (NIPS), pages 1223–1231,
2012. Emilie Kaufmann, Nathaniel Korda, and Rémi Munos.
Thompson sampling: An asymptotically optimal finite-
Sarah Filippi, Olivier Cappe, Aurlien Garivier, and Csaba
time analysis. In Proceedings of the 23rd Annual Confer-
Szepesvri. Parametric bandits: The generalized linear
ence on Algorithmic Learning Theory (ALT), pages 199–
case. In Advances in Neural Information Processing Sys-
213. Springer, 2012.
tems, pages 586–594, 2010.
Diederik P. Kingma and Max Welling. Auto-encoding vari-
Karl Friston, Jérémie Mattout, Nelson Trujillo-Barreto, ational Bayes. In Proceedings of the 2nd International
John Ashburner, and Will Penny. Variational free en- Conference on Learning Representations (ICLR), 2014.
ergy and the Laplace approximation. Neuroimage, 34 arXiv: 1312.6114.
(1):220–234, 2007.
Yann LeCun. Une procédure d’apprentissage pour réseau
Andrew Gelman. Objections to Bayesian statistics. à seuil asymmetrique (a learning scheme for asymmetric
Bayesian Analysis, 3:445–450, 2008. ISSN 1931-6690. threshold networks). In Proceedings of Cognitiva 85,
doi: 11.1214/08-BA318. Paris, France, pages 599–604, 1985.
Edward I George and Robert E McCulloch. Variable selec- Yann LeCun and Corinna Cortes. The MNIST database
tion via gibbs sampling. Journal of the American Statis- of handwritten digits. 1998. URL http://yann.
tical Association, 88(423):881–889, 1993. lecun.com/exdb/mnist/.
Xavier Glorot, Antoine Bordes, and Yoshua Bengio. Deep Lihong Li, Wei Chu, John Langford, and Robert E.
sparse rectifier networks. In Proceedings of the 14th Schapire. A contextual-bandit approach to personal-
International Conference on Artificial Intelligence and ized news article recommendation. In Proceedings of
Statistics Learning (AISTATS), volume 15, pages 315– the 19th International Conference on World Wide Web,
323, 2011. WWW ’10, pages 661–670, New York, NY, USA,
Weight Uncertainty in Neural Networks
2010. ACM. ISBN 978-1-60558-799-8. doi: 10.1145/ Patrice Y Simard, Dave Steinkraus, and John C Platt. Best
1772690.1772758. practices for convolutional neural networks applied to vi-
sual document analysis. In Proceedings of the 12th Inter-
David JC MacKay. A practical Bayesian framework for national Conference on Document Analysis and Recog-
backpropagation networks. Neural computation, 4(3): nition (ICDAR), volume 2, pages 958–958. IEEE Com-
448–472, 1992. puter Society, 2003.
David JC MacKay. Probable networks and plausible William R Thompson. On the likelihood that one unknown
predictions-a review of practical Bayesian methods for probability exceeds another in view of the evidence of
supervised neural networks. Network: Computation in two samples. Biometrika, pages 285–294, 1933.
Neural Systems, 6(3):469–505, 1995.
Michalis Titsias and Miguel Lázaro-Gredilla. Doubly
Benedict C May, Nathan Korda, Anthony Lee, and stochastic variational bayes for non-conjugate inference.
David S. Leslie. Optimistic Bayesian sampling in In Proceedings of the 31st International Conference on
contextual-bandit problems. The Journal of Machine Machine Learning (ICML-14), pages 1971–1979, 2014.
Learning Research, 13(1):2069–2106, 2012.
Li Wan, Matthew Zeiler, Sixin Zhang, Yann L Cun, and
Thomas P Minka. A family of algorithms for approximate Rob Fergus. Regularization of neural networks us-
Bayesian inference. PhD thesis, Massachusetts Institute ing dropconnect. In Proceedings of the 30th Inter-
of Technology, 2001. national Conference on Machine Learning (ICML-13),
pages 1058–1066, 2013.
Thomas P Minka. Divergence measures and message pass-
ing. Technical report, Microsoft Research, 2005. Jonathan S Yedidia, William T Freeman, and Yair Weiss.
Generalized belief propagation. In Advances in Neu-
Toby J Mitchell and John J Beauchamp. Bayesian variable ral Information Processing Systems (NIPS), volume 13,
selection in linear regression. Journal of the American pages 689–695, 2000.
Statistical Association, 83(404):1023–1032, 1988.