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

减少变量和参数:使用语言模型的简单少样本学习

Cutting Down on Prompts and Parameters: Simple Few-Shot Learning with Language Models

UC Irvine(加州大学欧文分校);University of Edinburgh(爱丁堡大学);UC Berkeley(加州大学伯克利分校);Facebook AI Research(脸书人工智能研究院);University College London(伦敦大学学院)

Robert L. Logan, Ivana Balažević, Eric Wallace, Fabio Petroni, Sameer Singh, Sebastian Riedel

摘要:

使用训练样本和任务描述来验证语言模型(LM)已被视为最近在少样本学习中取得成功的关键。在这项工作中,我们表明,微调LM在Few-Shot设置可以大大减少提示工程的需要。事实上,可以使用空提示,即既不包含特定于任务的模板也不包含训练样本的提示,并且在广泛的任务范围内实现与手动调整的提示竞争的准确性。虽然微调LM确实为每个下游任务引入了新的参数,但我们表明,这种内存开销可以大大减少:仅微调偏差项可以实现与标准微调相当或更好的精度,同时仅更新0.1%的参数。总而言之,我们建议微调LM用于少样本学习,因为它更准确,对不同的提示更鲁棒,并且可以与使用冻结LM一样有效。

英文摘要:

Prompting language models (LMs) with training examples and task descriptions has been seen as critical to recent successes in few-shot learning. In this work, we show that finetuning LMs in the few-shot setting can considerably reduce the need for prompt engineering. In fact, one can use null prompts, prompts that contain neither task-specific templates nor training examples, and achieve competitive accuracy to manually-tuned prompts across a wide range of tasks. While finetuning LMs does introduce new parameters for each downstream task, we show that this memory overhead can be substantially reduced: finetuning only the bias terms can achieve comparable or better accuracy than standard finetuning while only updating 0.1% of the parameters. All in all, we recommend finetuning LMs for few-shot learning as it is more accurate, robust to different prompts, and can be made nearly as efficient as using frozen LMs.

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

↑