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

自回归语言模型复杂任务的演示教学

Teaching Autoregressive Language Models Complex Tasks By Demonstration

University of Cambridge(剑桥大学)

Gabriel Recchia

摘要:

本文表明,通过微调的自回归语言模型(GPT-Neo)上适当结构的一步一步的演示,它是可以教它执行一个数学任务,以前被证明是困难的Transformers - longhand模运算-相对较少的例子。具体来说,我们对GPT-Neo进行了微调,以解决来自DeepMind数学数据集的numbers__div_remainder任务; Saxton等人(arXiv:1904.01557)报告称,在200万个训练样本的情况下,该任务的准确率低于40%。我们发现,在对200个解决长除法问题和报告除法器的适当结构的演示进行微调后,最小的GPT-Neo模型达到了80%以上的准确率。这是通过构建用于微调的适当数据集来实现的,而不改变学习算法。这些结果表明,在一小部分精心制作的演示上微调自回归语言模型可能是一个有用的范例,可以让没有接受过机器学习培训的人诱使这些模型执行某些复杂的多步任务。

英文摘要:

This paper demonstrates that by fine-tuning an autoregressive language model (GPT-Neo) on appropriately structured step-by-step demonstrations, it is possible to teach it to execute a mathematical task that has previously proved difficult for Transformers - longhand modulo operations - with a relatively small number of examples. Specifically, we fine-tune GPT-Neo to solve the numbers__div_remainder task from the DeepMind Mathematics Dataset; Saxton et al. (arXiv:1904.01557) reported below 40% accuracy on this task with 2 million training examples. We show that after fine-tuning on 200 appropriately structured demonstrations of solving long division problems and reporting the remainders, the smallest available GPT-Neo model achieves over 80% accuracy. This is achieved by constructing an appropriate dataset for fine-tuning, with no changes to the learning algorithm. These results suggest that fine-tuning autoregressive language models on small sets of well-crafted demonstrations may be a useful paradigm for enabling individuals without training in machine learning to coax such models to perform some kinds of complex multi-step tasks.

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

↑