arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2601.08991cs.LGcs.SE
收藏

在机器学习中优化能耗与性能

Optimising for Energy Efficiency and Performance in Machine Learning

University of Cambridge(剑桥大学);Pasteur Labs(Pasteur实验室)

Emile Dos Santos Ferreira, Andrei Paleyes, Neil D. Lawrence

AI总结:

本文提出ECOpt工具,通过优化能耗与性能平衡,提升机器学习模型的环境效益和性能表现。

摘要:

机器学习(ML)的普及和对更大模型的需求导致了能耗和环境影响的增加。然而,关于ML中的能耗规模定律知之甚少,现有研究侧重于训练成本,而忽略了推理的更大成本。此外,用于测量ML能耗的工具并未提供可操作的反馈。为解决这些差距,我们开发了能耗优化器(ECOpt):一个超参数调节器,用于优化能耗和模型性能。ECOpt将这些指标之间的权衡量化为可解释的帕累托前沿。这使ML从业者能够做出关于能耗和环境影响的知情决策,同时最大化模型的收益并遵守新法规。使用ECOpt,我们证明了参数和浮点运算次数可以是能耗的不可靠代理,并观察到Transformer模型在文本生成中的能耗在不同硬件上相对一致。这些发现促使测量和发布ML模型的能耗指标。我们进一步表明,ECOpt可以产生净正的环境影响,并利用它发现七种在CIFAR-10上改进现有状态的模型,考虑准确性和能耗共同因素。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑