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

语言模型是否在状态变化中跟踪实体?

Do Language Models Track Entities Across State Changes?

Department of Computer Science, Boston University, Boston, USA(波士顿大学计算机科学系);Department of Data Science, Monash University, Indonesia(墨尔本大学数据科学系);Faculty of Computer Science, University of Vienna, Austria(维也纳大学计算机科学系);Department of Linguistics, Boston University, Boston, USA(波士顿大学语言学系)

Zilu Tang, Qiao Zhao, Gabriel Franco, Derry Wijaya, Aaron Mueller, Sebastian Schuster, Najoung Kim

AI总结:

研究语言模型在自然语言中处理多步状态变化操作时的实体跟踪机制,发现其采用非增量策略,在最后token并行聚合信息,并揭示了REMOVE操作的全局抑制标签及其导致的失败模式。

摘要:

实体跟踪(ET),即跟踪状态的能力,是支撑复杂推理的基本技能。越来越多的研究探讨transformer语言模型(LMs)如何在没有状态变化的情况下解决实体绑定问题。然而,对于非玩具级LMs如何处理以自然语言表达的具有现实难度的ET问题,理解仍然有限。为此,我们研究了在具有多个状态变化操作的更复杂场景下ET背后的机制。我们发现,LMs不会跨token增量地跟踪世界状态,也不会跨层跟踪查询相关状态,而是在查询变得明显时,在最后一个token处并行地聚合相关信息。我们进一步研究了单个操作(PUT、REMOVE、MOVE)的机制,以表征这种非增量ET机制。令人惊讶的是,LMs使用一种脆弱的全局抑制标签来实现REMOVE操作;这种全局移除机制预测了我们通过行为实验确认的各种失败模式。我们提供了一种消除该标签的机械解决方案,以部分解决此问题。总体而言,我们的发现揭示了LMs使用非顺序策略来解决一个本质上是顺序的任务。更广泛地说,我们的工作展示了行为分析和机制分析如何有效地相互作用。行为结果为机制假设提供信息,而机制分析的见解通过预测现有评估中缺失的失败模式,有助于构建更强的行为评估。

英文摘要:

Entity tracking (ET), the ability to keep track of states, is a fundamental skill that underlies complex reasoning. An increasing amount of work investigates how transformer language models (LMs) solve entity binding $\textit{without}$ state changes. However, there is limited understanding of how non-toy LMs address ET problems of realistic difficulties expressed in natural language. To this end, we investigate the mechanisms underlying ET in more complex scenarios featuring multiple state-changing operations. We find that LMs do not incrementally track world states across tokens or query-relevant states across layers, but simply aggregate relevant information in parallel at the last token when the query becomes evident. We further investigate mechanisms of individual operations ($\texttt{PUT}$, $\texttt{REMOVE}$, $\texttt{MOVE}$) to characterize this non-incremental ET mechanism. Surprisingly, LMs implement the $\texttt{REMOVE}$ operation with a fragile global suppression tag; this global removal mechanism predicts various failure modes that we confirm behaviorally. We provide a mechanistic solution of nullifying this tag to partially address this issue. Overall, our findings reveal that LMs solve a fundamentally sequential task using a non-sequential strategy. More broadly, our work illustrates how behavioral and mechanistic analyses can fruitfully interact. Behavioral results inform mechanistic hypotheses, and insights from mechanistic analyses help build stronger behavioral evaluations by predicting failure modes missing from existing evaluations.

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

↑