[Paper Review] Flower: A Friendly Federated Learning Research Framework
Flower is a scalable, framework-agnostic FL framework enabling large-cohort experiments on real edge devices and in simulation, with heterogeneity support and secure aggregation.
Federated Learning (FL) has emerged as a promising technique for edge devices to collaboratively learn a shared prediction model, while keeping their training data on the device, thereby decoupling the ability to do machine learning from the need to store the data in the cloud. However, FL is difficult to implement realistically, both in terms of scale and systems heterogeneity. Although there are a number of research frameworks available to simulate FL algorithms, they do not support the study of scalable FL workloads on heterogeneous edge devices. In this paper, we present Flower -- a comprehensive FL framework that distinguishes itself from existing platforms by offering new facilities to execute large-scale FL experiments and consider richly heterogeneous FL device scenarios. Our experiments show Flower can perform FL experiments up to 15M in client size using only a pair of high-end GPUs. Researchers can then seamlessly migrate experiments to real devices to examine other parts of the design space. We believe Flower provides the community with a critical new tool for FL study and development.
Motivation & Objective
- Motivate the need for scalable FL frameworks that reflect real-world heterogeneity and scale.
- Present Flower as a comprehensive, extensible FL framework bridging simulation and real-device deployment.
- Demonstrate Flower’s ability to support large cohorts (up to millions of clients) and heterogeneous environments.
- Showcase practical capabilities including secure aggregation and cross-framework/mobile device integration.
Proposed method
- Define an end-to-end FL framework architecture with global (server) and local (client) computations via a Strategy abstraction.
- Provide language- and ML framework-agnostic core components to enable heterogeneous client implementations.
- Introduce a Virtual Client Engine (VCE) to maximize hardware utilization for large-scale experiments.
- Implement secure aggregation protocols (SecAgg and SecAgg+) for semi-honest threat models with efficiency goals.
- Compare Flower to TFF, Syft, FedScale, and LEAF across single/multi-node, scalability, heterogeneity, and framework-agnostic properties.
- Describe communication stack (gRPC bi-directional streams), serialization of byte-array messages, and ClientProxy abstractions.
Experimental results
Research questions
- RQ1How can federated learning frameworks scale to millions of clients while supporting heterogeneous devices?
- RQ2Can a unified framework enable seamless simulation-to-real-device transitions for FL experiments?
- RQ3What is the impact of system heterogeneity and network conditions on FL convergence and efficiency?
- RQ4How does secure aggregation affect FL practicality in real-device experiments?
- RQ5How does Flower compare to existing FL frameworks in terms of scalability, heterogeneity, and framework-agnosticism?
Key findings
- Flower can scale FL experiments to up to 15 million clients using a small compute setup (two high-end GPUs).
- Flower enables up to 1000 concurrent clients per round out of 1 million total clients in simulations, outperforming several peers in concurrent participation and scaling.
- In FEMNIST/character classification tasks, Flower remains competitive with or faster than peers as the number of active clients per round increases.
- Deploying Flower on real heterogeneous devices (Jetson, Raspberry Pi, Android) is feasible, with measurable training times and energy consumption, and overhead under 100 ms per round observed in profiling.
- The Virtual Client Engine (VCE) significantly improves utilization and reduces memory footprint by deferring client instantiation until needed, enabling large-scale experiments on common hardware.
- Flower’s secure aggregation implementation achieves lower theoretical overhead than some traditional MPC approaches and remains robust to dropouts.
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.