SurvICL: a Foundation Model for in-context Survival Analysis
Organizations: Inria de Saclay · EPFL · Inria de Saclay, :probabl.
Abstract
Tabular foundation models (TFMs) now outperform gradient-boosted trees in classification and regression. Yet in survival analysis, which predicts when an event occurs from censored data, often on small clinical cohorts, we find that no existing TFM beats the half-century-old Cox model. We address this issue by introducing SurvICL, a TFM that predicts survival curves in-context. SurvICL is pretrained on purely synthetic datasets generated from a novel flexible proportional-odds prior that outperforms other prior types in our ablation study. Unlike most other survival models, SurvICL is trained with a plain quantile regression loss, which is possible because its synthetic pre-training data generator can provide uncensored event times. Additionally, we introduce the largest survival benchmark to date spanning 103 datasets. On the 63 datasets held out from all design decisions, SurvICL outperforms 20 tree-based, deep, and foundation-model baselines without any tuning: it wins 82.9% of pairwise comparisons in integrated Brier score, against 71.3% for the runner-up, the Cox model, and is the first model to rank above Cox on small datasets.
Figures & tables
| Model | Loss | Continuous Time | Prior | Prediction Target |
|---|---|---|---|---|
| SurvPFN | NLL + ranking | ✓ | Weibull | Observed times |
| SurvivalPFN | NLL | ✗ | Random MLP | Latent event + censoring times |
| Survival-IC | DeepHit Loss | ✗ | EH Model | Observed times |
| TFM4Survival | BCE | ✗ | ✗ | Binary survival labels |
| SurvICL (ours) | Pinball Loss | ✓ | PO prior | Latent event times |
Appendix figures & tables55 assets
Supplementary material from the paper’s appendix.
Appendix
| Backbone | |
|---|---|
| Column-wise transformer | 3 blocks, 8 heads, 128 inducing points, QSSMax attention |
| Row-wise transformer | 3 blocks, 8 heads, 4 CLS tokens |
| In-context (ICL) transformer | 12 blocks, 8 heads, QSSMax attention |
| Max. sequence length (rows) | 1024 |
| Max. features per dataset | 100 (min. 1) |
| Regression head | Pinball / quantile, 999 quantile levels |
| Type | Model Name | Reference |
| TFM | SurvICL | This work |
| SurvPFN | Böhm et al. 2026 | |
| SurvivalPFN | Qi et al. 2026 | |
| Survival-IC | Seletkov et al. 2026 | |
| TFM4Survival | Kim et al. 2026 | |
| Tree | SurvivalBoost | Alberge et al. 2024 |
| model | parameter | range |
|---|---|---|
| Others | ||
| Kaplan–Meier | no hyperparameters (population-level estimator) | |
| Cox (lifelines, ridge-penalized) | penalizer | loguniform (1e-04, 10) |
| Tree-based methods | ||
| Random Survival Forest | max features | sqrt, log2, 0.3, 0.5, 1.0 |
| min samples leaf | randint (1, 30) | |
| Method | Dataset(s) | Cause |
|---|---|---|
| DeepSurv | divorce , actg , FRTCS | Training loss diverged (became non-finite) during optimization on these three small datasets. |
| TFM4Surival: TabICL | sac3 , DLBCL , gse1992 | Out-of-memory issue on these larger/high-dimensional datasets. |
| SurvivalPFN | AML_Bull , gse1992 , vdv | The method’s internal dimensionality-reduction step (a truncated SVD) requires more components than the smaller of the fold’s row or feature count provides, and errors when that bound is violated. |
| TabSurv | DBCD , cesc tcga, kirc tcga, lgg tcga | The method’s obtained a MAE of value infty. |
| name | source | n samples | n features | censoring frac | km survival at tmax |
|---|---|---|---|---|---|
| Framingham | survset | 4699 | 18 | 68.7% | 60.5 % |
| MCLcleaned | survset | 92 | 574 | 30.4 % | 0.0 % |
| Melanoma | survset | 205 | 5 | 72.2 % | 64.5 % |
| NSBCD | survset | 115 | 549 | 67.0 % | 57.4 % |
| Rossi | survset | 432 | 29 | 73.6 % | 73.6 % |
| Unemployment | survset | 452 | 8 | 43.4 % | 5.8 % |
| name | source | n samples | n features | censoring frac | km survival at tmax |
|---|---|---|---|---|---|
| AML Bull | survset | 116 | 6283 | 42.2 % | 28.3 % |
| Aids2 | survset | 2839 | 14 | 38.0 % | 5.8 % |
| Bergamaschi | survset | 82 | 10 | 65.9 % | 58.3 % |
| DBCD | survset | 295 | 4919 | 73.2 % | 61.0 % |
| DLBCL | survset | 240 | 7399 | 42.5 % | 26.8 % |
| Dialysis | survset | 6805 | 37 | 76.4 % | 58.7 % |
| Backbone ( nanotabiclexsurvival ) | |
|---|---|
| Column-wise transformer | 2 blocks, 4 heads, 128 inducing points, SSMax attention |
| Row-wise transformer | 2 blocks, 4 heads, 4 CLS tokens |
| In-context (ICL) transformer | 4 blocks, 4 heads, SSMax attention |
| Regression head | Pinball / quantile, 99 quantile levels |
| Target embedding | Sum |
| Duration rescaling (control) | Mean-duration |
| Family | Arm(s) | Generative structure |
|---|---|---|
| Proportional hazards | cox | |
| Proportional odds | po | , |
| Transformation family | transform | , per dataset (interpolates PH at and PO at ) |
| Additive hazards | ah | , clamped at 0 |
| Accelerated hazards | ach | (curves leave together) |
| AFT, homoscedastic | aft-homo |
| Axis | Control | Variant(s) |
|---|---|---|
| Discretization | Off | On (10% per-dataset chance of coarsening times to a grid) |
| Administrative censoring | Off | On (50% per-dataset chance of a study-end cutoff) |
| Label draws per row | 1 | 5, 20 |
| Quantile head width | 99 levels | 999 levels |
| Auxiliary censoring head | Event-only targets | censoring-distribution head (train-time only, dropped at inference) |
Survival Analysis
Survival analysis models when events such as disease progression, failure, or death occur, accounting for incomplete follow-up and censoring.
See all 106 papers