cs.AIAug 17, 2026

Large language models as synthetic clinical experts to inform longitudinal rare-disease modeling

Authors: Clemens Schächter, Astrid Pechmann, Janbernd Kirschner, Jan Hasenauer, Harald Binder

Organizations: Institute of Medical Biometry and Statistics (IMBI), Faculty of Medicine and Medical Center – University of Freiburg, Freiburg, Germany · Freiburg Center for Data Analysis, Modeling and AI – University of Freiburg, Freiburg, Germany · Department of Neuropediatrics and Muscle Disorders, Faculty of Medicine and Medical Center – University of Freiburg, Freiburg, Germany · Bonn Center for Mathematical Life Sciences – University of Bonn, Germany · 

Abstract

Due to the limited amount of information, modeling longitudinal rare-disease data can benefit from integrating clinical knowledge. Yet, elicitation of expert knowledge and formalization for model fitting is challenging, in particular due to limited time of clinical experts. To nevertheless make domain knowledge accessible during model fitting, we use large language models (LLMs) as synthetic clinical experts to supervise a variational-autoencoder-based approach that learns low-dimensional latent summaries of visit-level observations. Specifically, LLMs are queried offline on textual descriptions of patient observations to obtain judgments, e.g., the suspected clinical category. To improve the variational autoencoder fit, we train a differentiable surrogate model on these judgments and augment the loss function to encourage reconstructions that preserve the clinical-label distribution of their corresponding input profile. In an application to longitudinal motor-function assessments from children with spinal muscular atrophy, we map visit-level clinical profiles to low-dimensional representations that are linked by a multivariate mixed-effects model. The synthetic expert loss discourages reconstructions that remain numerically close in data space but alter the clinical interpretation of the reconstructed motor function profile, such as by crossing a disease-type boundary. We thus reduced disagreement between original and reconstructed SMA type labels from about 11 to 7 percent. Furthermore, informing the latent representation by the synthetic expert improved prediction of motor function milestones compared with unsupervised latent representations and a data-level baseline. These results suggest that incorporating LLMs into model fitting can make clinical knowledge available to representation learning and improve clinical faithfulness for longitudinal rare-disease data.

Figures & tables

Appendix figures & tables3 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. A specialized reasoning large language model for accelerating rare disease diagnosis: a randomized AI physician assistance trial

    Jun 23, 2026Haichao Chen, Songchi Zhou, Zhengyun Zhao +28Rare Disease DiagnosisClinical Decision Support

  2. An Underexplored Frontier: Large Language Models for Rare Disease Patient Education and Communication -- A scoping review

    Mar 30, 2026Zaifu Zhan, Yu Hou, Kai Yu +4Medical LLMsHealthcare

  3. Systematic Evaluation of the Quality of Synthetic Clinical Notes Rephrased by LLMs at Million-Note Scale

    May 18, 2026Jinghui Liu, Sarvesh Soni, Anthony NguyenSynthetic Data AugmentationAutomated Medical Coding