FLEdge: Benchmarking Federated Learning Applications in Edge Computing Systems

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

Abstract

Federated Learning (FL) is frequently proposed as a solution for training machine learning models on decentralized edge data while preserving privacy. However, a significant gap exists between idealized FL simulations and the realities of edge hardware, which are characterized by heterogeneous processing power, limited memory bandwidth, and unreliable connectivity. This paper introduces FLEdge, a hardware-centric benchmarking suite designed to evaluate FL performance on actual edge devices. Our findings reveal that memory bandwidth, rather than raw compute, is the primary bottleneck for edge FL. Furthermore, we demonstrate how client unreliability significantly degrades the accuracy of models utilizing Differential Privacy (DP) and introduce "Granularity" as a key metric for assessing the viability of federated deployments.

Introduction

While Federated Learning (FL) theoretically enables training on data from millions of sensors, smartphones, and industrial controllers, most research relies on server-grade hardware or simulations that ignore the physical constraints of the "messy" edge. Existing benchmarks often fail to account for the interplay between hardware limitations (e.g., 5-year-old CPUs vs. modern GPUs), network volatility, and algorithmic requirements like Differential Privacy.

FLEdge addresses this gap by providing a framework built on the Flower FL framework and PyTorch Lightning. It allows researchers to profile energy consumption, throughput, and communication overhead across diverse hardware and network conditions, moving beyond simple accuracy metrics to provide a holistic view of system performance.

The FLEdge Framework

To bridge the gap between simulation and deployment, FLEdge introduces several novel components:

  • Client Behavior Module: This module uses a binomial distribution to simulate realistic client dropouts. This allows researchers to quantify the impact when a significant percentage of devices fail to report back during a training round.
  • Adaptive DP Adapter: Differential Privacy requires adding noise to model updates. FLEdge includes a server-side mechanism that adjusts this noise based on the actual number of updates received, rather than the number of clients initially invited, providing a more realistic assessment of privacy-utility trade-offs.
  • Network Emulator: By integrating the ERRANT tool, FLEdge can emulate various connectivity profiles, ranging from high-speed 1 Gbit/s industrial fiber to high-latency 4G LTE connections.
  • Hardware-Centric Monitoring: The suite profiles physical metrics including energy consumption (Joules), throughput (samples/sec), and Granularity ($G$)—defined as the ratio of computation time to communication time.

Experimental Setup

FLEdge evaluates performance across four distinct datasets representing diverse edge modalities:

  1. NILM (Energy): The BLOND dataset, focusing on appliance power signatures.
  2. Computer Vision: FEMNIST, a standard for handwritten character recognition.
  3. NLP: The Shakespeare dataset for next-character prediction.
  4. LLM (Summarization): The SAMSum dataset, used to evaluate the FLAN-T5-Small (80M parameters) model on NVIDIA Jetson hardware.

Key Insights and Results

The Memory Wall and Context Switching

Contrary to trends in data center computing, scaling batch sizes on edge devices often yields diminishing returns. Because edge System-on-Chips (SoCs) possess limited memory bandwidth, systems frequently spend more time moving data between the CPU and GPU than performing actual computation.

On unified memory architectures like the NVIDIA Jetson, we observed a "context switch" tax. Data assignment between CPU and GPU takes approximately 5–8 microseconds regardless of data size. While data center GPUs (like the NVIDIA A6000) become more efficient as data size increases, edge hardware remains bottlenecked by these fixed overheads. For example, the NVIDIA Jetson Orin took 4x longer than a data center GPU to perform the optimizer step (opt.step()), primarily due to element-wise tensor additions being limited by memory movement.

Privacy and Unreliability

Client dropout is not merely a performance hurdle; it is a privacy challenge. Differential Privacy masks individual contributions by adding noise. When clients drop out, the noise-to-signal ratio increases. Our experiments showed that a 50% dropout rate can nearly halve the accuracy of a DP-protected model. Furthermore, while adaptive strategies like FedYogi and FedAdam offer higher peak accuracy, they proved more sensitive to client dropouts than the standard FedAvg algorithm.

Energy Efficiency and Granularity

Despite the identified bottlenecks, the NVIDIA Jetson Orin emerged as the most energy-efficient platform for larger models, outperforming both older edge hardware (Raspberry Pi, Jetson Nano) and data center GPUs in terms of samples processed per Watt.

To determine if a model is suitable for federation, we utilize the Granularity ($G$) metric. If $G \approx 1$, the system spends as much time communicating as it does computing. For large models like FLAN-T5 on 4G networks, $G$ can drop as low as 1.5, suggesting that communication efficiency is the decisive factor for the viability of Large Language Models (LLMs) at the edge.

Conclusion

FLEdge demonstrates that the primary constraints of edge FL are often architectural rather than purely algorithmic. The "Memory Wall" and the impact of client unreliability on privacy mechanisms represent significant hurdles for real-world deployment. Future work must focus on hardware-aware FL strategies that optimize data movement frequencies based on specific memory architectures and develop more robust privacy-preserving algorithms that can withstand the inherent volatility of edge networks.

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 Learning Applications in Edge Computing Systems}},
  booktitle = {Middleware},
  year = {2024},
  url = {https://openreview.net/forum?id=Gtt6QeCmuh},
}
Figure