Chasing Low-Carbon Electricity for Practical and Sustainable DNN Training

Zhenning Yang, Luoxi Meng, Jae-Won Chung, Mosharaf ChowdhuryarXiv 2023

TL;DR

This paper introduces "Chase," a practical system that reduces the carbon footprint of deep neural network (DNN) training without requiring job migration or delays. By dynamically adjusting GPU power consumption based on real-time and predicted carbon intensity of electricity, Chase significantly cuts emissions while minimally impacting training time.

What Problem Does This Paper Address?

The rapid growth of deep learning has led to a substantial increase in energy consumption and associated carbon emissions, primarily from the power-hungry GPUs used for training. While existing solutions propose moving training jobs to locations or times with lower carbon intensity, these approaches face practical limitations. Migrating jobs can be hindered by large datasets or data regulations, and delaying training can compromise service quality by preventing timely model updates. This paper addresses the need for a solution that can reduce carbon emissions during training, without these logistical hurdles.

Methods

The core of the "Chase" system lies in two main components:

  1. Carbon Intensity Forecasting: To proactively adapt to changing electricity carbon intensity, the system uses a lightweight regression model. This model takes historical carbon intensity data (specifically, the previous day's data) and current time-of-day information (represented by sine and cosine functions) to predict the carbon intensity for the upcoming time window. This approach aims to be affordable and accessible, avoiding the need for costly commercial forecasting services.
  2. Carbon-Aware DNN Training: This component dynamically adjusts the GPU's power limit during training. The system aims to minimize a cost function that balances carbon emissions (Time-to-Accuracy * Average Power * Average Carbon Intensity) and training performance. It does this by iteratively optimizing the GPU power limit for short periods. When carbon intensity is predicted to be high, the GPU's power is reduced, slowing down training. Conversely, when carbon intensity is low, the GPU can operate at higher power to accelerate training. This is achieved by profiling the GPU's throughput and power consumption for different power limits and then selecting the optimal limit for each period based on the forecasted carbon intensity.

Datasets

  • Carbon Intensity Data: Historical carbon intensity traces for the Central US region were obtained from the WattTime API. Data from January 15 to January 27, 2023, with 30-minute intervals, was used.
  • ImageNet: The ImageNet dataset was used for evaluating the DNN training performance.
  • ResNet-50: The ResNet-50 model was trained on the ImageNet dataset to demonstrate the effectiveness of the proposed method.

Key Insights and Ideas

  • Carbon Intensity is Dynamic and Predictable (Short-Term): The paper highlights that carbon intensity isn't static and can be predicted with reasonable accuracy for short durations (e.g., less than 10 minutes), making real-time adaptation feasible.
  • Practicality Over Migration/Postponement: The most significant insight is that effective carbon reduction can be achieved in situ without the complex logistical challenges of moving or delaying training jobs.
  • Lightweight Forecasting is Sufficient: A simple regression model, leveraging historical data and time-of-day patterns, proves effective for short-term carbon intensity forecasting, democratizing this capability.
  • Balancing Carbon and Performance: The framework explicitly models the trade-off between carbon efficiency and training time, allowing users to configure their priorities.

Key Results

  • Carbon Footprint Reduction: The "Chase" system reduced the total carbon footprint of training ResNet-50 on ImageNet by 13.6% compared to normal training.
  • Minimal Training Time Increase: This reduction was achieved with only a 2.5% increase in training time.
  • Forecasting Performance: The Support Vector Regression (SVR) model achieved a Mean Absolute Percentage Error (MAPE) of 0.94% for carbon intensity forecasting, indicating high accuracy.

Limitations and Future Work

  • Limitations:
    • The current system focuses on a single DNN training job.
  • The effectiveness of the forecasting model might vary across different geographical regions.
  • The paper acknowledges the difficulty of accurately predicting TTA (time-to-accuracy) and long-term carbon intensity, which is why the approach focuses on short-term optimization periods.
  • Future Work:
    • Extending "Chase" to support multiple DNN training jobs simultaneously within data centers.
  • Investigating more sophisticated forecasting models or exploring different prediction horizons.
  • Further research into optimizing for carbon-aware training in distributed environments.

Summary updated

Abstract

Deep learning has experienced significant growth in recent years, resulting in increased energy consumption and carbon emission from the use of GPUs for training deep neural networks (DNNs). Answering the call for sustainability, conventional solutions have attempted to move training jobs to locations or time frames with lower carbon intensity. However, moving jobs to other locations may not always be feasible due to large dataset sizes or data regulations. Moreover, postponing training can negatively impact application service quality because the DNNs backing the service are not updated in a timely fashion. In this work, we present a practical solution that reduces the carbon footprint of DNN training without migrating or postponing jobs. Specifically, our solution observes real-time carbon intensity shifts during training and controls the energy consumption of GPUs, thereby reducing carbon footprint while maintaining training performance. Furthermore, in order to proactively adapt to shifting carbon intensity, we propose a lightweight machine learning algorithm that predicts the carbon intensity of the upcoming time frame. Our solution, Chase, reduces the total carbon footprint of training ResNet-50 on ImageNet by 13.6% while only increasing training time by 2.5%.
BibTeX
@misc{yang2023chasing,
  author = {Zhenning Yang and Luoxi Meng and Jae-Won Chung and Mosharaf Chowdhury},
  title = {{Chasing Low-Carbon Electricity for Practical and Sustainable DNN Training}},
  year = {2023},
  eprint = {2303.02508},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.02508},
}
Figure