不要停止预训练?让基于提示的微调成为强大的学习者
Don't Stop Pretraining? Make Prompt-based Fine-tuning Powerful Learner
AI总结:
本研究针对传统持续预训练对基于提示的微调增益不稳定的问题,提出融合指令微调思想的基于提示的持续预训练(PCP),在21个基准上稳定提升性能,且方法更简洁。
摘要:
在海量无标注数据上训练的语言模型(LM)极大推动了自然语言处理(NLP)领域的发展。本研究重新审视了NLP领域被广泛认可的观点:在任务相关文本上对LM进行持续预训练,能够提升下游任务微调(FT)的性能。通过在8个单句任务和8个句对任务的半监督与全监督设置下开展实验,我们发现传统的持续预训练并不能稳定带来增益,在句对任务或使用基于提示的微调时甚至会产生负面影响。针对这些问题,我们提出了基于提示的持续预训练(Prompt-based Continued Pre-training,PCP),该方法将指令微调的思想与传统持续预训练相结合。我们的方法旨在通过在目标任务微调前,以无监督预训练目标向LM同时输入任务相关文本和提示模板,来提升基于提示的微调的性能。我们在21个基准上的实证评估表明,PCP在半监督和全监督设置下均能稳定提升现有最优基于提示的微调方法的性能(绝对提升最高达20.1%),即便仅使用数百个无标注样本也能实现。此外,结合PCP的基于提示的微调以更简洁的方式超越了现有最优半监督方法,无需迭代过程和额外数据增强。我们的进一步分析探究了PCP的性能下限,结果表明PCP的优势在不同模型规模和数据集规模下均保持稳定。
英文摘要:
Language models (LMs) trained on vast quantities of unlabelled data have greatly advanced the field of natural language processing (NLP). In this study, we re-visit the widely accepted notion in NLP that continued pre-training LMs on task-related texts improves the performance of fine-tuning (FT) in downstream tasks. Through experiments on eight single-sentence tasks and eight sentence-pair tasks in both semi-supervised and fully-supervised settings, we find that conventional continued pre-training does not consistently provide benefits and can even be detrimental for sentence-pair tasks or when prompt-based FT is used. To tackle these issues, we propose Prompt-based Continued Pre-training (PCP), which combines the idea of instruction tuning with conventional continued pre-training. Our approach aims to improve the performance of prompt-based FT by presenting both task-related texts and prompt templates to LMs through unsupervised pre-training objectives before fine-tuning for the target task. Our empirical evaluations on 21 benchmarks demonstrate that the PCP consistently improves the performance of state-of-the-art prompt-based FT approaches (up to 20.1% absolute) in both semi-supervised and fully-supervised settings, even with only hundreds of unlabelled examples. Additionally, prompt-based FT with the PCP outperforms state-of-the-art semi-supervised approaches with greater simplicity, eliminating the need for an iterative process and extra data augmentation. Our further analysis explores the performance lower bound of the PCP and reveals that the advantages of PCP persist across different sizes of models and datasets.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。