当被要求不做时,大语言模型会梦见大象吗?Transformer中的潜在概念关联与联想记忆
Do LLMs dream of elephants (when told not to)? Latent concept association and associative memory in transformers
AI总结:
本文通过实验发现LLMs的事实检索能力易受上下文操纵,提出其类似联想记忆模型的观点,还通过数学分析单层Transformer,从理论和实证上证明其用自注意力收集信息、价值矩阵实现联想记忆的特性。
摘要:
大语言模型(LLMs)具备存储和回忆事实的能力。通过对开源模型的实验,我们观察到,即使不改变事实含义,仅通过改变上下文就能轻易操纵这种事实检索能力。这些发现表明,LLMs的行为可能类似于联想记忆模型,其中上下文中的某些标记充当检索事实的线索。我们通过研究LLMs的构建模块Transformer如何完成此类记忆任务,从数学上探索这一特性。我们用单层Transformer研究了一个简单的潜在概念关联问题,并从理论和实证两方面证明,Transformer利用自注意力收集信息,利用价值矩阵实现联想记忆。
英文摘要:
Large Language Models (LLMs) have the capacity to store and recall facts. Through experimentation with open-source models, we observe that this ability to retrieve facts can be easily manipulated by changing contexts, even without altering their factual meanings. These findings highlight that LLMs might behave like an associative memory model where certain tokens in the contexts serve as clues to retrieving facts. We mathematically explore this property by studying how transformers, the building blocks of LLMs, can complete such memory tasks. We study a simple latent concept association problem with a one-layer transformer and we show theoretically and empirically that the transformer gathers information using self-attention and uses the value matrix for associative memory.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。