arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2206.03333cs.SEcs.LG
收藏

评估ML4SE模型的项目级微调

Assessing Project-Level Fine-Tuning of ML4SE Models

JetBrains Research(JetBrains研究院);Higher School of Economics(高等经济学院)

Egor Bogomolov, Sergey Zhuravlev, Egor Spirin, Timofey Bryksin

摘要:

面向软件工程的机器学习(ML4SE)是一个积极发展的研究领域,专注于帮助程序员工作的方法。为了在实践中应用开发的方法,他们需要达到合理的质量,以帮助而不是分散开发人员。虽然开发新的代码表示和数据汇集方法提高了模型的整体质量,但它没有考虑到我们可以从手头的项目中获得的信息。在这项工作中,我们研究如何模型的质量可以提高,如果我们针对一个特定的项目。我们开发了一个框架来评估模型在对特定项目的方法名称预测任务进行微调后可以获得的质量改进。我们评估了三种不同复杂度的模型,并在三种设置下比较了它们的质量:在Java项目的大型数据集上训练,在特定项目的数据上进一步微调,并在此数据上从头开始训练。我们表明,每个项目的微调可以大大提高模型的质量,因为它们捕获项目的域和命名约定。我们开源了用于数据汇集的工具,以及运行实验的代码:https://zenodo.org/record/6040745。

英文摘要:

Machine Learning for Software Engineering (ML4SE) is an actively growing research area that focuses on methods that help programmers in their work. In order to apply the developed methods in practice, they need to achieve reasonable quality in order to help rather than distract developers. While the development of new approaches to code representation and data collection improves the overall quality of the models, it does not take into account the information that we can get from the project at hand. In this work, we investigate how the model's quality can be improved if we target a specific project. We develop a framework to assess quality improvements that models can get after fine-tuning for the method name prediction task on a particular project. We evaluate three models of different complexity and compare their quality in three settings: trained on a large dataset of Java projects, further fine-tuned on the data from a particular project, and trained from scratch on this data. We show that per-project fine-tuning can greatly improve the models' quality as they capture the project's domain and naming conventions. We open-source the tool we used for data collection, as well as the code to run the experiments: https://zenodo.org/record/6040745.

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

↑