Skip to main content
QUICK REVIEW

[Paper Review] Eco2AI: carbon emissions tracking of machine learning models as the first step towards sustainable AI

Semen Budennyy, Vladimir Lazarev|arXiv (Cornell University)|Jul 31, 2022
Air Quality Monitoring and ForecastingEnvironmental Science6 citations
TL;DR

This paper introduces eco2AI, an open-source Python library that enables real-time tracking of energy consumption and CO2 emissions during machine learning model training and inference. By integrating precise regional carbon intensity data and device-level power monitoring, eco2AI helps researchers optimize models for lower environmental impact—demonstrating a 10% reduction in CO2 emissions using 4-bit quantized GELU activation functions.

ABSTRACT

The size and complexity of deep neural networks continue to grow exponentially, significantly increasing energy consumption for training and inference by these models. We introduce an open-source package eco2AI to help data scientists and researchers to track energy consumption and equivalent CO2 emissions of their models in a straightforward way. In eco2AI we put emphasis on accuracy of energy consumption tracking and correct regional CO2 emissions accounting. We encourage research community to search for new optimal Artificial Intelligence (AI) architectures with a lower computational cost. The motivation also comes from the concept of AI-based green house gases sequestrating cycle with both Sustainable AI and Green AI pathways.

Motivation & Objective

  • To address the growing environmental impact of AI by providing a transparent, accurate method for tracking CO2 emissions during model training and inference.
  • To support the research community in developing more computationally efficient AI models by quantifying the environmental cost of different architectures and optimizations.
  • To establish a foundation for Sustainable AI by enabling data scientists to monitor and reduce the carbon footprint of their ML workflows.
  • To integrate emissions tracking into the AI development lifecycle, promoting accountability and sustainability in machine learning.
  • To contribute to the broader AI-based GHG sequestration cycle by linking model efficiency with environmental impact reduction.

Proposed method

  • eco2AI is implemented as a Python library that instruments training and inference sessions via start/stop context managers or function decorators.
  • The tool measures real-time power consumption of CPU, GPU, and RAM using system-level monitoring and device-specific power draw profiles.
  • It applies region-specific carbon intensity coefficients (gCO2/kWh) to convert energy usage into equivalent CO2 emissions, ensuring geographically accurate accounting.
  • The library supports encrypted output logging to ensure result authenticity and integrity for reproducible reporting.
  • It generates structured output in CSV format, including project metadata, duration, energy use (kWh), CO2 emissions (kg), and hardware specifications.
  • The tool includes a summary function that aggregates emissions data by project and optionally calculates financial costs using user-defined electricity prices.

Experimental results

Research questions

  • RQ1How can energy consumption and CO2 emissions be accurately tracked during the training and inference of machine learning models in real time?
  • RQ2To what extent can model optimization techniques such as 4-bit quantization reduce both energy consumption and equivalent CO2 emissions?
  • RQ3How can region-specific carbon intensity data be effectively integrated into ML training tracking to improve emission estimation accuracy?
  • RQ4What role can automated emissions tracking play in guiding the design of more sustainable and efficient AI models?
  • RQ5How can emissions tracking tools like eco2AI support the transition toward Green AI and Sustainable AI pathways in practice?

Key findings

  • The eco2AI library successfully tracks energy consumption and CO2 emissions in real time with high accuracy, using precise device-level power measurements and regional emission factors.
  • Using 4-bit quantization on the GELU activation function reduced power consumption by approximately 10% and CO2 emissions by 10% in the Malevich model training.
  • The library demonstrated a measurable reduction in emissions when comparing full-precision and quantized models, validating its utility in model optimization.
  • eco2AI enables researchers to compare the environmental impact of different model architectures and hyperparameters, supporting data-driven sustainability decisions.
  • The tool supports encrypted logging and financial cost estimation, enhancing transparency and reproducibility in emissions reporting.
  • The integration of eco2AI into training workflows is straightforward, requiring minimal code changes via decorators or context managers.

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.