Skip to main content
QUICK REVIEW

[Paper Review] How to estimate carbon footprint when training deep learning models? A guide and review

Lucia Bouza Heguerte, Aurélie Bugeau|arXiv (Cornell University)|Jun 14, 2023
Green IT and SustainabilityEngineering4 citations
TL;DR

This paper provides a comprehensive guide and comparative analysis of seven tools for estimating the carbon footprint during deep learning model training. It evaluates their accuracy, energy consumption, and usability across diverse infrastructures—ranging from personal computers to institutional servers—demonstrating that measuring only a subset of training epochs and extrapolating yields reliable results, while emphasizing the importance of infrastructure scaling and tool selection based on specific use cases.

ABSTRACT

Machine learning and deep learning models have become essential in the recent fast development of artificial intelligence in many sectors of the society. It is now widely acknowledge that the development of these models has an environmental cost that has been analyzed in many studies. Several online and software tools have been developed to track energy consumption while training machine learning models. In this paper, we propose a comprehensive introduction and comparison of these tools for AI practitioners wishing to start estimating the environmental impact of their work. We review the specific vocabulary, the technical requirements for each tool. We compare the energy consumption estimated by each tool on two deep neural networks for image processing and on different types of servers. From these experiments, we provide some advice for better choosing the right tool and infrastructure.

Motivation & Objective

  • To address the growing environmental impact of training deep learning models, which can emit hundreds of tonnes of CO2eq, especially in large language models.
  • To help AI practitioners overcome challenges in estimating energy consumption and carbon emissions due to unfamiliarity with hardware terminology and tool selection.
  • To evaluate and compare seven existing tools (e.g., CodeCarbon, Eco2AI, Green-Algorithms) for measuring dynamic energy use during model training.
  • To provide practical recommendations on tool selection, infrastructure usage, and measurement strategies based on empirical testing with wattmeters.
  • To highlight limitations such as underestimation of total emissions (excluding deployment and embodied energy) and the need for better lifecycle impact assessment.

Proposed method

  • The study evaluates seven carbon footprint estimation tools: Green-Algorithms, CodeCarbon, Eco2AI, CarbonTracker, Experiment-Impact-Tracker, MLCO2, and Cumulator.
  • Energy consumption is measured using physical wattmeters on five real infrastructures: Labri servers, MAP5 servers, Grid5000 cluster, personal computers, and Google Colab.
  • Two image processing tasks are used: MNIST digit classification (short, ~1 min) and DNCNN-based image denoising (longer, ~2 h) on ImageNet validation data.
  • The tools are assessed for accuracy by comparing their estimates against actual wattmeter measurements, and their own energy consumption is quantified.
  • The influence of key hyperparameters—batch size, data loading, checkpoints, and number of epochs—is experimentally analyzed to inform extrapolation strategies.
  • The study distinguishes between process-level and machine-level measurement, and evaluates usage factor and default values across tools.

Experimental results

Research questions

  • RQ1Which carbon footprint estimation tools are most accurate when measuring energy consumption during deep learning training on diverse infrastructures?
  • RQ2How does the energy consumption of the estimation tools themselves affect the reliability of carbon footprint measurements?
  • RQ3To what extent can measuring only a fraction of training epochs and extrapolating provide accurate carbon footprint estimates?
  • RQ4How do hyperparameters such as batch size and number of epochs influence the measured energy consumption and tool performance?
  • RQ5What are the key differences in measurement approach, default values, and infrastructure compatibility across the seven tools studied?

Key findings

  • Measuring only a subset of training epochs and extrapolating to estimate total energy use is a reliable strategy, as energy consumption remains relatively constant across epochs.
  • The energy consumption of the estimation tools themselves is minimal but non-negligible for large-scale experiments, with some tools consuming up to 0.15 kWh during a 2-hour training run.
  • Carbon footprint estimates vary significantly across tools due to differences in how idle power, CPU/GPU usage, and usage factors are modeled and applied.
  • Tools that estimate only the process-level consumption (e.g., CodeCarbon, Eco2AI) tend to report lower values than those measuring full machine power, especially on underutilized systems.
  • The choice of tool should be guided by infrastructure type and measurement goal: process-level vs. full-node monitoring.
  • The study confirms that training on underutilized infrastructure leads to higher carbon emissions, reinforcing the importance of selecting appropriately scaled resources.

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.