2025-02-21 · 专家 · 自然语言处理 · 机器学习

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

该论文揭示了语言模型中存在专门处理时间相关信息的“时间头部”,并通过实验证明了这些头部在时间知识处理中的关键作用。

更新于 2025-02-21。作者:Yein Park、Chanwoong Yoon、Jungwoo Park、Minbyul Jeong、Jaewoo Kang。

中文摘要

尽管语言模型提取事实的能力已经得到了广泛研究,但它们如何处理随时间变化的事实仍然未被充分探索。我们发现了时间头(Temporal Heads),这些特定的注意力头主要负责通过电路分析处理时间知识。我们证实这些头存在于多个模型中,尽管它们的具体位置可能不同,它们的响应也取决于知识类型及其对应的年份。禁用这些头会降低模型回忆特定时间知识的能力,同时保持其一般能力,而不会损害不变时间和问答性能。此外,这些头的激活不仅限于数字条件(“在2004年”),还包括文本别称(“在……年”),这表明它们编码了一个超越简单数字表示的时间维度。此外,我们还通过展示如何通过调整这些头的值来编辑时间知识,扩展了我们的发现潜力。

英文摘要

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 primarily responsible for processing 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.

解读

一句话总结

该论文揭示了语言模型中存在专门处理时间相关信息的“时间头部”,并通过实验证明了这些头部在时间知识处理中的关键作用。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源