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

面向句子对分类的小样本学习及其在软件工程中的应用

Few-shot learning for sentence pair classification and its applications in software engineering

Robert Kraig Helmeczi, Mucahit Cevik, Savas Yıldırım

AI总结:

本研究针对软件工程领域的句子对分类任务,对比普通微调、PET和SetFit三种小样本方法在不同规模训练集下的BERT模型性能,证实PET仅需数百标注样本即可接近全量微调效果。

摘要:

小样本学习——即仅需有限数据即可训练模型的能力——在自然语言处理(NLP)领域日益流行,因为经验证,GPT、T0等大语言模型仅需少量标注样本,就能在众多任务中取得高性能。BERT及其变体等规模更小的语言模型,在结合模式利用训练(pattern-exploiting training, PET)、SetFit等小样本学习算法时,也被证明仅需少量标注样本就能实现优异性能。本研究的核心是探究基于BERT的模型搭配其他小样本学习方法的性能,具体针对多种基于BERT的检查点,在不同训练集规模下对比了普通微调(vanilla fine-tuning)、PET和SetFit的表现。为推进该研究,本文还探讨了小样本学习在软件工程中的应用场景,并通过详细的实证分析,为每个任务确定了高性能技术及其对应的模型检查点。研究结果表明PET是一种性能强劲的小样本学习方法,分析显示仅需数百个标注样本,它就能达到接近在全量数据集上微调的性能水平。

英文摘要:

Few-shot learning-the ability to train models with access to limited data-has become increasingly popular in the natural language processing (NLP) domain, as large language models such as GPT and T0 have been empirically shown to achieve high performance in numerous tasks with access to just a handful of labeled examples. Smaller language models such as BERT and its variants have also been shown to achieve strong performance with just a handful of labeled examples when combined with few-shot learning algorithms like pattern-exploiting training (PET) and SetFit. The focus of this work is to investigate the performance of alternative few-shot learning approaches with BERT-based models. Specifically, vanilla fine-tuning, PET and SetFit are compared for numerous BERT-based checkpoints over an array of training set sizes. To facilitate this investigation, applications of few-shot learning are considered in software engineering. For each task, high-performance techniques and their associated model checkpoints are identified through detailed empirical analysis. Our results establish PET as a strong few-shot learning approach, and our analysis shows that with just a few hundred labeled examples it can achieve performance near that of fine-tuning on full-sized data sets.

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

↑