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

将Transformer中的上下文学习与人类情景记忆相关联

Linking In-context Learning in Transformers to Human Episodic Memory

University of California, San Diego(加利福尼亚大学圣迭戈分校);New York University(纽约大学)

Li Ji-An, Corey Y. Zhou, Marcus K. Benna, Marcelo G. Mattar

AI总结:

本研究揭示Transformer大语言模型中的诱导头与人类情景记忆的CMR模型在多层面相似,发现类CMR头的层级分布与记忆偏差对应且对上下文学习有因果作用,为AI与神经科学研究提供新视角。

摘要:

理解人工智能系统与生物智能系统之间的关联,能够揭示通用智能的基本原理。尽管许多人工智能模型都有对应的神经科学参照,但Transformer模型及自注意力机制的这类关联仍十分匮乏。本文研究了交互注意力头与人类情景记忆之间的关系,重点关注诱导头(induction heads)——该结构在基于Transformer的大语言模型(LLM)的上下文学习中发挥作用。研究证实,诱导头在行为、功能和机制层面,均与人类情景记忆的情境维持与提取(CMR)模型相似。对在大规模文本数据上预训练的LLM的分析显示,类CMR头通常出现在中间层和深层,在性质上反映了人类的记忆偏差。对类CMR头的消融实验表明,其在上下文学习中具有因果作用。本研究发现了LLM的计算机制与人类记忆之间的相似性,为两个研究领域提供了宝贵见解。

英文摘要:

Understanding connections between artificial and biological intelligent systems can reveal fundamental principles of general intelligence. While many artificial intelligence models have a neuroscience counterpart, such connections are largely missing in Transformer models and the self-attention mechanism. Here, we examine the relationship between interacting attention heads and human episodic memory. We focus on induction heads, which contribute to in-context learning in Transformer-based large language models (LLMs). We demonstrate that induction heads are behaviorally, functionally, and mechanistically similar to the contextual maintenance and retrieval (CMR) model of human episodic memory. Our analyses of LLMs pre-trained on extensive text data show that CMR-like heads often emerge in the intermediate and late layers, qualitatively mirroring human memory biases. The ablation of CMR-like heads suggests their causal role in in-context learning. Our findings uncover a parallel between the computational mechanisms of LLMs and human memory, offering valuable insights into both research fields.

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

↑