Introduction
Hyperparameter tuning (HPT) is a cornerstone of modern machine learning, yet it remains a significant bottleneck in Federated Learning (FL). In FL, data is decentralized across numerous client devices, each often possessing limited computational power and restricted communication bandwidth. Traditional "training-after-tuning" paradigms—such as Bayesian Optimization or standard Grid Search—require multiple full training cycles to evaluate different hyperparameter (HP) configurations. In a federated context, this is prohibitively expensive, as it multiplies the already high communication overhead and drains client resources.
Furthermore, the lack of a centralized validation set complicates global performance assessment. Since validation data is locked on individual client devices, evaluating a model's global performance requires aggregating local validation scores, which can be noisy and unrepresentative if not handled carefully. Existing methods often restrict the search space or focus solely on client-side parameters, leaving server-side aggregation HPs unoptimized.
Methodology: Tuning-While-Training
To overcome these challenges, this work introduces FedPop (Federated Population-based Hyperparameter Tuning). FedPop shifts the paradigm to "tuning-while-training," where HPs are dynamically optimized during the standard FL training process using evolutionary algorithms. This approach eliminates the need for a separate, costly retraining phase.
FedPop employs a dual-level tuning strategy that addresses both global and local optimization:
- FedPop-G (Global Tuning): This inter-configuration component manages a population of HP sets, encompassing both server-side aggregation parameters ($\alpha$) and client-side training parameters ($\beta$). Every few communication rounds, the server aggregates validation scores from active clients to rank the current configurations. The bottom-performing configurations are discarded and replaced by mutated (perturbed) versions of the top-performing ones, allowing the global model to evolve toward better HP regions.
- FedPop-L (Local Tuning): This intra-configuration component operates within each communication round. It evaluates a fine-grained neighborhood of the client HP vector ($\beta$) across the active client pool. By replacing the worst-performing local HPs with mutated versions of the best ones, FedPop-L allows for rapid adaptation to the specific, often highly skewed, data distributions of individual clients.
Experimental Evaluation
The authors evaluated FedPop across a wide range of scenarios to test its robustness and scalability:
- Standard Benchmarks: CIFAR-10 (vision), FEMNIST (handwriting), and Shakespeare (language modeling) were tested under both IID and highly heterogeneous (Non-IID) settings.
- Cross-Silo FL: The method was applied to PACS, OfficeHome, and DomainNet datasets, which feature severe distribution shifts across domains (e.g., photos vs. sketches).
- Large-Scale FL: To test scalability, FedPop was used to train a ResNet-50 on the full ImageNet-1K dataset distributed across 100 clients with Non-IID label distributions.
Results and Discussion
FedPop demonstrates superior performance and stability compared to existing methods like FedEx and Random Search. On highly heterogeneous CIFAR-10 data, FedPop achieved accuracy gains of up to 4.79% over FedEx when using a Successive Halving wrapper.
Key insights from the experimental results include:
- Stability and Convergence: Fixed HP search spaces often fail to converge if the initial HPs are poorly chosen. FedPop’s evolutionary mutations allow the system to recover from bad initializations, leading to significantly lower variance in final model accuracy.
- Synergy of Dual-Level Tuning: Ablation studies reveal that while either FedPop-G or FedPop-L improves performance individually, their combination yields the best results. FedPop-L is particularly effective at making client HPs robust to the data heterogeneity typical of FL.
- Scalability: The successful application to ImageNet-1K from scratch proves that population-based tuning can scale to enterprise-level FL applications, achieving results comparable to centralized training.
Conclusion and Future Work
FedPop addresses the critical need for efficient hyperparameter optimization in resource-constrained federated environments. By integrating evolutionary tuning directly into the training loop, it achieves state-of-the-art performance while maintaining scalability. While the approach increases server-side memory requirements to maintain the model population, it drastically reduces the overall communication burden on clients by removing the retraining phase. Future research will explore FedPop's applicability to even more complex distribution shifts and its integration with a wider variety of underlying federated optimization algorithms.
Summary updated