[Paper Review] PFLlib: A Beginner-Friendly and Comprehensive Personalized Federated Learning Library and Benchmark
PFLlib presents a beginner-friendly library that implements 34 state-of-the-art FL and personalized FL algorithms, plus an integrated evaluation platform with diverse scenarios and datasets for benchmarking.
Amid the ongoing advancements in Federated Learning (FL), a machine learning paradigm that allows collaborative learning with data privacy protection, personalized FL (pFL)has gained significant prominence as a research direction within the FL domain. Whereas traditional FL (tFL) focuses on jointly learning a global model, pFL aims to balance each client's global and personalized goals in FL settings. To foster the pFL research community, we started and built PFLlib, a comprehensive pFL library with an integrated benchmark platform. In PFLlib, we implemented 37 state-of-the-art FL algorithms (8 tFL algorithms and 29 pFL algorithms) and provided various evaluation environments with three statistically heterogeneous scenarios and 24 datasets. At present, PFLlib has gained more than 1600 stars and 300 forks on GitHub.
Motivation & Objective
- Foster the pFL research community by providing an up-to-date, extensible library of SOTA pFL and classic FL algorithms.
- Facilitate reproducible evaluation across heterogeneous scenarios and datasets spanning CV, NLP, and SSP tasks.
- Offer privacy-aware evaluation tools, including DP and leakage_attack probes, to assess robustness and privacy protections.
- Lower the entry barrier for researchers and practitioners to learn, compare, and extend pFL methods.
Proposed method
- Implement 34 algorithms (7 classic tFL + 27 pFL) in a unified codebase.
- Provide three statistically heterogeneous scenarios (label skew, feature shift, and a real-world SSP scenario).
- Support 14 datasets across CV, NLP, and SSP domains.
- Incorporate privacy features such as Differential Privacy and a Deep Leakage from Gradients (DLG) attack with PSNR evaluation.
- Design a simple, extensible API with serverX.py, clientX.py, and main.py to ease adding new algorithms and scenarios.
- Showcase usability through example commands and an evaluation workflow.
Experimental results
Research questions
- RQ1Can a unified, beginner-friendly library cover a broad set of SOTA FL and pFL algorithms with easy extensibility?
- RQ2How do different pFL methods compare under varied statistical heterogeneity (label skew, feature shift) and across CV, NLP, and SSP tasks?
- RQ3What is the impact of privacy-preserving mechanisms (DP, DLG evaluation) on algorithm performance and privacy guarantees?
- RQ4Can the platform facilitate rapid benchmarking and method development by providing standardized evaluation pipelines?
Key findings
- PFLlib implements 34 algorithms (7 tFL + 27 pFL) and provides multi-task evaluation environments.
- The benchmark covers 14 datasets across CV, NLP, and SSP, including label-skew and feature-shift heterogeneity scenarios.
- Empirical results (on select CV and NLP tasks) show varying performance across methods under different skew settings, illustrating the importance of method-scenario compatibility.
- The library has gained community traction, with GitHub activity indicating adoption and adaptation by related projects.
- PFLlib enables reproducible experiments and easy extension, supporting future additions of algorithms and scenarios.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.