Memory is the foundation of all human activities; without memory, it would be nearly impossible for people to perform any task in daily life. With the development of Large Language Models (LLMs), their language capabilities are becoming increasingly comparable to those of humans. But do LLMs have memory? Based on current performance, LLMs do appear to exhibit memory. So, what is the underlying mechanism of this memory? Previous research has lacked a deep exploration of LLMs' memory capabilities and the underlying theory. In this paper, we use Universal Approximation Theorem (UAT) to explain the memory mechanism in LLMs. We also conduct experiments to verify the memory capabilities of various LLMs, proposing a new method to assess their abilities based on these memory ability. We argue that LLM memory operates like Schrödinger's memory, meaning that it only becomes observable when a specific memory is queried. We can only determine if the model retains a memory based on its output in response to the query; otherwise, it remains indeterminate. Finally, we expand on this concept by comparing the memory capabilities of the human brain and LLMs, highlighting the similarities and differences in their operational mechanisms.
Improve Language Model and Brain Alignment via Associative Memory
College of Artificial Intelligence, Nanjing University of Aeronautics and Astronautics(人工智能学院,南京航空航天大学);The Key Laboratory of Brain-Machine Intelligence Technology, Ministry of Education(脑机智能技术重点实验室,教育部)
Structured Memory Mechanisms for Stable Context Representation in Large Language Models
University of Pennsylvania(宾夕法尼亚大学);Illinois Institute of Technology(伊利诺伊理工学院);University of Michigan(密歇根大学);University of Saskatchewan(萨斯喀彻温大学);Fordham University(福特汉姆大学);Northeastern University(东北大学)
MemOS: An Operating System for Memory-Augmented Generation (MAG) in Large Language Models
MemTensor (Shanghai) Technology Co., Ltd.(MemTensor(上海)技术有限公司);Shanghai Jiao Tong University(上海交通大学);Renmin University of China(中国人民大学);Research Institute of China Telecom(中国电信研究院)
Memory Decoder: A Pretrained, Plug-and-Play Memory for Large Language Models
LUMIA Lab(LUMIA实验室);School of Artificial Intelligence(人工智能学院);Shanghai Jiao Tong University(上海交通大学);Shanghai AI Laboratory(上海人工智能实验室);Tsinghua University(清华大学);SJTU Paris Elite Institute of Technology(上海交通大学巴黎精英技术学院)
Unlocking the Working Memory of Large Language Models for Latent Reasoning
ELLIS Unit Linz and LIT AI Lab, Institute for Machine Learning, Johannes Kepler University Linz, Austria(林茨ELLIS单元和LIT AI实验室,机器学习研究所,约翰·凯撒大学林茨,奥地利);NXAI GmbH, Linz, Austria(NXAI公司,林茨,奥地利)
Personalized Large Language Model Assistant with Evolving Conditional Memory
The Hong Kong Polytechnic University(香港理工大学);INF Technology (Shanghai) co., Ltd.(INF科技(上海)有限公司);Institute of Artificial Intelligence, Soochow University, China(苏州大学人工智能研究院)
Text2Mem: A Unified Memory Operation Language for Memory Operating System
MemTensor (Shanghai) Technology(MemTensor(上海)技术有限公司);University of Oxford(牛津大学);National University of Singapore(新加坡国立大学);Shanghai Jiao Tong University(上海交通大学)
DP-MemArc: Differential Privacy Transfer Learning for Memory Efficient Language Models
Zhejiang University(浙江大学);Southeast University(东南大学);Harvard University(哈佛大学);University of California, Los Angeles(加利福尼亚大学洛杉矶分校);Massachusetts Institute of Technology(麻省理工学院);Renmin University of China(中国人民大学);The University of Tokyo(东京大学);Tongji University(同济大学)
Human-like fleeting memory improves language learning but impairs reading time prediction in transformer language models
University of Amsterdam, Amsterdam Brain and Cognition(阿姆斯特丹大学,阿姆斯特丹脑与认知中心);Vrije Universiteit Amsterdam, Department of Informatics(阿姆斯特丹自由大学,信息学院);Max Planck Institute for Psycholinguistics(马克斯·普朗克心理学语言学研究所)
Memory Consolidation for Contextual Spoken Language Understanding with Dialogue Logistic Inference
Institute of Automation, CAS(中国科学院自动化研究所);University of Chinese Academy of Sciences(中国科学院大学);CAS Center for Excellence in Brain Science and Intelligence Technology(中国科学院脑科学与智能技术卓越创新中心)