The authors reported development of FERMAT, an autoregressive clinical foundation model trained on longitudinal electronic health records drawn from 3.77 million patients at a single hospital. The model contains 65 million parameters, according to the preprint, and was designed to represent patient trajectories as sequences of clinical events. The study team did not provide full training recipes or hyperparameter tables in the abstract; the source did not report those methodological details in the sections we reviewed. Investigators framed two practical downstream uses for the same foundation model: first, task-specific predictors that consume learned patient representations; second, predictions generated from simulated clinical event sequences produced by the autoregressive model.
FERMAT was evaluated across multiple tasks to compare those two approaches directly. The authors emphasized a large-scale training corpus drawn from routine care and noted that patient-level records used for model development are available on reasonable request, but not publicly accessible without institutional approval. The Institutional Review Board of Seoul National University Hospital determined the study exempt from review, and the authors declared no competing interests. The report is a medRxiv preprint and has not undergone peer review; the authors and the platform cautioned against using these findings to guide clinical practice without further validation.
Investigators conducted comparative analyses to determine whether representation-based or generation-based predictions performed better for different clinical problems. Representation-based predictors were task-specific models trained on patient embeddings derived from FERMAT. Generation-based predictors used the autoregressive model to produce clinical event sequences and then derived outcome estimates from those sequences. Data indicated that representation-based prediction outperformed generation-based approaches in disease-risk forecasting.
The authors reported detailed results for five-year risk of chronic kidney disease, fatty liver, and diabetes in a held-out test cohort of 10,000 patients. In these disease-risk comparisons, representation-based predictors exceeded generation-based estimates by between 0.098 and 0.115 in observation-weighted AUROC and yielded lower probability error, per the preprint. The report presented these numbers as direct comparisons; the source did not provide further subgroup breakdowns or calibration curves in the abstract. The study team interpreted these results to mean that, for longitudinal disease-risk tasks involving multi-year horizons, encoding compressed patient representations and training task-specific classifiers produced stronger discrimination than sampling synthetic trajectories and deriving risk estimates from those sequences.
The authors evaluated a distinct task that reflects a common EHR characteristic: many clinical events share the same calendar date in hospital records (diagnoses, prescriptions, procedures recorded on a single day). For that same-day recovery task, generation-based prediction performed better. Using 50 generated trajectories per patient, the autoregressive generation approach achieved a Recall@10 of 71.0%, compared with 55.7% for representation-based prediction. The paired improvement reported was 15.31 percentage points (95% CI, 13.92–16.79; n = 1,862). The study team observed that generation-based methods, by explicitly modeling event co-occurrence and sequence, can better recover sets of same-day events when the goal is to propose multiple candidate items.
These findings indicate task dependence: the same underlying clinical foundation model supported both approaches, but their relative strengths differed by the clinical outcome and the prediction format. The authors noted that the two approaches may be complementary; the preprint suggested that one could choose the approach that best matches the downstream task requirements—discrimination for long-horizon disease risk or recall for multi-event same-day retrieval.
The study used a retrospective EHR dataset from Seoul National University Hospital and the authors stated that patient-level data are not publicly available. The preprint clarified that all data used are available upon reasonable request and subject to Institutional Review Board approval and institutional data access procedures. The Institutional Review Board determined the study exempt from review. The authors declared funding from the Korea Health Industry Development Institute and listed no competing interests.
Readers should interpret the reported performance differences with caution. The source is a preprint and has not been peer reviewed. The dataset comes from a single hospital system; the authors did not report external validation cohorts in the abstract, and the source did not document geographic or temporal generalizability in the sections available. The preprint did not present full methodological details for reproducibility in the abstract and summary materials we reviewed; those specifics were not reported there. Open questions that remain—based on the source—include how FERMAT performs across different hospital systems, whether the representation-based and generation-based trade-offs hold in other EHR architectures, and what operational thresholds would be required for safe clinical deployment. These are the concrete gaps documented by the authors and by the medRxiv posting.