A first look into the carbon footprint of federated learning

Xinchi Qiu, Titouan Parcollet, Daniel J. Beutel, Taner Topal, Akhil Mathur, Nicholas D. 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, 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. Our findings show FL, despite being slower to converge, can be a greener technology than data center GPUs. 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

Training state-of-the-art deep learning models requires massive computational power, largely concentrated in energy-hungry data centers that require significant cooling infrastructure. While Federated Learning (FL) has emerged as a popular privacy-preserving alternative—training models collaboratively directly on decentralized edge devices—its environmental impact has remained largely unexplored. Because FL edge devices are computationally weaker and require many communication rounds over a network to converge, it is often assumed that FL is less environmentally friendly than highly optimized GPU clusters. This paper provides the first rigorous framework to estimate and compare the CO₂ emissions of FL versus traditional centralized data center training.

Methodology: Quantifying Carbon Emissions

The authors propose a mathematical model to quantify CO₂ emissions based on several key factors:

  • Centralized Training: Energy consumption is calculated using GPU/CPU power draw, training time, and the data center's Power Usage Effectiveness (PUE). PUE is a multiplier accounting for cooling and infrastructure overhead; for instance, the global average PUE is 1.67, while highly efficient data centers may reach 1.11.
  • Federated Learning: Energy is calculated based on the number of participating clients per round, time per round, and the power consumption of edge devices (modeled using NVIDIA Tegra X2 chips). Crucially, FL has no PUE overhead because heat dissipates naturally across distributed user devices.
  • Carbon Conversion: Total energy is converted into CO₂ emissions using the specific carbon intensity of the local electrical grid, highlighting how geographic location (e.g., nuclear-heavy France vs. coal-heavy China) affects the total footprint.

Experimental Setup

The framework was evaluated using standard image classification benchmarks, simulating both IID (Independent and Identically Distributed) and non-IID (heterogeneous, unbalanced) data setups:

  • CIFAR-10: ResNet-18 architecture.
  • FashionMNIST: Simple CNN for lightweight tasks.
  • ImageNet: Large-scale benchmark with a ResNet model.

Key Results

The study reveals that FL's environmental impact is highly dependent on data distribution and the efficiency of the centralized baseline. On the CIFAR-10 benchmark, FL demonstrates competitive performance under ideal data distributions but faces challenges with realistic, heterogeneous data.

CO2 emissions (g) for CIFAR-10 training across different countries and hardware setups.

As shown in Figure 1, for CIFAR-10 with IID data in the USA, FL emitted 2.3g of CO₂, which is highly competitive with an efficient centralized V100 GPU (2.1g) and significantly greener than an older K80 setup (4.3g). However, when data is non-IID, FL emissions jump to 10.9g, making it more polluting than centralized alternatives.

Convergence and accuracy metrics for CIFAR-10 across centralized and federated setups.

Figure 2 illustrates the performance trade-offs: while centralized training is vastly faster in wall-clock time (e.g., 48 seconds for a V100 vs. hundreds of seconds for FL rounds), FL's lower power draw per device keeps its total emissions competitive. The "non-IID penalty" is clearly visible in the number of rounds required to reach target accuracy—jumping from 16 rounds (IID) to 75 rounds (non-IID) to reach 60% accuracy.

For simpler tasks like FashionMNIST, FL was strictly greener than centralized training (0.5g vs 1.1g for an efficient V100 in the USA). Even for massive tasks like ImageNet, the gap was surprisingly small, with FL being only ~1.3x more polluting than an efficient V100 setup.

Conclusion and Future Directions

FL offers a built-in environmental advantage by bypassing the cooling requirements of data centers. However, its carbon footprint is highly sensitive to data distribution. Solving the non-IID convergence problem is therefore not just a matter of accuracy or bandwidth, but a critical component of reducing AI's climate impact.

Future research must address the energy cost of Wide-Area Networking (WAN), which this initial model excludes. Additionally, the authors call for greater industry transparency regarding the hardware specifications of deployed edge devices to refine these environmental models.

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. Our findings show FL, despite being slower to converge, can be a greener technology than data center GPUs. 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 D. 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