Analysing the energy impact of different optimisations for machine learning models

María Gutiérrez, M. A. Moraga, F. García
{"title":"Analysing the energy impact of different optimisations for machine learning models","authors":"María Gutiérrez, M. A. Moraga, F. García","doi":"10.1109/ict4s55073.2022.00016","DOIUrl":null,"url":null,"abstract":"Nowadays, there is an increasing use of artificial intelligence algorithms in the software applications we use in our daily lives. This allows us to effectively and efficiently solve a wide range of problems, but it is important to pay attention to the environmental impact they may have. This kind of algorithms often demand intensive use of several computational resources, including energy consumption, which means that more and more attention must be paid to the design and parametrization of machine learning algorithms in order to consider their energy efficiency, along with their functionality. With a proper assessment of energy consumption, developers gain the ability to take energy efficiency as a requirement for developing a machine learning model. As an illustrative example, in this paper we analyze the energy impact of changing the optimization method of a machine learning model based on logistic regression. We used three versions of the same logistic regression model using the Scikit-Learn python package, with the only difference between each version being the solver they use (SAG, Newton-CG, LBFGS), and measured their energy consumption for processing a dataset for detecting fraudulent credit card transactions. Our results reveal a major difference in consumption between the solver with least consumption (LBFGS, 961.36 W/s) and the most (Newton-CG, 2,761.71 W/s), while their difference in accuracy is only 0.016 percent points. This confirms the usefulness of evaluating the energy impact of the optimization choices of algorithms, so that developers can adequately consider the trade-off between the traditional quality measures (e.g. precision, recall, etc.) and energy consumption.","PeriodicalId":437454,"journal":{"name":"2022 International Conference on ICT for Sustainability (ICT4S)","volume":"13 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-06-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"4","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 International Conference on ICT for Sustainability (ICT4S)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ict4s55073.2022.00016","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 4

Abstract

Nowadays, there is an increasing use of artificial intelligence algorithms in the software applications we use in our daily lives. This allows us to effectively and efficiently solve a wide range of problems, but it is important to pay attention to the environmental impact they may have. This kind of algorithms often demand intensive use of several computational resources, including energy consumption, which means that more and more attention must be paid to the design and parametrization of machine learning algorithms in order to consider their energy efficiency, along with their functionality. With a proper assessment of energy consumption, developers gain the ability to take energy efficiency as a requirement for developing a machine learning model. As an illustrative example, in this paper we analyze the energy impact of changing the optimization method of a machine learning model based on logistic regression. We used three versions of the same logistic regression model using the Scikit-Learn python package, with the only difference between each version being the solver they use (SAG, Newton-CG, LBFGS), and measured their energy consumption for processing a dataset for detecting fraudulent credit card transactions. Our results reveal a major difference in consumption between the solver with least consumption (LBFGS, 961.36 W/s) and the most (Newton-CG, 2,761.71 W/s), while their difference in accuracy is only 0.016 percent points. This confirms the usefulness of evaluating the energy impact of the optimization choices of algorithms, so that developers can adequately consider the trade-off between the traditional quality measures (e.g. precision, recall, etc.) and energy consumption.
分析不同优化对机器学习模型的能量影响
如今,在我们日常生活中使用的软件应用程序中越来越多地使用人工智能算法。这使我们能够有效和高效地解决广泛的问题,但重要的是要注意它们可能对环境造成的影响。这类算法通常需要大量使用多种计算资源,包括能耗,这意味着必须越来越多地关注机器学习算法的设计和参数化,以考虑其能源效率和功能。通过对能源消耗进行适当的评估,开发人员可以将能源效率作为开发机器学习模型的要求。作为一个说明性的例子,在本文中,我们分析了改变基于逻辑回归的机器学习模型的优化方法对能源的影响。我们使用Scikit-Learn python包使用了相同逻辑回归模型的三个版本,每个版本之间的唯一区别是它们使用的求解器(SAG, Newton-CG, LBFGS),并测量了它们处理用于检测欺诈性信用卡交易的数据集的能耗。我们的结果显示,消耗最少的求解器(LBFGS, 961.36 W/s)和消耗最多的求解器(Newton-CG, 2761.71 W/s)之间的消耗存在很大差异,而它们的精度差异仅为0.016%。这证实了评估算法优化选择的能源影响的有用性,以便开发人员可以充分考虑传统质量度量(例如精度,召回率等)和能源消耗之间的权衡。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信