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

模式学习与重绑定作为上下文学习与涌现的机制

Schema-learning and rebinding as mechanisms of in-context learning and emergence

Google DeepMind(谷歌DeepMind)

Sivaramakrishnan Swaminathan, Antoine Dedieu, Rajkumar Vasudeva Raju, Murray Shanahan, Miguel Lazaro-Gredilla, Dileep George

AI总结:

本文提出用可解释的克隆结构因果图(CSCGs)实现与 LLMs 可比的上下文学习能力,揭示其依赖模板电路学习、上下文敏感检索和 token 重绑定三种机制,并证明过参数化促进复杂模板涌现,为理解 ICL 机制和设计新型架构提供了新路径。

摘要:

上下文学习(ICL)是近年来基于 Transformer 的大语言模型(LLMs)中涌现出的最强大且最出人意料的能力之一,但其背后的机制仍未被充分理解。在本文中,我们证明使用克隆结构因果图(CSCGs)的替代序列预测学习方法可以获得可比的 ICL 能力。此外,CSCGs 的一个关键特性是,与基于 Transformer 的 LLMs 不同,它们是可解释的,这大大简化了解释 ICL 如何工作的任务。具体而言,我们表明它结合使用了以下机制:(a)学习用于模式补全的模板(模式)电路,(b)以上下文敏感的方式检索相关模板,以及(c)将新 token 重绑定到模板中的适当槽位。我们进一步汇集证据支持 LLMs 中的 ICL 背后存在类似机制的假设。例如,我们发现,与 LLMs 一样,CSCGs 在不同的过参数化水平下会涌现出不同的能力,这表明过参数化有助于学习更复杂的模板(模式)电路。通过展示如何用小模型和小数据集实现 ICL,我们开辟了一条通往新型架构的路径,并为更全面地理解这一重要能力背后的机制迈出了关键一步。

英文摘要:

In-context learning (ICL) is one of the most powerful and most unexpected capabilities to emerge in recent transformer-based large language models (LLMs). Yet the mechanisms that underlie it are poorly understood. In this paper, we demonstrate that comparable ICL capabilities can be acquired by an alternative sequence prediction learning method using clone-structured causal graphs (CSCGs). Moreover, a key property of CSCGs is that, unlike transformer-based LLMs, they are {\em interpretable}, which considerably simplifies the task of explaining how ICL works. Specifically, we show that it uses a combination of (a) learning template (schema) circuits for pattern completion, (b) retrieving relevant templates in a context-sensitive manner, and (c) rebinding of novel tokens to appropriate slots in the templates. We go on to marshall evidence for the hypothesis that similar mechanisms underlie ICL in LLMs. For example, we find that, with CSCGs as with LLMs, different capabilities emerge at different levels of overparameterization, suggesting that overparameterization helps in learning more complex template (schema) circuits. By showing how ICL can be achieved with small models and datasets, we open up a path to novel architectures, and take a vital step towards a more general understanding of the mechanics behind this important capability.

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

↑