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

上下文学习与归纳头

In-context Learning and Induction Heads

Anthropic(Anthropic公司)
Catherine Olsson, Nelson Elhage, Neel Nanda, Nicholas Joseph, Nova DasSarma, Tom Henighan, Ben Mann, Amanda Askell, Yuntao Bai, Anna Chen, Tom Conerly, Dawn Dra… 展开作者

Catherine Olsson, Nelson Elhage, Neel Nanda, Nicholas Joseph, Nova DasSarma, Tom Henighan, Ben Mann, Amanda Askell, Yuntao Bai, Anna Chen, Tom Conerly, Dawn Drain, Deep Ganguli, Zac Hatfield-Dodds, Danny Hernandez, Scott Johnston, Andy Jones, Jackson Kernion, Liane Lovitt, Kamal Ndousse, Dario Amodei, Tom Brown, Jack Clark, Jared Kaplan, Sam McCandlish, Chris Olah

摘要:

"感应头"是注意力头,它实现一个简单的算法来完成令牌序列,如[A][B]...... [A]- >[B].在这项工作中,我们提出了初步的和间接的证据,假设感应头可能构成的机制,为大多数的所有"在上下文中学习"在大型Transformer模型(即减少损失,增加令牌指数)。我们发现,归纳头脑的发展与上下文学习能力的突然急剧增加正好在同一点上,可以看到训练损失中的一个凸起。我们提出了六个互补的证据线,认为感应头可能是一般的上下文中学习的任何大小的Transformer模型的机械源。对于小的注意力模型,我们提出了强有力的因果证据;对于具有MLP的较大模型,我们提出了相关证据。

英文摘要:

"Induction heads" are attention heads that implement a simple algorithm to complete token sequences like [A][B] ... [A] -> [B]. In this work, we present preliminary and indirect evidence for a hypothesis that induction heads might constitute the mechanism for the majority of all "in-context learning" in large transformer models (i.e. decreasing loss at increasing token indices). We find that induction heads develop at precisely the same point as a sudden sharp increase in in-context learning ability, visible as a bump in the training loss. We present six complementary lines of evidence, arguing that induction heads may be the mechanistic source of general in-context learning in transformer models of any size. For small attention-only models, we present strong, causal evidence; for larger models with MLPs, we present correlational evidence.

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

↑