Official implementation of "Few-for-Many Personalized Federated Learning" (CVPR 2026).
FedFew uses a small set of K server models (K << M) to serve M clients in personalized federated learning. Please refer to our paper for more details.
git clone https://github.com/pgg3/FedFew.git
cd FedFew
# Install dependencies
uv syncData preparation scripts are provided under scripts/data_prep/. For example:
bash scripts/data_prep/cifar10.shRun experiments with a config file:
uv run scripts/run_pfllib.py configs/<dataset>/<partition>/<config>.yamlFedFew/
├── PFLlib/ # PFLlib framework
│ └── system/
│ └── flcore/
│ ├── servers/ # Server implementations (serverfedfews.py)
│ └── clients/ # Client implementations (clientfedfews.py)
├── configs/ # YAML experiment configurations
├── scripts/ # Experiment scripts
├── models/ # Model definitions
└── results/ # Experiment results
@inproceedings{guo2025fedfew,
title={Few-for-Many Personalized Federated Learning},
author={Guo, Ping and Zhang, Tiantian and Lin, Xi and Li, Xiang and Tang, Zhi-Ri and Zhang, Qingfu},
booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
year={2026}
}This project is licensed under the MIT License - see the LICENSE file for details.