arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.15113cs.NEcs.AIcs.CL
收藏

联想记忆启发基于新型注意力残差流架构的上下文学习改进

Associative memory inspires improvements for in-context learning using a novel attention residual stream architecture

SciAI Center, Cornell University, USA(SciAI中心,康奈尔大学,美国);Neural Coding and Brain Computing Unit, OIST, Japan(神经编码与脑计算单元,海洋研究所,日本);SciAI Center, Center for Applied Mathematics, School of Civil and Environmental Engineering, Cornell University, USA(SciAI中心,应用数学中心,土木与环境工程学院,康奈尔大学,美国)

Thomas F Burns, Tomoki Fukai, Christopher J Earls

AI总结:

受联想记忆启发,提出新型注意力残差流架构,使信息在注意力头间直接流动,加速上下文学习能力显现,并在800万和10亿参数模型中验证性能提升。

摘要:

大型语言模型(LLMs)展现出令人印象深刻的能力,能够利用其输入序列上下文中的信息,对训练过程中未见过的数据做出恰当响应。这种能力被称为上下文学习(ICL)。人类和非人类动物表现出类似的能力,然而它们的神经架构与LLMs有显著差异。尽管如此,LLMs中的一个关键组成部分——注意力机制,类似于现代联想记忆模型,这些模型被计算神经科学界广泛使用并影响,用于建模生物记忆系统。利用这一联系,我们引入了一个能够执行ICL的联想记忆模型。我们以此作为新型残差流架构的灵感,该架构允许信息在注意力头之间直接流动。我们在两层Transformer的训练过程中测试了这一架构,并表明其ICL能力比没有此修改时更快显现。然后,我们将我们的架构应用于具有800万和10亿参数的小型语言模型,重点关注注意力头值,结果也表明在更大和更自然的规模下性能有所提升。

英文摘要:

Large language models (LLMs) demonstrate an impressive ability to utilise information within the context of their input sequences to appropriately respond to data unseen by the LLM during its training procedure. This ability is known as in-context learning (ICL). Humans and non-human animals demonstrate similar abilities, however their neural architectures differ substantially from LLMs. Despite this, a critical component within LLMs, the attention mechanism, resembles modern associative memory models, widely used in and influenced by the computational neuroscience community to model biological memory systems. Using this connection, we introduce an associative memory model capable of performing ICL. We use this as inspiration for a novel residual stream architecture which allows information to directly flow between attention heads. We test this architecture during training within a two-layer Transformer and show its ICL abilities manifest more quickly than without this modification. We then apply our architecture in small language models with 8 million and 1 billion parameters, focusing on attention head values, with results also indicating improved performance at these larger and more naturalistic scales.

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

↑