[Paper Review] LEAF: A Benchmark for Federated Settings
LEAF provides a modular open-source benchmark for federated learning, meta-learning, and multi-task learning, including datasets, evaluation metrics, and reference implementations to reflect realistic federated environments.
Modern federated networks, such as those comprised of wearable devices, mobile phones, or autonomous vehicles, generate massive amounts of data each day. This wealth of data can help to learn models that can improve the user experience on each device. However, the scale and heterogeneity of federated data presents new challenges in research areas such as federated learning, meta-learning, and multi-task learning. As the machine learning community begins to tackle these challenges, we are at a critical time to ensure that developments made in these areas are grounded with realistic benchmarks. To this end, we propose LEAF, a modular benchmarking framework for learning in federated settings. LEAF includes a suite of open-source federated datasets, a rigorous evaluation framework, and a set of reference implementations, all geared towards capturing the obstacles and intricacies of practical federated environments.
Motivation & Objective
- Motivate the need for realistic benchmarks that capture statistical, system, and privacy challenges in federated settings.
- Provide a modular framework (datasets, metrics, reference implementations) to study federated learning, meta-learning, and multi-task learning.
- Offer open-source datasets and standardized preprocessing to enable reproducible experiments across diverse devices and distributions.
- Propose evaluation methodologies that reflect performance distributions across devices and resource usage at the edge.
- Demonstrate LEAF’s modularity and reproducibility through representative experiments and pipelines.
Proposed method
- Curate six realistic federated datasets (FEMNIST, Sentiment140, Shakespeare, CelebA, Reddit, Synthetic) with natural device-level partitions.
- Define a modular framework with Datasets, Metrics, and Reference Implementations that log both statistical and systems metrics.
- Introduce percentile- and hierarchy-based performance metrics to capture distributional and resource aspects across devices.
- Provide baseline and reference algorithms (FedAvg, minibatch SGD) and plans to expand to more methods and paradigms.
- Demonstrate LEAF’s reproducibility by re-creating Shakespeare FedAvg convergence behavior and exploring data-deficiency and edge-computing metrics.
- Showcase pipeline modularity by integrating LEAF datasets into various experimental setups (local models, mixed data, meta-learning with Reptile).
Experimental results
Research questions
- RQ1How can federated settings be benchmarked with datasets that reflect real-world heterogeneity and device-scale constraints?
- RQ2What metrics effectively capture both statistical performance across devices and edge-resource usage?
- RQ3How do standard federated learning baselines (e.g., FedAvg) perform on realistic federated data distributions and varying local training regimes?
- RQ4Can LEAF’s datasets and pipelines reveal when certain modeling approaches (e.g., local models vs. global models vs. meta-learning) are more suitable for specific federated datasets?
- RQ5What is the impact of data deferral and device participation on reproducibility and evaluation in federated settings?
Key findings
- LEAF enables reproducible experiments by reproducing known Shakespeare FedAvg convergence/divergence patterns across local-epoch settings.
- LEAF provides granular statistics and systems metrics, showing how varying minimum samples per user affects performance distributions (e.g., Sentiment140).
- FedAvg often offers favorable systems trade-offs (communication vs. local computation) across datasets, though results vary by task and data partitioning.
- In Table 2 demonstrations, different pipelines (local models, global IID, Reptile) yield different accuracies across datasets, illustrating LEAF’s modularity and dataset-specific behavior.
- The six LEAF datasets cover a range of scales (thousands to millions of devices) and skew in per-device data, reflecting realistic federated environments.
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.