Skip to main content
QUICK REVIEW

[Paper Review] FedML: A Research Library and Benchmark for Federated Machine Learning

Chaoyang He, Songze Li|arXiv (Cornell University)|Jul 27, 2020
Privacy-Preserving Technologies in DataComputer Science151 references357 citations
TL;DR

FedML presents an open research library and benchmark for federated learning that supports diverse computing paradigms, flexible topologies, standardized baselines, and real hardware testbeds to enable fair comparisons and rapid iteration in FL research.

ABSTRACT

Federated learning (FL) is a rapidly growing research field in machine learning. However, existing FL libraries cannot adequately support diverse algorithmic development; inconsistent dataset and model usage make fair algorithm comparison challenging. In this work, we introduce FedML, an open research library and benchmark to facilitate FL algorithm development and fair performance comparison. FedML supports three computing paradigms: on-device training for edge devices, distributed computing, and single-machine simulation. FedML also promotes diverse algorithmic research with flexible and generic API design and comprehensive reference baseline implementations (optimizer, models, and datasets). We hope FedML could provide an efficient and reproducible means for developing and evaluating FL algorithms that would benefit the FL research community. We maintain the source code, documents, and user community at https://fedml.ai.

Motivation & Objective

  • Address the lack of flexible, multi-paradigm FL libraries for diverse topologies, data distributions, and training procedures.
  • Provide standardized algorithm implementations and benchmarks to enable fair performance comparisons.
  • Support on-device, distributed, and single-machine FL simulations to cover practical research needs.
  • Promote real-world hardware testing (mobile and IoT) to evaluate system-level FL performance.
  • Foster an open, evolving platform that invites community contributions and datasets for broad FL research domains.

Proposed method

  • Introduce FedML as an end-to-end toolkit for FL algorithm development and fair evaluation across computing paradigms.
  • Describe the architecture with two main components: FedML-core (low-level) and FedML-API (high-level).
  • Explain TopologyManager for diverse network topologies and a worker-oriented programming interface for flexible message flow.
  • Detail on-device FL testbeds (FedML-Mobile and FedML-IoT) built on real hardware.
  • Present standardized baselines and benchmarks with defined datasets, models, and non-IID partitions to enable fair comparisons.
  • Outline support for privacy, security, and robustness APIs including cryptographic primitives and robust aggregation methods.

Experimental results

Research questions

  • RQ1How can FL research be accelerated through a flexible library that supports diverse computing paradigms and topologies?
  • RQ2Can standardized algorithm implementations and benchmarks enable fair performance comparisons across non-IID distributions and different datasets?
  • RQ3What is the impact of hardware-realistic on-device FL testbeds on training efficiency and scalability?
  • RQ4How can FedML accommodate privacy, security, and robustness in a modular, extensible framework?

Key findings

  • FedML provides end-to-end support for three paradigms: on-device training, distributed computing, and single-machine simulation.
  • FedML introduces a worker-oriented programming model enabling flexible message flows and topology customization beyond gradients and models.
  • Standardized baselines (e.g., FedAvg, Decentralized FL, Vertical FL, Split Learning, FedNAS) are included to facilitate fair comparisons and reproducibility.
  • Benchmark datasets and partition methods are explicitly defined to ensure consistent, fair evaluation across linear, shallow, and deep neural networks.
  • Experiments show non-IID settings reduce accuracy compared to IID, and distributed computing offers substantial training time advantages over standalone simulation on large CNNs.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.