Skip to main content
QUICK REVIEW

[Paper Review] Green Federated Learning

Ashkan Yousefpour, Shen Guo|arXiv (Cornell University)|Mar 26, 2023
Privacy-Preserving Technologies in DataComputer Science15 citations
TL;DR

The paper provides a production-scale, data-driven carbon footprint analysis of Federated Learning (FL) and introduces Green FL as a framework to minimize emissions while maintaining competitive performance, based on measurements from a real-world Papaya-based FL system.

ABSTRACT

The rapid progress of AI is fueled by increasingly large and computationally intensive machine learning models and datasets. As a consequence, the amount of compute used in training state-of-the-art models is exponentially increasing (doubling every 10 months between 2015 and 2022), resulting in a large carbon footprint. Federated Learning (FL) - a collaborative machine learning technique for training a centralized model using data of decentralized entities - can also be resource-intensive and have a significant carbon footprint, particularly when deployed at scale. Unlike centralized AI that can reliably tap into renewables at strategically placed data centers, cross-device FL may leverage as many as hundreds of millions of globally distributed end-user devices with diverse energy sources. Green AI is a novel and important research area where carbon footprint is regarded as an evaluation criterion for AI, alongside accuracy, convergence speed, and other metrics. In this paper, we propose the concept of Green FL, which involves optimizing FL parameters and making design choices to minimize carbon emissions consistent with competitive performance and training time. The contributions of this work are two-fold. First, we adopt a data-driven approach to quantify the carbon emissions of FL by directly measuring real-world at-scale FL tasks running on millions of phones. Second, we present challenges, guidelines, and lessons learned from studying the trade-off between energy efficiency, performance, and time-to-train in a production FL system. Our findings offer valuable insights into how FL can reduce its carbon footprint, and they provide a foundation for future research in the area of Green AI.

Motivation & Objective

  • Quantify the carbon emissions of real-world federated learning tasks across clients, servers, and networks.
  • Identify the major contributors to FL’s carbon footprint in a production system.
  • Understand trade-offs between energy efficiency, training time, and model quality in FL.
  • Provide actionable guidelines and a predictive model to reduce FL emissions without sacrificing performance.

Proposed method

  • Instrument and profile all major components of a production FL stack (Papaya) to measure emissions from clients, servers, and networking."
  • Use a character-level language modeling task to evaluate FL with synchronous (FedAvg) and asynchronous (FedBuff) settings in a production environment.
  • Measure energy use with client power profiles (including CPU and Wi-Fi) and server power under assumed utilization (1%) with PUE and carbon intensity weighting.
  • Analyze contributions of concurrency, rounds, and aggregation to carbon footprint and model performance.
  • Explore hyperparameter tuning (learning rates, batch size, local epochs, concurrency, aggregation goal) to minimize emissions while achieving target perplexity.
  • Develop a predictive model to estimate FL task carbon footprint prior to deployment.

Experimental results

Research questions

  • RQ1What is the carbon footprint distribution across clients, servers, and network infrastructure in a production FL system?
  • RQ2How do synchronous and asynchronous FL compare in terms of emissions for a given target perplexity and training time?
  • RQ3Which hyperparameters most influence the carbon emissions and training efficiency of FL in production?
  • RQ4Can we predict the carbon footprint of an FL task before deployment to guide Green FL decisions?
  • RQ5What practical guidelines reduce FL emissions without sacrificing model quality or convergence speed?

Key findings

  • Client compute and client-server communication dominate FL emissions, contributing ~97% collectively across the stack.
  • Server-side computation is a small fraction of emissions (~1–2%), with uploading (~27–29%) and downloading (~22–24%) network traffic also significant.
  • Asynchronous FL converges faster but incurs higher carbon emissions than synchronous FL when tuned for similar accuracy.
  • Different configurations achieving similar accuracy can have up to 200× differences in carbon impact, highlighting the value of hyperparameter optimization.
  • Reducing training time via optimizer choices and smaller concurrency lowers the carbon footprint while maintaining model quality.
  • A few days of large-scale language modeling FL can emit on the order of 5–20 kg CO2e, with potential multi-fold increases during model exploration and retraining.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.