                                      Do BNNs Actually Behave Like Bayesian Models?



Deep ensembles, averaging over multiple MAP solutions, have often outperformed the BMA. In fact, perhaps their success

could also be attributed to the favorable generalization behavior of MAPs, when compared to non-MAP models with

posterior mass.



K.1.2. E XISTING EVIDENCE

It has been widely observed, e.g. in Izmailov et al. (2021a;b), that the Bayesian model-averaged predictive is less robust to

covariate shift than the MAP. HMC is shown to significantly underperform the MAP solution on datasets like MNIST or

CIFAR-10 with corruptions introduced to the test set, even in cases where HMC outperforms MAP on the task without shift.

A concrete example for robustness of MAP is described in Izmailov et al. (2021a). In the simplest case, consider “dead”

pixels where an input pixel is always set to zero on the train set. Under most current BNN priors (weights independent with

a mode at zero) the MAP solution will set the weights associated with this pixel to zero. However, in the Bayes posterior

those weights are distributed according to their prior, therefore the BMA solution depends on the value of this pixel in test.

This leads to higher variance in the estimator and may lead to worse generalization.



K.1.3. S PURIOUS CORRELATIONS EXPERIMENT

To further demonstrate Bayesian model averaging leading to worse robustness, we consider a regression task with spurious

correlations. We consider a task with standard Gaussian covariates with pairwise correlation ρ in train, but independent in

test. The response is generated according to Y | x ∼ N (x1 , σ 2 ). We train a BNN on this model.

In this case, all features are informative in train, but the first feature is slightly more informative than the rest. We may

expect MAP to put predictive power on the most informative feature, and the Bayes posterior to average over models picking

different predictive features too.









Table 1: Mean squared errors on spurious correlation task. The use of Laplace prior, equivalent to lasso regularization

in linear models, induces sparsity: MAP selects the optimal model, picking the first feature only, whereas HMC averages

over the optimal and suboptimal models. Under Gaussian prior, both solutions pick many features instead of sparsity in the

solutions. This also demonstrates the strong, and sometimes counter-intuitive effects that changing to a seemingly similar

prior can have on the inference process, highlighting that simple weight-space priors do not capture our prior beliefs well.

These results generalize to Bayesian linear regression and other BNN architectures.





                                                 L APLACE PRIOR      G AUSSIAN PRIOR

                                        MAP               0.0046               0.9059

                                        HMC               0.1479               0.9045









This experiment demonstrates that the MAP may indeed be more regular, leading to better generalization performance, and

converging to the optimal model faster. On the other hand, one might argue that if the BNN prior was to capture our beliefs,

the Bayes estimator is decision theoretically optimal under the L2 loss, so its behavior is reasonable. However, the MSE on

the shifted dataset is in effect a different loss function. We argue, with today’s BNN priors that cannot be said to capture our

beliefs well, one should ask which behavior leads to better practical performance in real use cases.



K.2. Classical Misspecification Experiment: Does Posterior Get Better with More Data?

The Bernstein–von Mises theorem states that the (well-specified) Bayesian posterior asymptotically collapses to the true

model. If the true model is, in fact, in the range of candidate models, this consistency property is, of course, desirable.

If the observation model is misspecified, under some conditions the Bernstein–von Mises theorem still holds (Bochkina,

2019), but this collapse leads to inconsistency, preventing the inference scheme from converging to a predictive distribution

that matches the true distribution the closest (e.g., in KL divergence).



                                                              35

