PreprintCited by 5Machine Learning in HealthcareArtificial Intelligence in Healthcare and EducationArtificial Intelligence in Healthcare

Generative Medical Event Models Improve with Scale

Open access
Waxler, Shane, Blazek, Paul, White, Davis, Sneider, Daniel, Chung, Kevin, Nagarathnam, Mani, Williams, Patrick, Voeller, Hank +11 more·2025·arXiv

Abstract

Realizing personalized medicine at scale calls for methods that distill insights from longitudinal patient journeys, which can be viewed as a sequence of medical events. Foundation models pretrained on large-scale medical event data represent a promising direction for scaling real-world evidence generation and generalizing to diverse downstream tasks. Using Epic Cosmos, a dataset with medical events from de-identified longitudinal health records for 16.3 billion encounters over 300 million unique patient records from 310 health systems, we introduce the Curiosity models, a family of decoder-only transformer models pretrained on 118 million patients representing 115 billion discrete medical events (151 billion tokens). We present the largest scaling-law study of medical event data, establishing a methodology for pretraining and revealing power-law scaling relationships for compute, tokens, and model size. Consequently, we pretrained a series of compute-optimal models with up to 1 billion parameters. Conditioned on a patient's real-world history, Curiosity autoregressively predicts the next medical event to simulate patient health timelines. We studied 78 real-world tasks, including diagnosis prediction, disease prognosis, and healthcare operations. Remarkably for a foundation model with generic pretraining and simulation-based inference, Curiosity generally outperformed or matched task-specific supervised models on these tasks, without requiring task-specific fine-tuning or few-shot examples. Curiosity's predictive power consistently improves as the model and pretraining scale. Our results show that Curiosity, a generative medical event foundation model, can effectively capture complex clinical dynamics, providing an extensible and generalizable framework to support clinical decision-making, streamline healthcare operations, and improve patient outcomes.

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

DataCite · 10.48550/arxiv.2508.12104

Cites

0 citation errors · 0 not checkable

Statistics

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

  • Epic Systems stores more than 325 million patient records with a 41.3% inpatient market share as of 2025.

    “Epic Systems, a leading provider in the EHR industry, stores more than 325 million patient records with a 41.3% inpatient market share as of 2025.[8][9][10]”

    From A Systematic Review and Meta-analysis of Externally Validated Epic Clinical Decision Support Tools (2026) · cites this paper as [10]

    The Introduction (p. 1) says Epic Cosmos aggregates records for more than 300 million patients as of August 2025, supporting the general point that Epic-associated systems hold records at this scale. It does not establish more than 325 million records or a 41.3% inpatient market share; the inpatient percentage in Data Pre-Processing (p. 21) describes encounter types, not market share. (LLM, conf=0.88)

    Experimental — accuracy not yet measured

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Cites

The publisher hasn’t deposited this paper’s reference list.

Research works printed but not linked: 42

  1. [11][11] Nahiyan Bin Noor, George Pro, Mahip Acharya, Hari Eswaran, and Corey J. Hayes. Association between different modalities of opioid use disorder-related care delivery and opioid use disorder-related patient outcomes: A retrospective cohort study. Addictive Behaviors Reports , 21:100588, 2025. ISSN 2352-8532. doi: https://doi.org/10.1016/j.abrep.2025.100588. - · DOI
  2. [12][12] Robert W. Turer, Samuel A. McDonald, Robin T. Higashi, Bhaskar Thakur, Andrew P. Bain, Ann Marie Navar, and Bryan D. Steitz. Who Uses Patient Portals? A National Cross-Sectional Study Using Epic Cosmos. Journal of General Internal Medicine , May 2025. ISSN 1525-1497. doi: 10.1007/ s11606-025-09585-5. -
  3. [14][14] Ethan Steinberg, Jason Fries, Yizhe Xu, and Nigam Shah. MOTOR: A Time-To-Event Foundation Model For Structured Medical Records. https://arxiv.org/abs/2301.03150 , 2023. - · arXiv
  4. [17][17] Sheng Zhang, Qin Liu, Naoto Usuyama, Cliff Wong, Tristan Naumann, and Hoifung Poon. Exploring Scaling Laws for EHR Foundation Models. https://arxiv.org/abs/2505.22964 , 2025. - · arXiv
  5. [18][18] An Yang, Baosong Yang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Zhou, Chengpeng Li, Chengyuan Li, Dayiheng Liu, Fei Huang, Guanting Dong, Haoran Wei, Huan Lin, Jialong Tang, Jialin Wang, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Ma, Jianxin Yang, Jin Xu, Jingren Zhou, Jinze Bai, Jinzheng He, Junyang Lin, Kai Dang, Keming Lu, Keqin Chen, Kexin Yang, Mei Li, Mingfeng Xue, Na Ni, Pei Zhang, Peng Wang, Ru Peng, Rui Men, Ruize Gao, Runji Lin, Shijie Wang, Shuai Bai, Sinan Tan, Tianhang Zhu, Tianhao Li, Tianyu Liu, Wenbin Ge, Xiaodong Deng, Xiaohuan Zhou, Xingzhang Ren, Xinyu Zhang, Xipin Wei, Xuancheng Ren, Xuejing Liu, Yang Fan, Yang Yao, Yichang Zhang, Yu Wan, Yunfei Chu, Yuqiong Liu, Zeyu Cui, Zhenru Zhang, Zhifang Guo, and Zhihao Fan. Qwen2 technical report. https://arxiv.org/abs/2407.10671 , 2024. - · arXiv
  6. [23][23] George G.A Pujalte and Shirley A. Albano-Aluquin. Differential Diagnosis of Polyarticular Arthritis. American Family Physician , 92(1):35-41, Jul 2015. -
  7. [25][25] H S El-Gabalawy, P Duray, and R Goldbach-Mansky. Evaluating patients with arthritis of recent onset: studies in pathogenesis and prognosis. JAMA , 284(18):2368-2373, Nov 2000. -
  8. [26][26] Paul Y Kwo, Stanley M Cohen, and Joseph K Lim. ACG Clinical Guideline: Evaluation of Abnormal Liver Chemistries. American Journal of Gastroenterology , 112(1):18-35, Jan 2017. -
  9. [27][27] Nicole E Rich and Amit G Singal. Overdiagnosis of hepatocellular carcinoma: Prevented by guidelines? Hepatology , 75(3):740-753, Mar 2022. -
  10. [28][28] Douglas S Swords, Mary C Mone, Chong Zhang, Angela P Presson, Sean J Mulvihill, and Courtney L Scaife. Initial Misdiagnosis of Proximal Pancreatic Adenocarcinoma Is Associated with Delay in Diagnosis and Advanced Stage at Presentation. Journal of Gastrointestinal Surgery , 19(10):1813-1821, Oct 2015. -
  11. [34][34] Jordan Hoffmann, Sebastian Borgeaud, Arthur Mensch, Elena Buchatskaya, Trevor Cai, Eliza Rutherford, Diego de Las Casas, Lisa Anne Hendricks, Johannes Welbl, Aidan Clark, Tom Hennigan, Eric Noland, Katie Millican, George van den Driessche, Bogdan Damoc, Aurelia Guy, Simon Osindero, Karen Simonyan, Erich Elsen, Jack W. Rae, Oriol Vinyals, and Laurent Sifre. Training Compute-Optimal Large Language Models. https://arxiv.org/abs/2203.15556 , 2022. - · arXiv
  12. [35][35] Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B. Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. Scaling Laws for Neural Language Models. https://arxiv.org/abs/2001.08361 , 2020. - · arXiv
  13. [36][36] Charlie Snell, Jaehoon Lee, Kelvin Xu, and Aviral Kumar. Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters. https://arxiv.org/abs/2408.03314 , 2024. - · arXiv
  14. [38][38] Fang Liu and Demosthenes Panagiotakos. Real-world data: a brief review of the methods, applications, challenges and opportunities. BMC Medical Research Methodology , 22(287), 2022. doi: 10.1186/ s12874-022-01768-6. -
  15. [39][39] Matthew B. A. McDermott, Bret Nestor, Peniel Argaw, and Isaac Kohane. Event Stream GPT: A Data Pre-processing and Modeling Library for Generative, Pre-trained Transformers over Continuous-time Sequences of Complex Events. https://arxiv.org/abs/2306.11547 , 2023. - · arXiv
  16. [40][40] Siavash Golkar, Mariel Pettee, Michael Eickenberg, Alberto Bietti, Miles Cranmer, Geraud Krawezik, Francois Lanusse, Michael McCabe, Ruben Ohana, Liam Parker, Bruno Régaldo-Saint Blancard, Tiberiu Tesileanu, Kyunghyun Cho, and Shirley Ho. xVal: A Continuous Numerical Tokenization for Scientific Language Models. https://arxiv.org/abs/2310.02989 , 2024. - · arXiv
  17. [41][41] Andrew J. Loza, Jun Yup Kim, Shangzheng Song, Yihang Liu, Joseph J. Y. Sung, R Andrew Taylor, and Dennis L. Shung. multivariateGPT: a decoder-only transformer for multivariate categorical and numeric data. https://arxiv.org/abs/2505.21680 , 2025. - · arXiv
  18. [42][42] Yury Gorishniy, Ivan Rubachev, and Artem Babenko. On Embeddings for Numerical Features in Tabular Deep Learning. https://arxiv.org/abs/2203.05556 , 2023. - · arXiv
  19. [43][43] Inkit Padhi, Yair Schiff, Igor Melnyk, Mattia Rigotti, Youssef Mroueh, Pierre Dognin, Jerret Ross, Ravi Nair, and Erik Altman. Tabular Transformers for Modeling Multivariate Time Series. https: //arxiv.org/abs/2011.01843 , 2021. -
  20. [44][44] Chaofan Tao, Qian Liu, Longxu Dou, Niklas Muennighoff, Zhongwei Wan, Ping Luo, Min Lin, and Ngai Wong. Scaling Laws with Vocabulary: Larger Models Deserve Larger Vocabularies. https: //arxiv.org/abs/2407.13623 , 2024. -
  21. [47][47] Tyler B Nofzinger, Timothy T Huang, Christopher Eduard R Lingat, Gaurang M Amonkar, Emily E Edwards, Albert Yu, Alexander D Smith, Nasser Gayed, and Heidi L Gaddey. Vaccine fatigue and influenza vaccination trends across Pre-, Peri-, and Post-COVID-19 periods in the United States using epic's cosmos database. PLoS One , 20(6):e0326098, 2025. -
  22. [48][48] JM Chowdhury, CS King, M Desai, A Kasarabada, M Patel, and MG Kashiouris. Epidemiology and Outcomes of Veno-arterial ECMO in Acute Pulmonary Embolism: A Retrospective Cohort Study Using Nationwide EHR Data. American Journal of Respiratory and Critical Care Medicine , 211:A3737-A3737, 2025. -
  23. [49][49] Moeun Son, Kieran Gallagher, Justin Y Lo, Eric Lindgren, Heather H Burris, Kevin Dysart, Jay Greenspan, Jennifer F Culhane, and Sara C Handley. Coronavirus disease 2019 (COVID-19) Pandemic and Pregnancy Outcomes in a U.S. Population. Obstetrics & Gynecology , 138(4):542-551, 2021. -
  24. [50][50] Jithin Sam Varghese, Zhongyu Li, Aamna Soniwala, and Mohammed Ali. Abstract 076: Risk of Atherosclerotic Cardiovascular Disease and Heart Failure by Type 2 Diabetes Subtypes. Circulation , 151 (Suppl\_1), 2025. doi: 10.1161/cir.151.suppl\_1.076. - · DOI
  25. [51][51] Jay Patel, Lixia Yao, Ernest Vina, David Fleece, Jayatilleke Arundathi, Roberto Caricchio, and Huanmei Wu. Phenotype Systemic Lupus Erythematosus Patients from Epic Cosmos. Studies in Health Technology and Informatics , 310:159-163, 2024. ISSN 1879-8365. doi: 10.3233/SHTI230947. - · DOI
  26. [52][52] Craig C. Hofmeister, Mingyuan Zhang, Vikas A. Gupta, Nisha S. Joseph, Jonathan L. Kaufman, Ajay K. Nooka, Madhav V. Dhodapkar, Sagar Lonial, and Douglas W. Sborov. Survival of Multiple Myeloma Patients in Epic Cosmos Confounded By Death Reporting. Blood , 144:5152, 2024. doi: 10.1182/blood-2024-202100. - · DOI
  27. [53][53] Ang Li, Rockbum Kim, Omid Jafari, Shengling Ma, Jun Yang Jiang, Nathanael R Fillmore, Jennifer La, and Christopher I Amos. External Validation of EHR-CAT Risk Assessment Model for Cancer Associated Thrombosis in 150 Healthcare Organizations. Blood , 144:812, 2024. doi: 10.1182/blood-2024-202183. - · DOI
  28. [54][54] Brandon Buxton, Amr Hassan, Nevin Shalaby, John Lindsey, John Lincoln, Elmer Bernstam, Wagida Anwar, Degui Zhi, and Laila Rasmy. Vision Impairment prediction for patients diagnosed with Multiple Sclerosis: Cosmos based machine learning model training and evaluation. medRxiv , 2023. doi: 10.1101/ 2023.11.10.23298366. -
  29. [55][55] Gianna L Wilkie, Rahi Patel, Lara Kovell, and Anna Whelan. Maternal Cardiac and Perinatal Outcomes Among Pregnant Individuals with Ebstein's Anomaly. The American Journal of Cardiology , 2025. -
  30. [56][56] Michael Gottlieb, Eric Moyer, Kyle Bernard, and Kevin G Buell. Delays in Diagnosis of Diabetes Mellitus Among Emergency Department Patients with Hyperglycemia Using the Epic Cosmos Database. Journal of General Internal Medicine , pages 1-4, 2025. -
  31. [57][57] Christopher S Evans, Robert W Turer, John J Hanna, Emilie Pendley, and Richard J Medford. Emergency Department Return Visits After Having Left Without Being Seen. JAMA , 333(9):806-808, 2025. -
  32. [58][58] E.E. Moin, N.J. Seewald, and S.D. Halpern. Characteristics and Prognosis of Patients Experiencing Recurrent ICU Admissions. American Journal of Respiratory and Critical Care Medicine , 211(Abstracts), 2025. -
  33. [59][59] Tom Henighan, Jared Kaplan, Mor Katz, Mark Chen, Christopher Hesse, Jacob Jackson, Heewoo Jun, Tom B Brown, Prafulla Dhariwal, Scott Gray, Chris Hallacy, Benjamin Mann, Alec Radford, Aditya Ramesh, Nick Ryder, Daniel M. Ziegler, John Schulman, Dario Amodei, and Sam McCandlish. Scaling Laws for Autoregressive Generative Modeling. https://arxiv.org/abs/2010.14701 , 2020. - · arXiv
  34. [60][60] Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. Language Models are Few-Shot Learners. https://arxiv.org/abs/2005.14165 , 2020. - · arXiv
  35. [61][61] Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan Firat, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, and Noah Fiedel. PaLM: Scaling Language Modeling with Pathways. https://arxiv.org/abs/2204.02311 , 2022. - · arXiv
  36. [62][62] OpenAI. GPT-4 Technical Report. https://arxiv.org/abs/2303.08774 , 2024. - · arXiv
  37. [66][66] Chao Pang, Xinzhuo Jiang, Nishanth Parameshwar Pavinkurve, Krishna S. Kalluri, Elise L. Minto, Jason Patterson, Linying Zhang, George Hripcsak, Gamze Gürsoy, Noémie Elhadad, and Karthik Natarajan. CEHR-GPT: Generating Electronic Health Records with Chronological Patient Timelines. https://arxiv.org/abs/2402.04400 , 2024. - · arXiv
  38. [67][67] Zhichao Yang, Avijit Mitra, Weisong Liu, Dan Berlowitz, and Hong Yu. TransformEHR: transformerbased encoder-decoder generative model to enhance prediction of disease outcomes using electronic health records. Nature Communications , 14(7857), 2023. -
  39. [68][68] Michael Wornow, Rahul Thapa, Ethan Steinberg, Jason A. Fries, and Nigam H. Shah. EHRSHOT: An EHR Benchmark for Few-Shot Evaluation of Foundation Models. https://arxiv.org/abs/2307.02028 , 2023. - · arXiv
  40. [69][69] Chao Pang, Vincent Jeanselme, Young Sang Choi, Xinzhuo Jiang, Zilin Jing, Aparajita Kashyap, Yuta Kobayashi, Yanwei Li, Florent Pollet, Karthik Natarajan, and Shalmali Joshi. FoMoH: A clinically meaningful foundation model evaluation for structured electronic health records. https://arxiv.org/ abs/2505.16941 , 2025. - · arXiv
  41. [70][70] Alistair E.W. Johnson, Lucas Bulgarelli, Lu Shen, Alvin Gayles, Ayad Shammout, Steven Horng, Tom J. Pollard, Sicheng Hao, Benjamin Moody, Brian Gow, Li wei H. Lehman, Leo A. Celi, and Roger G. Mark. MIMIC-IV, a freely accessible electronic health record dataset. Scientific data , 10(1):1, 2023. URL https://www.nature.com/articles/s41597-023-02136-9 . -
  42. [73][73] Jove Graham, Andy Iverson, Joao Monteiro, Katherine Weiner, Kara Southall, Katherine Schiller, Mudit Gupta, and Edgar P. Simard. Applying computable phenotypes within a common data model to identify heart failure patients for an implantable cardiac device registry. IJC Heart and Vasculature , 39:100974, 2022. ISSN 2352-9067. doi: 10.1016/j.ijcha.2022.100974. - · DOI

Cited by

Sorted by citations

Authors
Waxler, S., Blazek, P., White, D., Sneider, D., Chung, K., Nagarathnam, M., Williams, P., Voeller, H., Wong, K., Swanhorst, M., Zhang, S., Usuyama, N., Wong, C., Naumann, T., Poon, H., Loza, A., Meeker, D., Hain, S., & Shah, R.
Venue
arXiv
Publisher
arXiv
Published
2025
ISSN
2331-8422 (ISSN-L)
OpenAlex
W4414460302
Cited by
4
References
0
Citations by year
2026: 4
Type
posted content
Language
en
Open access
Locations
  • arXiv (Cornell University) (submittedVersion)
  • arXiv (Cornell University) (cc-by)
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Machine Learning in Healthcare
  • Health Sciences › Medicine › Health Informatics › Artificial Intelligence in Healthcare and Education
  • Health Sciences › Health Professions › Health Information Management › Artificial Intelligence in Healthcare
Keywords
foundation models, decoder-only transformer, scaling laws, power-law scaling, longitudinal patient records, Epic Cosmos, diagnostic prediction, disease prognosis, healthcare operations, personalized medicine, real-world evidence, clinical decision support

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review