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
备注:
35 pages, 14 figures, 6 tables; accepted and published in TMLR
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.
FreshMem: Brain-Inspired Frequency-Space Hybrid Memory for Streaming Video Understanding
College of Future Information Technology, Fudan University, Shanghai, China(复旦大学未来信息科技学院);Shanghai Innovation Institute, Shanghai, China(上海创新研究院);Shanghai Artificial Intelligence Laboratory, Shanghai, China(上海人工智能实验室);The Chinese University of Hong Kong, Hong Kong, China(香港中文大学)
RippleMem: From Isolated Retrieval to Associative Recollection for Long-Term Agent Memory
Communication University of China(中国传媒大学);Zhilian Yinghe Technology Co., Ltd.(智联映和科技有限公司);State Key Laboratory of Media Convergence and Communication(媒体融合与传播国家重点实验室)
Long-Term Visual Object Tracking with Event Cameras: An Associative Memory Augmented Tracker and A Benchmark Dataset
School of Computer Science and Technology, Anhui University(计算机科学与技术学院,安徽大学);School of Electronic and Information Engineering, Anhui University(电子与信息工程学院,安徽大学)
Redundancy Maximization as a Principle of Associative Memory Learning in Hopfield Networks
Complex Systems Theory, Max Planck Institute for Dynamics and Self-Organization(复杂系统理论,马克斯·普朗克动态与自组织研究所);Faculty of Physics, Institute for the Dynamics of Complex Systems, University of Göttingen(物理系,复杂系统动力学研究所,哥廷根大学);Göttingen Campus Institute for Dynamics of Biological Networks, University of Göttingen(哥廷根校区生物网络动力学研究所,哥廷根大学);Champalimaud Centre for the Unknown, Lisbon, Portugal(查帕利马德未知中心,里斯本,葡萄牙);Max Planck Institute for Dynamics and Self-Organization(马克斯·普朗克动态与自组织研究所)