Skip to main content

This is a preprint.

It has not yet been peer reviewed by a journal.

The National Library of Medicine is running a pilot to include preprints that result from research funded by NIH in PMC and PubMed.

Research Square logoLink to Research Square
[Preprint]. 2026 Mar 19:rs.3.rs-9078142. [Version 1] doi: 10.21203/rs.3.rs-9078142/v1

Generalist Foundation Models Are Not Clinical Enough for Hospital Operations

Lavender Y Jiang 1,2,3,*,, Angelica Chen 1,, Xu Han 2, Xujin Chris Liu 2,4, Radhika Dua 1,2,3, Kevin Eaton 5,6, Frederick Wolff 2,7, Robert Steele 2,8, Jeff Zhang 9,10, Anton Alyakin 2,11, Qingkai Pan 2, Yanbing Chen 2,12, Karl L Sangwon 2,5, Daniel A Alber 2,5, Jaden Stryker 2, Jin Vivian Lee 2,3,11, Yindalon Aphinyanaphongs 6,9,10, Kyunghyun Cho 1,3, Eric Karl Oermann 1,2,3,5,9,13,*
PMCID: PMC13015597  PMID: 41890828

Abstract

Operational decisions governing patient flow, cost, and quality of care demand specialized predictive models, yet most clinical NLP efforts focus on medical knowledge benchmarks. We introduce Lang1, a family of language models (100M-7B parameters) pretrained on 80 billion clinical tokens from NYU Langone Health electronic health records blended with 627 billion internet tokens. We evaluate Lang1 on the REalistic Medical Evaluation (ReMedE), an evaluation suite derived from 668,331 Electronic Health Records (EHR) notes spanning five tasks: readmission, mortality prediction, length of stay, comorbidity coding, and insurance denial. In zero-shot settings, both general-purpose and biomedical models underperform on four of five tasks. After finetuning, Lang1-1B outperforms finetuned generalist models up to 70 × larger and zero-shot models up to 671× larger. Joint multi-task finetuning yields cross-task transfer, and Lang1-1B transfers effectively to unseen tasks and an external health system. These results demonstrate that effective healthcare AI requires in-domain pretraining, supervised finetuning, and evaluation beyond proxy benchmarks.

Keywords: pretraining, finetuning, Electronic Health Records, operational prediction, clinical prediction tasks, domain-specific models

1. Main

Healthcare systems face high-stakes operational decisions daily: which patients are at imminent risk of decline, who can be safely discharged, how many beds will be available for new admissions. Physicians spend only 26% of their time in direct patient care, with much of the remainder devoted to documentation, insurance, and resource coordination [13]. Foundation models, with their broad text comprehension and applicability across specialized domains [46], are increasingly applied to healthcare. Yet despite strong performance on medical knowledge benchmarks, it remains unclear whether these generalist models can predict the operational outcomes that define day-to-day hospital care.

Deploying language models in clinical settings remains difficult. While models show promise on various clinical tasks [714], there is disagreement on whether smaller specialized models can outperform general-purpose models [15]. Many evaluations rely on proxy benchmarks that weakly reflect real-world clinical constraints like data scarcity and temporal shifts [9,1619]. Data privacy concerns further limit clinical model pretraining to a small set of public corpora [20], even though large-scale EHR datasets are known to improve generalization [15, 2123]. An earlier study showed that a 109M-parameter BERT model pretrained on clinical notes could predict operational outcomes such as readmission [23], but the field has since shifted with the rise of billion-parameter generalist models and instruction-tuned systems.

Here we present Lang1, a family of decoder language models (100M, 1B, and 7B parameters) pretrained from scratch on a specialized corpus blending 80 billion tokens from the NYU Langone Health electronic health records (14.5 times more clinical data than the corpus used to train NYUTron [23]) with 627 billion tokens of internet text. To evaluate these models on clinically and operationally significant tasks, we developed the REalistic Medical Evaluation (ReMedE), an evaluation suite derived from 668,331 EHR notes spanning five clinically and operationally significant tasks: 30-day readmission prediction, in-hospital mortality prediction, length of stay, comorbidity coding, and insurance claims denial (Figure 1). Unlike benchmarks that focus on diagnostic reasoning [7, 13, 16], ReMedE emphasizes operational tasks tied to resource planning, cost control, and continuity of care. Each task is evaluated on data from the future relative to all training data, approximating deployment conditions. After task-specific finetuning, Lang1-1B outperforms finetuned models up to 70x larger (LoRA-finetuned DeepSeek R1 Distill Llama 70B) on ReMedE. In the commercially relevant zero-shot setting, where hospitals evaluate models via API without capacity for finetuning, it also surpasses generalist models up to 671 × larger, including DeepSeek R1. Instruction-finetuned on one or more tasks, Lang1 transfers zero-shot to related tasks and to a different hospital system, surpassing both generalist and open biomedical models of similar scales. Our analysis of training dynamics reveals that clinical prediction does not emerge from pretraining alone but requires task-specific supervision, which in-domain pretraining makes more data-efficient. Overall, our results suggest that health systems with the capacity for in-house model development can gain clear advantages from smaller specialized models, providing a practical and data-efficient pathway to robust operational prediction with minimal task-specific supervision.

Fig. 1: Overview of the Lang1 system.

Fig. 1:

(a) We pretrain decoder language models on a mix of 627B tokens of web text and 80B tokens of clinical notes via next-token prediction. (b) Instruction finetuning in multiple-choice format activates clinical prediction capabilities and enables cross-task transfer. (c) Evaluation: Lang1-1B outperforms finetuned models up to 70× larger and zero-shot models up to 671× larger, transfers zero-shot to unseen tasks, generalizes across hospital systems, and yields design principles through ablation experiments.

Unlike encoder-based clinical models such as NYUTron [23] that require separate classification heads per task, Lang1 uses a decoder architecture that supports instruction finetuning across tasks in a unified multiple-choice format. Our approach consists of three stages (Figure 1): pretraining on a mix of web text and clinical notes (Fig. 1a), instruction finetuning in multiple-choice format (Fig. 1b), and evaluation against generalist models with ablation experiments (Fig. 1c). See Methods for full details.

We evaluate Lang1 using ReMedE, an internal evaluation suite of real-world, high-impact clinical tasks beyond diagnosis. Unlike recent benchmarks that focus on multi-turn diagnostic dialogue [7, 13, 16], which captures an important but narrow part of clinical decision making, ReMedE is based on 668,331 EHR notes and emphasizes operational tasks that better represent the day-to-day challenges of healthcare delivery. To assess model robustness to temporal distribution shifts, each task is evaluated across three non-overlapping test splits drawn from distinct time periods (Extended Data A). We plan to release ReMedE as a secure evaluation service, allowing trusted researchers to submit models and receive standardized evaluation results without direct access to patient data.

2. Results

2.1. Overall performance on ReMedE

Finetuned Lang1 outperforms larger zero-shot and finetuned models.

After finetuning, Lang1-1B achieves a mean AUROC of 85.2% (range 76.7%−95.9%) across the five ReMedE tasks, surpassing finetuned Llama 3.2 IB (72.4%, range 64.4%−78.8%), LoRA-finetuned DeepSeek R1 Distill Llama 70B (80.5%, range 70.4%−91.5%), and zero-shot DeepSeek RI 671B (72.5%, range 60.4%−94.2%) across all five tasks (Figure 2). Across all five tasks, Lang1-1B achieves higher AUROC than every baseline (ranking and per-task breakdowns in Extended Data B). Scaling to Lang1-7B yields only marginal gains (Supplementary L), suggesting model size is not the bottleneck at this data scale.

Fig. 2: Finetuned small specialists outperform strong generalists on ReMedE.

Fig. 2:

Mean Area Under the Receiver Operating Characteristic curve (AUROC) across five clinical tasks for 14 models, ranked by performance. Finetuned Lang1-1B (1B parameters) achieves the highest average performance (0.85), outperforming all zero-shot models up to 671B parameters. Per-task breakdowns and the full heatmap are in Extended Data B.

Large generalist models underperform on real-world clinical predictive tasks.

For hospitals evaluating commercial APIs without capacity for finetuning, the zero-shot gap is even wider. We evaluated 14 models (spanning large generalist foundation models, MedQA leaderboard models, and biomedical specialists) under zero-shot inference and find that they underperform on ReMedE tasks (Figure 2). This includes GPT-4o, which achieves a mean AUROC of only 59.5% (range 49.4%−69.8%) using sampling-based probability approximation (Supplementary S). Even the best zero-shot model (DeepSeek RI 671B) scores only 60.4%−71.1% AUROC on four of five tasks; mortality is the exception at 94.2%, but still 1.7 percentage points below finetuned Lang1-1B.

2.2. Clinical prediction does not emerge from pretraining

Unlike reading comprehension, clinical classification does not emerge from pretraining.

We tracked zero-shot performance of Lang1 (1B and 7B) throughout pretraining as a function of tokens seen. On comprehension tasks (Methods 4.2.4), accuracy increased with additional pretraining data (Figure 3a), consistent with the expectation that language models improve on text-based reasoning with more data. In contrast, zero-shot AUROC on ReMedE clinical classification tasks remained close to or below random chance across the entire pretraining trajectory (Figure 3b). The mapping from clinical notes to operational outcomes does not emerge from next token prediction on unlabeled text alone but needs to be learned through task-specific finetuning. This is not simply a matter of the base model failing to follow instructions: applying general-purpose instruction finetuning on OASST2 before evaluation does not improve clinical classification (Supplementary J).

Fig. 3: Clinical classification does not emerge from pretraining, unlike reading comprehension.

Fig. 3:

(a) Reading comprehension accuracy increases during pretraining. (b) Zero-shot clinical AUROC remains near chance throughout pretraining. Error bands depict 95% confidence intervals.

Finetuning is more token-efficient, but pretraining makes finetuning more data-efficient.

Figure 4a examines the pretraining and finetuning trajectory of Lang1-1B for readmission under a fixed total token budget. During pretraining, checkpoints were saved after each one million training tokens. Each pretrain checkpoint is finetuned using 100–362,259 discharge notes with readmission label (2.0M-742.0M tokens). Within each budget slice, increasing the proportion of finetuning tokens consistently improves performance. Yet pretraining still provides value: even with maximal finetuning data, models initialized from pretraining outperform randomly initialized ones by 4.71% AUROC. The same pattern holds across all five tasks (Supplementary I). When finetuning data are scarce (Figure 4b), Lang1-IB outperforms generalist models of comparable scale pretrained on more nonclinical tokens, demonstrating that in-domain pretraining reduces the number of labelled examples required to 6 reach a given performance level. Lang1-1B also achieves lower perplexity on clinical task pairs and stronger downstream performance than Llama-2-7B and Llama-3.2-1B, despite being trained on fewer total tokens (Figure 4c). This correlation between perplexity and finetuned performance, especially in the low-data regime, suggests that task-specific perplexity may serve as a practical heuristic for model selection before committing to finetuning. Adaptation on published biomedical text does not substitute for pretraining on clinical notes. Lang1-1B outperforms Bio-Medical-Llama-3.2-1B, a continually pretrained variant of Llama-3.2-1B, at every sample size from 100 to 362,259, with the largest gains (17.9 percentage points) at 100 examples (Supplementary K). Additional pretraining ablations show that larger models trained on more recent clinical data further improve performance (Supplementary L).

Fig. 4: In-domain pretraining makes finetuning more efficient.

Fig. 4:

(a) At any fixed total token budget, more finetuning tokens yield higher AUROC, but pretraining still makes finetuning more data efficient. (b) In-domain pretraining enables sample-efficient finetuning. (c) Lower perplexity on clinical tasks is associated with better performance. Error bars depict 95% confidence intervals.

2.3. Transfer across tasks and health systems

A single model handles all five tasks and transfers across them.

The heatmaps in Figure 5a show Lang1-1B finetuned on one or all ReMedE tasks (rows) and evaluated on all five tasks (columns). Lang1-1B achieves strong single-task (diagonal) performance, and a single model jointly finetuned on all five tasks (last row) comes within 1 pp of single-task performance on every task, reducing the need to train and maintain separate models for each operational task. Both single-task and jointly finetuned Lang1 models are well calibrated across all five tasks, with calibration curves closely tracking the diagonal and low expected calibration error (Extended Data C). Many tasks also transfer individually: finetuning on readmission alone boosts performance on the other four tasks. However, this transfer can be asymmetric: mortality helps LOS, but LOS does not help mortality, which can be explained by the conditional probability structure of these outcomes (Supplementary M). Transfer patterns are model-specific, and Lang1-1B transfers best: compared to Llama-3.2-1B (Extended Data D) and Bio-Medical-Llama-3.2-1B (Supplementary K), Lang1-1B has the highest single-task, off-diagonal, and joint performance. Joint finetuning drops only 0.4 percentage points (pp) from single-task performance for Lang1-1B, compared to 3.4 pp for Bio-Medical-Llama and 10.4 pp for Llama-3.2-1B, suggesting that clinical note pretraining confers greater multi-task robustness than biomedical literature or general-domain pretraining.

Fig. 5: Lang1 transfers to unseen tasks and a different health system.

Fig. 5:

(a) Cross-task transfer heatmap for Lang1-1B on ReMedE. (b) External validation on MIMIC III readmission.

Lang1 transfers to an external health system.

Figure 5b shows Lang1-1B and Llama-3.2-1B finetuned on different readmission data (MIMIC III, derived from Beth Israel Deaconess Medical Center in Boston, or NYU in New York) and tested on MIMIC. Finetuning Lang1-1B yields better performance on both datasets. For Lang1-1B, finetuning on MIMIC is slightly better than NYU by 1.2% AUROC. For Llama-3.2-1B, finetuning on NYU is surprisingly better than finetuning on MIMIC by 2.5% AUROC, likely because NYU has more labeled pairs, suggesting that nonclinical models may benefit more from larger, slightly out-of-distribution datasets. Extended analysis on MIMIC mortality and LOS shows consistent findings: Lang1-1B outperforms Llama-3.2-1B and NYU-finetuned models transfer well to MIMIC (Extended Data E).

3. Discussion

NYUTron [23] demonstrated that LLMs can improve hospital operations, but required a separate model and labeled dataset per task, with no cross-task transfer. Since then, frontier models such as GPT-4o and open-weight models such as Llama have expanded the options available to hospitals, creating a spectrum of approaches that range in effort and cost from zero-shot prompting of large models, to parameter-efficient finetuning, to full finetuning, to continual pretraining, to pretraining from scratch. We systematically evaluate the approaches realistic for hospital deployment, from zero-shot through LoRA finetuning of 70B-parameter models to full pretraining at 100M, 1B, and 7B parameters, quantifying the marginal gain from each additional investment. Using a single jointly finetuned Lang1 model that handles all five tasks and transfers across tasks and health systems, we find that clinical prediction does not emerge from pretraining alone, that domain-specific pretraining improves data efficiency and cross-task transfer, and that small specialized models can match much larger generalists. Together, these results suggest that investing in domain-specific pretraining, even at modest scale, yields a single model that outperforms much costlier alternatives.

Operational tasks require direct evaluation, not proxy benchmarks.

Much of the current excitement in medical AI centers on diagnostic reasoning [16, 2427]. These are valuable directions, but they do not fully capture the day-to-day challenges physicians face: physicians spend only 26% of their time in direct patient care, with much of the remainder devoted to documentation, insurance, and scheduling [1]. Operational outcomes such as readmission, insurance denial, and length of stay directly shape costs, capacity, and continuity of care, yet are poorly represented in web-scale datasets. Several MedQA leaderboard models underperform on ReMedE, showing that proxy benchmark success does not necessarily establish clinical utility and that models must be evaluated directly on real-world, task-specific outcomes [9,19]. All ReMedE results are reported on a 2024 temporal test set drawn from a period after all pretraining data, approximating the distribution shift encountered in deployment.

Clinical prediction requires finetuning and does not emerge from pretraining alone.

While reading comprehension capabilities emerge directly from large-scale pretraining, our findings provide evidence that high-stakes objective predictions represent a different class of problem. Strong performance on ReMedE tasks requires explicit finetuning and does not emerge from pretraining alone, even with domain-specific data. Chatbot finetuning aligns emergent generalist skills to subjective, preference-based goals [28]; in contrast, ReMedE tasks require finetuning to build a new, non-emergent predictive skill against an objective, ground-truth target. The one exception is mortality, where zero-shot models reach 94.2% AUROC. We hypothesize this reflects how mortality signals closely mirror published medical literature and case reports present in web-scale pretraining corpora.

Finetuning enables transfer across tasks and health systems.

Healthcare tasks often suffer from limited labels due to the expertise required for annotation, and in some cases large labeled datasets are practically impossible to obtain. Instruction finetuning on one outcome (e.g., readmission) improves performance on others (e.g., mortality, length of stay), and models finetuned on NYU data transfer to MIMIC III with minimal degradation (Extended Data E), reducing dependence on costly annotation pipelines. Notably, clinical note pretraining also confers multi-task robustness: Lang1-1B’s jointly finetuned model loses only 0.4 pp relative to single-task models, compared to 3.4 pp for Bio-Medical-Llama and 10.4 pp for Llama-3.2-1B, suggesting that clinical note pretraining better enables multi-task learning.

Lang1 matches NYUTron while enabling multi-task and cross-site transfer.

NYUTron [23] established the clinical utility of language-model-based operational prediction on the same tasks and patient population, including prospective deployment and comparison against established structured baselines. NYUTron outperformed these baselines by 5–15% AUROC across tasks. Lang1 achieves a slightly higher average AUROC than NYUTron across all five tasks (Extended Data K), while additionally supporting multi-task learning and cross-hospital transfer from a single model. For fair comparison with NYUTron, all finetuning inputs are right-truncated to 512 tokens; zero-shot evaluation at full sequence length shows no statistically significant difference in AUROC and preserves model rankings (Extended Data H).

Specialized models are cost-effective and keep data in-house.

Training Lang1-1B on 314.5B tokens required roughly 30 days on 64 H100s, costing about $180,000 at cloud pricing, which is orders of magnitude below frontier model budgets [4, 5, 29] and comparable to a routine IT infrastructure upgrade for a large health system. Continual pretraining from an existing open-source checkpoint can further reduce entry costs (Figure F8). However, this efficiency comes with a tradeoff since continual pretraining plateaus earlier and the benefit of the general-domain initialization is itself task-dependent (Extended Data F). Institutions must therefore weigh faster, cheaper convergence against the long-run gains of a full training run. Beyond cost, in-house models allow hospitals to safeguard patient data, adapt to documentation practices and patient populations, and avoid ongoing dependence on external APIs. Routing identifiable clinical notes through external APIs raises privacy risks: even HIPAA-compliant de-identification may not prevent re-identification by the very LLMs processing the data [30]. In-house models like Lang1 sidestep this problem as data never leaves the institution’s secure infrastructure and model internals remain auditable. This supports recent arguments [31] that small, specialized models can be more reliable, economical, and aligned with domain-specific needs, reframing clinical AI from “renting intelligence” to “building institutional assets.”

Models are well calibrated with subgroup variations consistent with prior work.

Both single-task and jointly finetuned Lang1 models are well calibrated across all five tasks (Extended Data C), meaning predicted probabilities reliably reflect true outcome rates. We performed stratified evaluation of readmission prediction: the task most likely to trigger differential clinical interventions. We found that Lang1 performs above chance across all subgroups (Extended Data G), with moderate variation consistent with the patterns reported by NYUTron [23] on the same patient population. For insurance denial prediction, the intended use is proactive (identifying documentation gaps before claim submission to reduce denials) but dual-use risks exist (e.g., patient selection) and institutional safeguards are essential. Lang1 predictions should be integrated as decision support with clinician oversight and prospective monitoring.

Smaller, domain-specific models offer a practical path forward for clinical AI.

Our findings challenge the assumption that ever-larger internet-trained models will generalize to all domains. A single finetuned Lang1-1B outperforms frontier models orders of magnitude larger, handles all five tasks with minimal degradation, transfers across tasks without additional labels, and generalizes to an external health system. Hospitals today face a concrete choice among commercial APIs, open-weight finetuning, or domain-specific pretraining. Our results show that the last path wins: better performance, a single model across tasks, and data that never leaves the institution. Where NYUTron [23] opened the door to language-model-based operational prediction, Lang1 shows that a hospital can train its own small model and surpass what much larger general-purpose models can offer. We believe effective healthcare AI need not depend on ever-larger models, and that hospitals can build their own institutional AI assets that are accurate, affordable, and under their full control.

4. Methods

4.1. Data collection and preprocessing

Data are extracted via SQL scripts from the NYU Langone Health EHR, prototyped in an interactive web-based editor (Cloudera Hue), and exported as CSVs to an on-premises high-performance computing cluster. Raw CSV notes (including pathology, radiology, and general hospital notes) are loaded with standard ASCII encoding using Python Dask [32] for distributed processing. We concatenate narrative fields, standardize punctuation, spacing and formatting via regular expression substitutions, remove non-ASCII and malformed characters, remove errant whitespace and newlines, and filter out short notes (less than 10 words or with placeholder values such as <NA>).

4.2. Datasets

4.2.1. Pretraining dataset

Web texts.

We use SlimPajama (627B tokens) [33], a large, extensively deduplicated, multi-corpora, open-source dataset for training LLMs. Its sources include CommonCrawl [34], C4 [35], GitHub, Books [36, 37], arXiv, Wikipedia, and StackExchange.

NYU Notes.

This dataset consists of unlabeled inpatient hospital notes signed by medical professionals from the NYU Langone Health EHR1 for patient encounters from January 2011 to May 2020. NYU Notes contains 387,144 patients, 7,247,694 notes, and 4,112,249,482 words. NYU Notes was used to train and evaluate NYUTron [23].

NYU Notes+.

This dataset builds on NYU Notes by including a wider range of note types and covering a longer time span, resulting in a total word count 14.5 times greater than NYU Notes, the dataset used to train NYUTron [23]. NYU Notes+ contains unlabeled hospital, pathology, and radiology notes from the NYU Langone Health EHR from 2003 to 2023. It comprises 11,689,342 patients, 180,487,092 notes, and 59,917,646,788 words.

4.2.2. Finetuning datasets and ReMedE test set

We derive five task-specific labelled datasets by combining NYUTron [23] finetuning datasets with the addition of a 2024 temporal test set to approximate deployment robustness. The 2024 temporal test set is used for ReMedE. See Extended Data A for a visualization of the data split timeline and Supplementary N for detailed dataset statistics. Supplementary O shows that a small percentage of patient overlap does not overestimate model performance on readmission. For both zero-shot evaluation and finetuning (Section 4.4), the datasets are converted to multiple choice format (Supplementary P).

NYU+ Readmission.

Readmission occurs when a patient returns to the hospital shortly after discharge. Predicting readmissions is critical for identifying patients who need longer stays or post-discharge support, and it serves as a key hospital quality metric. This dataset contains discharge notes with 30-day all-cause readmission labels. The notes comprise a subset of NYU+ Notes whose encounters end between January 2013 and November 2021, with additional discharge notes from 2024 for the temporal test. Rehabilitation, dialysis, and palliative care notes are excluded to focus on modelling acute readmission. A positive label is assigned if the patient is readmitted within 30 days of discharge, and a negative label otherwise. We split the dataset into five sets: train, validation, and test (8:1:1 ratio, 2013 to May 2021), 2021 temporal test (June to December 2021), and 2024 temporal test. The positive class ratio ranges from 10.81% to 11.29%. The dataset contains 421,429 patients, 604,326 notes, and 607,877,177 words.

NYU+ In-Hospital Mortality.

In-hospital mortality prediction identifies patients at highest risk of death during admission, enabling timely palliative care consultations and goals-of-care discussions. This dataset contains history and physical (H&P) notes with in-hospital mortality labels. A positive label is assigned if the discharge disposition is “Expired”. The dataset contains 395,991 patients, 566,748 notes, and 608,603,182 words. The positive class ratio ranges from 1.78% to 1.93%.

NYU+ Length of Stay (LOS).

LOS is the number of days a patient remains hospitalized. Predicting LOS is essential for bed management, staffing allocation, and discharge planning. This dataset contains H&P notes with binned LOS labels assigned by quantile: 0–2 days (<25th percentile), 3 days (25th-50th), 4–5 days (50th-75th), and >5 days (>75th). The dataset contains 395,991 patients, 566,748 notes, and 608,603,182 words.

NYU+ Insurance Denial.

Insurance denials occur when payers reject claims for hospital services. Predicting denials allows hospitals to proactively address documentation gaps, reducing administrative burden and preventing unexpected out-of-pocket costs for patients. This dataset contains H&P notes with insurance denial labels for encounters ending between May 2021 and April 2022, with additional H&P notes from January 2024 for the temporal test. The positive class ratio ranges from 12.01% to 13.90%. The dataset contains 87,974 patients, 97,837 notes, and 89,147,715 words.

NYU+ Charlson Comorbidity Index (CCI).

CCI is a standard score used to quantify a patient’s chronic illness burden based on medical history [38]. This dataset provides H&P notes paired with binned CCI scores computed from International Classification of Diseases (ICD) codes [39]. The CCI is discretized into five classes: 0, 1–2, 3–4, 5–7, and >7. The dataset contains 306,741 patients, 443,915 notes, and 524,739,038 words.

4.2.3. External validation datasets

We create external validation datasets from MIMIC III [40], sourced from Beth Israel Deaconess Medical Center in Boston.

MIMIC III Readmission.

The labelled dataset has 6% positive labels, with 52,725 examples and a 70%/15%/15% train/validation/test split. Dataset construction details are in [41].

MIMIC III Mortality.

The labelled dataset has 10.55% positive labels, with 5,658 examples and an 80%/10%/10% split. We identify admission notes by filtering note descriptions, select one note per hospital stay using a prioritization heuristic, and remove notes written > 120 hours after admission.

MIMIC III LOS.

The labelled dataset uses the same 5,658 admission notes as mortality, with a mean LOS of 7.96 days. Continuous LOS values are discretized using the NYU+ LOS scheme.

4.2.4. Comprehension datasets

We evaluate the performance of Lang1 checkpoints on comprehension datasets to analyse the emergence of nonclinical abilities.

SciQ [42]. Contains 13.7K multiple choice science exam questions with contexts.

PubMedQA [43]. Contains 1K expert-annotated biomedical question-answering examples from PubMed abstracts.

4.3. Pretraining Lang1

We pretrain a family of Llama-style decoders (Lang1-100M, Lang1-1B, Lang1-7B) on a mixture of web texts and NYU Notes+ (Section 4.2.1) using next token prediction (Figure 1a). Detailed demographic statistics are in Supplementary Q. Unless otherwise noted, Lang1 models are trained with equal sampling from both clinical and general sources, which is supported by our pretraining ablations (Supplementary L). For tokenization, we use the Llama-2-7B tokenizer (SentencePiece, 32K vocabulary). The 100M-parameter model follows the Smol-Llama-101M architecture with a 1,024 context length; the 1B model follows TinyLlama-1.1B with a 2,048 context length; and the 7B model follows Llama-2-7B with a 4,096 context length.

We pretrain on 8 to 64 NVIDIA 80GB H100 GPUs with NVLink, using the LitGPT [44] library and Fully Sharded Data Parallel [45]. We run manual hyperparameter search trials based on speed, performance, and training stability. For all models we use AdamW with linear warmup (2,000 steps), β1 = 0.9, β2 = 0.95, ϵ = 10−8, and cosine decay to a minimum learning rate of 4 × 10−5. We use a seed of 3407, weight decay of 0.1, and gradient clipping of 1. We shard gradient and optimizer for models up to 1B, and apply full sharding for the 7B model. The effective batch size is 4,096 for the 100M model and 1,024 for the 1B and 7B models.

We implement a monitoring pipeline that automatically triggers few-shot evaluations and generations at fixed pretraining intervals. Alerts are configured to report loss spikes. Upon detection of anomalies, we revert to the most recent stable checkpoint. Validation loss is computed periodically on a held-out 0.1% split and used for checkpoint selection.

4.3.1. Pretrained models

We pretrain the variants listed in Table 1. Ablations (Supplementary L) show that larger models trained on more clinical data perform better, and that mixing in web texts does not substantially hurt downstream performance. When we refer to Lang1 without specifying data sources, we mean the variant trained with NYU Notes+ and web texts.

Table 1:

Pretrained model specifications.

Model Name Model Size Pretrain Data
Lang1-100M-NYUNotes 100M NYU Notes
Lang1-100M-NYUNotes+ 100M NYU Notes+
Lang1-100M-NYUNotes+,WebTexts 100M NYU Notes+, Web Texts
Lang1-1B-NYUNotes 1B NYU Notes
Lang1-1B-NYUNotes+ 1B NYU Notes+
Lang1-1B-NYUNotes+,WebTexts 1B NYU Notes+, Web Texts
Lang1-7B-NYUNotes+,WebTexts 7B NYU Notes+, Web Texts

4.4. Finetuning

We finetune Lang1 models (and their trajectory of checkpoints) and other pretrained models (Table 2) on ReMedE tasks using multiple choice format (Figure 1b). The labelled clinical notes are converted to multiple choice format (Supplementary P), and we train the model to predict the correct option. For fair comparison with NYUTron, we right-truncate all clinical notes to a maximum of 512 tokens. Zero-shot evaluation at native context lengths confirms this truncation does not affect model rankings or conclusions (Extended Data H). All finetuning jobs use one node of 8 NVIDIA 80GB H100 GPUs.

Table 2:

Additional model specifications.

Model Name Model Size Pretrain Data
Llama-3.2-1B 1B Unnamed public mix (9T tokens)
Llama-2-7B 7B Unnamed public mix (2T tokens)
DeepSeek-R1-Distill-Llama-70B 70B Public mix (2T tokens) + reasoning data

Before each full finetuning run, we conduct 5 hyperparameter search trials up to 100 steps using Hydra and Optuna. We search learning rate in log scale over [10−6, 10−3] [46]. We use AdamW with β1 = 0.9, β2 = 0.999, ϵ = 10−5, weight decay of 0.02, no gradient clipping, and cosine annealing with no warmup for a maximum of 5,120 steps. The best trial is selected based on validation AUROC and loss.

For full finetuning, we use the best learning rate and train for a maximum of 5,120 steps with early stopping based on Micro-AUROC (patience of 300 steps). Probabilities for AUROC are obtained by normalizing the logits of the multiple choice options. We train all parameters except for DeepSeek-R1-Distill-Llama-70B, which is finetuned using low-rank adaptation [47] to meet memory constraints (Supplementary R). For multitask finetuning, we mix examples from each task evenly within each training batch, scaling total steps by the number of tasks.

4.5. Evaluation

Pretraining evaluation.

We monitor token-level cross-entropy loss and perplexity for both training and validation.

Zero-shot and few-shot evaluation.

ReMedE is built on the LM Eval Harness [48]. We implement the tasks as multiple choice questions with AUROC as the metric and a child class of LocalCompletionsAPI to connect on-premises models. For models whose logits are not accessible (e.g., on-premises GPT-4o), we implement a custom sampling function to approximate probabilities (Supplementary S) by counting choices from 10 generations at temperature 1.

Finetuning evaluation.

We collect the logits of the multiple choice options, normalize them as probabilities, and calculate AUROC using scikit-learn (consistent with ReMedE’s backend). For multiclass classification, we use One-Versus-Rest (OVR) AUROC.

Uncertainty.

We calculate 95% confidence intervals (CI = ± 1.96 x standard deviation) by resampling each test set 1,000 times using the quantile bootstrap method from SciPy. Bootstrap CIs assume independence of test instances; Extended Data O confirms that the small fraction of recurring patients does not materially affect conclusions (< 1 pp change). Non-overlapping 95% CIs between two models conservatively imply p < 0.05; all key comparisons reported in this paper (e.g., Lang1-1B vs. Llama 3.2 1B, Lang1-1B vs. LoRA-finetuned Llama 70B) meet this criterion.

Covariates.

Main finetuning and zero-shot analyses do not adjust for demographic covariates; results stratified by age, sex, race, ethnicity, borough, and pediatric status are presented in Extended Data G for transparency on differential performance.

Temporal shift.

To better approximate deployment conditions under temporal distribution shift, all AUROCs are reported on test data from 2024, drawn from a period after the pretraining data, unless otherwise noted. See Extended Data A for a visualization.

Generalist models.

We compared against generalist frontier models, including DeepSeek RI (served via vLLM [49]), DeepSeek RI Distilled Llama 70B (vLLM), and on-premises GPT-4o (Azure-hosted). Additional models (Llama 3.3 70B Chat) were evaluated in the context length comparison (Extended Data H). We also evaluated MedQA leaderboard models including Llama 3.2 IB, Llama 2 7B, and MedMobile.

Supplementary Material

Supplement 1

Acknowledgements.

E.K.O. is supported by the National Cancer Institute’s Early Surgeon Scientist Program (3P30CA016087-41S1) and the W.M. Keck Foundation. L.Y.J. is supported by Apple AIML PhD fellowship. L.Y.J. and A.C. are supported by NSF Award 1922658. K.C., E.K.O., L.Y.J. and A.C. are supported by Institute for Information & communications Technology Promotion (IITP) grant funded by the Korea government (MSIT) (No. RS-2019-II190075 Artificial Intelligence Graduate School Program (KAIST); No. RS-2024-00509279, Global AI Frontier Lab). We would like to acknowledge J. Golfinos, whose vision and support made this project possible. We would like to acknowledge Michael Costantino, Ph.D., Ali Siavosh-Haghighi, Ph.D., Kevin Yie, M.S., Neelima Sharma, Tedum Sampson from the NYU Langone High Performance Computing (HPC) team. Without their tireless assistance in building and maintaining our GPU cluster none of this research would have been possible. We would also like to thank Dr. Dafna Bar-Sagi,Ph.D., and Nader Mherabi whose support for this research has made everything possible. Thanks to He He, Ph.D., Eunsol Choi, Ph.D., Carlos Fernandez-Granda, Ph.D., Julia Kempe, Ph.D., Vasant Dhar, Ph.D., Keunwoo Choi, Ph.D., Jesse Swanson, Gavin Zihao Yang, William Merrill, Ph.D., Nicholas Lourie, Sophie Hao, Ph.D., Vishakh Padmakumar, Ph.D., Michael Hu, Robert J Steele, Yueying Li, Yunzhen Feng, Ph.D., Guillermo Sapiro, Ph.D., Oussama Elaqchar, Kai Xu, Varun Yerram, Itay Itzhak, Jeff Hammerbacher, Pierre Musacchio for their valuable discussions.

Footnotes

Declarations

Ethical approval. This study was approved by the Institutional Review Board (IRB) at NYU Langone Health (study protocol s21-01189). The methods were carried out in accordance with the IRB’s relevant guidelines and regulations.

Use of AI Tools. A large language model (Claude, Anthropic) was used to assist with iterating on visualization code for figures and refactoring code for the open-source release. All AI-assisted development was performed exclusively on local code without access to computing clusters, patient data, or any protected health information (PHI). No clinical data was transmitted to or processed by any AI tool at any point during this study. All figures were initially created by the authors and subsequently refined with AI assistance. All code, analyses, scientific interpretations, and manuscript text were designed, verified, and approved by the authors.

Conflict of interest E.K.O. reports consulting with March AI, Sofinnova Inc., Google Inc., income from Merck & Co., and Mirati Therapeutics, and equity in Artisight Inc. A.C. is employed by Google DeepMind. Q.P. is employed by Faction Imaging Inc. J.S. is employed by March AI. There are no other potential conflicts of interest. The work presented herein was performed exclusively within the NYU Langone Health System.

Additional Declarations: Yes there is potential Competing Interest. E.K.O. reports consulting with March AI, Sofinnova Inc., Google Inc., income from Merck & Co., and Mirati Therapeutics, and equity in Artisight Inc. A.C. is employed by Google DeepMind. Q.P. is employed by Faction Imaging Inc. J.S. is employed by March AI. There are no other potential conflicts of interest. The work presented herein was performed exclusively within the NYU Langone Health System.

1

This study is approved by the Institutional Review Board (IRB) at NYU Langone Health. The methods are carried out in accordance with the IRB’s relevant guidelines and regulations.

Data Availability.

The clinical data used for the pretraining, finetuning, validation, and test sets were collected from the NYU Langone Health System EHR maintained by the NYULH Datacore team. Text data was stripped of rich text features and directly included in the dataset “as-is”, and was augmented with structured features where noted. It consists of the production medical records of NYU Langone and cannot be made publicly available. For the external validation task, the datasets were obtained from MIMIC III, and are publicly available from their website.

Code Availability.

This work uses several open-source libraries including PyTorch, LitGPT, Transformers library, LM Eval Harness, and Hydra. Our experimental framework involves the utilization of these libraries and in some cases modification of them. We will release code to replicate the pretraining, finetuning, and testing of the models described in this paper at the time of publication. We include detailed methods and implementation steps in the Methods and Supplementary Information to allow for independent replication.

References

  • [1].Sinsky C., Colligan L., Li L., Prgomet M., Reynolds S., Goeders L., Westbrook J., Tutty M., Blike G.: Allocation of physician time in ambulatory practice: A time and motion study in 4 specialties. Ann. Intern. Med. 165(11), 753–760 (2016) [DOI] [PubMed] [Google Scholar]
  • [2].Hingle S.: Electronic health records: An unfulfilled promise and a call to action. Ann. Intern. Med. 165(11), 818–819 (2016) [DOI] [PubMed] [Google Scholar]
  • [3].Murphy D.R., Meyer A.N.D., Russo E., Sittig D.F., Wei L., Singh H.: The burden of inbox notifications in commercial electronic health records. JAMA Intern. Med. 176(4), 559–560(2016) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [4].Hoffmann J., Borgeaud S., Mensch A., Buchatskaya E., Cai T., Rutherford E., Casas D., Hendricks L.A., Welbl J., Clark A., Hennigan T., Noland E., Millican K., Driessche G., Damoc B., Guy A., Osindero S., Simonyan K., Elsen E., Vinyals O., Rae J.W., Sifre L.: An empirical analysis of compute-optimal large language model training. In: Oh A.H., Agarwal A., Belgrave D., Cho K. (eds.) Advances in Neural Information Processing Systems (2022). https://openreview.net/forum?id=iBBcRUlOAPR [Google Scholar]
  • [5].DeepSeek-AI, Guo D., Yang D., Zhang H., Song J., Zhang R., Xu R., Zhu Q., Ma S., Wang P., et al. : DeepSeek-R1: Incentivizing reasoning capability in LLMs via reinforcement learning. Nature 645, 633–638 (2025) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [6].Trinh T.H., Wu Y., Le Q.V., He H., Luong T.: Solving olympiad geometry without human demonstrations. Nature 625(7995), 476–482 (2024) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [7].Zhou S., Xu Z., Zhang M., Xu C., Guo Y., Zhan Z., Ding S., Wang J., Xu K., Fang Y., Xia L., Yeung J., Zha D., Melton G.B., Lin M., Zhang R.: Large language models for disease diagnosis: a scoping review. npj Artif. Intell. 1(1), 9 (2025) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [8].Zhang L., Liu M., Wang L., Zhang Y., Xu X., Pan Z., Feng Y., Zhao J., Zhang L., Yao G., Chen X., Xie X.: Constructing a large language model to generate impressions from findings in radiology reports. Radiology 312(3), 240885 (2024) [Google Scholar]
  • [9].He Z., Bhasuran B., Jin Q., Tian S., Hanna K., Shavor C., Arguello L.G., Murray P., Lu Z.: Quality of answers of generative large language models versus peer users for interpreting laboratory test results for lay patients: Evaluation study. J. Med. Internet Res. 26(1), 56655 (2024) [Google Scholar]
  • [10].Ben Shoham O., Rappoport N.: Cpllm: Clinical prediction with large language models. PLOS Digital Health 3(12), 0000680 (2024) 10.1371/journal.pdig.0000680. Published December 6, 2024 [DOI] [Google Scholar]
  • [11].Scarlat A., Campion F.X.: Predicting 30-day mortality and readmission using hospital discharge summaries: A comparative analysis of machine learning models, large language models, and physicians. medRxiv, 2025-032625324714 (2025) [Google Scholar]
  • [12].Bhasuran B., Jin Q., Xie Y., Yang C., Hanna K., Costa J., Shavor C., Han W., Lu Z., He Z.: Preliminary analysis of the impact of lab results on large language model generated differential diagnoses. NPJ Digit. Med. 8(1), 166 (2025) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [13].McDuff D., Schaekermann M., Tu T., Palepu A., Wang A., Garrison J., Singhal K., Sharma Y., Azizi S., Kulkarni K., Hou L., Cheng Y., Liu Y., Mahdavi S.S., Prakash S., Pathak A., Semturs C., Patel S., Webster D.R., Dominowska E., Gottweis J., Barral J., Chou K., Corrado G.S., Matias Y., Sunshine J., Karthikesalingam A., Natarajan V.: Towards accurate differential diagnosis with large language models. Nature, 1–7 (2025) [Google Scholar]
  • [14].Alyakin A., Stryker J., Alber D.A., Lee J.V., Sangwon K.L., Duderstadt B., Save A., Kurland D., Frome S., Singh S., Zhang J., Yang E., Park K.Y., Orillac C., Valliani A.A., Neifert S., Liu A., Patel A., Livia C., Lau D., Laufer I., Rozman P.A., Hidalgo E.T., Riina H., Feng R., Hollon T., Aphinyanaphongs Y., Golfinos J.G., Snyder L., Leuthardt E., Kondziolka D., Oermann E.K.: CNS-Obsidian: A Neurosurgical Vision-Language Model Built From Scientific Publications (2025). https://arxiv.org/abs/2502.19546
  • [15].Lehman E., Hernandez E., Mahajan D., Wulff J., Smith M.J., Ziegler Z., Nadler D., Szolovits P., Johnson A., Alsentzer E.: Do we still need clinical language models? In: Proceedings of the Conference on Health, Inference, and Learning. PMLR, vol. 209 (2023) [Google Scholar]
  • [16].Johri S., Jeong J., Tran B.A., Schlessinger D.I., Wongvibulsin S., Barnes L.A., Zhou H.-Y., Cai Z.R., Van Allen E.M., Kim D., Daneshjou R., Rajpurkar P.: An evaluation framework for clinical use of large language models in patient interaction tasks. Nature medicine 31(1), 77–86 (2025) [Google Scholar]
  • [17].Jiang Y., Black K.C., Geng G., Park D., Zou J., Ng A.Y., Chen J.H.: MedAgentBench: A virtual EHR environment to benchmark medical LLM agents. NEJM AI 2(9) (2025) [Google Scholar]
  • [18].Vishwanath K., Alyakin A., Alber D.A., Lee J.V., Kondziolka D., Oermann E.K.: Medical large language models are easily distracted (2025). https://arxiv.org/abs/2504.01201
  • [19].Hager P., Jungmann F., Holland R., Bhagat K., Hubrecht I., Knauer M., Vielhauer J., Makowski M., Braren R., Kaissis G., Rueckert D.: Evaluation and mitigation of the limitations of large language models in clinical decision-making. Nat. Med. 30(9), 2613–2622(2024) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [20].Wornow M., Xu Y., Thapa R., Patel B., Steinberg E., Fleming S., Pfeffer M.A., Fries J., Shah N.H.: The shaky foundations of large language models and foundation models for electronic health records. NPJ Digit. Med. 6(1), 135 (2023) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [21].Yang X., Chen A., PourNejatian N., Shin H.C., Smith K.E., Parisien C., Compas C., Martin C., Costa A.B., Flores M.G., Zhang Y., Magoc T., Harle C.A., Lipori G., Mitchell D.A., Hogan W.R., Shenkman E.A., Bian J., Wu Y.: A large language model for electronic health records. NPJ Digit. Med. 5(1), 194 (2022) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [22].Peng C., Yang X., Chen A., Smith K.E., PourNejatian N., Costa A.B., Martin C., Flores M.G., Zhang Y., Magoc T., Lipori G., Mitchell D.A., Ospina N.S., Ahmed M.M., Hogan W.R., Shenkman E.A., Guo Y., Bian J., Wu Y.: A study of generative large language model for medical research and healthcare. NPJ Digit. Med. 6(1), 210 (2023) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [23].Jiang L.Y., Liu X.C., Nejatian N.P., Nasir-Moin M., Wang D., Abidin A., Eaton K., Riina H.A., Laufer I., Punjabi P., Miceli M., Kim N.C., Orillac C., Schnurman Z., Livia C., Weiss H., Kurland D., Neifert S., Dastagirzada Y., Kondziolka D., Cheung A.T.M., Yang G., Cao M., Flores M., Costa A.B., Aphinyanaphongs Y., Cho K., Oermann E.K.: Health system-scale language models are all-purpose prediction engines. Nature (2023) [Google Scholar]
  • [24].Goh E., Gallo R., Hom J., Strong E., Weng Y., Kerman H., Cool J.A., Kanjee Z., Parsons A.S., Ahuja N., Horvitz E., Yang D., Milstein A., Olson A.P.J., Rodman A., Chen J.H.: Large language model influence on diagnostic reasoning: A randomized clinical trial: A randomized clinical trial. JAMA Netw. Open 7(10), 2440969 (2024) [Google Scholar]
  • [25].Nori H., Daswani M., Kelly C., Lundberg S., Ribeiro M.T., Wilson M., Liu X., Sounderajah V., Carlson J., Lungren M.P., Gross B., Hames P., Suleyman M., King D., Horvitz E.: Sequential diagnosis with language models. arXiv [cs.CL] (2025) [Google Scholar]
  • [26].Tu T., Schaekermann M., Palepu A., Saab K., Freyberg J., Tanno R., Wang A., Li B., Amin M., Cheng Y., Vedadi E., Tomasev N., Azizi S., Singhal K., Hou L., Webson A., Kulkarni K., Mahdavi S.S., Semturs C., Gottweis J., Barral J., Chou K., Corrado G.S., Matias Y., Karthikesalingam A., Natarajan V.: Towards conversational diagnostic artificial intelligence. Nature, 1–9 (2025) [Google Scholar]
  • [27].Arora R.K., Wei J., Hicks R.S., Bowman P., QuiÃśonero-Candela J., Tsimpourlas F., Sharman M., Shah M., Vallone A., Beutel A., Heidecke J., Singhal K.: HealthBench: Evaluating large language models towards improved human health. arXiv [cs.CL] (2025) [Google Scholar]
  • [28].Ouyang L., Wu J., Jiang X., Almeida D., Wainwright C.L., Mishkin P., Zhang C., Agarwal S., Slama K., Ray A., Schulman J., Hilton J., Kelton F., Miller L., Simens M., Askell A., Welinder P., Christiano P., Leike J., Lowe R.: Training language models to follow instructions with human feedback. In: Advances in Neural Information Processing Systems, vol. 35 (2022) [Google Scholar]
  • [29].Cottier B., Rahman R., Fattorini L., Maslej N., Besiroglu T., Owen D.: The rising costs of training frontier AI models. arXiv [cs.CY] (2024) [Google Scholar]
  • [30].Jiang L.Y., Liu X.C., Cho K., Oermann E.K.: Paradox of De-identification: A Critique of HIPAA Safe Harbour in the Age of LLMs (2026) [Google Scholar]
  • [31].Feng S., Ding W., Liu A., Wang Z., Shi W., Wang Y., Shen Z., Han X., Lang H., Lee C.-Y., Pfister T., Choi Y., Tsvetkov Y.: When one LLM drools, multi-LLM collaboration rules. arXiv [cs.CL] (2025) [Google Scholar]
  • [32].Rocklin M.: Dask: Parallel computation with blocked algorithms and task scheduling. In: Proceedings of the 14th Python in Science Conference, pp. 126–132. SciPy, Austin, TX (2015) [Google Scholar]
  • [33].Soboleva D., Al-Khateeb F., Myers R., Steeves J.R., Hestness J., Dey N.: SlimPajama: A 627B token cleaned and deduplicated version of RedPajama. https://www.cerebras.net/blog/slimpajama-a-627b-token-cleaned-and-deduplicated-version-of-redpajama (2023). https://huggingface.co/datasets/cerebras/SlimPajama-627B
  • [34].Common Crawl Foundation: Common Crawl Dataset. https://commoncrawl.org. Accessed: 2025-11-14 (2024)
  • [35].Raffel C., Shazeer N., Roberts A., Lee K., Narang S., Matena M., Zhou Y., Li W., Liu P.J.: C4: Colossal Clean Crawled Corpus. https://www.tensorflow.org/datasets/catalog/c4. Accessed: 2024-11-14 (2020)
  • [36].Wenzek G., Lacroix T., Lavergne T., et al. : BookCorpus2. https://github.com/facebookresearch/cc_net. Included in The Pile and SlimPajama datasets. (2020)
  • [37].Rae J.W., Potapenko A., Jayakumar S.M., Lillicrap T.: Compressing large-scale language models. In: International Conference on Machine Learning (ICML) (2020). PG-19 long-book subset from Project Gutenberg. [Google Scholar]
  • [38].Charlson M.E., Pompei P., Ales K.L., MacKenzie C.R.: A new method of classifying prognostic comorbidity in longitudinal studies: Development and validation. Journal of Chronic Diseases 40(5), 373–383 (1987) 10.1016/0021-9681(87)90171-8 [DOI] [PubMed] [Google Scholar]
  • [39].Charlson Comorbidity Index (CCI). https://www.mdcalc.com/calc/3917/charlson-comorbidity-index-cci. Accessed: 2025-10-12
  • [40].Johnson A., Pollard T., Mark R.: MIMIC-III clinical database. PhysioNet (2023) [Google Scholar]
  • [41].Yang G., Cao M., Jiang L.Y., Liu X.C., Cheung A.T.M., Weiss H., Kurland D., Cho K., Oermann E.K.: Language model classifier aligns better with physician word sensitivity than XGBoost on readmission prediction. In: Machine Learning for Health (ML4H) Symposium, New Orleans, LA (2022) [Google Scholar]
  • [42].Welbl J., Liu N.F., Gardner M.: Crowdsourcing multiple choice science questions. In: Proceedings of the Workshop on Noisy User-generated Text (W-NUT) (2017) [Google Scholar]
  • [43].Jin Q., Dhingra B., Liu Z., Cohen W.W., Lu X.: PubMedQA: A dataset for biomedical research question answering. In: Proceedings of the Conference on Empirical Methods in Natural Language Processing (2019) [Google Scholar]
  • [44].Lightning AI: LitGPT. https://github.com/Lightning-AI/litgpt (2023)
  • [45].Zhao Y., Gu A., Varma R., Luo L., Huang C.-C., Xu M., Wright L., Shojanazeri H., Ott M., Shleifer S., Desmaison A., Balioglu C., Damania P., Nguyen B., Chauhan G., Hao Y., Mathews A., Li S.: PyTorch FSDP: Experiences on scaling fully sharded data parallel. Proceedings of the VLDB Endowment 16(12), 3848–3860 (2023) [cs.DC] [Google Scholar]
  • [46].Bengio Y.: Practical recommendations for gradient-based training of deep architectures. In: Montavon G., Orr G.B., Müller K.-R. (eds.) Neural Networks: Tricks of the Trade. Lecture Notes in Computer Science, vol. 7700, pp. 437–478. Springer, Berlin, Heidelberg: (2012) [Google Scholar]
  • [47].Hu E.J., Shen Y., Wallis P., Allen-Zhu Z., Li Y., Wang S., Wang L., Chen W.: LoRA: Low-rank adaptation of large language models. In: International Conference on Learning Representations (2022) [Google Scholar]
  • [48].Biderman S., Schoelkopf H., Sutawika L., Gao L., Tow J., Abbasi B., Aji A.F., Ammanamanchi P.S., Black S., Clive J., DiPofi A., Etxaniz J., Fattori B., Forde J.Z., Foster C., Hsu J., Jaiswal M., Lee W.Y., Li H., Lovering C., Muennighoff N., Pavlick E., Phang J., Skowron A., Tan S., Tang X., Wang K.A., Winata G.I., Yvon F., Zou A.: Lessons from the trenches on reproducible evaluation of language models. arXiv [cs.CL] (2024) [Google Scholar]
  • [49].Kwon W., Li Z., Zhuang S., Sheng Y., Zheng L., Yu C.H., Gonzalez J.E., Zhang H., Stoica I.: Efficient memory management for large language model serving with PagedAttention. In: Proceedings of the ACM Symposium on Operating Systems Principles (2023) [Google Scholar]
  • [50].ContactDoctor: Bio-Medical-Llama-3-2-1B-CoT-012025. Hugging Face model hub. Accessed: 2025-02-24 (2025). https://huggingface.co/ContactDoctor/Bio-Medical-Llama-3-2-1B-CoT-012025

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Supplement 1

Data Availability Statement

The clinical data used for the pretraining, finetuning, validation, and test sets were collected from the NYU Langone Health System EHR maintained by the NYULH Datacore team. Text data was stripped of rich text features and directly included in the dataset “as-is”, and was augmented with structured features where noted. It consists of the production medical records of NYU Langone and cannot be made publicly available. For the external validation task, the datasets were obtained from MIMIC III, and are publicly available from their website.


Articles from Research Square are provided here courtesy of American Journal Experts

RESOURCES