After surgery and chemotherapy, a pathologist grades how much of an osteosarcoma is dead, and that number is the strongest routine predictor of whether the patient will relapse. The European and American Osteosarcoma Study trial (EURAMOS-1) found that this predictor behaves oddly over time. Poor responders face a hazard ratio of 5.81 for distant metastasis in the first post-operative years. If they remain relapse-free for 3 to 4 years, the excess risk almost disappears (Disease progression in osteosarcoma: a multistate model for the EURAMOS-1 randomised clinical trial). Statistical survival models can describe this decay with time-varying coefficients, but they cannot explain it or predict how it should change. A simple biological story would explain it. Before diagnosis, the tumor seeds microscopic metastases. Chemotherapy kills a patient-specific fraction of those cells, and that fraction is also what the necrosis grade measures. Any surviving seeds grow at a patient-specific rate and become detectable within a few years, or they never appear. Under this story, a poor responder who has stayed clear for four years has probably been cured.
This note proposes writing that story down as a stochastic simulator and fitting it to patient data with amortized inference. Amortized inference trains a neural network once, on millions of simulated patients, to output the posterior distribution of a patient's hidden parameters from their observed record in a single forward pass. The simulator's likelihood cannot be written in closed form, because relapse times arise from random seeding, growth and detection. Each patient's posterior also has to be recomputed at every follow-up landmark ("given no relapse by year $s$"). Both properties make amortization the natural tool. The payoff is not a slightly higher concordance index. It is a model with a few interpretable parameters per patient that makes predictions a curve-fitting model cannot make, and those predictions can be checked against published trial results.
Core Claim
A mechanistic seeding–kill–growth–detection simulator can be inverted by neural posterior estimation. Neural posterior estimation means training a conditional density network on simulated parameter–data pairs. Here it would be conditioned on baseline covariates, a noisy necrosis reading and censored event history up to a landmark time. We claim three things. First, the fitted model matches the calibration and discrimination of the flexible multistate models used on EURAMOS-1 while using far fewer parameters. Second, without any time-varying coefficient built in, it reproduces the decaying hazard ratio for histological response as an emergent consequence of residual-disease growth kinetics. Third, it predicts how the optimal necrosis cutoff for survival should shift when necrosis is measured with less noise. Digital pathology found that cutoff at 80% for overall survival and 60% for progression-free survival, versus the clinical convention of 90% (Deep Learning-Based Objective and Reproducible Osteosarcoma Chemotherapy Response Assessment and Outcome Prediction). The first claim is a parity check. The second and third are the reasons to do the work, and both could fail.
The closest prior work inverts tumor mechanics with neural networks, but in a different setting. Neural Parameters Estimation for Brain Tumor Growth Modeling uses a mixture density network to infer reaction–diffusion growth parameters of rat gliomas from MRI, converging in 4 rounds versus about 20 generations for MCMC. A Learnable Prior Improves Inverse Tumor Growth Modeling uses a CNN point estimate to initialize an evolutionary optimizer for glioblastoma. Both invert spatial images of a primary tumor, and neither models treatment or survival. We invert event-time data about invisible metastatic disease, include chemotherapy kill explicitly, and condition on how much follow-up has accrued. Amortized In-Context Mixed Effect Transformer Models (AICMET) amortizes mechanistic pharmacokinetic ODEs across sparse patient samples but stops at drug concentrations, never reaching tumor kill or survival. Our simulator sits downstream of the question that work leaves open. No work in the file applies amortized inference to osteosarcoma at all.
Research Program
The simulator. For patient $i$, the hidden parameters $\theta_i = (\mu_i, \kappa_i, \alpha_i)$ are a seeding rate per unit primary tumor burden, a log-kill of chemotherapy, and a Gompertzian growth rate for metastases. Before diagnosis, seeds arrive as a Poisson process whose intensity scales with the primary volume, which is anchored to the recorded tumor size. Chemotherapy leaves a surviving fraction of the primary equal to $1 - \nu_i$, where $\nu_i$ is the true necrosis fraction. The link between primary and metastases is
$$\log(1-\nu_i) = -\kappa_i, \qquad \log S^{\text{met}}_i = -\gamma \kappa_i + \epsilon_i,$$
where $S^{\text{met}}_i$ is the fraction of each micrometastasis that survives treatment, $\gamma$ is a population coupling constant, and $\epsilon_i$ is patient-level noise. Each surviving seed grows until it crosses a detection volume, and the first crossing is the metastasis event. Local recurrence follows the same logic, with a margin-dependent residual burden and a separate location effect so that axial tumors can differ. Death after relapse uses a simple parametric hazard, because post-relapse dynamics are not the focus. The observed necrosis is $\nu_i$ plus reader noise. For manual grading, the noise variance is set so that simulated inter-reader agreement matches the reported intraclass correlation of 0.652. For digital grading, it matches the reported 4.4–4.5% mean absolute deviation from expert reports (Deep Learning-Based Objective and Reproducible Osteosarcoma Chemotherapy Response Assessment and Outcome Prediction). Population hyperparameters set the covariate-dependent distributions of $\theta_i$.
The inference networks. We follow the BayesFlow design (BayesFlow: Learning complex stochastic models with invertible neural networks; software in BayesFlow 2.0), which pairs a summary network with a conditional invertible network. A summary network compresses a set of data into a fixed-length vector; a conditional invertible network maps that vector plus Gaussian noise into posterior samples. There are two levels. At the population level, a permutation-invariant summary network reads an entire simulated cohort and returns a posterior over the hyperparameters, including $\gamma$. At the patient level, a second network conditioned on the hyperparameters reads one patient's covariates, necrosis reading, reader type and event history truncated at landmark time $s$. It returns $q(\theta_i \mid \text{record}_i, s)$ and, by pushing samples back through the simulator, the patient's conditional relapse curve.
The landmark $s$ is sampled during training, so a single network serves every follow-up time. That is where amortization earns its place: the curve at every landmark for every trial patient, repeated over thousands of simulation-based calibration replicates, would be prohibitive for per-fit samplers. Simulation-based calibration checks that posteriors have correct coverage by refitting on data simulated from known parameters.
The simulator will be misspecified; real relapse biology is richer than three parameters. We therefore also train the patient network in the tempered form of Amortized Simulation-Based Inference in Generalized Bayes via Neural Posterior Estimation, which conditions on an inverse temperature $\beta$ that flattens overconfident posteriors. We use its score-assisted route, because that paper reports that importance-reweighted training collapses at low $\beta$.
Data. The primary target is EURAMOS-1 individual patient data, with 1,631 resectable patients and seven clinical states. Access would be sought through the trial group. If access is delayed, the population network can instead be fit to the published summary statistics, such as the hazard ratios and transition estimates, treated as observed summaries in the ordinary simulation-based-inference manner. That weaker fit still permits the emergent-hazard test below. The MSKCC digital pathology cohort (88 outcome cases) supplies the measurement-noise contrast. TARGET-OS is a small external check wherever histological response is recorded.
Baselines
The naive reference is the clinical rule itself: dichotomize necrosis at 90%, fit a Kaplan–Meier curve per group, and use that curve at every landmark. Any model worth using must beat it on landmark calibration. The routine-marker prognostic index of Tu et al., built from tumor size, stage, platelet and neutrophil counts and alkaline phosphatase, is the reference for pretreatment discrimination. It reports a validation C-statistic of 0.710 for 5-year overall survival and 0.693 for lung metastasis-free survival, on a different cohort (SYSU, n=114 validation). We refit it on our data rather than compare against those numbers directly.
The strongest competitor is a flexible parametric multistate model with time-varying effect of histological response, as used in the EURAMOS-1 analysis. It is strongest because it already captures the decaying hazard descriptively and is the accepted method on this exact data. No reported discrimination or calibration figure for it was found on Lacuna. The file gives only hazard ratios (5.81 early for poor response, 10.84 for axial local recurrence). We will therefore refit it ourselves on the identical patients, with the same covariates, the same landmark times and the same cross-validation folds. Its spline degrees of freedom will be tuned on the same validation budget we use for the simulator's priors and network size. Beating it on prediction is not required. Parity within confidence intervals on the time-dependent Brier score, together with success on the structural checks below, counts as success.
A Bayesian mixture cure model with a Weibull latency and a necrosis measurement-error term, fit in Stan, is the tractable surrogate of our mechanism. It isolates whether the seeding-and-growth simulator adds anything over "some fraction are cured, the rest relapse on a parametric clock." Ablations of our own model remove, one at a time, the primary–metastasis kill coupling ($\gamma = 0$), the reader-noise model, and tempering ($\beta = 1$ fixed). The coupling ablation is the key test: if $\gamma = 0$ fits equally well, the mechanistic link between necrosis and micrometastatic kill is not supported. For inference quality, sequential Monte Carlo ABC on a 100-patient subset serves as a non-amortized check. Agreement between its posteriors and ours validates the network, and wall-clock cost is reported for both.
Why not just…?
Why not just use a Cox model with time-varying coefficients, or the existing multistate model? This is a real threat on pure prediction. It may match or beat us on EURAMOS-1 Brier scores, and we will report that honestly. Its limit is that it describes the hazard decay without saying why. It therefore cannot predict what happens under a different measurement process or a population with different growth kinetics. The measurement-noise experiment below is exactly such a prediction. If the mechanistic model fails it and only ties on accuracy, the flexible model wins and the proposal's claim is refuted.
Why not just fit the simulator with MCMC or ABC? For a single population fit this is feasible, and we run it as a check. The demand here is different: posteriors for every patient at every landmark, under several temperatures, validated by thousands of calibration replicates. That is exactly the regime where BayesFlow reported 3.7 seconds against an estimated 2,700 hours for SMC-MMD on 500 datasets (BayesFlow). The subset comparison will show whether amortization costs accuracy.
Why not just fit a mixture cure model, which has a likelihood? A cure model captures "cured or not" but fixes the latency shape by assumption. Our model derives the latency shape from growth and detection, and ties it to necrosis through $\kappa_i$. The cure-model baseline settles the question directly. If it reproduces the hazard decay and the threshold shift as well as the simulator does, the simpler model should be preferred, and we would report that.
Why not just add a gene signature? The 6-gene and 8-gene signatures report training AUCs of 0.78–0.88 on cohorts of 85–90 patients (PPS-OS; polyamine signature). They are complementary rather than competing. Molecular subtype, for example the MYC-driven chemoresistant group of Jiang et al., could enter as a covariate on the prior for $\kappa_i$. This is left as an extension because no cohort in the file pairs omics with trial-scale outcomes.
Proposed Experiments
The first check is on simulated patients. Simulation-based calibration must show uniform rank statistics for $\mu, \kappa, \alpha$ at each landmark. Parameter recovery must degrade gracefully as the landmark grows and the history becomes more informative. We also report which parameters are identifiable from censored event data at all. We expect $\mu$ and $\alpha$ to trade off, and we say so openly.
The decisive structural test uses real data. Fit the population posterior on EURAMOS-1 with time-invariant covariate effects only. Then compute, from posterior-predictive simulated cohorts, the landmark hazard ratio for poor versus good response at years 0 through 5. The model passes if the curve starts near the reported 5.81 and falls toward 1 by years 3–4. The cure-model and $\gamma = 0$ ablations serve as controls. A mechanism that cannot produce the decay without being told is wrong.
The second decisive test uses measurement noise. From the fitted model, simulate necrosis read with manual-level noise and with digital-level noise. For each, find the log-rank-optimal dichotomization threshold for overall and progression-free survival. The prediction to check is whether reduced noise moves the optimum from the conventional 90% toward the 80% and 60% that Ho et al. found digitally. We then test the patient network directly on the MSKCC cohort. Posterior predictive p-values flag misfit, and we report how much tempering ($\beta < 1$) is needed before coverage is restored.
Predictive evaluation uses landmark-specific time-dependent C-index, Brier score and calibration slope at 0–4 years, on held-out folds, against all baselines above. Transfer is checked where TARGET-OS response data allow. Success means parity on prediction, a pass on both structural tests, and a coupling ablation that clearly fits worse. Failing either structural test while tying on accuracy would mean the flexible multistate model remains the right tool.
References
- Disease progression in osteosarcoma: a multistate model for the EURAMOS-1 (European and American Osteosarcoma Study) randomised clinical trial
- Deep Learning-Based Objective and Reproducible Osteosarcoma Chemotherapy Response Assessment and Outcome Prediction
- Neural Parameters Estimation for Brain Tumor Growth Modeling
- A Learnable Prior Improves Inverse Tumor Growth Modeling
- Amortized In-Context Mixed Effect Transformer Models: A Zero-Shot Approach for Pharmacokinetics
- BayesFlow: Learning Complex Stochastic Models With Invertible Neural Networks
- BayesFlow 2.0: Multi-Backend Amortized Bayesian Inference in Python
- Amortized Simulation-Based Inference in Generalized Bayes via Neural Posterior Estimation
- Development and validation of a pretreatment prognostic index to predict death and lung metastases in extremity osteosarcoma
- Identification of a pro-protein synthesis osteosarcoma subtype for predicting prognosis and treatment
- Identification and verification of a polyamine metabolism-related gene signature for predicting prognosis and immune infiltration in osteosarcoma
- Multi-omics analysis identifies osteosarcoma subtypes with distinct prognosis indicating stratified treatment