cs.LGAug 28, 2026

FedEHR-Agents: Federated Agentic Optimization for Automated EHR Modeling

Authors: Jun Bai, Ruilin Wang, Yue Li

Organizations: School of Computer Science, McGill University, Montreal, Canada · Mila – Quebec AI Institute, Montreal, Canada

Abstract

Recent advances in large language models are enabling autonomous clinical agents to perform increasingly complex electronic health record (EHR) modeling workflows. However, agents deployed at individual hospitals remain constrained by institution-specific data and modeling environments, while direct cross-hospital collaboration is restricted by the sensitivity of patient-level EHR data. Although federated learning (FL) provides a natural foundation for privacy-preserving collaboration, existing approaches remain predominantly model-centric, limiting federation to prediction models or their updates while overlooking the richer modeling experience accumulated by autonomous agents. To address this limitation, we propose FedEHR-Agents, an experience-centric federated agentic optimization framework for automated EHR modeling. Each hospital deploys an autonomous clinical EHR agent that performs data preprocessing and model development while refining local clinical modeling experience through historical memory, task-specific evaluation, and TextGrad-based prompt refinement. The federated server performs evidence-guided experience aggregation to integrate reliable and complementary modeling experience across heterogeneous hospitals and distills the aggregated experience into global meta-prompts for subsequent local refinement. Extensive experiments on real-world multi-hospital EHR benchmarks demonstrate that FedEHR-Agents consistently outperforms local and federated baselines across diverse clinical prediction tasks and remains robust across different federation scales and LLM backbones. These results establish clinical modeling experience as a promising collaborative object beyond conventional parameter-centric FL and point toward federated autonomous clinical intelligence.

Figures & tables

Appendix figures & tables7 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. FedEHR-Gen: Federated Synthetic Time-Series EHR Generation via Latent Space Alignment and Distribution-Aware Aggregation

    May 27, 2026Jun Bai, Ziyang Song, Yue LiSynthetic Data GenerationConditional Variational Autoencoder

  2. Federated generative event models for tokenized electronic health records

    Aug 3, 2026Michael C. Burkhart, Luke Solo, Inhyeok Lee +8Clinical Outcome PredictionGenerative Modeling

  3. SynPre-FL: Synthetic data-driven pretraining integrated Federated Learning training framework

    Jul 21, 2026Akarsh K Nair, Muhammad Arifur Rahman, Nicholas Shopland +8Synthetic Data PretrainingClinical Outcome Prediction