Sustainable Federated Learning

Basak Guler, Aylin YenerarXiv 2021 · arXiv

Abstract

As machine learning moves toward the edge, the energy constraints of billions of IoT devices and sensors present a significant barrier to scalable training. This paper introduces a framework for "Sustainable Federated Learning" (SFL) specifically designed for edge devices that rely on intermittent, harvested energy sources such as solar, kinetic, or radio frequency (RF) power. By implementing a novel stochastic client scheduling strategy and scaled model updates, the authors demonstrate a method that achieves near-optimal convergence speeds and accuracy. Crucially, the framework prevents the global model from becoming biased toward devices in energy-rich environments, ensuring equitable data representation across heterogeneous energy profiles.

Introduction

The environmental and computational costs of modern machine learning are escalating rapidly; between 2012 and 2018, the compute required for state-of-the-art models increased by an estimated 300,000x. As the industry shifts toward Federated Learning (FL)—a paradigm where models are trained locally on edge devices to preserve privacy—the energy consumption of these distributed systems has become a critical concern.

While most FL research assumes that participating devices are either connected to a stable power grid or possess sufficient battery reserves, the future of "smart ecosystems" increasingly relies on energy harvesting. These devices operate on intermittent power, creating a unique challenge for standard FL protocols. Specifically, intermittent energy leads to two primary issues:

  1. Environmental Bias: If a server only accepts updates from devices with immediate energy availability, the resulting model becomes biased toward "energy-rich" conditions (e.g., solar-powered sensors in sunny regions), effectively ignoring data from "energy-poor" environments.
  2. System Latency: Conversely, if the server waits for every device to reach a full charge before proceeding (the "slowest-client" problem), the training process becomes prohibitively slow.

Proposed Framework: Sustainable Federated Learning

The authors propose a practical framework designed to balance unbiasedness with training efficiency. The system relies on three core components that allow it to function effectively under intermittent power constraints:

1. Stochastic Client Scheduling

To avoid the bias inherent in greedy participation, the framework employs a local randomized protocol. Rather than a device participating the moment it harvests enough energy, it calculates its energy renewal cycle ($E_i$)—the number of rounds required to recharge. The device then selects a single round at random within that $E_i$ window to contribute its update. This decentralized scheduling ensures that over time, every device has an equal probability of participating in any given round, regardless of its charging speed.

2. Scaled Local Updates

Because devices with longer recharge cycles participate less frequently, their contributions could be overshadowed by faster devices. To compensate, the server scales the received updates by the device's specific energy renewal cycle ($E_i$). This mathematical re-weighting ensures that the global gradient remains an unbiased estimator of the true gradient, treating a device that updates once every 20 rounds with the same statistical importance as one that updates every round.

3. Provable Convergence

The framework is supported by a rigorous mathematical proof demonstrating that the method converges at a rate of $O(1/K)$. This matches the standard expectation for distributed Stochastic Gradient Descent (SGD), proving that sustainability does not have to come at the cost of theoretical performance.

Experimental Evaluation

The framework was evaluated using the CIFAR-10 dataset, a standard benchmark for image classification. The experimental setup simulated a network of 40 clients with heterogeneous energy profiles. These clients were divided into four groups with energy renewal cycles of 1, 5, 10, and 20 rounds, respectively, to mimic a diverse IoT ecosystem.

Key Results

The proposed SFL algorithm was compared against two common benchmarks:

  • Greedy Participation: Clients participate as soon as they have sufficient energy. This approach resulted in significant model bias, achieving only ~60% accuracy.
  • Wait-for-all: The server waits for the slowest device in the network to charge before updating the global model. This approach was too slow to converge within the testing timeframe, reaching only ~62% accuracy.
  • Sustainable Federated Learning: The proposed framework achieved 77% accuracy. This performance is nearly identical to the "ideal" FedAvg scenario where all devices have unlimited energy, proving the efficacy of the stochastic scheduling and scaling approach.

Discussion and Future Work

The "Energy-Agnostic Trap" is a significant hurdle for real-world FL deployment. Standard algorithms like FedAvg perform poorly when energy is intermittent because they naturally favor "fast" devices, leading to models that fail to generalize to the environments of "slow" devices. The SFL framework addresses this by moving scheduling to the client level, making the system highly scalable and privacy-preserving, as devices do not need to share their exact energy status with the central server.

However, several avenues for future research remain:

  • Stochastic Energy Arrival: The current model assumes $E_i$ is predictable. Future iterations must account for highly volatile environments where energy arrival is purely stochastic.
  • Asynchronous Communication: Moving away from a synchronous global clock toward an asynchronous model would further improve robustness for real-world IoT applications.
  • Communication Efficiency: Combining energy-aware scheduling with model quantization could further reduce the energy footprint of the communication phase itself.

Summary updated

Abstract

Potential environmental impact of machine learning by large-scale wireless networks is a major challenge for the sustainability of future smart ecosystems. In this paper, we introduce sustainable machine learning in federated learning settings, using rechargeable devices that can collect energy from the ambient environment. We propose a practical federated learning framework that leverages intermittent energy arrivals for training, with provable convergence guarantees. Our framework can be applied to a wide range of machine learning settings in networked environments, including distributed and federated learning in wireless and edge networks. Our experiments demonstrate that the proposed framework can provide significant performance improvement over the benchmark energy-agnostic federated learning settings.
BibTeX
@misc{guler2021sustainable,
  author = {Basak Guler and Aylin Yener},
  title = {{Sustainable Federated Learning}},
  year = {2021},
  eprint = {2102.11274},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.11274},
}
Figure