Papers › SurvivalPFN: Amortizing Survival Prediction via In-Context Bayesian Inference
SurvivalPFN: Amortizing Survival Prediction via In-Context Bayesian Inference
Shi-ang Qi, Vahid Balazadeh, Michael Cooper, Russell Greiner, Rahul G. Krishnan
Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).
Survival analysis provides a powerful statistical framework for modeling time-to-event outcomes in the presence of censoring. However, selecting an appropriate estimator from the many specialized survival approaches often requires substantial methodological and domain expertise. We introduce SurvivalPFN, a prior-data fitted network that amortizes Bayesian inference for censored observations through in-context learning. SurvivalPFN is pretrained on a diverse family of synthetic, identifiable, and right-censored data-generating processes, enabling it to amortize survival analysis in a single forward pass during inference. As a result, the model adapts to the effective complexity of each dataset without task-specific training or hyperparameter tuning, avoids restrictive parametric assumptions, and produces calibrated survival distributions. In a large-scale benchmark spanning 61 datasets, 21 methods, and 5 evaluation metrics, SurvivalPFN achieves strong predictive performance and often improves upon established survival models. These results suggest that SurvivalPFN offers a principled and practical foundation model for survival analysis, with potential applications in high-impact domains such as healthcare, finance, and engineering (https://github.com/rgklab/SurvivalPFN).
In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.
Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.
For agents, on Syntology's MCP service (how to connect):
get_harvested_code_for_paper(arxiv_id="2605.15488")get_code(code_sha256="…")with a sample'scode_sha256from the list belowget_citation_path(paper_1="2605.15488", paper_2="…")with another paper's arXiv id or titleget_concepts_for_paper(arxiv_id="2605.15488")
Code
Syntology 60 code samples harvested from 6 repositories linked to this paper: 44 ran (of which 12 constructed an object rather than computing a result; 21 with no instrument failure: 1 honoured, 0 violated, 20 with no contract checked; 23 where Syntology's instrument failed) · 16 unverified. Where Syntology's instrument failed: 16 where our contract draft was wrong; 7 where the contract check could not run; failures of Syntology's instrument, not of the code.
By repository: found in paper text by Syntology: 60 samples from 6 repositories, 44 ran (21 with no instrument failure; 23 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.
Levels written between 2026-09-22 and 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.
Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.
Code Syntology ran Syntology
60 samples harvested: 44 ran (of which 12 constructed an object rather than computing a result; 21 with no instrument failure: 1 honoured, 0 violated, 20 with no contract checked; 23 where Syntology's instrument failed) · 16 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.
Licence: 16 of the 60 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.
Harvested from 6 repositories linked to this paper, official or community; the list below is grouped by repository, each group headed by its name and what it is to the paper. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. For 7 samples that ran, the graph records a signature this page does not show: for a class the fixture built without calling, the harness called the object with inputs it made up itself, so the recorded signature is the harness's probe, not the fixture's arguments. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.
Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (how to connect); click an identity to copy that call.
Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of six reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.
A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.
8e4732a23c130baf · report
fixture: signature y_pred:Tensor/2/float · returned Tensor · level recorded 2026-09-22 f2f5f953aec88c7d · report
fixture: signature mydataset:MyDataset/0/?, test_propotion:float/0/float, rand_in:int/0/int · returned tuple · level recorded 2026-09-24 96babf0c32515529 · report
fixture: signature n_data:int/0/int, mydataset:MockDataset/0/?, x_range:list/1/int, is_censor:bool/0/bool · returned tuple · level recorded 2026-09-24 ecfaab91d760f076 · report
fixture: signature dataset_str:str/0/str, loss_str:str/0/str · returned dict · level recorded 2026-09-24 dd1c2e866b214fbf · report
fixture: signature y_pred:Tensor/2/float, y_true:Tensor/2/float, cen_indicator:Tensor/2/float, taus:list/1/float, taus_torch:Tensor/2/float, IS_FORCE_ALL_OBS:bool/0/bool · returned Tensor · level recorded 2026-09-24 5c5378bdb7f3e770 · report
fixture: signature y_preds:ndarray/2/float, taus:ndarray/1/float · returned ndarray · level recorded 2026-09-24 4c2e331e631c0d6f · report
fixture: signature y_preds:ndarray/2/float, taus:ndarray/1/float · returned ndarray · level recorded 2026-09-24 3aeb675f6185d8fd · report
f9ffe47cd6305c1c · report
d4a12e293a55de4d · report
fixture: returned DefaultNN · level recorded 2026-09-22 cc4efa299e31dcf9 · report
fixture: returned MukundMDNHelper · level recorded 2026-09-22 117bdea53b8347f8 · report
fixture: returned ResidualNN · level recorded 2026-09-22 df060b1e443def88 · report
fixture: returned SurvivalMDN_Dist · level recorded 2026-09-22 5dac508453ef46d2 · report
fixture: signature x:Tensor/2/float · returned Tensor · level recorded 2026-09-22 census: 8 implementations from 12 papers, 4 distinct outputs across 2 buckets, one shared input per bucket this sample: bucket 2 of 2, arg 1: rank 2, kind float, dtype float32 · arg 2: rank 2, kind float, dtype float32 mdn_models.py ran · our draft was wrong fingerprinted no licence file found · pointer only ·
c850f0c294b86e9d · report
fixture: signature a:Tensor/2/float, dim:int/0/int, b:Tensor/2/float · returned Tensor · level recorded 2026-09-22 eba67474712ea634 · report
fixture: signature x:Tensor/2/float · returned Tensor · level recorded 2026-09-22 6e57086fc97463e2 · report
fixture: signature x:Tensor/2/float · returned Tensor · level recorded 2026-09-22 e6ff2912fc572ac0 · report
fixture: signature x_src:Tensor/3/float, y_src:Tensor/2/float, return_log_act_norms:bool/0/bool · returned Tensor · level recorded 2026-09-24 79a4260cd65e423b · report
fixture: signature x:Tensor/3/float, context_length:int/0/int · returned Tensor · level recorded 2026-09-22 bf7653a9f1fb1def · report
fixture: signature model_state:dict/0/? · returned dict · level recorded 2026-09-22 f2685b774233c516 · report
fixture: signature x:Tensor/2/float, y:Tensor/2/float, xnew:Tensor/2/float · returned Tensor · level recorded 2026-09-22 81c0a825b4d40699 · report
fixture: signature model_config:dict/0/?, model_state:dict/0/? · returned dict · level recorded 2026-09-24 e8d7a676dce6291c · report
fixture: signature value:DictConfig/0/? · returned dict · level recorded 2026-09-22 ad486c6c60a80926 · report
fixture: signature logits:Tensor/2/float, y_target:Tensor/1/float, bin_edges:Tensor/1/float, sigma:float/0/float, vmin:float/0/float, vmax:float/0/float · returned Tensor · level recorded 2026-09-22 aeaeecb3de18bd0f · report
fixture: signature logits:Tensor/2/float, y_target:Tensor/1/float, bin_centers:Tensor/1/float, vmin:float/0/float, vmax:float/0/float · returned Tensor · level recorded 2026-09-22 d4220cd0d2e403a4 · report
fixture: signature samples:Tensor/3/float, mean:Tensor/2/float, std:Tensor/2/float, type:str/0/str · returned Tensor · level recorded 2026-09-22 census: 7 implementations from 7 papers, 7 distinct outputs across 3 buckets, one shared input per bucket this sample: bucket 1 of 3, arg 1: rank 2, kind float, dtype float32 survivalpfn/models/icl_model.py ran; the contract check could not run (RAISES) fingerprinted Apache-2.0 (permissive) ·
cbf1a6ddc69b5d1b · report
fixture: signature data:Tensor/2/float, eval_pos:int/0/int · returned Tensor · level recorded 2026-09-22 df966b39a1dd97e1 · report
fixture: signature X:Tensor/2/float, num_features:int/0/int · returned Tensor · level recorded 2026-09-22 cd0cdd3d45072306 · report
fixture: signature time_context:Tensor/2/float · returned QuantileTransformState · level recorded 2026-09-22 19b490fa90e66633 · report
fixture: signature samples:Tensor/2/float, state:QuantileTransformState/0/?, type:str/0/str · returned Tensor · level recorded 2026-09-22 2c439f9b4caec20b · report
fixture: signature logits:Tensor/2/float, t_target:Tensor/1/float, delta_target:Tensor/1/float, bin_edges:Tensor/1/float · returned Tensor · level recorded 2026-09-22 16511eb2ca2c686c · report
1b11a31b7f48278e · report
34fc08263e203895 · report
e923887f73773cba · report
62e532aa24f5ec49 · report
71503a80d54879f4 · report
fixture: returned CatNN · level recorded 2026-09-22 d2af976346d33920 · report
fixture: returned DeepNet · level recorded 2026-09-22 e885556b912e32f3 · report
fixture: signature x:Tensor/2/float · returned Tensor · level recorded 2026-09-22 1ee39ab309964a90 · report
fixture: signature x:Tensor/2/float, sample:bool/0/bool, n_samples:int/0/int · returned Tensor · level recorded 2026-09-22 8b0392475ca0039a · report
fixture: signature x:Tensor/2/float · returned Tensor · level recorded 2026-09-22 6262e3d94f88a8c7 · report
fixture: signature x:Tensor/1/float · returned Tensor · level recorded 2026-09-22 1da5503866445238 · report
fixture: signature x:Tensor/2/float, mask:Tensor/2/float, dim:int/0/int · returned Tensor · level recorded 2026-09-24 d3fc1659c2e82a40 · report
fixture: signature logits:Tensor/2/float, target:Tensor/2/float, model:callable/0/?, C1:float/0/float, average:bool/0/bool · returned Tensor · level recorded 2026-09-24 6ac98a7b55346d72 · report
fixture: returned Log1PlusExp · level recorded 2026-09-22 36fd86c93cbf07b1 · report
fixture: returned bounded_nn_layer · level recorded 2026-09-22 2c955554f710ace9 · report
fixture: returned bounded_nn_layer_last · level recorded 2026-09-22 691b566282a42d88 · report
fixture: signature x:Tensor/2/float · returned Tensor · level recorded 2026-09-22 801ec0f05e6b458f · report
fixture: returned mixed_layer_2 · level recorded 2026-09-22 8b53909f1266d6ff · report
fixture: returned nn_node · level recorded 2026-09-22 a6807cbbd18871f3 · report
fixture: returned survival_net_basic · level recorded 2026-09-22 3510bae48fb5d336 · report
Method as code Syntology
What Syntology's graph records as this paper's claimed method, lifted into code: each assembly names its bricks (functions and classes), each with its own role and its own verification level. An assembly is not a check that the code implements the method correctly or reproduces the paper's results. Levels are each brick's own verification level in Syntology's graph (level 0: no recorded run), listed brick by brick and never combined into one level; “ran” means the brick executed on a synthesized input, not that its output is correct, and the instrument figure counts failures of Syntology's instrument, not of the code. Where a model read the code against the paper's claim, each assembly's label verdict is one model's judgement, kept in this page's JSON twin; it is not calibrated, so no card prints it. Siblings are assemblies lifted from this paper in the same batch for the same method: alternative readings kept side by side; none replaces or supersedes another.
4 assemblies on this paper: 4 harvested, 0 generated, listed in 1 groups (siblings lifted in one batch form one group).
4 sibling assemblies for SurvivalPFN (harvested), lifted in the same batch on 2026-09-09: alternative readings kept side by side; none replaces or supersedes another.
harvested Assembly for SurvivalPFN (graph method: SurvivalPFN). 8 bricks; individually on a fixture: 7 ran (of which 6 constructed an object rather than computing a result; 7 with no instrument failure: 1 honoured, 0 violated, 6 with no contract checked; 0 where Syntology's instrument failed) · 1 unverified. The assembly has not been run end-to-end.
one of 4 siblings
- survival_net_basic entry · level 1 · ran ·
a6807cbbd18871f3 - bounded_nn_layer model · level 1 · ran ·
36fd86c93cbf07b1 - bounded_nn_layer_last helper · level 1 · ran ·
2c955554f710ace9 - linear helper · level 1 · ran · honoured contract ·
691b566282a42d88 - mixed_layer_2 helper · level 1 · ran ·
801ec0f05e6b458f - multi_input_Sequential_res_net helper · level 0 · unverified ·
3510bae48fb5d336 - nn_node helper · level 1 · ran ·
8b53909f1266d6ff - Log1PlusExp helper · level 1 · ran ·
6ac98a7b55346d72
harvested Assembly for SurvivalPFN (graph method: SurvivalPFN). 8 bricks; individually on a fixture: 7 ran (of which 4 constructed an object rather than computing a result; 4 with no instrument failure: 0 honoured, 0 violated, 4 with no contract checked; 3 where Syntology's instrument failed) · 1 unverified. The assembly has not been run end-to-end.
one of 4 siblings
- MDNModel entry · level 0 · unverified ·
99469b9ed77bacde - MukundMDNHelper model · level 1 · ran ·
cc4efa299e31dcf9 - SurvivalMDN_Dist model · level 1 · ran ·
df060b1e443def88 - DefaultNN model · level 1 · ran ·
d4a12e293a55de4d - ResidualNN helper · level 1 · ran ·
117bdea53b8347f8 - inverse_softplus_grad helper · level 1 · ran · our draft was wrong ·
5dac508453ef46d2 - logsumexp helper · level 1 · ran · our draft was wrong ·
c850f0c294b86e9d - safe_inverse_softplus helper · level 1 · ran · our draft was wrong ·
eba67474712ea634
harvested Assembly for SurvivalPFN (graph method: SurvivalPFN). 3 bricks; individually on a fixture: 3 ran (of which 2 constructed an object rather than computing a result; 2 with no instrument failure: 0 honoured, 0 violated, 2 with no contract checked; 1 where Syntology's instrument failed) · 0 unverified. The assembly has not been run end-to-end.
one of 4 siblings
- CatNN entry · level 1 · ran ·
71503a80d54879f4 - DeepNet helper · level 1 · ran ·
d2af976346d33920 - RELU helper · level 1 · ran · our draft was wrong ·
e885556b912e32f3
harvested Assembly for SurvivalPFN (graph method: SurvivalPFN). 23 bricks; individually on a fixture: 18 ran (of which 0 constructed an object rather than computing a result; 3 with no instrument failure: 0 honoured, 0 violated, 3 with no contract checked; 15 where Syntology's instrument failed) · 5 unverified. The assembly has not been run end-to-end.
one of 4 siblings
- InContextModel entry · level 0 · unverified ·
16511eb2ca2c686c - QuantileTransformState helper · level 0 · unverified ·
1b11a31b7f48278e - TabDPTLongContextModel model · level 1 · ran ·
e6ff2912fc572ac0 - _normalize_model_config helper · level 1 · ran · our draft was wrong ·
81c0a825b4d40699 - forward_KL_hl_gaussian_loss helper · level 1 · ran; the contract check could not run (RAISES) ·
ad486c6c60a80926 - forward_KL_one_hot_loss helper · level 1 · ran · our draft was wrong ·
aeaeecb3de18bd0f - load_pretrained_tabdpt_model helper · level 0 · unverified ·
62e532aa24f5ec49 - lognormal_transform helper · level 1 · ran · our draft was wrong ·
d4220cd0d2e403a4 - pad_x helper · level 1 · ran · our draft was wrong ·
df966b39a1dd97e1 - quantile_grids helper · level 1 · ran · our draft was wrong ·
cd0cdd3d45072306 - quantile_transform helper · level 1 · ran; the contract check could not run (RAISES) ·
19b490fa90e66633 - surv_nll helper · level 1 · ran; the contract check could not run (RAISES) ·
2c439f9b4caec20b - TransformerEncoderLayer helper · level 1 · ran ·
79a4260cd65e423b - clip_outliers data_transform · level 1 · ran; the contract check could not run ·
a8db41cd982f90f0 - normalize_data data_transform · level 1 · ran; the contract check could not run (RAISES) ·
cbf1a6ddc69b5d1b - _build_tabdpt_from_config helper · level 0 · unverified ·
34fc08263e203895 - _to_plain_dict helper · level 1 · ran · our draft was wrong ·
e8d7a676dce6291c - _interp1d_per_batch helper · level 1 · ran · our draft was wrong ·
f2685b774233c516 - RMSNorm helper · level 1 · ran ·
6e57086fc97463e2 - maskmean helper · level 1 · ran; the contract check could not run ·
a627013811283b2d - maskstd helper · level 1 · ran · our draft was wrong ·
6d49d6a89a247bfe - _extract_tabdpt_state helper · level 1 · ran · our draft was wrong ·
bf7653a9f1fb1def - _get_nested helper · level 0 · unverified ·
e923887f73773cba
Each brick ends with its code_sha256, Syntology's identity for that exact code; click one to copy the get_code call that returns it. For agents, on Syntology's MCP service: assembly(arxiv_id="2605.15488") returns these assemblies with each brick's role and wiring (how to connect).
Results from the paper
The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2605.15488, was issued in May 2026, after that date, so the archive has no leaderboard rows for it.
Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections