论文标题
自动化计划维修的能耗
Energy Consumption of Automated Program Repair
论文作者
论文摘要
自动化程序维修(APR)旨在自动修复软件错误的过程,以降低维护软件程序的成本。此外,近年来,APR方法的成功(准确度量)的成功增加了。但是,以前的工作没有考虑使用APR自动修复错误的能源影响。绿色软件研究领域旨在衡量开发,维护和使用软件产品所需的能耗。本文首次结合了APR和绿色软件研究领域。我们的主要目标是定义衡量APR活动能耗的基础。我们在源代码上测量了Java的十种传统程序维修工具(LLM)的十种传统程序维修工具的能源消耗,该工具试图从缺陷4J中修复真正的错误,这是一组真正的错误程序。该实验的最初结果表明,能源消耗与正确修复错误的能力之间的现有权衡:某些APR工具能够通过花费比其他工具更少的能源来实现更高的精度。
Automated program repair (APR) aims to automatize the process of repairing software bugs in order to reduce the cost of maintaining software programs. Moreover, the success (given by the accuracy metric) of APR approaches has increased in recent years. However, no previous work has considered the energy impact of repairing bugs automatically using APR. The field of green software research aims to measure the energy consumption required to develop, maintain, and use software products. This paper combines, for the first time, the APR and Green software research fields. We have as main goal to define the foundation for measuring the energy consumption of the APR activity. We measure the energy consumption of ten traditional program repair tools for Java and ten fine-tuned Large-Language Models (LLM) on source code trying to repair real bugs from Defects4J, a set of real buggy programs. The initial results from this experiment show the existing trade-off between energy consumption and the ability to correctly repair bugs: Some APR tools are capable of achieving higher accuracy by spending less energy than other tools.