TL;DR
FedPop is a novel, efficient algorithm for tuning hyperparameters in Federated Learning (FL) using an online "tuning-while-training" approach. By leveraging population-based evolutionary algorithms, it optimizes both server and client-side hyperparameters simultaneously, significantly outperforming existing methods on complex, non-IID datasets like ImageNet-1K.
What Problem Does This Paper Address?
Hyperparameter tuning (HPT)—choosing the right learning rates, batch sizes, and optimization steps—is the "dark art" of machine learning. In Federated Learning, where data is distributed across thousands of devices (clients) that cannot share their raw data, HPT becomes a nightmare.
Traditional HPT methods like Bayesian Optimization follow a "training-after-tuning" framework: you try a configuration, train to completion, evaluate, and repeat. This is infeasible for FL because:
- Resource Constraints: Clients have limited battery and compute; they can't afford multiple training runs.
- Communication Costs: Sending model updates back and forth is expensive.
- Data Heterogeneity (Non-IID): Validation data is scattered. A hyperparameter that works for one client might fail for another, making it hard to find a globally optimal setting.
Existing FL-specific tuning methods like FedEx often have narrow search spaces or only focus on client-side parameters, leaving server-side aggregation parameters unoptimized.
Methods
The authors introduce FedPop, which treats hyperparameter configurations as a "population" that evolves over time. Instead of waiting for training to finish, FedPop updates hyperparameters during the training process.
The core of FedPop consists of two main components:
- FedPop-G (Global/Inter-configuration): This tunes hyperparameters across different members of the population. Every few rounds, the algorithm identifies underperforming configurations and replaces them with a "mutated" (perturbed) version of a top-performing configuration. This allows the system to propagate good settings across the entire federated network.
- FedPop-L (Local/Intra-configuration): This provides fine-grained tuning for client-specific updates. It explores the "local neighborhood" of a hyperparameter setting by assigning slightly different values to different active clients in a round, identifying which variations work best for local data.
To handle the noise inherent in distributed validation, FedPop uses a weighted sum of validation scores over multiple rounds, applying a power-law decay to prioritize recent performance. The "mutation" process itself uses a cosine annealing schedule, meaning the algorithm explores broadly early on and fine-tunes more conservatively as the model nears convergence.
Datasets
The authors evaluated FedPop against several benchmarks:
- Standard Benchmarks: CIFAR-10 (image classification), FEMNIST (handwritten digits/letters), and Shakespeare (next-character prediction).
- Real-World Cross-Silo FL: PACS, OfficeHome, and DomainNet, which feature significant "feature distribution shifts" (e.g., training on photos but testing on sketches).
- Large-Scale Scalability: Full-sized ImageNet-1K distributed across 100 clients with a non-IID label distribution, using ResNet-18 and ResNet-50 architectures.
Key Insights and Ideas
- Tuning-While-Training is Key: By evolving hyperparameters on the fly, FedPop can experiment with a vastly larger number of configurations than static baselines within the same communication budget.
- Server-Side Matters: Unlike previous work, FedPop demonstrates that tuning server-side aggregation parameters (like the server's own learning rate or momentum) is just as vital as tuning local client parameters.
- Robustness to Non-IID Data: The combination of global and local population updates helps the model find hyperparameter settings that are robust to the "client drift" caused by heterogeneous data.
- Scalability to ImageNet: FedPop is one of the first HPT methods shown to work effectively on full-scale ImageNet-1K in a federated setting, nearing the performance of centralized training.
Key Results
FedPop consistently achieved state-of-the-art (SOTA) results:
- Accuracy Gains: On CIFAR-10 with non-IID data, FedPop outperformed the previous SOTA (FedEx) by up to 4.79%.
- Stability: In real-world cross-silo tasks (PACS, DomainNet), FedPop not only achieved higher accuracy (surpassing others by up to 2.72%) but also showed much smaller deviations, indicating a more stable tuning process.
- Convergence: As seen in the ImageNet-1K analysis, FedPop converges faster and reaches higher final accuracy than Random Search or FedEx.
Limitations and Future Work
While FedPop significantly mitigates the issues of distributed validation, the authors acknowledge that the disparity in difficulty between different clients' validation sets still introduces noise into the performance scores.
Future research could explore more sophisticated selection mechanisms beyond simple quantiles or investigate how FedPop interacts with privacy-preserving techniques like Differential Privacy, which often add their own layer of hyperparameter sensitivity.
Summary updated