English

Computing Within Limits: An Empirical Study of Energy Consumption in ML Training and Inference

Machine Learning 2024-06-21 v1

Abstract

Machine learning (ML) has seen tremendous advancements, but its environmental footprint remains a concern. Acknowledging the growing environmental impact of ML this paper investigates Green ML, examining various model architectures and hyperparameters in both training and inference phases to identify energy-efficient practices. Our study leverages software-based power measurements for ease of replication across diverse configurations, models and datasets. In this paper, we examine multiple models and hardware configurations to identify correlations across the various measurements and metrics and key contributors to energy reduction. Our analysis offers practical guidelines for constructing sustainable ML operations, emphasising energy consumption and carbon footprint reductions while maintaining performance. As identified, short-lived profiling can quantify the long-term expected energy consumption. Moreover, model parameters can also be used to accurately estimate the expected total energy without the need for extensive experimentation.

Keywords

Cite

@article{arxiv.2406.14328,
  title  = {Computing Within Limits: An Empirical Study of Energy Consumption in ML Training and Inference},
  author = {Ioannis Mavromatis and Kostas Katsaros and Aftab Khan},
  journal= {arXiv preprint arXiv:2406.14328},
  year   = {2024}
}

Comments

Accepted for publication at ARISDE2024: 1st International Workshop on Artificial Intelligence for Sustainable Development