arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2409.10482cs.CL
收藏

薛定谔的记忆:大型语言模型

Schrodinger's Memory: Large Language Models

The Hong Kong Polytechnic University(香港理工大学)

Wei Wang, Qing Li

AI总结:

本文利用通用近似定理解释大型语言模型的记忆机制,提出“薛定谔的记忆”概念,并通过实验验证多种LLMs的记忆能力,给出新的评估方法,同时比较人脑与LLMs记忆机制的异同。

摘要:

记忆是一切人类活动的基础;没有记忆,人们在日常生活中几乎无法完成任何任务。随着大型语言模型(LLMs)的发展,它们的语言能力正日益接近人类水平。但LLMs是否拥有记忆?从当前的表现来看,LLMs似乎确实展现出记忆能力。那么,这种记忆背后的机制是什么?以往的研究缺乏对LLMs记忆能力及其底层理论的深入探索。在本文中,我们利用通用近似定理(UAT)来解释LLMs中的记忆机制。我们还进行了实验以验证各种LLMs的记忆能力,并提出了一种基于这些记忆能力来评估其能力的新方法。我们认为,LLM的记忆运作方式类似于薛定谔的记忆,即只有当特定记忆被查询时,它才变得可观测。我们只能根据模型对查询的响应输出来判断它是否保留了某段记忆;否则,它仍处于不确定状态。最后,我们通过比较人脑与LLMs的记忆能力来扩展这一概念,强调二者在运作机制上的相似性与差异。

英文摘要:

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.

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

↑