Two models trained with the exact same architecture, dataset, and hyperparameters can tie within a tenth of a percent on an i.i.d. test set yet disagree on 50.9% of predictions once the input distribution shifts. Alexander D’Amour and 39 co-authors formalize this failure mode as underspecification: an ML pipeline admits a large set F* of risk-equivalent solutions on held-out i.i.d. data that encode incompatible inductive biases, letting arbitrary choices like random seeds decide how a deployed model behaves.
- Vision disagreement triples under natural shift: 50
ResNet-50runs score75.9% +/- 0.1%on ImageNet (and disagree on 16.0% of pairs), yet diverge to 50.9% pairwise disagreement on ObjectNet (25.3%vs.6.4%for 30 JFT-300M-pretrainedBiTmodels). - 100 BERT runs split on shortcuts and bias: across 5 pretraining seeds times 20 fine-tuning seeds (
BERT-Large, 340M parameters), MNLI matched accuracy stays in 83.4% to 84.4%, yet correlation with the HANS shortcut stress test is near zero (Spearman rho = 0.07), and gender-occupation correlation on STS-B spans 0.30 to 0.70. - Medical imaging calibration breaks on unseen hardware: 10 identically trained Inception-V4 diabetic retinopathy models match calibration on four training cameras, then diverge in both AUC spread (
z = 2.47, p = 0.007) and calibration on held-out Camera 5. - Clinical EHR decisions flip on disjoint patients: 15 RNNs predicting acute kidney injury across 703,782 VA patients stay within 34.59 to 36.61 normalized PRAUC on test data, yet shifting timestamps and lab panels flips risk alerts on largely non-overlapping patient subsets across seeds.
Underspecification vs. Structural Mismatch
Many robustness failures stem from structural mismatch, where the training data forces every i.i.d.-optimal predictor to exploit a non-robust or spurious feature (such as surgical ink markings around cancerous skin lesions). In structural mismatch, all identically trained models break in the same way.
Underspecification is a different, quieter failure mode: the training distribution contains enough signal to learn a credible predictor, yet not enough information to distinguish credible solutions from brittle shortcuts inside F*. The authors first demonstrate this mathematically in three simple settings: an epidemiological SIR model where early data only identifies beta - 1/D (causing different initializations to predict epidemic peaks orders of magnitude apart), an infinitely wide random-feature model where an adversarial mean shift triples one model’s error while leaving an independent draw untouched, and 1,000 linear polygenic risk scores for intraocular pressure in UK Biobank (Spearman rho = 0.135 between British i.i.d. error and non-British transfer error).
To expose underspecification in production deep learning, D’Amour et al. apply a simple protocol: train an ensemble that varies only random seeds (or fine-tuning initialization / RNN cell type), verify tight i.i.d. test scores, and evaluate the ensemble on stratified, shifted, and contrastive stress tests.
Key Findings
Across every deep learning domain tested, random seed variation drives systematic behavioral differences that i.i.d. validation cannot rank:
- Pretraining seeds bake in NLP shortcuts: extending fine-tuning seed studies on BERT, D’Amour et al. show that the pretraining seed systematically shifts gender correlation (
F = 9.66on STS-B,F = 7.91on OntoNotes coreference) and NLI stress-test accuracy (F = 25.11on spelling perturbations,F = 4.95on HANS), with near-zero rank correlation against MNLI accuracy. - Scale alone does not eliminate underspecification: pretraining
BiT ResNet-101x3on 300M images lifts absolute accuracy (86.2%vs.75.9%) and shrinks baseline variance, yet leaves 5x wider accuracy spread on ObjectNet and 19x wider spread on ImageNet-C contrast than on clean ImageNet. - Constraints need not hurt i.i.d. accuracy: ablating the timestamp feature from the VA kidney-injury RNN matches the baseline ensemble’s normalized PRAUC (
0.368vs.0.346 to 0.366), though collinear lab-order counts still leak time-of-day with 85% auxiliary probe accuracy. - Ensembling is not a cure-all: Appendix A shows that averaging 50 ResNet-50 predictions improves clean ImageNet accuracy, yet on high-variance corruptions like ImageNet-C pixelation even the full 50-model average fails to beat the single best checkpoint.
Caveats and Builder Takeaway
Perturbing only random seeds gives a conservative lower bound on F*; real training pipelines also vary batch sizes, optimizers, data ordering, and implementation details that skew benchmark comparisons. Furthermore, distinct stress tests correlate weakly with one another (Figure 12), so passing a typo test says nothing about lexical-overlap shortcuts or subgroup calibration.
For production ML teams, a single test score certifies one checkpoint on one data slice, not an architecture or training recipe. Build application-specific stress tests for hardware shifts, operational shortcuts, and protected subgroups, evaluate multiple seeds before claiming robustness gains, and use constrained selection rather than blind model averaging when deployment behavior matters.


