Skip to main content
QUICK REVIEW

[Paper Review] Measuring the Energy Consumption and Efficiency of Deep Neural Networks: An Empirical Analysis and Design Recommendations

Charles Tripp, Jordan Perr‐Sauer|arXiv (Cornell University)|Mar 13, 2024
Smart Grid Energy ManagementEngineering8 citations
TL;DR

The paper empirically measures energy use in training dense fully connected networks with node-level watt-meters, introduces the BUTTER-E dataset, analyzes cache/memory effects, and proposes an energy model and design recommendations for energy-efficient neural networks.

ABSTRACT

Addressing the so-called ``Red-AI'' trend of rising energy consumption by large-scale neural networks, this study investigates the actual energy consumption, as measured by node-level watt-meters, of training various fully connected neural network architectures. We introduce the BUTTER-E dataset, an augmentation to the BUTTER Empirical Deep Learning dataset, containing energy consumption and performance data from 63,527 individual experimental runs spanning 30,582 distinct configurations: 13 datasets, 20 sizes (number of trainable parameters), 8 network ``shapes'', and 14 depths on both CPU and GPU hardware collected using node-level watt-meters. This dataset reveals the complex relationship between dataset size, network structure, and energy use, and highlights the impact of cache effects. We propose a straightforward and effective energy model that accounts for network size, computing, and memory hierarchy. Our analysis also uncovers a surprising, hardware-mediated non-linear relationship between energy efficiency and network design, challenging the assumption that reducing the number of parameters or FLOPs is the best way to achieve greater energy efficiency. Highlighting the need for cache-considerate algorithm development, we suggest a combined approach to energy efficient network, algorithm, and hardware design. This work contributes to the fields of sustainable computing and Green AI, offering practical guidance for creating more energy-efficient neural networks and promoting sustainable AI.

Motivation & Objective

  • Motivate urgent need to understand energy consumption in training neural networks under the 'Red AI' trend.
  • Introduce and publish the BUTTER-E dataset capturing real-world energy and performance across many configurations.
  • Characterize how hyperparameters, network topology, and hardware interact to affect energy use.
  • Develop a simple energy model that accounts for network size, computation, and memory hierarchy, and discuss implications for energy-efficient design.
  • Provide guidance for energy-efficient architectures, algorithms, and hardware to advance Green AI.

Proposed method

  • Compile energy measurements using node-level watt-meters on an HPC system (CPU and GPU runs).
  • Create and extend the BUTTER-E dataset with 63,527 runs across 30,582 configurations (13 datasets, 20 parameter sizes, 8 shapes, 14 depths).
  • Standardize energy measurements across heterogeneous nodes by removing idle-power differences and overheads.
  • Filter and quality-control raw power data, aligning power traces with scheduler data for accurate run-level energy and time statistics.
  • Analyze aggregate trends and cache-related effects through working-set definitions and memory-hierarchy considerations.
  • Fit a hardware-aware energy model linking hyperparameters, working-set sizes, and cache boundaries to observed energy consumption.
Figure 1 : (a) The energy consumption (left axis) and corresponding carbon emissions given the average energy generation mix in the United States (right axis) incurred by training published AI models has increased dramatically over the last two decades, the so-called “Red AI Era.” The AI System Tota
Figure 1 : (a) The energy consumption (left axis) and corresponding carbon emissions given the average energy generation mix in the United States (right axis) incurred by training published AI models has increased dramatically over the last two decades, the so-called “Red AI Era.” The AI System Tota

Experimental results

Research questions

  • RQ1How do dataset size, network topology, and depth influence energy consumption per training datum and per epoch?
  • RQ2To what extent do hardware factors (CPU vs GPU, cache sizes) mediate energy efficiency in neural network training?
  • RQ3What non-linear relationships exist between energy, FLOPs, and parameter counts when memory hierarchy and cache effects are considered?
  • RQ4Can a simple energy model capture the key drivers of energy usage for fully connected networks across diverse configurations?
  • RQ5What design recommendations emerge for energy-efficient networks, algorithms, and hardware?

Key findings

  • Energy per training datum increases non-linearly with both parameter count and FLOPs, with caching and memory hierarchy playing a key role.
  • GPU-based training consumes higher energy per datum only past certain parameter counts; CPUs show different non-linear patterns likely due to cache and per-epoch overheads.
  • Depth correlates with higher energy per datum; shallower networks show GPUs can be more energy-efficient at small depths, while GPUs become more efficient as depth increases.
  • At around 2^20 parameters (near GPU L2 cache capacity), energy-per-datum behavior transitions to a more linear regime, reflecting cache effects.
  • An empirically grounded energy model that accounts for network topology, cache interactions, and working-set sizes fits observed data and highlights the importance of cache-conscious algorithm/hardware design.
  • The study provides actionable insights for energy-efficient architectures, algorithms, and hardware to address the Red AI trend.
Figure 2 : Histograms (on logarithmic axes) showing the quantity and location of data filtered out for this analysis. The filters reject 241 runs, which is approximately 0.6% of the total number of runs.
Figure 2 : Histograms (on logarithmic axes) showing the quantity and location of data filtered out for this analysis. The filters reject 241 runs, which is approximately 0.6% of the total number of runs.

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.