arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.01094cs.CLcs.AI
收藏

上下文学习中的时间依赖性:归纳头的作用

Temporal Dependencies in In-Context Learning: The Role of Induction Heads

Department of Computer Science, Indiana University Bloomington(印第安纳大学布卢明顿分校计算机科学系)

Anooshka Bajaj, Deven Mahesh Mistry, Sahaj Singh Maini, Yash Aggarwal, Billy Dickson, Zoran Tiganj

AI总结:

研究揭示了归纳头在上下文学习中对时间依赖性处理的关键作用,通过实验表明归纳头影响信息检索的顺序性。

摘要:

大型语言模型(LLMs)表现出强大的上下文学习能力,但其如何跟踪和检索上下文信息仍不明确。基于认知科学中的自由回忆范式(参与者可按任意顺序回忆列表项),我们发现几种开源LLMs表现出串行回忆模式,即在输入序列中重复的token后立即出现的token具有峰值概率。通过系统消融实验,我们表明专门用于关注当前token前一次出现后紧跟token的归纳头在该现象中起重要作用。移除高归纳得分的头显著减少+1滞后偏差,而移除随机头则无法重现这种减少。我们还发现移除高归纳得分的头会更严重损害通过少样本学习提示进行串行回忆的模型性能。我们的发现强调了归纳头与transformers中时间上下文处理之间的机制性联系,表明这些头在上下文学习中的有序检索和串行回忆行为中尤为重要。

英文摘要:

Large language models (LLMs) exhibit strong in-context learning capabilities, but how they track and retrieve information from context remains underexplored. Drawing on the free recall paradigm in cognitive science (where participants recall list items in any order), we show that several open-source LLMs consistently display a serial-recall-like pattern, assigning peak probability to tokens that immediately follow a repeated token in the input sequence. Through systematic ablation experiments, we show that induction heads, specialized attention heads that attend to the token following a previous occurrence of the current token, play an important role in this phenomenon. Removing heads with a high induction score substantially reduces the +1 lag bias, whereas ablating random heads does not reproduce the same reduction. We also show that removing heads with high induction scores impairs the performance of models prompted to do serial recall using few-shot learning to a larger extent than removing random heads. Our findings highlight a mechanistically specific connection between induction heads and temporal context processing in transformers, suggesting that these heads are especially important for ordered retrieval and serial-recall-like behavior during in-context learning.

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

↑