                                        Do BNNs Actually Behave Like Bayesian Models?



D. CIFAR and IMDB Experimental Setup

The setups of the CIFAR and IMDB experiments are entirely based on the work of Izmailov et al. (2021b). We de-

liberately choose a working codebase and replicate the exact settings from one of the prominent papers in the field

where Bayesian algorithms are shown to significantly outperform point predictions. This is to ensure that our experi-

mental findings around shortcomings are not merely an artifact of suboptimal hyper-parameterization. Specifically, we

follow the hyper-parameters from Table 4 of Izmailov et al. (2021b). We make our fork of their codebase available at

github.com/pitukg/bnn_seq_vi/tree/master/bnn_hmc.



E. Martingale Posterior Experiment: Further Details and Results

E.1. Estimation

We described the estimation of the empirical martingale posterior distribution in the concrete setting of the CIFAR-10

experiment in Section 6. This section elaborates further on the methodology to sample synthetic labels, and calculate

bootstrapped confidence intervals for reproducibility.

Recall   that we wish to do predictive resampling of the set of observations Y ∗ at x∗ given the posterior predictive

  p(· | θ; x∗ )π ′ (dθ). Given the conditional independence of the Bayesian setup, the observation model factorizes.

R



This gives us the following procedure: use the π ′ posterior to sample a setting of the parameters θ, then noise the predictions

fθ (x∗ ) through the observation model Y ∗ ∼ p(· | θ) = p(· | fθ (x∗ )). In the classification setting, this “noising” means

calculating the logits from the sampled model θ, and drawing independent categorical variables according to those logits for

each unlabeled observation. For regression, it similarly means noising the predictions with independent variables according

to the observation model.

Given access to n i.i.d. synthetic labelings {ŷi∗ }ni=1 , we approximate a retrained posterior π̂i′′ (θ) = π(x,y)∪(x∗ ,yˆ∗ i ) (θ) for

each. Then, we want to ensemble these posteriors to produce the empirical martingale posterior. A group of k samples is

drawn from the individually retrained synthetic posteriors each {θ̄ij ∼ π̂i′′ (·)}kj=1 . Under Bayesian inference, according to

Section 6, each θ̄ij is distributed as π ′ , although they are not independent within groups. Specifically, any integrable test

function h(θ) is consistently approximated by our empirical martingale posterior as

                                                                    n   k

                                                                1 XX

                                                    Eh(θ) ≈               h(θ̄ij ).

                                                               nk i=1 j=1





We could pick any (integrable) test function to check the equivalence of the two distributions by comparing its expectation

under both. We pick the Bayesian model averaged predictions from Section A. The model-averaged logits of the individually

retrained posteriors are averaged to get our empirical martingale posterior BMA.

For VI, we simply sample n = 20 settings of the parameters corresponding to ordinal seeds, and k = 20 ensembling

samples. For SGLD, we take n = 18 equally spaced checkpoints post-warmup, from 1450 to 9950, using all k = 900

correlated Markov chain samples to ensemble the posteriors. The seeds used to draw the noising variables for labeling

images match the seeds for the π ′ samples (for VI), or the checkpoint indices (for SGLD).

To get confidence intervals on our martingale posterior distribution test metrics, we resample and ensemble these individually-

retrained synthetic posterior model averages with replacement, yielding a bootstrap confidence interval around the empirical

                                                  i.i.d.

martingale posterior BMA. Concretely, let {Bi ∼ U[1, n]}ni=1 be random bootstrap indices resampling the individually

retrained synthetic posteriors with replacement. The bootstrapped value of a test statistic h(θ) is given by

                                                                    n    k

                                                                1 XX          j

                                                  h(B) (θ) =              h(θ̄B   ),

                                                               nk i=1 j=1       i









whose quantiles give an asymptotic confidence interval for our empirical martingale posterior mean estimator above, because

between groups, the θ̄ij are independent.









                                                                  20

