We build software for banks. Our tool answers a specific question: when thousands of market factors move at once, how does a portfolio respond? The trick is reverse-mode automatic differentiation: record the calculation once, run it backward, and read off every sensitivity in a single pass. It is the same idea that powers neural network training, applied to derivatives pricing.
A few weeks ago I wondered whether the same machinery had something to say about cancer.
The trial
In 2015, Sanjeev Krishna’s group at St George’s, University of London, published a small pre-operative trial of artesunate, a cheap antimalarial, in colorectal cancer (Krishna et al., EBioMedicine, 2015). Twenty patients, nine on artesunate, eleven on placebo. Recurrence at follow-up: one vs six. The sample is too small to be a clinical answer, but the mechanism is interesting.
Artesunate’s endoperoxide bridge reacts with intracellular iron to generate reactive oxygen species. Cells with more labile iron, many tumour cells, sustain more damage. Cells with less iron, including most healthy tissue, are largely spared. This is roughly the textbook story for ferroptosis-style cell killing.
That story has a sharp prediction inside it: the more iron a cell type carries, the more sensitive it should be. We wanted to ask the model directly.
What we built
We wrote a small ODE for the relevant biology: drug absorption, conversion to the active form (dihydroartemisinin), reaction with the labile iron pool, oxidative damage to the tumour cell, and a smooth proliferation/death balance. Standard pharmacology, all from published parameters. Nothing exotic.
The non-standard part is the back end. We recorded the simulation as a single computational tape and ran reverse-mode adjoint differentiation through it. That gives us, in one pass, the partial derivative of every output with respect to every input: drug dose, half-life, iron content, receptor abundance, anything we mark as differentiable. The same construction we use for option Greeks; the function inside the tape is just different.
Calibration target: a small set of headline numbers from the Krishna 2015 paper plus the IC50 panel from Efferth et al. (2003) covering seven cancer cell lines. The model fits them within ±21% across all seven lines.
Then we asked the model a question the original analysis could not: for each of these cell lines, what is the gradient of viable-cell count at the IC50 with respect to initial iron content?
The output
Four leukemia lines (HL-60, MV4-11, MOLM-13, K562) clustered tightly: low IC50, strongly negative iron gradient (roughly to ). Solid-tumour lines (HT-29 colon, U-87MG glioma, MCF-7 breast) sat at higher IC50 with weaker gradients. MCF-7 had the weakest iron-axis dependence of the seven.
Read as a ranking, the model says: leukemia first, then liver and brain tumours, then breast last.
This is a single replicable run. Recording the tape took 23 seconds; the forward simulation plus full adjoint took 174 ms. Cohort mirror, the same simulation in plain double precision, agreed to . The adjoint speedup over finite differences across the same input set is roughly 69×. None of those numbers are the point. The ranking is.
The reply
I wrote to Professor Krishna. The email said roughly: we are a finance-tools company, we are not clinicians, here is a ranking our model produced from your 2015 data, do you have time for a call.
He replied in about twenty minutes. He attached a paper from his group, preprinted on bioRxiv in 2024, published in Cell Death and Disease in 2025, showing experimentally that artesunate combined with arsenic trioxide kills acute myeloid leukemia cells through a synthetic-lethal hit on mitochondrial respiration and glycolysis, with intracellular iron as the upstream driver. His lab had reached the same conclusion the model surfaced, from independent in-vitro work, not from the 2015 colorectal data the model was calibrated on.
He also pointed to a detail the model missed. Artesunate binds covalently to its targets. The chemistry is irreversible: the effect persists long after the drug clears the bloodstream. Our ODE treated the binding as reversible. We are now extending the kinetics. He has agreed to a call.
What this is, and what it isn’t
This is a computed prediction from a simplified ODE calibrated to a small dataset. It is not a clinical finding. The model has roughly 80 differentiable inputs; the validation surface is much thinner than the input vector. We do not model the mosquito-sized fraction of biology that matters for an actual treatment recommendation. The prediction happened to align with one experimental result from one group on one mechanism. It might not align with the next one we test.
What it does demonstrate, narrowly, is this: when a process is written as an ODE (pharmacokinetics, signalling, tumour growth), reverse-mode differentiation gives you the full sensitivity table for free. Not “for free” as a figure of speech: roughly the same cost as the forward simulation, regardless of how many inputs. A clinical trial answers one question and costs years. A gradient answers thousands of “which input matters most” questions and costs milliseconds.
That is a different kind of object than a trial result. It is a hypothesis generator. We ran it on artesunate; we have run the same construction on cardiac arrest timing, on glioblastoma growth against critical structures, and on intensive-care drug ordering. In each case the output is a ranked sensitivity table, not a recommendation.
The takeaway
The bottleneck for this kind of work is not the math, and it is not compute. It is the calibration. A simplified ODE with one cohort behind it produces a hypothesis; that hypothesis only becomes useful when somebody who actually knows the biology says either “yes, run that experiment” or “no, here is what your model is missing”. Professor Krishna pointed out covalent binding within ten minutes of reading the email. That is the loop we are looking for.
If you work on a problem that can be written as a system of differential equations and you wonder which of its inputs your data is actually informative about, get in touch. We supply the gradients. The biology, the experiments, and the judgement come from your side.
This article is for educational purposes only and does not constitute medical or financial advice. The model described is a research prototype, not a validated clinical tool.
Implemented using AADC, a commercial adjoint AD compiler (matlogica.com).