arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2106.15209cs.SE
收藏

利用现代机器学习充分利用小型软件工程数据集

Making the most of small Software Engineering datasets with modern machine learning

Julian Aron Prenner, Romain Robbes

摘要:

本文为软件工程(SE)研究人员和实践者提供了一个起点,他们面临着在小数据集上训练机器学习模型的问题。由于标注数据的成本很高,在软件工程中,存在许多小型(< 1 000个样本)和中型(< 100 000个样本)数据集。虽然深度学习已经在许多机器学习任务中设定了最先进的技术水平,但直到最近,它才被证明对小规模数据集有效,这主要归功于预训练,这是一种半监督学习技术,利用了大量的未标记数据和稀缺的标记数据。在这项工作中,我们在SE文献中选择了13个较小的数据集来评估预训练的Transformer模型,源代码和自然语言。我们的研究结果表明,预先训练的Transformers是有竞争力的,在某些情况下优于以前的模型,特别是对于涉及自然语言的任务;然而,对于源代码任务,特别是对于非常小的数据集,传统的机器学习方法通常具有优势。此外,我们实验了几种应该有助于小数据集训练的技术,包括主动学习,数据增强,软标签,自我训练和中间任务微调,并就何时有效提出建议。我们还发布了所有的数据、脚本,最重要的是预训练模型,供社区在自己的数据集上重用。

英文摘要:

This paper provides a starting point for Software Engineering (SE) researchers and practitioners faced with the problem of training machine learning models on small datasets. Due to the high costs associated with labeling data, in Software Engineering,there exist many small (< 1 000 samples) and medium-sized (< 100 000 samples) datasets. While deep learning has set the state of the art in many machine learning tasks, it is only recently that it has proven effective on small-sized datasets, primarily thanks to pre-training, a semi-supervised learning technique that leverages abundant unlabelled data alongside scarce labelled data.In this work, we evaluate pre-trained Transformer models on a selection of 13 smaller datasets from the SE literature, covering both,source code and natural language. Our results suggest that pre-trained Transformers are competitive and in some cases superior to previous models, especially for tasks involving natural language; whereas for source code tasks, in particular for very small datasets,traditional machine learning methods often has the edge.In addition, we experiment with several techniques that ought to aid training on small datasets, including active learning, data augmentation, soft labels, self-training and intermediate-task fine-tuning, and issue recommendations on when they are effective. We also release all the data, scripts, and most importantly pre-trained models for the community to reuse on their own datasets.

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

↑