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

语言模型是Few-Shot学习者

Language Models are Few-Shot Learners

Johns Hopkins University(约翰斯·霍普金斯大学);OpenAI
Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandh… 展开作者

Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, Dario Amodei

摘要:

最近的工作表明,通过对大型文本语料库进行预训练,然后对特定任务进行微调,在许多NLP任务和基准测试中取得了实质性的进展。虽然在架构上通常与任务无关,但这种方法仍然需要对数千或数万个示例的特定于任务的数据集进行微调。相比之下,人类通常只需要几个例子或简单的指令就可以完成一项新的语言任务,而目前的NLP系统在很大程度上仍然难以做到这一点。在这里,我们表明,扩展语言模型大大提高了任务不可知的,Few-Shot的性能,有时甚至达到与现有的最先进的微调方法的竞争力。具体来说,我们训练了GPT-3,这是一个具有1750亿个参数的自回归语言模型,是以前任何非稀疏语言模型的10倍,并在Few-Shot设置中测试了它的性能。对于所有任务,GPT-3都是在没有任何渐变更新或微调的情况下应用的,任务和Few-Shot演示纯粹通过与模型的文本交互来指定。GPT-3在许多NLP数据集上实现了强大的性能,包括翻译,问答和完形填空任务,以及几个需要即时推理或领域自适应的任务,例如解读单词,在句子中使用新单词或执行3位数算术。与此同时,我们还发现了一些GPT-3的少样本学习仍然存在问题的数据集,以及一些GPT-3面临与大型网络语料库训练相关的方法学问题的数据集。最后,我们发现GPT-3可以生成人类评估者难以区分的新闻文章样本。我们讨论了这一发现和GPT-3的更广泛的社会影响。

英文摘要:

Recent work has demonstrated substantial gains on many NLP tasks and benchmarks by pre-training on a large corpus of text followed by fine-tuning on a specific task. While typically task-agnostic in architecture, this method still requires task-specific fine-tuning datasets of thousands or tens of thousands of examples. By contrast, humans can generally perform a new language task from only a few examples or from simple instructions - something which current NLP systems still largely struggle to do. Here we show that scaling up language models greatly improves task-agnostic, few-shot performance, sometimes even reaching competitiveness with prior state-of-the-art fine-tuning approaches. Specifically, we train GPT-3, an autoregressive language model with 175 billion parameters, 10x more than any previous non-sparse language model, and test its performance in the few-shot setting. For all tasks, GPT-3 is applied without any gradient updates or fine-tuning, with tasks and few-shot demonstrations specified purely via text interaction with the model. GPT-3 achieves strong performance on many NLP datasets, including translation, question-answering, and cloze tasks, as well as several tasks that require on-the-fly reasoning or domain adaptation, such as unscrambling words, using a novel word in a sentence, or performing 3-digit arithmetic. At the same time, we also identify some datasets where GPT-3's few-shot learning still struggles, as well as some datasets where GPT-3 faces methodological issues related to training on large web corpora. Finally, we find that GPT-3 can generate samples of news articles which human evaluators have difficulty distinguishing from articles written by humans. We discuss broader societal impacts of this finding and of GPT-3 in general.

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

↑