cs.LGFeb 24, 2026

The Mean is the Mirage: Entropy-Adaptive Model Merging under Heterogeneous Domain Shifts in Medical Imaging

Authors: Sameer Ambekar, Reza Nasirigerdeh, Peter J. Schuffler, Lina Felsner, Daniel M. Lang, Julia A. Schnabel

Organizations: School of Computation, Information and Technology, Technical University of Munich, Germany · Institute of Machine Learning in Biomedical Imaging, Helmholtz Munich, Germany · relAI – Konrad Zuse School of Excellence in Reliable AI · Munich Center for Machine Learning (MCML) · Institute of Pathology, Technical University of Munich, Germany · School of Biomedical Engineering and Imaging Sciences, King’s College London, UK

Abstract

Model merging under unseen test-time distribution shifts often renders naive strategies, such as mean averaging unreliable. This challenge is especially acute in medical imaging, where models are fine-tuned locally at clinics on private data, producing domain-specific models that differ by scanner, protocol, and population. When deployed at an unseen clinical site, test cases arrive in unlabeled, non-i.i.d. batches, and the model must adapt immediately without labels. In this work, we introduce an entropy-adaptive, fully online model-merging method that yields a batch-specific merged model via only forward passes, effectively leveraging target information. We further demonstrate why mean merging is prone to failure and misaligned under heterogeneous domain shifts. Next, we mitigate encoder classifier mismatch by decoupling the encoder and classification head, merging with separate merging coefficients. We extensively evaluate our method with state-of-the-art baselines using two backbones across nine medical and natural-domain generalization image classification datasets, showing consistent gains across standard evaluation and challenging scenarios. These performance gains are achieved while retaining single-model inference at test-time, thereby demonstrating the effectiveness of our method.

Figures & tables

Appendix figures & tables1 asset

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Entropy Minimization without Model Collapse: Mitigating Prediction Bias in Medical Imaging

    Jun 1, 2026Tim Nielen, Sameer Ambekar, Johannes Kiechle +2Distribution Shift RobustnessTest-Time Adaptation

  2. When To Adapt? Adapting the Model or Data in Federated Medical Imaging

    Apr 27, 2026Chamani Shiranthika, Parvaneh SaeediDomain AdaptationMedical Image Classification

  3. Model Merging for Medical LVLMs: A Benchmark and a Winner-Take-All Approach

    Jul 17, 2026Lichao Mou, Shilan Zhang, Chunlei Li +7Low-Rank AdaptationMedical VLMs