arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.15128cs.LGcs.AIcs.CY
收藏

评估机器学习的能耗:系统性文献综述与实验

Evaluating the Energy Consumption of Machine Learning: Systematic Literature Review and Experiments

Accenture Labs(埃森哲实验室);Inria(法国国家信息与自动化研究所)

Charlotte Rodriguez, Laura Degioanni, Laetitia Kameni, Richard Vidal, Giovanni Neglia

AI总结:

本文通过系统性文献综述和实验协议,全面梳理并定性与定量比较了评估机器学习训练与推理能耗的各类工具和方法,为不同用例提供选择指南并开源了相关代码库。

摘要:

监控、理解和优化机器学习(ML)的能耗是评估ML能耗的必要原因。然而,目前不存在能够针对所有用例回答此问题的通用工具,甚至对于如何评估特定用例的能耗也可能存在分歧。现有工具和方法基于不同途径,各有优缺点,需要对其进行梳理和解释,以便在特定情况下选择最合适的工具。我们通过两种途径应对这一挑战。首先,我们对所有允许评估ML能耗(包括训练和推理阶段)的工具和方法进行系统性文献综述,无论其最初是否专为机器学习或通用软件设计。其次,我们开发并使用实验协议来比较这些工具和方法中的部分选择。该比较在具有不同性质(视觉、语言)和计算复杂度的多种ML任务上进行,兼具定性和定量分析。该系统性文献综述可作为全面指南,帮助理解用于评估ML能耗的各种工具和方法,适用于从基础能耗监控到能耗优化等各种用例。我们提供了两个开源代码库供进一步探索。第一个包含可用于复现本工作或扩展当前综述的工具。第二个代码库存放了实验协议,允许用户通过添加新的ML计算任务和额外的能耗评估工具来扩充该协议。

英文摘要:

Monitoring, understanding, and optimizing the energy consumption of Machine Learning (ML) are various reasons why it is necessary to evaluate the energy usage of ML. However, there exists no universal tool that can answer this question for all use cases, and there may even be disagreement on how to evaluate energy consumption for a specific use case. Tools and methods are based on different approaches, each with their own advantages and drawbacks, and they need to be mapped out and explained in order to select the most suitable one for a given situation. We address this challenge through two approaches. First, we conduct a systematic literature review of all tools and methods that permit to evaluate the energy consumption of ML (both at training and at inference), irrespective of whether they were originally designed for machine learning or general software. Second, we develop and use an experimental protocol to compare a selection of these tools and methods. The comparison is both qualitative and quantitative on a range of ML tasks of different nature (vision, language) and computational complexity. The systematic literature review serves as a comprehensive guide for understanding the array of tools and methods used in evaluating energy consumption of ML, for various use cases going from basic energy monitoring to consumption optimization. Two open-source repositories are provided for further exploration. The first one contains tools that can be used to replicate this work or extend the current review. The second repository houses the experimental protocol, allowing users to augment the protocol with new ML computing tasks and additional energy evaluation tools.

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

↑