FLEdge: Benchmarking Federated Machine Learning Applications in Edge Computing Systems

Herbert Woisetschläger, Alexander Isenko, Ruben Mayer, Hans-Arno Jacobsen · DOI

TL;DR

This paper introduces FLEdge, a novel benchmarking framework designed to evaluate Federated Learning (FL) applications specifically within the constraints of edge computing systems. It addresses the critical gap of understanding FL performance on heterogeneous, resource-limited edge devices by systematically analyzing hardware diversity, energy efficiency, and the impact of client unreliability and differential privacy.

What Problem Does This Paper Address?

Federated Learning (FL) is a promising approach for privacy-preserving distributed machine learning, especially for edge devices. However, existing FL benchmarks primarily focus on simulated environments or powerful data center hardware. Real-world edge systems present unique challenges: heterogeneous hardware (from low-power embedded systems to more capable edge servers), unreliable client devices (due to network fluctuations or hardware failures), and strict energy constraints. These factors significantly impact FL performance, yet are largely unaddressed by current benchmarking tools. This paper aims to bridge this gap by providing a comprehensive evaluation framework for FL in these realistic edge environments.

Methods

The core of this work is the FEdge benchmarking suite, built upon the Flower FL framework. FLEdge introduces several key components:

  • Hardware-Centric Benchmarking: It goes beyond simulations by using actual embedded hardware (NVIDIA Jetson, Raspberry Pi) alongside data center GPUs for direct comparison.
  • Client Behavior Emulation: FLEdge allows for flexible modeling of client reliability, including an adaptive user-level differential privacy adapter that can dynamically adjust noise levels based on client dropout rates.
  • Network Emulation: It incorporates a network emulator to simulate various connectivity conditions (e.g., 4G LTE, wired connections) to assess communication efficiency.
  • Comprehensive Monitoring: The framework includes extensive monitoring capabilities to capture computational efficiency, energy consumption, and communication costs.
  • Micro-benchmarking: Detailed profiling of DL operations (batch loading, forward/backward passes, optimizer steps) on different hardware is performed to pinpoint performance bottlenecks at a granular level.

Datasets

The paper utilizes a variety of datasets to represent diverse FL workloads:

  • NILM (BLOND): An office environment appliance load monitoring dataset, used for evaluating models like CNN, DenseNet, and LSTM.
  • CV (FEMNIST): A dataset of handwritten digits and letters, used for training a CNN.
  • NLP (Shakespeare): The complete works of William Shakespeare, used for training an LSTM for next-character prediction.
  • NLP (SAMSum): A dataset of dialogue and summary pairs, used for evaluating performance with a large language model (FLAN-T5-Small).

These datasets are sampled using a Dirichlet distribution to simulate non-IID data distributions across clients.

Key Insights and Ideas

  • Hardware Diversity is Paramount: The performance and energy efficiency of FL workloads vary drastically across different edge devices, with older embedded hardware showing significant limitations.
  • Energy Efficiency as a Bottleneck Detector: Measuring energy efficiency provides an effective, non-intrusive way to identify computational bottlenecks on embedded devices, especially when scaling batch sizes.
  • Client Dropout Severely Impacts DP: Even with adaptive DP mechanisms, client dropouts significantly degrade model quality in differentially private FL, highlighting the need for robust client participation strategies.
  • Memory Bandwidth is a Major Bottleneck: Unlike data center GPUs, embedded devices, even powerful ones like the NVIDIA Jetson AGX Orin, face substantial memory bandwidth limitations that hinder scalability, particularly for larger models.
  • Context Switching Overhead: On devices with unified memory architectures (CPU/GPU), context switching for data assignment between CPU and GPU can be more time-consuming than direct data movement on data center GPUs.

Key Results

  • Energy Efficiency Gains: State-of-the-art FL workloads on older GPU-accelerated embedded devices can be up to 3x more energy efficient than on modern server-grade GPUs.
  • Computational Bottlenecks: The opt.step() operation on the CPU of ARM-based Orin devices takes 4x longer than on x86-based servers. Matrix multiplications on the Orin's GPU can take up to 32x longer than on a data center GPU.
  • Client Dropout Impact: For DP FL, accuracy can halve when client dropout rates increase from 0% to 50%.
  • Communication Efficiency: For smaller models, FL workloads show high suitability for edge deployment, with a granularity metric (G) significantly above 1, indicating computation is more dominant than communication. For larger models like FLAN-T5 Small, G approaches 1, suggesting limited utility due to communication overhead.

Limitations and Future Work

  • Client Participation Statistics: The paper acknowledges the need for further research into realistic client participation statistics and building middleware that can effectively handle unreliable clients.
  • DP Privacy Budget (€): While the impact of DP with client dropouts is shown, further study is needed to determine acceptable levels of the privacy budget (€) in practical scenarios.
  • LLM Scalability: While FLEdge includes an LLM workload, the paper hints at the significant challenges and limitations of deploying and training very large models on current edge hardware.
  • Future Work: The authors hope their work will spur research into FL middleware that can control both on-client and global learning efficiency, and further investigate the role of energy efficiency as an optimization lever.

Summary updated

BibTeX
@inproceedings{woisetschlager2024fledge,
  author = {Herbert Woisetschläger and Alexander Isenko and Ruben Mayer and Hans-Arno Jacobsen},
  title = {{FLEdge: Benchmarking Federated Machine Learning Applications in Edge Computing Systems}},
  booktitle = {Middleware},
  year = {2024},
  url = {https://openreview.net/forum?id=Gtt6QeCmuh},
}
Figure