When a clinical prediction model is checked at a second hospital, the result is treated as a fixed property of the model's design: this architecture, trained on this data, transports or it does not. That check is almost always run on one trained copy of the model. Work on emergent abilities in language models suggests this can mislead. Distributional Scaling Laws for Emergent Capabilities shows that near a capability threshold, models trained identically except for the random seed split into two groups: some acquire the skill and some fail completely. The sharp "jump" seen in a single run is just the scale at which the success group becomes the majority. We propose to test whether the same thing happens with cross-hospital transfer. The question is whether small foundation models trained on electronic health records (EHR, the structured stream of diagnoses, labs, and procedures in a patient's chart) differ mainly by seed in whether they transport, while looking interchangeable on the home hospital's own test set.
The claim in two sentences: at the small scales EHR models are confined to, external validity may be a lottery over training seeds rather than a smooth function of scale or pre-training loss, and internal validation is blind to which seeds won. If that is true, single-checkpoint external validation is a noisy measurement, and the useful question becomes whether a cheap internal stress test can identify the winning seeds before any outside data is seen. This setting suits a many-seed study. Exploring Scaling Laws for EHR Foundation Models finds that models trained on MIMIC-IV stop improving at about 28 million parameters because the data run out. We cannot scale far, but we can afford to train hundreds of seeds.
Core Claim and How It Differs From Prior Work
The closest existing work is the EHR scaling-law study just cited. It trains Llama-style models from scratch on MIMIC-IV and shows that lower validation loss tracks better zero-shot ICU mortality prediction, with ROC AUC rising from 0.68 to 0.75 as loss falls from 1.0 to 0.85. It evaluates only inside MIMIC-IV, uses one run per configuration, and never asks about another hospital. EHRSHOT and Act or Defer evaluate a single 141M-parameter model, CLMBR-T-base, entirely within Stanford data. These papers motivate the gap: nobody has measured how transport varies across seeds. The obvious combination of the two directions would be "plot external AUROC against pre-training loss and look for a tipping point." We do measure that curve, but it is not our main object. Our main object is the distribution over seeds of external performance at fixed scale and fixed internal loss, together with a test of whether internal signals can predict where a seed lands in that distribution.
Two emergent-abilities papers constrain the design. Are Emergent Abilities of Large Language Models a Mirage? shows that most apparent jumps come from all-or-nothing metrics. Any bimodality we report therefore has to survive continuous metrics such as log loss and Brier score, not only threshold metrics such as sensitivity at a fixed alarm rate. Understanding Emergent Abilities of Language Models from the Loss Perspective finds tipping points that persist under continuous metrics once pre-training loss crosses a threshold. It also notes that such thresholds do not carry over across corpora, so we measure thresholds within our own setup and do not import them. The external-validation literature supplies the failure mode we expect seeds to differ on. The OHDSI stroke study reports a Lasso model with internal AUC 0.75 and mean external AUC 0.71 across ten databases, which fell to 0.50 on a German outpatient database lacking acute inpatient signals. Imaging reviews such as the prostate radiomics review document site-specific acquisition artifacts that models latch onto. Our hypothesis is that some seeds latch onto these site-specific shortcuts and others do not.
Research Program
We pre-train decoder-only transformers on MIMIC-IV with the boundary-preserving batching and IsoFLOP-guided size choices of the EHR scaling-law paper. The grid spans roughly six model sizes from about 1M parameters up to and just past the 28M data wall, at two token budgets per size, with about twenty seeds per cell. Every model is small, so the grid is feasible on a modest academic budget.
The derivation and validation phases stay strictly separate, as in clinical practice. In the derivation phase, a linear probe for each task is fit on frozen MIMIC-IV representations using MIMIC-IV labels. In the validation phase, the backbone and probe are frozen and applied to EHRSHOT's Stanford cohort without any refitting. Tasks are those definable in both sources from the EHRSHOT families: operational outcomes such as long length of stay, readmission, and ICU transfer, and abnormal-lab prediction such as thrombocytopenia and hyperkalemia. Labels are recomputed with identical definitions in both cohorts. Both datasets are mapped to a shared standard clinical vocabulary, and the mapping is fixed before any model is trained so it cannot be tuned toward a result. We report the fraction of events that map in each cohort, because coding mismatch is itself one of the shifts under study.
The shift between the two cohorts is large. EHRSHOT patients average 95 times more encounters than MIMIC-IV patients, a contrast between an ICU-centred record and a full longitudinal one. That is the kind of acuity mismatch that broke the OHDSI model. As a weaker, within-site comparison, we also report a temporal split of MIMIC-IV.
To keep seed effects separate from test-set noise, all seeds are scored on the same external patients, and differences are computed in a paired way. We define the transport gap of seed $s$ on a task as
$$\Delta_s = \ell_{\text{ext}}(s) - \ell_{\text{int}}(s),$$
where $\ell_{\text{ext}}$ and $\ell_{\text{int}}$ are the probe's mean log loss on the external and internal test sets. We then split the variance of $\Delta_s$ within a grid cell into a seed component and a resampling component, estimating the latter by bootstrapping patients. This answers the "evaluation resolution" concern from the emergence literature directly. Bimodality is tested with a dip test and with a one-versus-two-component mixture comparison on $\Delta_s$. Each test is run separately under log loss, Brier score, AUROC, and sensitivity at fixed specificity.
The second half of the program asks whether winning seeds can be identified without external data. Our candidate is an internal stress test built only from MIMIC-IV. It measures a seed's degradation under code-level perturbations that mimic cross-site coding differences: dropping local lab item codes, collapsing ICD-10 codes to ICD-9 granularity, and thinning lab panel frequency. It also measures degradation on a held-out later time period. As a secondary, mechanistic check, we train TopK sparse autoencoders following Probing Clinical Concepts in an EHR Foundation Model via Sparse Autoencoders, which found that a 27.5M-parameter MIMIC-IV model forms discrete features for multi-code syndromes. We ask whether seeds that transport well have syndrome features that still fire on matched patients in EHRSHOT, and whether seeds that transport poorly rely more on prevalence- or coding-driven features. That paper left this question open because it was confined to one site.
Baselines
The naive reference point is what clinical papers do now. One seed is trained per configuration, the checkpoint is chosen by internal validation AUROC, and it is reported externally. For each grid cell we simulate this by choosing among our seeds by internal AUROC alone. The main comparison is the external log loss of the seed this rule picks against the seed our stress test picks, from the same pool, with the same probe training and tuning budget.
The strongest existing method for transport is classical count-based modeling. We train gradient boosting machines on code counts with ontology expansion, as in EHRSHOT, and Lasso logistic regression on counts, as in the OHDSI study, using the same MIMIC-IV derivation labels, the same vocabulary mapping, and a hyperparameter search budget matched to the probe search. We found no reported result on Lacuna for any MIMIC-IV-to-EHRSHOT transfer. The nearest published reference is the OHDSI Lasso's mean external AUC of 0.71 against 0.75 internally, which is a different task and network and serves only as a scale for what normal degradation looks like.
The third baseline is a deep ensemble that averages the predictions of all seeds in a cell. It is the obvious remedy for seed variance and is evaluated at its true inference cost. An oracle that picks the best seed using external labels gives the upper bound.
The ablation that isolates our key ingredient replaces the coding-perturbation stress test with an ordinary held-out internal split of equal size. If the ordinary split selects as well, the perturbations add nothing.
The proposal beats the naive rule if, across tasks and grid cells, the stress-test-selected seed has lower external log loss, with a paired bootstrap interval excluding zero, and recovers a substantial share of the gap between the naive rule and the oracle. It beats the classical baselines on the scientific question if the good seeds transport better than gradient boosting does. If they do not, gradient boosting is the honest recommendation.
Why not just…?
Why not just ensemble all the seeds and stop worrying about which one won? This is the most serious practical threat. If a twenty-seed ensemble matches the oracle seed externally, the deployment answer is "ensemble," and selection matters mainly when inference cost or a single interpretable model is required. Even then, the measurement finding stands: published single-checkpoint external validations would carry a seed-driven error bar nobody reports. We will report the ensemble's external performance against the selected single model at equal cost, using an ensemble of the top few stress-test seeds. We will say plainly if plain averaging wins.
Why not just use gradient boosting or Lasso, which already transport? The evidence for this is real. Gradient boosting caught up with CLMBR-T-base in EHRSHOT once more than 64 labels were available. A 39-feature gradient boosting model reached 91% external accuracy in the lower GI bleeding study. The OHDSI Lasso held a 0.71 mean external AUC. Count models also have little seed variance, so they set the floor that any foundation-model seed must clear. The grid shows whether that floor sits above, inside, or below the seed distribution. If it sits above, the lottery is still worth documenting, but the clinical takeaway favors the simpler model.
Why not just conclude that any bimodality is a metric artifact? That would be the right conclusion if bimodality appeared only under threshold metrics, as the mirage paper predicts. It is why every distributional test is repeated under log loss and Brier score. A gap distribution that is two-moded under log loss cannot be produced by thresholding. The loss-perspective and distributional-scaling papers both report structure that persists under continuous metrics, so either outcome is plausible and the experiment decides between them.
Why not just wait for larger multi-site corpora and study emergence at real scale? The scaling-law paper estimates that more than 10B tokens would be needed to move past the data wall, and no open corpus of that size exists. Seed variance, though, is a question about the regime that deployed EHR models actually occupy. That regime is the one where many seeds are cheap.
Decisive Checks
The first check is whether seed variance in the external transport gap exceeds patient-resampling variance in at least some grid cells. If it never does, transport is effectively fixed by scale and data, and we report that null result with its confidence bounds. The second is whether any excess variance is two-moded under log loss and not only under thresholded sensitivity. The third is whether the size of the seed spread peaks near a particular scale or loss band, as the distributional-scaling account predicts, rather than shrinking steadily with scale.
The fourth check is whether stress-test selection beats internal-AUROC selection externally while the ordinary-split ablation does not. A positive result here would also give a concrete reason to revisit conformal "act or defer" guarantees calibrated at one site. Those guarantees assume the calibration and deployment data are exchangeable, and seed-dependent transport would break that assumption differently for each checkpoint.
References
- Random Scaling of Emergent Capabilities
- Exploring Scaling Laws for EHR Foundation Models
- EHRSHOT: An EHR Benchmark for Few-Shot Evaluation of Foundation Models
- Act or Defer: Error-Controlled Decision Policies for EHR Foundation Models
- Are Emergent Abilities of Large Language Models a Mirage?
- Understanding Emergent Abilities of Language Models from the Loss Perspective
- Development and validation of a prognostic model predicting symptomatic hemorrhagic transformation in acute ischemic stroke at scale in the OHDSI network
- Radiomics in prostate cancer imaging for a personalized treatment approach - current aspects of methodology and a systematic review on validated studies
- Probing Clinical Concepts in an EHR Foundation Model via Sparse Autoencoders
- Prediction of Outcome in Acute Lower Gastrointestinal Bleeding Using Gradient Boosting