Transformer中情景记忆的涌现:训练期间注意力分数时间结构变化的表征
Emergence of Episodic Memory in Transformers: Characterizing Changes in Temporal Structure of Attention Scores During Training
AI总结:
本研究通过认知科学方法分析不同规模GPT-2模型的注意力分数与输出,发现其注意力头存在类似人类情景记忆的时间连续性等效应,归纳头是连续性效应的关键,揭示Transformer上下文学习中信息时间组织机制。
摘要:
我们研究注意力头和Transformer输出中的上下文时间偏差。采用认知科学方法,分析不同规模GPT-2模型的注意力分数与输出。跨注意力头观察到人类情景记忆的典型效应,包括时间连续性、首因效应和近因效应。Transformer输出表现出上下文序列回忆倾向。重要的是,移除作为连续性效应驱动力的归纳头后,该效应消失。研究结果为Transformer在上下文学习中如何时间性组织信息提供见解,揭示其与人类记忆和学习的异同。
英文摘要:
We investigate in-context temporal biases in attention heads and transformer outputs. Using cognitive science methodologies, we analyze attention scores and outputs of the GPT-2 models of varying sizes. Across attention heads, we observe effects characteristic of human episodic memory, including temporal contiguity, primacy and recency. Transformer outputs demonstrate a tendency toward in-context serial recall. Importantly, this effect is eliminated after the ablation of the induction heads, which are the driving force behind the contiguity effect. Our findings offer insights into how transformers organize information temporally during in-context learning, shedding light on their similarities and differences with human memory and learning.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。