FLEdge: Benchmarking Federated Machine Learning Applications in Edge Computing Systems

Herbert Woisetschläger, Alexander Erben, Ruben Mayer, Shiqiang Wang, Hans-Arno Jacobsen · DOI

TL;DR

FLEdge is a new hardware-centric benchmarking suite designed to evaluate Federated Learning (FL) workloads on real edge devices rather than idealized simulations. By testing across diverse hardware like Raspberry Pis and NVIDIA Jetsons, the benchmark reveals critical bottlenecks in edge FL, showing how memory bandwidth constraints and client dropouts severely degrade both processing speed and differential privacy guarantees.

What Problem Does This Paper Address?

Federated Learning (FL) is highly celebrated for its ability to train machine learning models collaboratively without moving raw data off local devices. However, most existing FL benchmarks operate in a vacuum: they rely on pure simulations or assume server-grade cloud hardware.

In reality, the "edge" is messy. Edge computing systems are defined by hardware heterogeneity (ranging from old CPUs to modern AI-accelerated SoCs), flaky network connections, strict energy constraints, and unpredictable client dropouts. When researchers ignore these physical constraints, their algorithms fail in production. This paper introduces FLEdge to bridge the gap between theoretical FL design and real-world edge deployment realities.

Methods

FLEdge extends the popular Flower FL framework into a comprehensive, hardware-in-the-loop benchmarking ecosystem.

Figure 1. Federated Learning protocol for one training round from a system perspective with 1 - 4 indicating the focus areas for our work and the benchmark subjects for FLEdge. Our system uses Flower as the underlying FL framework and implements each component in a modular and extensible manner.

Its novel components include:

  • Client Behavior Module: Simulates realistic client dropouts using an independent binomial distribution, allowing developers to test how robust their aggregation strategies are when clients randomly vanish.
  • Adaptive User-Level Differential Privacy (DP): A server-side mechanism that dynamically adjusts Gaussian noise levels based on the actual number of updates received per round, ensuring privacy guarantees hold even when clients drop out.
  • Network Emulation: Integrates the ERRANT network emulator to mimic realistic network profiles, such as a steady 1 Gbit/s factory intranet versus a volatile 4G LTE wireless connection.
  • Hardware-Centric Profiling: Deployed directly on a physical testbed consisting of data center GPUs (NVIDIA A6000), x86 virtual machines, and three distinct embedded tiers: NVIDIA Jetson AGX Orin, NVIDIA Jetson Nano, and Raspberry Pi 4B. It tracks real-time power draw and utilizes the PyTorch Kineto profiler to pinpoint low-level kernel bottlenecks.

Datasets

The benchmark evaluates seven distinct deep learning models across four datasets representing diverse edge use cases:

  • BLOND: A Non-Intrusive Load Monitoring (NILM) dataset capturing office appliance power readings, evaluated using CNN, LSTM, ResNet, and DenseNet architectures.
  • FEMNIST: A classic computer vision dataset containing handwritten digits and letters, split non-IID across clients.
  • Shakespeare: A text dataset based on the complete works of William Shakespeare for next-character prediction (NLP).
  • SAMSum: A dialogue summarization dataset used specifically to benchmark a large language model workload (FLAN-T5-Small, an 80-million parameter transformer) on edge hardware.

Key Insights and Ideas

  • The Batch Size Paradox on the Edge: In traditional data centers, scaling up the minibatch size maximizes GPU utilization and speeds up training. On embedded edge devices, however, scaling the batch size past 8 samples yields diminishing returns or even linear slowdowns. The culprit? Severe memory bandwidth limitations.
  • The Unified Memory Context-Switch Tax: Modern SoCs like the NVIDIA Jetson Orin feature a unified memory architecture where the CPU and GPU share the same physical RAM. While this sounds efficient, profiling revealed that the context switches required to assign data between the CPU and GPU take a fixed 5–8 $\mu s$ regardless of data size. This introduces a significant hidden latency cost not present on dedicated data center architectures.
  • Dropouts Compound Privacy Degradation: When user-level differential privacy is active, client dropouts create a vicious cycle. Because fewer clients successfully submit updates, the server must inject significantly more noise to maintain the same privacy budget ($\epsilon$). This extra noise causes model accuracy to plummet.

Key Results

  • 4× Optimization Slowdown: Due to memory bandwidth constraints (204 GB/s on the Jetson Orin vs. 768 GB/s on the A6000), the optimizer step takes up to 4× longer on state-of-the-art embedded hardware than on data center baselines.
  • Severe Accuracy Drops: Under a tight privacy budget ($\epsilon = 8$) and a high client dropout rate ($p = 0.5$), the final validation accuracy of a CNN on the BLOND dataset was nearly cut in half compared to a stable system without dropouts.
  • LLM Edge Training Limits: When fine-tuning the 80M parameter FLAN-T5 model over a 4G network, the system's granularity metric ($G$) dropped to 1.5. This indicates that communication takes almost as long as computation, making vanilla edge training highly inefficient for large models without aggressive communication compression.

Limitations and Future Work

While FLEdge provides an invaluable reality check for edge FL, the authors note several areas for expansion:

  1. Defining Acceptable Privacy Budgets: More research is needed to determine what differential privacy ($\epsilon$) levels are practically acceptable for specific edge industries without destroying model utility.
  2. Field Statistics: The current dropout models rely on binomial distributions; future iterations would benefit from real-world client availability traces collected from actual mobile and industrial fleets.
  3. Adaptive Middleware: The ultimate goal is to use FLEdge's insights to build intelligent middleware that dynamically tunes both client-side training parameters (like local epochs) and global aggregation strategies based on real-time hardware and network telemetry.

Summary updated

BibTeX
@inproceedings{woisetschlager2024fledge,
  author = {Herbert Woisetschläger and Alexander Erben and Ruben Mayer and Shiqiang Wang 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