Automating aggregation strategy selection in federated learning
Organizations: Department of Computing, Imperial College London, UK · OctaiPipe, London, UK
Abstract
Federated Learning enables collaborative model training without centralising data, but its effectiveness varies with the selection of the aggregation strategy. This choice is non-trivial, as performance varies widely across datasets, heterogeneity levels, and compute constraints. We present an end-to-end framework that automates, streamlines, and adapts aggregation strategy selection for federated learning. The framework operates in two modes: a single-trial mode, where large language models infer suitable strategies from user-provided or automatically detected data characteristics, and a multi-trial mode, where a lightweight genetic search efficiently explores alternatives under constrained budgets. Extensive experiments across diverse datasets show that our approach enhances robustness and generalisation under non-IID conditions while reducing the need for manual intervention. Overall, this work advances towards accessible and adaptive federated learning by automating one of its most critical design decisions, the choice of an aggregation strategy.
Figures & tables
| Work | Heterogeneity Detection | Strategy Selection | Aggregation Tuning | LLM Automation | Compute-Aware |
|---|---|---|---|---|---|
| Li et al. (2021) | ✓ | ✓(fixed mapping) | |||
| Dubey (2025) | ✓ | ✓(fixed mapping) | |||
| Fed-Hetero (2025) | ✓ | ||||
| Mawela et al. (2025) | ✓ | ||||
| Shen et al. (2023) | ✓ | ||||
| Ours | ✓(lightweight) | ✓(adaptive) | ✓ | ✓ | ✓ |
| Dataset | Data Type | Task Type | Task Description |
|---|---|---|---|
| NASA Bearing [ 5 ] | Tabular | Fault prediction | Predicting whether a bearing is healthy or faulty from vibration sensor readings. |
| CIFAR-10 [ 11 ] | Images | Object recognition | Predicting the object category (e.g., car, dog, airplane) from natural images. |
| Wine Quality [ 6 ] | Tabular | Quality assessment | Predicting wine quality scores (1-10) based on physicochemical features. |
| Retinal Images [ 2 , 20 ] | Images | Disease diagnosis | Predicting whether fundus images show glaucomatous disease or healthy eyes. |
| Sentiment140 [ 9 ] | Text | Sentiment analysis | Predicting whether a tweet expresses positive or negative sentiment. |
| CartPole [ 3 ] | Reinforcement Learning environment | Control | Predicting optimal actions to balance a pole on a moving cart under varying dynamics. |
| Simulated Heterogeneity (NASA Bearing) | Format-A | Format-B | Format-C |
|---|---|---|---|
| Label Skew | 0.6122 0.0021 | 0.6360 0.0058 | 0.6094 0.0043 |
| Feature Skew | 0.7002 0.0183 | 0.7022 0.0241 | 0.6484 0.0121 |
| Noisy Label | 0.6340 0.0213 | 0.6548 0.0410 | 0.6007 0.0171 |
| Label Poisoning | 0.5789 0.0336 | 0.6087 0.0180 | 0.5553 0.0217 |
| Corrupted Client | 0.5626 0.0149 | 0.6265 0.0219 | 0.5144 0.0172 |
| IID | 0.7151 0.0211 | 0.7208 0.0200 | 0.6751 0.0254 |
| Simulated Heterogeneity | JS Divergence Value | Diagnosis |
|---|---|---|
| Skewed (NASA Bearing, Binary) | 0.1890 | Skew |
| Skewed (CIFAR-10, Multi-label) | 0.4341 | Skew |
| IID (NASA Bearing, Binary) | 0.0001 | No Skew |
| IID (CIFAR-10, Multi-label) | 0.0002 | No Skew |
| Simulated Heterogeneity | LLM Recommended Strategy | FedAvg |
|---|---|---|
| Label Skew | 0.6360 0.0058 | 0.6186 0.0168 |
| Label Poisoning | 0.6087 0.0180 | 0.5543 0.0258 |
| Noisy Label | 0.6548 0.0410 | 0.6393 0.0500 |
| Feature Skew | 0.7022 0.0241 | 0.6806 0.0347 |
| Corrupted Client | 0.6265 0.0219 | 0.5948 0.0197 |
| IID | 0.7208 0.0200 | 0.7253 0.0261 |
| Simulated Heterogeneity | Empirical Best | Genetic Search | Single-Shot LLM | FedAvg | Empirical Worst |
|---|---|---|---|---|---|
| Label Skew | 0.6729 0.0149 | 0.6679 0.0128 | 0.6360 0.0058 | 0.6186 0.0168 | 0.6236 0.0205 |
| Label Poisoning | 0.6060 0.0168 | 0.6223 0.0195 | 0.6087 0.0180 | 0.5543 0.0258 | 0.5543 0.0258 |
| Noisy Label | 0.6948 0.0187 | 0.6882 0.0233 | 0.6548 0.0410 | 0.6393 0.0500 | 0.6434 0.0471 |
| Feature Skew | 0.7250 0.0139 | 0.7112 0.0449 | 0.7022 0.0241 | 0.6806 0.0347 | 0.6681 0.0429 |
| Corrupted Client | 0.6058 0.0258 | 0.6120 0.0198 | 0.6265 0.0219 | 0.5948 0.0197 | 0.5838 0.0230 |
| Component | Time (s) |
|---|---|
| Reference: One FL Round | 1.1613 |
| Label skew detection module | 8.3163 |
| Feature skew detection module | 11.1986 |
| Outlier detection module | 54.4542 |
| Total Time: Full heterogeneity detection process | 73.9691 |
| Approach | Time (s) |
|---|---|
| Reference: One Naive FL Training (30 FL Rounds) | 69.211 |
| One-Trial LLM Automation | 109.256 |
| Genetic Search | 251.805 |
| Optuna (50 Trials, 30 Rounds Each) | 1105.918 |
Federated Learning Aggregation
Federated learning aggregation combines client updates into shared or personalized models while balancing data heterogeneity, robustness, privacy, and communication.
See all 266 papers