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

语言模型能从上下文中的解释中学习吗?

Can language models learn from explanations in context?

DeepMind(深度思维)

Andrew K. Lampinen, Ishita Dasgupta, Stephanie C. Y. Chan, Kory Matthewson, Michael Henry Tessler, Antonia Creswell, James L. McClelland, Jane X. Wang, Felix Hill

摘要:

语言模型(LM)可以通过适应一些上下文示例来执行新的任务。对于人类来说,将示例与任务原则联系起来的解释可以改善学习。因此,我们调查是否解释Few-Shot的例子可以帮助LM。我们从40个具有挑战性的任务与答案的解释,和各种匹配的控制解释注释的问题。我们评估不同类型的解释,指令和控制如何影响零和Few-Shot性能。我们分析这些结果使用统计多级建模技术,占嵌套的依赖关系之间的条件,任务,提示,和模型。我们发现,解释可以提高性能--即使没有调优。此外,针对小验证集的性能手动调整的解释提供了更大的好处,并且通过一起选择示例和解释来构建提示比单独选择示例大大提高了性能。最后,即使是未调整的解释也优于仔细匹配的控制,这表明这些好处是由于示例和其解释之间的联系,而不是较低级别的功能。然而,只有大型模型受益。总之,解释可以支持大型LM在具有挑战性的任务上的上下文学习。

英文摘要:

Language Models (LMs) can perform new tasks by adapting to a few in-context examples. For humans, explanations that connect examples to task principles can improve learning. We therefore investigate whether explanations of few-shot examples can help LMs. We annotate questions from 40 challenging tasks with answer explanations, and various matched control explanations. We evaluate how different types of explanations, instructions, and controls affect zero- and few-shot performance. We analyze these results using statistical multilevel modeling techniques that account for the nested dependencies among conditions, tasks, prompts, and models. We find that explanations can improve performance -- even without tuning. Furthermore, explanations hand-tuned for performance on a small validation set offer substantially larger benefits, and building a prompt by selecting examples and explanations together substantially improves performance over selecting examples alone. Finally, even untuned explanations outperform carefully matched controls, suggesting that the benefits are due to the link between an example and its explanation, rather than lower-level features. However, only large models benefit. In summary, explanations can support the in-context learning of large LMs on challenging tasks.

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

↑