A first look into the carbon footprint of federated learning

Xinchi Qiu, Titouan Parcollet, daniel j Beutel, Taner Topal, Akhil Mathur, Nicholas Donald Lane

Abstract

Despite impressive results, deep learning-based technologies also raise severe privacy and environmental concerns induced by the training procedure often conducted in data centers. In response, alternatives to centralized training such as Federated Learning (FL) have emerged. Perhaps unexpectedly, FL is starting to be deployed at a global scale by companies that must adhere to new legal demands and policies originating from governments and social groups advocating for privacy protection. However, the potential environmental impact related to FL remains unclear and unexplored. This paper offers the first-ever systematic study of the carbon footprint of FL. First, we propose a rigorous model to quantify the carbon footprint, hence facilitating the investigation of the relationship between FL design and carbon emissions. Then, we compare the carbon footprint of FL to traditional centralized learning. Our findings show that, depending on the configuration, FL can emit up to two order of magnitude more carbon than centralized machine learning. However, in certain settings, it can be comparable to centralized learning due to the reduced energy consumption of embedded devices. We performed extensive experiments across different types of datasets, settings and various deep learning models with FL. Finally, we highlight and connect the reported results to the future challenges and trends in FL to reduce its environmental impact, including algorithms efficiency, hardware capabilities, and stronger industry transparency.

Introduction

Deep Learning has a massive carbon footprint, largely due to the energy-hungry GPUs in data centers. Federated Learning (FL) emerged as a way to train models on decentralized data (like smartphones) without ever moving that data to a central server. While the privacy benefits are clear, the environmental impact was previously a "black box." This study provides the first systematic framework to quantify the $CO_2$ equivalent ($CO_2e$) emissions of FL, asking whether distributing the workload across millions of low-power devices saves energy or creates a new environmental disaster through communication overhead.

Methodology

The authors propose a rigorous mathematical model to estimate total emissions ($E_{FL}$), which is the sum of two main components:

  1. Training Energy ($T_{FL}$): The power consumed by the CPU/GPU of every client device during local training rounds.
  2. Communication Energy ($C$): The energy used by routers and networking hardware to upload and download model parameters, including "idle power" consumed while waiting for data transfers.

To make a fair comparison with Centralized Learning (CL), the model includes a Power Usage Effectiveness (PUE) factor for data centers. This accounts for the energy spent on non-computing tasks, primarily cooling—an overhead that decentralized FL devices avoid. Finally, energy (kWh) is converted to carbon (kg $CO_2e$) using country-specific carbon intensity factors.

Datasets and Benchmarks

The study evaluates the model across several standard and federated benchmarks:

  • Image Classification: CIFAR10, ImageNet, and FEMNIST (a naturally partitioned federated version of MNIST).
  • Speech Processing: Speech Commands (Keyword Spotting) and Common Voice Italian (Automated Speech Recognition).

Key Drivers of FL Carbon Emissions

The Communication Tax

In many scenarios, communication is the primary driver of emissions. For instance, with CIFAR10 and few local epochs, communication can account for a staggering 96% of total emissions. Moving model weights back and forth is often far "dirtier" than the actual computation performed on the device.

Data Distribution and Algorithmic Efficiency

When data is "Non-IID" (meaning different users have very different data distributions), FL takes significantly more rounds to converge, directly increasing the carbon footprint. However, using sophisticated optimizers like FedADAM instead of standard FedAvg can reduce emissions by up to 75% by reaching target accuracy in fewer rounds.

The Impact of Geographic Location

The "greenness" of FL depends heavily on where the clients are located. Training the same model in a country with a low-carbon energy grid (like France, which relies on nuclear power) is significantly cleaner than training it in a region with high coal dependency.

Global variation in carbon intensity factors used to calculate FL emissions.

Comparative Results

  • The Bad News: For heavy tasks like ImageNet, FL can emit hundreds of times more carbon than centralized training because the communication overhead of large models is massive.
  • The Good News: For lightweight, "cross-device" tasks like Speech Commands, FL can be comparable to or even cleaner than centralized training. FL has one major green advantage: it doesn't need air conditioning. Because devices are scattered, they dissipate heat naturally, avoiding the ~40% energy overhead typical of data center cooling.
  • The Break-even Point: The authors identified a break-even line where FL becomes more efficient than a V100 GPU. For CIFAR10, FL is only carbon-competitive if it reaches target accuracy within a very small number of communication rounds (e.g., ~8 rounds for 1 local epoch).

Limitations and Future Work

The study focuses on operational energy but excludes the "embodied carbon" of manufacturing the millions of devices involved. Additionally, while this study used specific NVIDIA Jetson devices as proxies, real-world edge hardware is much more heterogeneous.

The paper calls for "Carbon-aware FL," where servers might prioritize selecting clients in "greener" time zones or geographic locations to minimize the global footprint. Future research must also address hardware diversity and the full lifecycle of the devices used in federated networks.

Summary updated

Abstract

Despite impressive results, deep learning-based technologies also raise severe privacy and environmental concerns induced by the training procedure often conducted in data centers. In response, alternatives to centralized training such as Federated Learning (FL) have emerged. Perhaps unexpectedly, FL in particular is starting to be deployed at a global scale by companies that must adhere to new legal demands and policies originating from governments and the civil society for privacy protection. However, the potential environmental impact related to FL remains unclear and unexplored. This paper offers the first-ever systematic study of the carbon footprint of FL. First, we propose a rigorous model to quantify the carbon footprint, hence facilitating the investigation of the relationship between FL design and carbon emissions. Then, we compare the carbon footprint of FL to traditional centralized learning. We also formalize an early-stage FL optimization problem enabling the community to consider the importance of optimizing the rate of CO$_2$ emissions jointly to the accuracy of neural networks. Finally, we highlight and connect the reported results to the future challenges and trends in FL to reduce its environmental impact, including algorithms efficiency, hardware capabilities, and stronger industry transparency.
BibTeX
@misc{qiu2021first,
  author = {Xinchi Qiu and Titouan Parcollet and daniel j Beutel and Taner Topal and Akhil Mathur and Nicholas Donald Lane},
  title = {{A first look into the carbon footprint of federated learning}},
  year = {2021},
  eprint = {2102.07627},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.07627},
}
Figure