TL;DR
If you make a neural network wide enough, you can average the weights of two independently trained models and get a working network—no neuron alignment required. This paper shows that for Bayesian neural networks, that trick only half-works: the average weights connect smoothly, but the Bayesian predictions (which sample around those weights) still fall off a cliff. The authors trace this to a roughly 4× drop in hidden-layer signal strength at the midpoint, and show that simply shrinking the posterior standard deviations in the middle of the path removes most of the Bayesian barrier.
What Problem Does This Paper Address?
Linear mode connectivity (LMC) asks whether you can take two neural networks trained from different random seeds, interpolate their weights along a straight line, and get low loss all the way across. Usually, the answer is no—because hidden units can be permuted, averaging them scrambles the features. Aligning the units fixes this, and recent work showed that simply making deterministic networks wider also induces connectivity once the softmax temperature is calibrated.
In Bayesian neural networks (BNNs) trained with mean-field variational inference (MFVI), every weight has both a learned mean and a learned standard deviation. Predictions come from the Bayesian model average (BMA): sampling many weight matrices from the posterior and averaging their predicted probabilities. Prior work found that unaligned BNN posteriors have a large BMA loss barrier that only shrinks with width after permutation alignment. That left an open question: on unaligned paths, do the posterior means fail to connect too, or does width connect the means while leaving the BMA broken?
Methods
The authors train ResNet20 models on CIFAR10 using MFVI across width multipliers of ×1, ×8, ×16, and ×32 (primarily using Filter Response Normalization and Thresholded Linear Units, with a BatchNorm ResNet20 check). For each width, they take pairs of independently trained posteriors and interpolate them without permutation alignment along the Wasserstein $W_2$ geodesic—which amounts to linearly interpolating both the means $\mu_\tau$ and the standard deviations $\sigma_\tau$.
Along each path, they evaluate both the deterministic mean network and the BMA (using 128 posterior samples) on accuracy and temperature-calibrated negative log-likelihood (NLL).
To diagnose why the BMA fails at the midpoint ($\tau = 1/2$), they measure each layer's sampling-noise energy relative to its mean-output energy ($N_\tau / Z_\tau$). Comparing the midpoint to the endpoints gives a ratio $D$, which factors into a weight-gain ratio $Q$ (how much weaker the interpolated weights' output is per unit input) and a noise-per-input-energy ratio. They further decompose $Q = 2\Gamma / (1 + \eta)$ into:
- $\Gamma$: how much gain the endpoint weight matrices lose when applied to the midpoint input.
- $2 / (1 + \eta)$: the further gain drop from averaging those two outputs together.
Finally, they propose a simple evaluation-time intervention: keep the interpolated means fixed, and multiply all posterior standard deviations along the path by $$c(\tau) = 1 - 2\tau(1 - \tau) = (1 - \tau)^2 + \tau^2.$$ This quadratic equals 1 at both endpoints (leaving the trained posteriors untouched) and 0.5 at the midpoint.
Datasets
All experiments are conducted on CIFAR10 (50,000 training images), using a 2,000-image calibration split from the test set to fit softmax temperatures for the calibrated NLL barrier. No new benchmarks are introduced.
Key Insights and Ideas
- Width connects the means, not the BMA: As width grows from ×1 to ×32, the calibrated NLL barrier of the posterior mean network drops sharply, just like in deterministic networks. Meanwhile, the BMA barrier stays high, and its midpoint accuracy collapses.
- The culprit is layer gain, not larger noise: Posterior standard deviations barely change along the path. Instead, at ×16 and ×32, each hidden layer's interpolated mean weights produce a much smaller output per unit input at the midpoint—a median gain drop of about 4× ($Q \approx 4$). That makes the exact same weight noise 4× larger relative to the mean signal.
- Why the 4× drop happens: The gain drop splits into two factors of ~2. Averaging the two endpoint outputs cuts gain in half because their outputs are nearly orthogonal ($\eta \approx 0$). Applying the endpoint weight matrices to the midpoint input cuts gain in half again ($\Gamma \approx 2$) as width grows and the mean networks become connected.
- Shrinking interior standard deviations restores the balance: Scaling midpoint standard deviations by 0.5 cuts the sampling noise energy by 4×, matching the 4× drop in layer gain. The authors prove that under idealized conditions, the $c(\tau)$ schedule keeps the layer noise ratio at or below its endpoint value everywhere along the path.
Key Results
- Mean vs. BMA gap: At ×32, the mean network's midpoint accuracy approaches its ~80% endpoint accuracy, whereas the original BMA's midpoint accuracy drops to ~24%.
- Noise-to-signal match: At ×16 and ×32, the median layer noise ratio $D$ is 3.94 and 3.81, respectively, agreeing with the gain ratio $Q$ to within 1% in every hidden layer.
- Rescaling removes most of the barrier: Applying the $c(\tau)$ rescaling to the standard deviations removes most of the calibrated BMA NLL barrier for every model pair at ×16 and ×32, bringing the BMA loss curve close to the mean network's.
- BatchNorm doesn't save the BMA: In BatchNorm ResNet20 models (×1 to ×8), the same separation appears—even when BN statistics are recomputed for every sampled network.
Limitations and Future Work
The authors note that their layerwise analysis is evaluated on three pairs of FRN ResNet20 models per width on CIFAR10. Under their training setup, the learned standard deviations varied little within each layer (staying close to the value obtained from the KL term alone), so it remains an open question how this behavior changes for approximate inference methods that produce more heterogeneous weight scales. Additionally, when they matched the midpoint noise ratio at the endpoints by doubling endpoint standard deviations, ×16 models still lost more accuracy at the midpoint than at the endpoints (a 15.2 percentage-point gap, versus −1.9 at ×32), suggesting that layerwise noise ratios do not fully determine BMA loss—likely because smaller-capacity networks are less robust to errors propagated across layers.
Summary updated