Agree on the Data, Disagree Off It: Placing Seed Diversity Where It Is Free

A deep ensemble trains the same network several times from different random starting weights and averages the predictions. It is still one of the most reliable ways to get better accuracy, calibrated confidence, and warnings on unfamiliar inputs. The literature disagrees about why it works. One line of work treats disagreement between training runs as the problem: the variance across random seeds bounds the generalization gap, and training two models to agree with each other lowers test error. Another line treats that same disagreement as the solution: independently seeded networks land in genuinely different solutions, and their disagreement is what gives ensembles their calibration and robustness under corruption. Both cannot be right about the same disagreement.

We propose that they are right about different disagreement. On inputs that look like the training data, a high-capacity network usually knows the correct answer, so forcing disagreement there costs accuracy. On inputs far from the training data there is no correct answer to sacrifice, and disagreement there is exactly the uncertainty signal we want. The proposal builds and tests an ensemble that is trained jointly, with a penalty that makes members agree on training-like inputs. A guard term keeps their disagreement on cheap, label-free "off-support" probe inputs (transformed images that no longer resemble the training distribution) from collapsing. If the split is real, ensembles should become more accurate in-distribution and lose nothing, or gain, out of distribution. Whether the guard is even needed is itself a decisive, falsifiable question.

Core Claim

Seed-induced diversity should be measured and controlled separately on two regions: on the support of the training distribution and off it. The claim has three parts.

First, in-distribution, seed disagreement is mostly harmful or useless. In-distribution, the true across-seed variance of accuracy is tiny: a 0.03% standard deviation against 0.15% observed test-set noise on CIFAR-10, according to On the Variance of Neural Network Training with respect to Test Sets and Distributions. The Best Deep Ensembles Sacrifice Predictive Diversity and Pathologies of Predictive Diversity in Deep Ensembles show that for large networks, pushing predictions apart forces correct models into errors (the "correctness pathology").

Second, off-distribution disagreement is where seeds actually differ, and where the ensemble's value lives. The same variance study finds 6x to 58x larger across-seed variance under distribution shift. Revisiting Deep Ensemble for Out-of-Distribution Detection reports out-of-distribution false-positive rates swinging between roughly 46% and 85% across seeds at fixed in-distribution accuracy.

Third, the agreement penalty used by Inconsistency, Instability, and Generalization Gap of Deep Neural Network Training and the diversity penalty studied by Abe and colleagues are applied on training inputs. Neither line asks whether such a penalty also erases the off-support disagreement that Deep Ensembles: A Loss Landscape Perspective credits for robustness. We measure this directly and add a guard if it does.

The correctness pathology is an argument about inputs that have a correct label. On off-support probes nothing is correct, so holding up disagreement there cannot force a correct model into an error. This is a cheap, partial answer to the "oracle challenge" left open by the pathologies papers: they ask for diversity only on points a model would get wrong, and we ask for it only on points where no model can be right.

Research Program

The method trains $M$ members from independent initializations, in one joint run with shared mini-batches. Each member $m$ with parameters $\theta_m$ minimizes

$$ L_m = \mathrm{CE}(x, y; \theta_m) + \lambda\, \mathrm{KL}\big(\bar p(x) \,\|\, p_m(x)\big) + \mu\, \max\big(0,\ \tau - D_{\text{off}}(\tilde x)\big). $$

Here $\mathrm{CE}$ is cross-entropy on a labeled, augmented training input $x$ with label $y$. $p_m(x)$ is member $m$'s predicted class distribution, and $\bar p(x)$ is the ensemble-mean distribution with gradients stopped. The middle term is therefore an agreement penalty of strength $\lambda$. It generalizes the two-model co-distillation of Johnson and colleagues to $M$ members at $O(M)$ cost by comparing each member to the mean rather than to every other member. This contrasts with the $O(M^2)$ pairwise discriminators of DICE.

$\tilde x$ is an off-support probe: a training image destroyed by transforms chosen to share no family with any evaluation shift, namely patch permutation and Fourier phase randomization. $D_{\text{off}}$ is the Jensen gap on probes, meaning the average divergence of members from their mean. $\tau$ is the probe Jensen gap that an unpenalized independent ensemble shows at the same epoch, measured once in a pilot run. The guard, of strength $\mu$, only pushes back if agreement training drives off-support disagreement below what independent seeds would naturally produce. It never asks for more than that, so it cannot become a general "be diverse" term.

The analysis side reports every ensemble's Jensen gap separately on held-out in-distribution data, on probes, and on each real shift benchmark. This places ensembles on a two-dimensional version of the diversity–accuracy plane of Fort and colleagues, with one axis for on-support diversity and one for off-support diversity. Because seed noise can masquerade as method gains, all comparisons use multiple independent ensemble replicates. Differences are judged against the calibration-based test-noise estimator from the variance study, which that paper reports is 70.5x more accurate than the binomial approximation. A 0.2-point gain on CIFAR-10 is not distinguishable from noise without this.

The theory side gives a reason to expect the split to exist. Disentangling the Predictive Variance of Deep Ensembles through the Neural Tangent Kernel shows that in the wide-network limit part of seed variance comes from different starting functions, and this part grows with distance from the training data. Another part comes from different gradient kernels and depends on the direction of an input relative to the training data. An agreement penalty on training points constrains function values on the data, but in that regime it need not equalize the kernels off it. We will check whether the kernel-driven part survives agreement training in finite networks, where large learning rates break the lazy-training assumption.

Baselines

The naive reference point is a standard deep ensemble of $M$ independently trained ResNet-18 or WideResNet-28-10 models, as in Fort and colleagues. The same members, same augmentation, and same epochs are used, and members are tuned individually. It is the "do nothing" option, and the variance study suggests it may already be hard to beat in-distribution. We also report a single model and an $M+1$-member independent ensemble, so that any gain can be priced in members.

The strongest in-distribution competitor is the agreement penalty alone, with $\mu = 0$. This is Johnson-style co-distillation extended to $M$ members and equivalent in spirit to the positive diversity penalty that Abe and colleagues find benign or helpful in 74% of large-network ensembles. It is also the ablation that isolates the guard: if it matches the full method on out-of-distribution metrics, the guard is unnecessary.

The strongest competitor that encourages diversity is DICE. DICE reports 77.51% against 76.78% for an independent baseline with a 4-branch ResNet-32 on CIFAR-100, and out-of-distribution AUROC on LSUN rising from 74.0 to 77.2.

For out-of-distribution detection, the strongest competitor is mode ensembling of intermediate features and logits from Revisiting Deep Ensemble for Out-of-Distribution Detection. That paper reports RankFeat average FPR95 falling from 63.06% to 40.92% with a 4-mode ensemble on ImageNet. A second out-of-distribution reference is the centered ensemble from the NTK paper, which reports LSUN AUROC rising from 0.891 to 0.895 for WideResNet-28-10. Our method's outputs can be fed into both the RankFeat and centered scoring rules, so the comparison is between training procedures under a fixed scoring rule.

Finally, joint hyperparameter tuning and joint early stopping from On Joint Regularization and Calibration in Deep Ensembles is a cheap competitor for in-distribution NLL and calibration, and we apply it to every arm.

Fairness rules are as follows. Every arm uses the same data, the same total training epochs, and the same $M$. Every arm gets an equal hyperparameter search budget, covering $\lambda$ and $\mu$ for ours, DICE's weight for DICE, and learning rate and weight decay for all. Selection uses an in-distribution validation split only, never a shift benchmark. Beating a baseline means a gain larger than the noise estimate across at least five ensemble replicates. On ID metrics the comparison is in-distribution NLL and accuracy; on out-of-distribution metrics it is AUROC and FPR95 on LSUN and SVHN, plus Brier score on CIFAR-10-C. The headline result we need is to beat the agreement-only ablation on the out-of-distribution metrics while matching it in-distribution.

Why not just…?

Why not just use an independent deep ensemble? It is the honest default, and on CIFAR-10 in-distribution accuracy the room above it is small. Our in-distribution case rests on Johnson and colleagues' reported gains from agreement training. In the file those numbers come from semi-supervised and fine-grained settings, for example Food101 error falling from 6.00% to 5.77%, rather than from multi-member ensembles. If the agreement and guard ensemble does not beat the $M$-member independent ensemble on NLL and calibration beyond test noise, the proposal reduces to the measurement result alone, and we will report it that way.

Why not just add the agreement penalty and skip the guard? This is the real threat. The NTK decomposition suggests the directional, kernel-driven part of seed disagreement might survive in-data agreement on its own, which would make the guard redundant. The experiment settles it directly. We plot probe and benchmark Jensen gaps against $\lambda$ with $\mu = 0$. If off-support disagreement stays near its independent-ensemble level while in-distribution disagreement falls, the guard is dropped, and the contribution becomes the finding that agreement on the data is free off it. If off-support disagreement falls in step with in-distribution disagreement, the guard is justified.

Why not just diversify features as DICE does? DICE sidesteps the correctness pathology by diversifying internal features, but it does so everywhere. It pays for this with adversarial min-max training and quadratic cost in $M$, and the file reports no comparison of it against agreement training. Our method targets diversity only where labels do not exist, at linear cost. The head-to-head on CIFAR-100 accuracy, and on LSUN and SVHN detection, at equal training budget shows which placement of diversity matters.

Why not just ensemble features at test time, as in mode ensembling? Mode ensembling changes how members are combined, not how they are trained, so it is complementary rather than competing. We apply it on top of every training arm. If gains from our training vanish once features are fused, then the useful off-support diversity was already present in independent seeds, which is itself informative.

Proposed Experiments

The first stage is measurement. On CIFAR-10 and CIFAR-100 with ResNet-18 and WideResNet-28-10, we sweep $\lambda$ with $\mu = 0$ at $M = 4$ and report three quantities against $\lambda$: in-distribution Jensen gap, probe Jensen gap, and benchmark Jensen gap on CIFAR-10.1, CINIC-10, CIFAR-10-C, LSUN, and SVHN. The decisive check is whether the ratio of off-support to on-support diversity rises with $\lambda$, which is our prediction, or stays flat, which would mean the agreement penalty is global and our premise fails.

A second measurement repeats this with a ResNet-8, where the pathologies papers find diversity helpful in 73–78% of cases. The split should matter less there, because small models are not confidently correct in-distribution.

The second stage is the full method against all baselines at matched budget. It runs on CIFAR-100 and TinyImageNet, then on ImageNet with ResNet-50, with OOD detection on iNaturalist, SVHN, and LSUN following the mode-ensembling protocol, and shift accuracy on ImageNet-R and ImageNet-Sketch. ImageNet-R and ImageNet-Sketch are where across-seed variance is largest according to the variance study. Besides mean performance, we report across-replicate variance of the ensemble's own out-of-distribution metrics. A guard that works should also make ensembles less of a seed lottery on shift, closing part of the 6x–58x gap.

A held-out-probe control is essential. Probes are built from transform families disjoint from every evaluation corruption, and a second variant uses a different disjoint family. Gains that appear only when probe and test transforms are similar would mean the guard is doing outlier exposure, not restoring natural seed diversity. In that case we would not claim the mechanism.