Few-for-Many Personalized Federated Learning
Organizations: City University of Hong Kong · CityU Shenzhen Research Institute · Hong Kong Metropolitan University · Xi’an Jiaotong University ·
Abstract
Personalized Federated Learning (PFL) aims to train customized models for clients with highly heterogeneous data distributions while preserving data privacy. Existing approaches often rely on heuristics like clustering or model interpolation, which lack principled mechanisms for balancing heterogeneous client objectives. Serving clients with distinct data distributions is inherently a multi-objective optimization problem, where achieving optimal personalization ideally requires distinct models on the Pareto front. However, maintaining separate models poses significant scalability challenges in federated settings with hundreds or thousands of clients. To address this challenge, we reformulate PFL as a few-for-many optimization problem that maintains only shared server models () to collectively serve all clients. We prove that this framework achieves near-optimal personalization: the approximation error diminishes as increases and each client's model converges to each client's optimum as data grows. Building on this reformulation, we propose FedFew, a practical algorithm that jointly optimizes the server models through efficient gradient-based updates. Unlike clustering-based approaches that require manual client partitioning or interpolation-based methods that demand careful hyperparameter tuning, FedFew automatically discovers the optimal model diversity through its optimization process. Experiments across vision, NLP, and real-world medical imaging datasets demonstrate that FedFew, with just 3 models, consistently outperforms other state-of-the-art approaches. Code is available at https://github.com/pgg3/FedFew.
Figures & tables
| Method | Pathological heterogeneous setting | Practical heterogeneous setting | |||||||
|---|---|---|---|---|---|---|---|---|---|
| CIFAR-100 | FEMNIST | CIFAR-10 | CIFAR-100 | TINY | AG News | ||||
| Centralized Methods (Single Global Model) | |||||||||
| FedAvg [ 29 ] | |||||||||
| FedProx [ 22 ] | |||||||||
| FedMTL [ 37 ] | |||||||||
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Symbol | Description |
|---|---|
| number of heterogeneous clients | |
| number of shared models in the K-for-M framework | |
| expected (population) loss for client with model | |
| empirical loss for client based on finite samples | |
| optimal personalized model for client , defined as | |
| optimal K-for-M solution (minimizing population losses) |
| Type | Dataset | Model | Rounds | Local Epochs | Batch Size | Learning Rate | Join Ratio |
| Benchmark | CIFAR-10 | CNN | 2000 | 1 | 50 | 0.005 | 1.0 |
| CIFAR-100 | CNN | 2000 | 1 | 50 | 0.005 | 1.0 | |
| TinyImageNet | CNN | 2000 | 1 | 50 | 0.0005 | 1.0 | |
| AG News | TextCNN | 2000 | 1 | 100 | 0.005 | 1.0 | |
| FEMNIST | CNN | 2000 | 1 | 100 | 0.005 | 1.0 | |
| Medical | Kvasir | ResNet-18 | 1000 | 1 | 100 | 0.002 | 1.0 |
| CIFAR-10 | CIFAR-100 | Medical | ||||||
|---|---|---|---|---|---|---|---|---|
| Method | Dir-10 | Dir-20 | Pat-10 | Dir-10 | Dir-20 | Pat-20 | Kvasir | FedISIC |
| FedAvg | 0.981 | 0.981 | 0.982 | 0.995 | 0.982 | 0.977 | 0.999 | 0.945 |
| FedProx | 0.984 | 0.977 | 0.976 | 0.995 | 0.983 | 0.982 | 0.981 | 0.924 |
| APFL | 0.992 | 0.985 | 0.996 | 0.995 | 0.988 | 0.996 | 0.994 | 0.950 |
| Ditto | 0.984 | 0.982 | 0.997 | 0.994 | 0.987 | 0.996 | 0.994 | 0.951 |
| FedRep | 0.990 | 0.985 | 0.997 | 0.995 | 0.991 | 0.996 | 0.995 | 0.938 |
| AG News | Kvasir | |||||
|---|---|---|---|---|---|---|
| Min | Mean | Max | Min | Mean | Max | |
| 1 | 84.5 | 96.4 | 100.0 | 79.5 | 91.6 | 99.5 |
| 2 | 73.8 | 95.7 | 100.0 | 82.4 | 92.2 | 99.8 |
| 3 | 83.9 | 96.0 | 100.0 | 83.9 | 92.9 | 100.0 |
| 4 | 78.0 | 95.7 | 100.0 | 82.9 | 92.6 | 100.0 |
| 5 | 86.3 | 96.2 | 100.0 | 81.2 | 92.5 | 100.0 |
Federated Learning
Federated learning trains shared models across data holders without requiring them to pool their raw data.
See all 939 papers