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

时间有其位置吗?Temporal Heads:语言模型在哪里回忆时间特定信息

Does Time Have Its Place? Temporal Heads: Where Language Models Recall Time-specific Information

Korea University(韩国大学);Upstage AI;AIGEN Sciences(AIGEN科学)

Yein Park, Chanwoong Yoon, Jungwoo Park, Minbyul Jeong, Jaewoo Kang

AI总结:

本研究通过电路分析发现了语言模型中专门处理时间知识的Temporal Heads,禁用它们会特异性降低时间知识回忆能力,且调整其值可编辑时间知识。

摘要:

尽管语言模型引出事实的能力已被广泛研究,但它们如何处理随时间变化的事实仍待探索。我们通过电路分析发现了Temporal Heads,即主要处理时间知识的特定注意力头。我们确认这些头存在于多个模型中,尽管其具体位置可能不同,且它们的响应因知识类型及对应年份而异。禁用这些头会降低模型回忆时间特定知识的能力,同时保持其一般能力,不损害时间不变和问答性能。此外,这些头不仅在数字条件下(“In 2004”)被激活,也在文本别名(“In the year ...”)下被激活,表明它们编码了超越简单数值表示的时间维度。此外,我们通过演示如何通过调整这些头的值来编辑时间知识,扩展了我们发现的潜力。

英文摘要:

While the ability of language models to elicit facts has been widely investigated, how they handle temporally changing facts remains underexplored. We discover Temporal Heads, specific attention heads that primarily handle temporal knowledge, through circuit analysis. We confirm that these heads are present across multiple models, though their specific locations may vary, and their responses differ depending on the type of knowledge and its corresponding years. Disabling these heads degrades the model's ability to recall time-specific knowledge while maintaining its general capabilities without compromising time-invariant and question-answering performances. Moreover, the heads are activated not only numeric conditions ("In 2004") but also textual aliases ("In the year ..."), indicating that they encode a temporal dimension beyond simple numerical representation. Furthermore, we expand the potential of our findings by demonstrating how temporal knowledge can be edited by adjusting the values of these heads.

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

↑