MedAdaptAgent: An Automatic Harness for Adapting Medical Imaging Models to New Sites
Abstract
Reusing pretrained medical-imaging models offers an alternative to training from scratch. A model trained for the same task may perform poorly at a new hospital because imaging protocols and preprocessing differ. Effective adaptation depends on the model architecture, domain shift, and available labels and compute. Adaptation can improve scores on a small labeled set yet reduce performance on unseen data. We present MedAdaptAgent, an automatic harness that turns a supplied model, target data, and a free-text request into a new-site adaptation workflow. Its LLM-driven Adaptation Planner uses model-site evidence to choose compatible experiments and revise subsequent adjustments. The harness requires evidence of improvement over the pretrained model, then delivers the selected model as a complete, runnable package. Evaluation spans 26 segmentation and classification transfers across architectures and compute settings, with segmentation annotation budgets ranging from zero-shot transfer to few-shot adaptation. With 20 local annotations, mean segmentation Dice rises from 0.483 to 0.774 across 10 transfers, a 60.1% relative gain, with no harmful replacements. Mean classification AUROC rises from 0.810 to 0.837 across 13 transfers, a 3.4% relative gain. Comparing adapted models with the pretrained model reduces harmful classification replacements by 30.8% versus selecting the highest-scoring model on the available labels, using identical candidates. Seven public-model deployments demonstrate adaptation and reproducible package delivery across contrast and modality shifts. A CT-to-MRI study extends the evaluation to four LLM planners, including two open-weight models. We release the code on GitHub.
Create a lesson
Metadata
- Comments
- 17 pages, 2 figures. Code: https://github.com/Guhanxue/medagent
Related papers
Medical Image Segmentation Is Now Just Another Coding Task
Shared title terminologycs.CVShuheng Cao, Ruiqi Chen, Qizhen Lan et al.
A dataset of clinically similar image pairs from citation-linked case reports for medical image retrieval
Shared title terminologycs.CVGuy Shmueli, Keno K. Bressem, Tom Hope
Leakage-Safe Auditing of Attribution-Driven Data Curation in Medical Imaging
Shared title terminologycs.CVMalay Phadke, Akshay Gokhale
Frequency-Adaptive Gaussian Grids for Efficient Image Representation
Shared title terminologycs.CVAnatolii Evdokimov, Stavros Diolatzis, Bingxuan Li et al.
Meta-Initialization of Implicit Neural Representations to Accelerate Deformable Medical Image Registration
Shared title terminologycs.CVMarat O. Zinovev, Dmitry V. Sorokin
Convex Potential Learning for Optimal Transport Between Medical Images
Shared title terminologycs.CVHongyu Kan, Ivan Medri, Natasha Ironside et al.