Auto-FedRL: Federated Hyperparameter Optimization for Multi-institutional Medical Image Segmentation

Pengfei Guo, Dong Yang, Ali Hatamizadeh, An Xu, Ziyue Xu, Wenqi Li, Can Zhao, Daguang Xu, Stephanie A. Harmon, Evrim Turkbey, Baris Turkbey, Bradford J. Wood, Francesca Patella, Elvira Stellato, Gianpaolo Carrafiello, Vishal M. Patel, Holger R. Roth

Introduction

Federated Learning (FL) has emerged as a vital tool for multi-institutional medical research, allowing hospitals to collaboratively train AI models without sharing sensitive patient data. However, medical data is inherently heterogeneous (non-IID), with variations in equipment and protocols leading to significant domain shifts. Standard FL algorithms like FedAvg are highly sensitive to hyperparameters, often requiring extensive manual tuning or costly Hyperparameter Optimization (HPO) cycles. In resource-constrained medical settings, running dozens of training trials is often unfeasible.

Auto-FedRL addresses this by automating hyperparameter tuning dynamically during a single training trial. By treating HPO as an online Reinforcement Learning (RL) problem, the framework adjusts parameters such as learning rates and aggregation weights on the fly, making it practical for real-world clinical applications.

Methodology: Online Reinforcement Learning for HPO

The core of Auto-FedRL is an RL agent situated on the server that optimizes hyperparameters in real-time.

  1. The RL Agent: The agent (a statistical model or Multi-Layer Perceptron) samples hyperparameters at each communication round.
  2. Reward Mechanism: The agent receives a reward based on the relative reduction in validation loss across participating clients, incentivizing choices that improve model performance.
  3. Continuous Search Space: A major innovation is the transition from discrete grid searches to a continuous search space. By modeling hyperparameters as a continuous Gaussian distribution, the framework avoids the exponential complexity associated with high-dimensional discrete grids.
Comparison of discrete and continuous search strategies in Auto-FedRL.

The framework also employs a pseudo-gradient formulation, allowing the RL agent to tune server-side parameters alongside client-specific ones. This enables the discovery of optimal "training schedules" automatically, such as learning rate decay, which typically requires expert manual design.

Evaluation and Results

The researchers validated Auto-FedRL across three benchmarks: CIFAR-10 (with simulated heterogeneity), a multi-national COVID-19 lesion segmentation dataset, and a multi-institutional pancreas segmentation dataset.

Performance and Generalization

On the COVID-19 dataset, Auto-FedRL achieved a Global Test Average Dice score of 64.7%, surpassing standard FedAvg (61.4%). Notably, in the pancreas segmentation task, the model sometimes outperformed centralized training (where data is pooled), suggesting that dynamic tuning helps the model generalize better to specific local data distributions.

Efficiency Gains

The move to continuous search provides massive computational benefits. Compared to traditional discrete search methods, Auto-FedRL's continuous strategy proved to be significantly more efficient.

Efficiency comparison showing the advantages of continuous search over discrete methods.

As shown in the evaluation, the continuous search strategy was approximately 690x faster and required only 7% of the memory compared to discrete alternatives. This efficiency is crucial for medical institutions with limited compute budgets.

Conclusion and Future Directions

Auto-FedRL demonstrates that hyperparameter optimization can be integrated directly into the federated training process, providing both performance boosts and massive efficiency gains. While the framework significantly improves global model performance, future work will focus on ensuring "fairness" across all participating clients and exploring transfer learning for the RL agent to further accelerate the initial training phases.

Summary updated

BibTeX
@inproceedings{guo2022auto,
  author = {Pengfei Guo and Dong Yang and Ali Hatamizadeh and An Xu and Ziyue Xu and Wenqi Li and Can Zhao and Daguang Xu and Stephanie A. Harmon and Evrim Turkbey and Baris Turkbey and Bradford J. Wood and Francesca Patella and Elvira Stellato and Gianpaolo Carrafiello and Vishal M. Patel and Holger R. Roth},
  title = {{Auto-FedRL: Federated Hyperparameter Optimization for Multi-institutional Medical Image Segmentation}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19803-8\_26},
}
Figure