SurvBridge in one page
SurvBridge is a transformer that reads a patient as a set of (feature name, value) tokens. Because a feature is identified by its text and not by a column position, one encoder can be pre-trained on cohorts with different, partly overlapping variables and then adapted to a target with its own schema.
Every variable becomes one token whose content comes from its name and its value, or a learned missing embedding. A transformer pools the tokens into a patient vector. Pre-training shapes that vector across sources; fine-tuning attaches a survival head on the small target.
Schematic drawn from the model definition in the code (feature encoder, missingness-aware numeric embedding, CLS pooling, pre-training objectives, Cox adaptation); no data is plotted.
Components
- Feature identity. Each variable name (abbreviations optionally expanded, for example SBP to systolic blood pressure) is embedded with BioLORD, mean-pooled and projected to the model width (d = 128). No one-to-one mapping between source and target columns is needed.
- Missingness-aware values. An observed numeric value x enters as Ecol + α(Ecol·x + B), with a learned scale α and bias B. A missing value is not imputed: the token is Ecol + Emiss, a learned missing-state embedding. Categorical variables join the expanded name with the category text before encoding; a missing category keeps the name with an empty value.
- Same inputs for scratch and pre-trained models. Every SurvBridge model on this page, trained from scratch or pre-trained, reads the same frozen BioLORD name vectors; only the projection, transformer and survival head start random (scratch) or pre-trained. What BioLORD itself contributes is tested separately, below.
- Patient representation. Tokens are layer-normalised, passed through a shared linear alignment layer and prefixed with a [CLS] token. The final [CLS] state is the patient vector.
- Pre-training across sources. Contrastive pre-training (VPCL) splits each patient's features into overlapping views and pulls views of the same patient together. SurvVPCL adds survival-aware weighting using event-time proximity where a source has labels. A supervised alternative trains one Cox partial-likelihood head per source (rank-only, so sources with different time units can share the encoder).
- Survival adaptation. A Cox head on the patient vector is fine-tuned on the target's labelled patients with early stopping on a validation split.
An encoder pre-trained on a different table transfers to URRAH
The raw column names of NHANES and URRAH do not match. SurvBridge links the variables only through the text of their names, so no column mapping is written by hand.
URRAH: Ctd after pre-training on NHANES or NHANES III, by target size
- NHANES 1999-2018 (52,276 adults, 37 variables) and NHANES III (16,560 adults, 35 variables) are used as pre-training sources with the supervised Cox objective, once per seed (5 seeds). URRAH has 29 variables and its own column names; the tables do not share raw column names. Variables are matched only through BioLORD embeddings of their names.
- Each encoder is fine-tuned on the first N URRAH patients (nested, event-stratified subsets) with early stopping on a validation split, and scored on the fixed URRAH test split. Dots are means over 5 seeds with 95% bootstrap intervals (2000 resamples of seeds and test patients, the same draws for every method, so differences are paired).
- Comparisons: tuned CoxPH (ridge strength 50), SurvBridge from scratch, and an encoder pre-trained on the unrelated SurvSet-Clinic cohorts, which also uses name embeddings but shares no population with URRAH.
- One target cohort shows the gain. On the held-out cohorts (SUPPORT2, SMARTO, FLCHAIN) related sources matched but did not beat tuned CoxPH, so this is evidence that transfer across schemas works, not that it always helps.
Cox pre-training carries real survival signal; shuffling the event times removes it
URRAH: Ctd by pre-training objective, by target size
- Encoders are pre-trained on the ICU sources (MIMIC-IV, eICU, HiRID), 5 seeds. "Cox" uses one Cox partial-likelihood head per source. The control uses exactly the same pipeline with event times permuted among the patients of each source before pre-training, so the targets look like survival data but carry no signal. "Contrastive" is the earlier SurvVPCL pre-training; "from scratch" has no pre-training.
- Each encoder is fine-tuned on the first N URRAH patients and scored on the fixed URRAH test split, as in the cross-schema figure. Dots are means over 5 seeds with 95% bootstrap intervals (2000 resamples of seeds and test patients, the same draws for every method).
- If pre-training only helped by giving the network a better starting point, the shuffled-time encoder would do about as well as the real one. The gap between them is the part due to survival signal.
Competitive discrimination against classical, deep and foundation-model baselines
Ctd by model and cohort, full target training data
- Each model is trained on the full training split of each cohort and scored on the fixed held-out test split, for 5 seeds (seeds 0 to 4).
- The cell shows mean Antolini Ctd over seeds; hover for the 95% bootstrap interval (2000 resamples: seeds drawn with replacement, then test patients within each seed). Colour is scaled within each cohort column (lighter = lower, darker = higher). An amber outline marks the best model in the column and an underline the second best.
- Baselines: classical (CoxPH, RSF, GBSA), deep survival (DeepSurv, DeepHit, DySurv, SurvTRACE, SurvPFN, DSM), tabular foundation models (TabPFN-Cox and -MTLR), and a TransTab+Cox scratch model. SurvBridge variants: scratch, single-source and multi-source pre-trained.
- The numbers come from the saved per-seed results of the paper's headline runs; the bootstrap re-scores their saved test-set predictions.
- SurvBridge rows read BioLORD name embeddings for both the from-scratch and the pre-trained model (the paper's BioLORD runs). The earlier single-source and multi-source VPCL variants were only trained with word-piece embeddings, so they appear in the BioLORD comparison below and not in this table.
- IBS (integrated Brier score) and D-calibration are lower-is-better; their cells are per-seed means from the same runs with a 95% bootstrap over seeds only (2000 resamples), because the patient-level resampling applies to Ctd. Colours flip so that darker is still better. D-calibration is the statistic of the D-calibration test, not a p-value.
- The dated rows are new: SurvBridge pre-trained with the supervised Cox objective on SurvSet-Clinic, NHANES 1999-2018, NHANES III or IHD, then fine-tuned on the whole training pool of the cohort (80% of the training split; 20% validation) and scored on the same fixed test split. A cell reads "pending" until its runs have finished.
What the BioLORD name embeddings add, separately from pre-training
Ctd with word-piece or BioLORD feature names, from scratch and pre-trained
- A 2 x 2 design on the paper's headline runs: from scratch or pre-trained (multi-source SurvVPCL), crossed with how feature names enter the model. Word-piece: token embeddings of the name that are trained with the model. BioLORD: frozen BioLORD vectors of the name plus a trained projection. Everything else (architecture, data, folds, seeds) is the same.
- Full training data, 5 seeds; test scores are re-scored from the saved test-set predictions. Dots are means; whiskers are 95% bootstrap intervals (2000 resamples of seeds and test patients, the same draws for the four models of a cohort, so differences are paired).
- BioLORD effect = BioLORD minus word-piece with the other factor fixed. Pre-training effect = pre-trained minus scratch with the name encoding fixed.
Telling the model what is missing helps; a learned embedding adds little beyond an indicator
A missing indicator is an extra 0/1 column for each variable with gaps, set to 1 where the value was missing and 0 where it was measured, so a model that fills the gaps can still see where they were.
URRAH: Ctd by missing-value strategy
- URRAH has naturally missing values (about 43% of cells on average). Four strategies are compared with the same architecture: median fill, mean fill, constant fill (-1), and the learned missing embedding (no imputation). A fifth, median fill plus an explicit 0/1 missing indicator per variable, is run for CoxPH, random survival forest, DeepSurv and SurvBridge (from scratch; the same BioLORD name inputs).
- Each strategy is trained from scratch on the full target data, pre-trained on a matched source and fine-tuned on the full data, or pre-trained and fine-tuned on only 1000 target patients. CoxPH is the baseline with median, mean or constant (-1) fill, on the full data and on 1000 patients. The indicator arms are a separate set of runs (imputation inside each fold, 5 seeds; the random survival forest has 4 on full data); the other arms impute before the folds, so their numbers are not matched at the fold level.
- SurvBridge numbers are the per-seed Ctd values of the paper's missingness table; CoxPH numbers are read from the saved runs.
- Dots are means over 5 seeds; whiskers are 95% bootstrap intervals over seeds (2000 resamples). Test-patient resampling is not included here because the missingness runs do not all have saved patient-level predictions.
With a missing embedding, highly incomplete variables are used more
URRAH: importance rank of the 15 most incomplete variables
- For each strategy (median fill, constant fill (-1), learned missing embedding), SurvSHAP(t) attributions are computed for the same sampled URRAH test patients.
- Within each patient, features are ranked by absolute attribution (rank 1 = most influential; the model has about 30 features, so a rank near 29 means almost no influence).
- Each dot is the mean rank over patients for a variable, split by whether that variable was observed or missing in the patient. Variables are listed from most to least missing (the percentage is the share of missing values in URRAH).
- Variables missing in every sampled patient are left out because they carry no attribution.
Which sources carry transferable signal, and for which targets
Source against target
- One encoder is pre-trained per source, once per seed (5 seeds): the 34 SurvSet-Clinic cohorts, ICU cohorts (MIMIC, eICU, HiRID plus Kaggle cardio), continuous NHANES (1999-2018, 52k adults), NHANES III (1988-94, 16.5k adults) and the IHD cohort. Objectives: contrastive (VPCL / SurvVPCL) or supervised Cox partial likelihood.
- Each encoder is fine-tuned on the first N patients of the target (nested, event-stratified subsets) with early stopping on a validation split, and scored on the target's fixed test split.
- Baselines on the same subsets: SurvBridge from scratch, CoxPH with ridge strength 50 (chosen on the two tuning cohorts only), and, from N=1000, random survival forest and gradient-boosted trees. Contrastive and ICU encoders were only run up to N=500.
- Dots are means over seeds, or the paired difference from tuned CoxPH. Ctd intervals are 95% bootstrap intervals (2000 resamples of seeds and test patients, the same draws for every source so that differences are paired). IBS and D-calibration (lower is better) are bootstrapped over seeds only.
- N up to 500 uses 5 seeds. From N=1000 to the whole training pool ("all") the runs use the seeds that have finished (shown in the tooltip, at least 3); sizes with fewer finished seeds are not offered. The dashed line marks tuned CoxPH.
- SUPPORT2 excludes the survival-time-derived columns that made the original split leaky.
Gain over tuned CoxPH as the related source grows
- Pre-train on nested subsets of continuous NHANES (1k, 5k, 20k, 52k adults), supervised Cox objective, 5 seeds each.
- Fine-tune on NHANES III, an independent survey (1988-94), with a validation set of the same size as the training subset. CoxPH ridge strength is picked per seed on that validation set.
- Points are the paired difference from tuned CoxPH with 95% bootstrap intervals (2000 resamples of seeds and test patients). The dashed line is the unrelated SurvSet-Clinic encoder at N=100.
Nonlinearity is what a deep model needs, and trees get it too
What is simulated. The covariates are real patients. Their outcomes are generated from a known rule: a hidden risk score decides how soon each patient has the event. In the linear truth every variable adds a fixed amount to the score. In the moderate and strong truths we add effects that a straight line cannot capture: U-shapes (both low and high BMI, systolic pressure and creatinine raise risk), thresholds (HbA1c and urea above a cut-off) and interactions (age with systolic pressure, creatinine with haemoglobin). The strength of those extra terms is the weight λ = 1 or 2. Because we know the truth, we can see exactly when a flexible model should help.
Test Ctd against target size
- Covariates are real continuous-NHANES adults (17 variables, real missingness kept). The hidden risk score is a linear term plus λ times a nonlinear term (three U-shapes, two thresholds, two interactions). λ = 0, 1, 2 gives the linear, moderate and strong truth.
- Survival times are Weibull with about 55% censoring. For N up to 500, a pool of 6,000 patients feeds nested training subsets and 4,000 distinct patients form the test set. For the strong truth, sizes from 1000 up to 32,000 come from a larger pool of the same generator (40,000 training and 8,000 test patients), so those points use an 8,000-patient test set. 3 seeds.
- Compared: tuned CoxPH, SurvBridge from scratch, SurvBridge pre-trained with the supervised Cox objective on the unrelated SurvSet-Clinic cohorts, gradient-boosted survival trees and a random survival forest. Bands are 95% bootstrap intervals (2000 resamples of seeds and test patients).
A large source that shares the target's function
- The source is all 52,276 adults of continuous NHANES with outcomes simulated from the hidden risk score; the target is NHANES III, a different survey, with outcomes from the same hidden score (6,000 training pool, 4,000 test patients per seed).
- One encoder is pre-trained with the supervised Cox objective on the simulated source (the "same function" line). Controls: an encoder pre-trained on the real NHANES mortality (same population, different outcome function), an encoder pre-trained on the unrelated SurvSet-Clinic cohorts, and SurvBridge from scratch. Tuned CoxPH, random survival forest and gradient-boosted trees are scored on the same target subsets.
- Lines are means over 5 seeds with 95% bootstrap bands (2000 resamples of seeds and test patients, same draws for every method). The question and the rule for answering it (the same-function encoder must beat both tuned CoxPH and gradient-boosted trees at N=100 and N=200, with the difference's interval above 0) were written down before any result.
Limits: what we cannot claim
- Not a general win over Cox. The related-source gain is specific to the cohorts where the source matches the target (NHANES III, URRAH). On SUPPORT2, SMARTO and FLCHAIN no source beats a tuned CoxPH.
- Small effects. About +.02 to +.06 Ctd at N=100, shrinking by N of 500 to 1000.
- Shared test splits. The seeds reuse the same test split, so the bootstrap intervals cannot capture variation across independent test sets. No correction across cells; the pre-registered contrasts are the confirmatory ones, and they were written down in Harrell C and recomputed here in Ctd.
- Tuning cohort. URRAH was one of two cohorts used to choose CoxPH regularisation. The second, IHD, was dropped as a target because related sources gave it no gain; it is used here as a pre-training source.
- Same-family sources. Every related source so far is NHANES or a cardiovascular cohort. A source from a different family is untested.
- BioLORD comparison on SUPPORT2 uses the original split. The word-piece arms of the 2 x 2 were never re-run on the no-leak split, so its SUPPORT2 cells still contain the leaky columns; only the URRAH, SMARTO and FLCHAIN cells are unaffected.
- Simulation is a mechanism result. The risk functions are hand-designed.
Progress log
What we have tried: results that did not pan out or did not hold
Experiments that gave a null, negative or mixed result, listed so that nobody repeats them. Scores are the metric of the study they come from (Ctd where stated, otherwise Harrell C), 5 seeds unless noted, at the target size shown. ± is a 95% interval over seeds; most of these used the seed-only interval, so they are less conservative than the figures above.
| Idea | What we did and what happened | Verdict |
|---|---|---|
| Contrastive pre-training (VPCL, SurvVPCL) | Multi-source contrastive encoders, fine-tuned on URRAH at N=100. SurvSet-Clinic VPCL .676 against tuned CoxPH .711 (Ctd); ICU SurvVPCL .711, the same as CoxPH. Gains over a from-scratch SurvBridge, which is itself weak at N=100, are real but disappear by N of 500. | no gain over Cox |
| Survival-aware pair weighting (SurvVPCL) | On the ICU sources it discounts only 3–5% of pairs (0.3–1% with the random sampler) and removes 1–2% of the negative mass. With early stopping, at N=100 on URRAH, SurvVPCL minus VPCL is +.021 ± .048 and real minus shuffled event times is +.016 ± .026; on IHD −.006 ± .022 and +.017 ± .045. Every interval includes 0. | weighting does nothing measurable |
| Supervised Cox pre-training on ICU sources | One Cox head per source (MIMIC, eICU, HiRID). URRAH N=100: .776 against .656 with shuffled event times and .604 from scratch (Harrell C), so the survival signal is real. Gain over tuned CoxPH is +.051 on URRAH and absent on IHD, and absent from N=500. | works on URRAH only |
| Related sources on held-out cohorts | NHANES (52k) and NHANES III encoders minus tuned CoxPH at N=100, pooled over SUPPORT2 (no-leak), SMARTO and FLCHAIN: +.008 ± .019 and +.002 ± .023. Per cohort for NHANES: SUPPORT2 −.004, SMARTO +.035 (only N=200 is significant), FLCHAIN −.007. | parity with Cox |
| IHD as a Cox source for URRAH | +.045 ± .037 over tuned CoxPH at N=100, +.015 at N=200, nothing at N=500. Not distinguishable from the unrelated SurvSet-Clinic Cox encoder, and below the NHANES encoders (−.023 against NHANES at N=100). | small, not specific |
| Hard small real cohorts | Leave-one-out Cox pre-training on hepatocellular (test set of 69) and prostate (146). Gain over a from-scratch SurvBridge at N=100 is +.108 ± .099 and +.019 ± .037, but the pre-trained model stays below tuned CoxPH (−.073 and −.019 at N=100). Very low power. | below Cox |
| Source risk as a prior (zero-shot and stack) | A Cox fitted on MIMIC and applied to URRAH without target data reaches .691; the HiRID source is anti-predictive on URRAH (.411). A ridge Cox on [source risk, shared features] reaches .742 at N=100 against .718 for target-only, the same as pre-trained SurvBridge (.743). The N=100 gain of pre-training can therefore be reproduced by a source-risk feature. | pre-training not uniquely needed |
| Is the target far from the sources? | For target test patients, the nearest neighbours in the 128-dimensional encoder space are 92–99% target-train patients and under 5% source patients. A frozen pre-trained encoder is about level with a from-scratch one (URRAH .853 against .856). The SurvVPCL event-time coordinate correlates with a target-trained risk at −.35 at best (MIMIC to URRAH), usually near 0. | diagnostic |
| Piecewise-linear value embedding (PLE) | Pre-registered rule not met: Cox encoder with PLE minus without, pooled over URRAH and IHD, +.005 ± .021 at N=100; scratch with PLE +.010. CoxPH given the same ramp features gains +.023, but only because those runs used a stronger ridge; linear CoxPH at that ridge scores the same. | no gain |
| Value-scale alignment | Scaling the target to the source statistics (28 URRAH and 22 IHD continuous features, about half covered): −.001 to +.003 on URRAH, −.010 to −.003 on IHD. | no effect |
| Longer scratch training and realistic validation | 100 instead of 30 epochs raises a from-scratch URRAH N=100 from .604 to .640, still far below pre-trained (.743). Using a validation set of the same size as N changes the transformer arms by −.001 to −.025, mostly within noise. | not the cause |
| A stronger CoxPH baseline | Ridge strength 5 to 50 raises URRAH N=100 from .725 to .744 (Harrell C). Every comparison on this page uses the stronger baseline; earlier "gain over Cox" numbers shrank by about .02. | changed the bar |
| Trees and nonlinearity in real data | Only 2 of 34 SurvSet-Clinic cohorts favour trees (about +.03). On NHANES (52,276 adults, 8,300 deaths) ridge Cox scores .862 against .855 for boosted trees, so the real data show no nonlinear headroom. That is why the nonlinear case is tested in the simulation. | motivated the simulation |
| Blending with CoxPH | An equal rank average of the pre-trained encoder and CoxPH beats CoxPH alone by +.040 (N=100), +.025 (N=200) and +.019 (N=500) on URRAH and beats the better of the two by up to +.012 on IHD, but the blend of a from-scratch encoder does not help at N=100 and no weights were tuned. | small, untuned |
| BioLORD name embeddings | BioLORD minus word-piece changes Ctd by about .002 or less on URRAH and FLCHAIN, with +.018 on SMARTO from scratch; the SUPPORT2 cell uses the original split. See the BioLORD section. | almost no effect |