AutoFL: Enabling Heterogeneity-Aware Energy Efficient Federated Learning

Young Geun Kim, Carole-Jean Wu

Abstract

Federated Learning (FL) enables privacy-preserving collaborative model training on distributed edge devices. However, real-world deployments are often hampered by system heterogeneity, data non-uniformity, and unpredictable runtime variances, which lead to the "straggler problem" and significant energy waste. This paper presents AutoFL, a reinforcement learning-based framework designed to optimize FL efficiency by intelligently selecting participants and their hardware execution targets (e.g., CPU vs. GPU). Our results demonstrate that AutoFL achieves up to a 3.6x speedup in model convergence and a 5.2x improvement in global energy efficiency compared to standard random selection methods.

Introduction

Federated Learning (FL) has emerged as a powerful paradigm for training machine learning models on decentralized data. Despite its privacy benefits, FL faces substantial efficiency hurdles on the "edge." Traditional algorithms like FedAvg assume a level of device homogeneity that rarely exists in practice. Variations in hardware capabilities (system heterogeneity), local data distributions (data heterogeneity), and background task loads (stochastic runtime variance) often result in certain devices lagging behind. These "stragglers" force the entire training round to wait, leading to increased latency and wasted energy across the device cluster.

Methodology: The AutoFL Framework

AutoFL is an automated framework that operates on the central server to mitigate the impact of edge heterogeneity. It employs a Reinforcement Learning (RL) agent, specifically utilizing Q-learning, to perform two-level optimization for each training round.

The standard Federated Learning workflow involves participant selection, model broadcasting, local training, gradient uploading, and aggregation.

Two-Level Optimization Strategy

  1. Participant Selection: From a pool of $N$ available devices, the RL agent selects a subset of $K$ participants. This selection process prioritizes devices that maximize the global model's accuracy improvement relative to the energy consumed.
  2. Execution Target Selection: For each selected device, AutoFL determines the most efficient hardware target—such as the CPU, GPU, or specific frequency scaling (DVFS) settings. This decision is informed by the model architecture and the device's current resource availability.

To maintain scalability for large-scale deployments, AutoFL uses DBSCAN clustering to group devices with similar hardware and data profiles, thereby keeping the RL state space manageable. The reward function incentivizes high accuracy gains and low energy consumption.

Experimental Evaluation

The performance of AutoFL was evaluated using three distinct workloads:

  • CNN-MNIST: Image classification using Convolutional Neural Networks.
  • LSTM-Shakespeare: Language modeling with Long Short-Term Memory networks.
  • MobileNet-ImageNet: Complex image classification on a mobile-optimized architecture.

To simulate real-world data heterogeneity, the researchers utilized Dirichlet distributions to create non-IID (Independent and Identically Distributed) data partitions across devices.

Key Results and Insights

AutoFL demonstrates significant improvements over baseline random selection and advanced variants like FedNova.

AutoFL (denoted as $O_{FL}$) significantly outperforms random selection in both Performance Per Watt (PPW) and convergence speedup.

Performance and Efficiency

  • Convergence Speed: AutoFL achieves target model accuracy up to 3.6x faster than standard methods.
  • Energy Efficiency: Local device energy efficiency improved by 4.7x, while global cluster energy efficiency saw a 5.2x improvement.
  • Hardware Awareness: A key insight is that the GPU is not always the most efficient choice. In communication-bound scenarios, such as those with weak network signals, the CPU may be preferred to avoid energy waste while the GPU sits idle during data transfers.
  • Interference Mitigation: AutoFL learns to identify devices with high "performance slack"—those capable of handling background tasks without becoming stragglers—and prioritizes them during periods of high on-device interference.

Conclusion

AutoFL provides a robust solution to the challenges of heterogeneity in Federated Learning. By integrating hardware-aware reinforcement learning into the participant selection process, it significantly enhances both training speed and energy efficiency. Future research will focus on extending the framework to support specialized AI accelerators like NPUs and DSPs, further optimizing FL for the next generation of mobile hardware.

Summary updated

BibTeX
@inproceedings{kim2021autofl,
  author = {Young Geun Kim and Carole-Jean Wu},
  title = {{AutoFL: Enabling Heterogeneity-Aware Energy Efficient Federated Learning}},
  booktitle = {MICRO},
  year = {2021},
  doi = {10.1145/3466752.3480129},
}
Figure