Optimising for Energy Efficiency and Performance in Machine Learning
By: Emile Dos Santos Ferreira, Neil D. Lawrence, Andrei Paleyes
The ubiquity of machine learning (ML) and the demand for ever-larger models bring an increase in energy consumption and environmental impact. However, little is known about the energy scaling laws in ML, and existing research focuses on training cost -- ignoring the larger cost of inference. Furthermore, tools for measuring the energy consumption of ML do not provide actionable feedback. To address these gaps, we developed Energy Consumption Optimiser (ECOpt): a hyperparameter tuner that optimises for energy efficiency and model performance. ECOpt quantifies the trade-off between these metrics as an interpretable Pareto frontier. This enables ML practitioners to make informed decisions about energy cost and environmental impact, while maximising the benefit of their models and complying with new regulations. Using ECOpt, we show that parameter and floating-point operation counts can be unreliable proxies for energy consumption, and observe that the energy efficiency of Transformer models for text generation is relatively consistent across hardware. These findings motivate measuring and publishing the energy metrics of ML models. We further show that ECOpt can have a net positive environmental impact and use it to uncover seven models for CIFAR-10 that improve upon the state of the art, when considering accuracy and energy efficiency together.
Similar Papers
ML-EcoLyzer: Quantifying the Environmental Cost of Machine Learning Inference Across Frameworks and Hardware
Machine Learning (CS)
Measures computer brain's energy use and pollution.
Towards eco friendly cybersecurity: machine learning based anomaly detection with carbon and energy metrics
Cryptography and Security
Makes AI security use less electricity and pollution.
An Analysis of Optimizer Choice on Energy Efficiency and Performance in Neural Network Training
Machine Learning (CS)
Chooses best computer learning methods to save energy.