TwinWeaver: An LLM-Based Foundation Model Framework for Pan-Cancer Digital Twins

Nikita Makarov, Maria Bordukova, Lena Voith Von Voithenberg, Estrella Pivel-Villanueva, Sabrina J Mielke, Jonathan Wickes, Hanchen Wang, Mingyu Derek Ma, Keunwoo Choi, Kyunghyun Cho, Stephen Ra, Raul Rodriguez-Esteban, Fabian Schmich, Michael Patrick Menden
Proceedings of the 43rd International Conference on Machine Learning, PMLR 306:85853-85893, 2026.

Abstract

Precision oncology requires forecasting clinical events and trajectories, yet modeling sparse, multi-modal clinical time series remains a critical challenge. We introduce TwinWeaver, an open-source framework that serializes longitudinal patient histories into text, enabling unified event prediction as well as forecasting with large language models, and use it to build Genie Digital Twin (GDT) on 93,054 patients across 20 cancer types. In benchmarks, GDT significantly reduces forecasting errors, achieving a median Mean Absolute Scaled Error (MASE) of 0.87 compared to 0.97 for the strongest time-series baseline ($p<0.001$). Furthermore, GDT improves risk stratification, achieving an average concordance index (C-index) of 0.703 across survival, progression, and therapy switching tasks, surpassing the best baseline of 0.662. GDT also generalizes to out-of-distribution clinical trials, matching trained baselines at zero-shot and surpassing them with fine-tuning, achieving a median MASE of 0.75–0.88 and outperforming the strongest baseline in event prediction with an average C-index of 0.672 versus 0.648. Finally, TwinWeaver enables an interpretable clinical reasoning extension, providing a scalable and transparent foundation for longitudinal clinical modeling.

Cite this Paper


BibTeX
@InProceedings{pmlr-v306-makarov26a, title = {{T}win{W}eaver: An {LLM}-Based Foundation Model Framework for Pan-Cancer Digital Twins}, author = {Makarov, Nikita and Bordukova, Maria and Voithenberg, Lena Voith Von and Pivel-Villanueva, Estrella and Mielke, Sabrina J and Wickes, Jonathan and Wang, Hanchen and Ma, Mingyu Derek and Choi, Keunwoo and Cho, Kyunghyun and Ra, Stephen and Rodriguez-Esteban, Raul and Schmich, Fabian and Menden, Michael Patrick}, booktitle = {Proceedings of the 43rd International Conference on Machine Learning}, pages = {85853--85893}, year = {2026}, editor = {Zhang, Tong and Dudik, Miroslav and Jaggi, Martin and Agarwal, Alekh and Li, Sharon and Schuurmans, Dale and Zhu, Jerry and Berkenkamp, Felix and Dong, Hanze and Bietti, Alberto}, volume = {306}, series = {Proceedings of Machine Learning Research}, month = {06--11 Jul}, publisher = {PMLR}, pdf = {https://raw.githubusercontent.com/mlresearch/v306/main/assets/makarov26a/makarov26a.pdf}, url = {https://proceedings.mlr.press/v306/makarov26a.html}, abstract = {Precision oncology requires forecasting clinical events and trajectories, yet modeling sparse, multi-modal clinical time series remains a critical challenge. We introduce TwinWeaver, an open-source framework that serializes longitudinal patient histories into text, enabling unified event prediction as well as forecasting with large language models, and use it to build Genie Digital Twin (GDT) on 93,054 patients across 20 cancer types. In benchmarks, GDT significantly reduces forecasting errors, achieving a median Mean Absolute Scaled Error (MASE) of 0.87 compared to 0.97 for the strongest time-series baseline ($p<0.001$). Furthermore, GDT improves risk stratification, achieving an average concordance index (C-index) of 0.703 across survival, progression, and therapy switching tasks, surpassing the best baseline of 0.662. GDT also generalizes to out-of-distribution clinical trials, matching trained baselines at zero-shot and surpassing them with fine-tuning, achieving a median MASE of 0.75–0.88 and outperforming the strongest baseline in event prediction with an average C-index of 0.672 versus 0.648. Finally, TwinWeaver enables an interpretable clinical reasoning extension, providing a scalable and transparent foundation for longitudinal clinical modeling.} }
Endnote
%0 Conference Paper %T TwinWeaver: An LLM-Based Foundation Model Framework for Pan-Cancer Digital Twins %A Nikita Makarov %A Maria Bordukova %A Lena Voith Von Voithenberg %A Estrella Pivel-Villanueva %A Sabrina J Mielke %A Jonathan Wickes %A Hanchen Wang %A Mingyu Derek Ma %A Keunwoo Choi %A Kyunghyun Cho %A Stephen Ra %A Raul Rodriguez-Esteban %A Fabian Schmich %A Michael Patrick Menden %B Proceedings of the 43rd International Conference on Machine Learning %C Proceedings of Machine Learning Research %D 2026 %E Tong Zhang %E Miroslav Dudik %E Martin Jaggi %E Alekh Agarwal %E Sharon Li %E Dale Schuurmans %E Jerry Zhu %E Felix Berkenkamp %E Hanze Dong %E Alberto Bietti %F pmlr-v306-makarov26a %I PMLR %P 85853--85893 %U https://proceedings.mlr.press/v306/makarov26a.html %V 306 %X Precision oncology requires forecasting clinical events and trajectories, yet modeling sparse, multi-modal clinical time series remains a critical challenge. We introduce TwinWeaver, an open-source framework that serializes longitudinal patient histories into text, enabling unified event prediction as well as forecasting with large language models, and use it to build Genie Digital Twin (GDT) on 93,054 patients across 20 cancer types. In benchmarks, GDT significantly reduces forecasting errors, achieving a median Mean Absolute Scaled Error (MASE) of 0.87 compared to 0.97 for the strongest time-series baseline ($p<0.001$). Furthermore, GDT improves risk stratification, achieving an average concordance index (C-index) of 0.703 across survival, progression, and therapy switching tasks, surpassing the best baseline of 0.662. GDT also generalizes to out-of-distribution clinical trials, matching trained baselines at zero-shot and surpassing them with fine-tuning, achieving a median MASE of 0.75–0.88 and outperforming the strongest baseline in event prediction with an average C-index of 0.672 versus 0.648. Finally, TwinWeaver enables an interpretable clinical reasoning extension, providing a scalable and transparent foundation for longitudinal clinical modeling.
APA
Makarov, N., Bordukova, M., Voithenberg, L.V.V., Pivel-Villanueva, E., Mielke, S.J., Wickes, J., Wang, H., Ma, M.D., Choi, K., Cho, K., Ra, S., Rodriguez-Esteban, R., Schmich, F. & Menden, M.P.. (2026). TwinWeaver: An LLM-Based Foundation Model Framework for Pan-Cancer Digital Twins. Proceedings of the 43rd International Conference on Machine Learning, in Proceedings of Machine Learning Research 306:85853-85893 Available from https://proceedings.mlr.press/v306/makarov26a.html.

Related Material