Deep prognostic models rank patients by risk. They are usually trained with a ranking loss: an objective that rewards the model whenever, for a pair of patients, the one who had the event earlier receives the higher risk score. When training data pool several hospitals, many of those pairs mix patients from different hospitals. Hospitals differ in baseline event rates, follow-up length, and case mix, so a cross-hospital pair can often be ranked correctly from the hospital alone. Hospital identity is easy to read from scanner noise, stain color, or record-keeping habits. We hypothesize that cross-hospital pairs therefore pay the model to encode where a patient was treated. That is the shortcut that makes external validation drop. Dropping those pairs removes the incentive. A ranking loss computed only within each hospital is unchanged by any per-hospital constant shift in the risk score, so it gives no gradient toward encoding the hospital.
We propose to make this concrete and to measure it. The ranking signal comes only from within-site pairs. Each site's censoring pattern is corrected separately. Absolute risk is handled by a separate calibration component with a per-site baseline, which a new hospital can re-estimate from a few dozen labeled patients. The same structural choice has a practical consequence that matters for direction three. A within-site ranking loss is a sum of per-site terms, so it can be trained by standard federated averaging with no cross-hospital patient comparisons. The research file identifies that coupling as the main obstacle to federating survival models (Fairness in Survival Analysis with Distributionally Robust Optimization).
Core Claim
The claim is about which pairs a survival ranking loss sees, not about architecture. On multi-site imaging cohorts we expect four things relative to pooled training with the same network and data. Pooled ranking objectives make hospital identity linearly decodable from the learned risk score. Restricting ranking to within-site pairs reduces that decodability. Restricting pairs this way also narrows the gap between internal and held-out-site concordance. Finally, a per-site baseline fitted on a small target sample restores calibration and makes risk-group thresholds transferable, which the file flags as unreliable across centers.
The claim can fail in an informative way. Some cross-site differences are real, for example when a tertiary center treats sicker patients. Removing cross-site pairs may then discard true prognostic signal, so we make the trade-off a measured knob rather than an assumption.
Relation to Prior Work
Ranking survival losses supply the method. The Cox partial likelihood is a convex upper bound on concordance error (On Ranking in Survival Analysis: Bounds on the Concordance Index), and DeepHit pairs a likelihood term with an explicit pairwise ranking term (DeepHit). Both define comparable pairs over the whole pooled dataset. We keep their losses and change only the pair set.
Two papers motivate the work by documenting the problem without isolating its cause. MPRS (A multimodal AI model for precision prognosis in clear cell renal cell carcinoma) fuses clinical data, CT and whole-slide pathology with a DeepSurv loss. It drops from C-index 0.886 internally to 0.838 externally and reports no external calibration. The voxel-level Vision-Mamba study (Cross-dataset adaptation of voxel-level deep radiomics) transfers from a trial to a hospital cohort by pre-training and then fine-tuning. Neither asks whether the survival objective itself encourages site encoding.
Three lines of work constrain the design.
- Adversarial alignment. Multi-Source Survival Domain Adaptation (MSSDA) aligns source and target features adversarially through a discordance-based distance. It assumes proportional hazards and its min-max training is costly. We test whether a pair-selection change achieves much of the same invariance with no adversary.
- Robustness across subgroups. The DRO fairness paper (Fairness in Survival Analysis with Distributionally Robust Optimization) protects worst-case subgroups inside single datasets. It shows that coupled losses break decomposition, and it leaves calibration under robust training open.
- Evaluation. X-CAL (X-CAL: Explicit Calibration for Survival Analysis) documents a tension between concordance and calibration on single datasets. The position paper (Stop Chasing the C-index) warns that concordance is biased when censoring differs across cohorts. This is why we correct for censoring per site and report calibration alongside ranking.
Censor-aware semi-supervised learning (Hermoza et al.) supplies the imaging benchmarks. It was evaluated only on internal splits, so its site robustness is unknown.
The Objective
Let site $s$ hold patients with risk score $f(x_i)$, observed time $t_i$ and event indicator $\delta_i$. Let $\hat G_s$ be site $s$'s own estimate of the probability of remaining uncensored, a Kaplan–Meier fit of the censoring times at that site. The ranking term is
$$\mathcal{L}_{\text{rank}} = \sum_{s}\frac{1}{|P_s|}\sum_{(i,j)\in P_s}\frac{\delta_i}{\hat G_s(t_i)^2}\,\log\!\big(1+e^{-(f(x_i)-f(x_j))}\big) \;+\; \alpha\,\mathcal{L}_{\text{cross}}.$$
Here $P_s$ is the set of comparable pairs at site $s$, meaning $i$ had an event before $j$'s observed time. $\mathcal{L}_{\text{cross}}$ is the same form over cross-site pairs. The weight $\alpha$ sets how much cross-site ranking is allowed, and $\alpha=0$ is the proposal. The squared inverse-censoring weight follows the standard correction for censoring in concordance. Estimating it per site stops a high-dropout community hospital from being under-represented.
Absolute risk comes from a discrete-time hazard head on $f$ with a site-specific intercept per time bin and a shared slope. It is trained by censored likelihood plus an X-CAL calibration penalty. For an unseen hospital, only the intercepts are refit, on $k$ labeled target patients.
Research Program
The work has three parts.
Diagnosis. On pooled training we fit a linear probe predicting site from the risk score and from the penultimate embedding. We decompose concordance into within-site and cross-site pairs, and test whether cross-site pairs are disproportionately ranked "correctly" by site alone.
Method. We train the objective above with $\alpha\in\{0, 0.1, 0.3, 1\}$, where $\alpha=1$ is ordinary pooled training. This traces how site decodability and held-out-site performance move together.
Federation. We train the $\alpha=0$ model by federated averaging across sites and check that it matches centralized training, which it should because the loss decomposes exactly.
We also test a refinement aimed at the case-mix concern. Cross-site pairs are re-admitted only when both patients share clinical stage. Real case-mix differences explained by stage then still teach the model, while image-only site cues get no reward.
Baselines
The naive reference is a pooled Cox or DeepSurv model on clinical covariates alone, plus clinical staging scores where available. It shows how much any imaging model adds. On ccRCC, the Leibovich score reached an external C-index of 0.737 against 0.838 for MPRS (MPRS).
The main competitor is pooled hybrid training: a likelihood term plus an all-pairs ranking term in the DeepHit style, followed by the censor-aware ranking and regression losses of Hermoza et al.. This is the strongest image-based survival recipe in the file. It reports C-index 0.740 on TCGA-GM and 0.756 on NLST, both on internal splits, so its held-out-site numbers are what we must beat. A third baseline is post-hoc recalibration of the pooled model on the same $k$ target patients our method uses.
The strongest existing domain-shift method is MSSDA (Multi-Source Survival Domain Adaptation), run on the same image embeddings. The file has no reported MSSDA C-index on Lacuna, only qualitative superiority over pooled Cox, random survival forests and DeepSurv. We also run worst-site DRO adapted from the DRO fairness paper.
The key ablation is a stratified deep Cox model: partial-likelihood risk sets restricted within site, without per-site censoring weights, the calibration head, or the stage-matched pairs. It isolates how much of any gain comes from pair restriction alone.
Fairness of comparison. All methods share the backbone, the frozen pathology or radiology feature extractor, data splits and augmentation. Each gets the same hyperparameter search budget, chosen by leave-one-site-out validation that never touches the test site.
What counts as winning. Beating the strongest baseline means two things on the held-out site, with paired bootstrap intervals over patients. Censoring-weighted concordance must be higher, or no worse within 0.01. Integrated Brier score and calibration error must be clearly better.
Why not just…?
Why not just use a stratified Cox loss, which statisticians have done for decades? This is the real threat, and the core of our method is essentially stratified ranking. If the stratified ablation matches the full method on discrimination, we report that plainly. The contribution then becomes three things: the evidence that pooled pair sets cause site encoding, which no paper in the file tests; the per-site censoring correction; and the calibration and threshold transfer that stratified Cox does not provide. Stratified Cox leaves baselines unestimated for a new hospital. Our experiment shows whether that gap matters for calibration and risk-group assignment.
Why not just pool all hospitals and recalibrate afterwards? Recalibration fixes absolute risk but cannot undo a ranking that partly reflects site rather than biology. If pooled training already encodes site, the within-site ordering at a new hospital is degraded before any recalibration. The probe and the within-site concordance comparison test this directly. If pooled-plus-recalibration matches us on held-out sites, the shortcut hypothesis is wrong for these data.
Why not just align features adversarially, as MSSDA does? MSSDA assumes proportional hazards and needs unstable min-max training. Matching feature distributions across sites also erases real case-mix differences that our stage-matched cross-site pairs try to keep. It is run head to head with the same budget. Matching it at much lower cost would already be a useful result.
Why not just normalize stain color or augment scanner appearance? These remove known artifacts but not unknown ones, such as follow-up policy, which lives in the labels rather than the pixels. We combine color normalization with every method, so any gain from pair selection is on top of it.
Proposed Experiments
TCGA whole-slide images. We use tissue-source-site codes from patient barcodes, train on most sites and hold out entire sites, rotating over several folds. TCGA glioma and the TCGA renal cohort are the targets, with renal providing a public analogue to MPRS.
NLST chest X-rays. These have more than 95% censoring. We split by screening center if center identifiers are available under the data agreement, which stresses heterogeneous censoring and the per-site weights.
SEER. Leave-one-registry-out on SEER provides a tabular check where shortcuts can only come through labels and covariates.
Where access permits, the RTOG 0617 to Tianjin transfer gives an external comparison point. That study reported C-index 0.73 (95% CI 0.63–0.82) on its external set (Cross-dataset adaptation of voxel-level deep radiomics).
Metrics. On held-out sites we report censoring-weighted concordance, integrated Brier score, D-calibration, site-probe accuracy, and threshold transfer. Threshold transfer asks whether a high-risk cutoff fixed at training time yields a target-site event rate within the predicted interval.
Decisive checks. Three results would settle the main questions:
- Site-probe accuracy should fall monotonically as $\alpha$ decreases. If it does not, the mechanism is wrong.
- The held-out-site concordance gap between $\alpha=0$ and pooled training should grow with how much sites differ in baseline event rate, measured across folds. That is the dose-response the hypothesis predicts.
- Federated $\alpha=0$ training should match centralized $\alpha=0$ to within bootstrap error.
We also report how the calibration gain scales with $k$ target patients for $k\in\{10, 25, 50, 100\}$, to state how much labeled data a new hospital needs.
References
- Fairness in Survival Analysis with Distributionally Robust Optimization
- On Ranking in Survival Analysis: Bounds on the Concordance Index
- DeepHit: A Deep Learning Approach to Survival Analysis With Competing Risks
- A multimodal AI model for precision prognosis in clear cell renal cell carcinoma: A multicenter study
- Cross-dataset adaptation of voxel-level deep radiomics for predicting survival in inoperable locally advanced NSCLC treated with immunotherapy
- Multi-Source Survival Domain Adaptation
- X-CAL: Explicit Calibration for Survival Analysis
- Position: Stop Chasing the C-index when Evaluating Survival Analysis Models
- Censor-Aware Semi-supervised Learning for Survival Time Prediction from Medical Images