Towards Benchmarking Power-Performance Characteristics of Federated Learning Clients

Pratik Agrawal, Philipp Wiesner, Odej KaoarXiv 2023 · OpenReview

Abstract

Federated Learning (FL) is a decentralized machine learning approach where local models are trained on distributed clients, allowing privacy-preserving collaboration by sharing model updates instead of raw data. However, the added communication overhead and increased training time caused by heterogenous data distributions results in higher energy consumption and carbon emissions for achieving similar model performance than traditional machine learning. At the same time, efficient usage of available energy is an important requirement for battery constrained devices. Because of this, many different approaches on energy-efficient and carbon-efficient FL scheduling and client selection have been published in recent years. However, most of this research oversimplifies power performance characteristics of clients by assuming that they always require the same amount of energy per processed sample throughout training. This overlooks real-world effects arising from operating devices under different power modes or the side effects of running other workloads in parallel. In this work, we take a first look on the impact of such factors and discuss how better power-performance estimates can improve energy-efficient and carbon-efficient FL scheduling.

1. Introduction

Federated Learning (FL) offers a decentralized alternative to traditional machine learning, prioritizing data privacy by sharing model updates instead of raw data. However, this privacy comes at a cost: increased communication overhead and training time often lead to higher energy consumption and carbon emissions compared to centralized training. As FL expands to battery-constrained IoT and edge devices, efficient energy usage becomes paramount.

Current research into energy-efficient FL scheduling often relies on oversimplified assumptions, treating energy consumption as a constant value per training sample or a linear function of compute cycles. This overlooks the complexities of real-world hardware, where background tasks (baseloads) and power management settings significantly alter power-performance characteristics. This paper investigates these factors to provide a more realistic foundation for energy-aware FL scheduling.

2. Methodology

The researchers conducted an empirical study using a Raspberry Pi as a representative FL client, utilizing the Flower framework. To simulate realistic operating conditions, they manipulated two primary variables:

  • Power Management: Three Linux CPU frequency governors were tested: Performance, Powersave, and Ondemand.
  • Baseload Simulation: Background workloads were simulated using sysbench, pinning tasks to between 0 and 4 CPU cores.

Energy consumption was measured via a WLAN power socket. To isolate the specific energy cost of the FL training task, the authors calculated Energy Per Sample (EPS) using the following formula: $$EPS = \frac{P_{total} - P_{BL}}{N}$$ Where $P_{total}$ is total power, $P_{BL}$ is the power consumed by the background baseload, and $N$ is the number of samples. The study used the CIFAR-10 dataset to train SqueezeNet, a lightweight model optimized for edge devices.

3. Results and Discussion

The empirical results challenge the standard assumption that throughput is a reliable proxy for energy efficiency.

Training throughput (Samples per Second) as a function of baseload CPU cores.

As shown in Figure 2, throughput (samples per second) drops sharply when moving from zero to one baseload core but remains relatively stable thereafter. However, this stability in throughput does not translate to energy efficiency.

Energy per Sample (EPS) across different power modes and baseload levels.

Figure 1 illustrates that Energy Per Sample (EPS) remains relatively flat for lower baseloads but spikes dramatically when the device reaches full utilization (4 cores). This non-linear behavior is particularly evident in the Performance and Ondemand modes. Interestingly, the Ondemand mode with a 3-core baseload appeared to reach a "sweet spot" of efficiency for certain sample counts, suggesting that hardware power management can interact with workloads in counter-intuitive ways.

The data confirms a significant statistical difference in energy efficiency between a dedicated device and one running background tasks. While Powersave mode generally offers the best energy efficiency, it does so at the cost of lower throughput.

4. Conclusion and Future Work

This study demonstrates that energy consumption in FL is highly non-linear and sensitive to both hardware power modes and concurrent workloads. Relying on simple analytical models for energy-aware scheduling is likely to lead to suboptimal results in real-world deployments.

Future research should expand these findings to more diverse hardware, such as GPUs (Nvidia Jetson) and TPUs (Google Coral), which possess distinct power profiles. Additionally, developing standardized protocols for clients to report real-time energy status and creating predictive models for energy footprints will be essential for the next generation of carbon-efficient Federated Learning systems.

Summary updated

BibTeX
@misc{agrawal2023towards,
  author = {Pratik Agrawal and Philipp Wiesner and Odej Kao},
  title = {{Towards Benchmarking Power-Performance Characteristics of Federated Learning Clients}},
  year = {2023},
  eprint = {2308.08270},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.08270},
}
Figure