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

循环Transformer中存储的事实何时变得可用?

When do stored facts become available in looped transformers?

Qualcomm AI Research(高通人工智能研究部门)

Fabio Valerio Massoli, Arnau Padrés Masdemont, Jordi Ros Giralt, Arash Behboodi

AI总结:

本研究探究循环Transformer中存储事实的可用时机,通过合成任务发现循环模型更早暴露事实,且中间实体按链顺序可解码,明确了事实回忆的训练依赖时间表与检索实体的因果作用。

摘要:

循环Transformer在一次前向传播过程中不会获取新知识,已有研究表明其权重中存储的信息量与非循环模型相当,但目前仍不清楚循环机制如何在推理过程中使这些知识可用。本研究通过合成事实回忆和多跳推理任务,使用原生读出器和调优透镜测量不同深度下可读信息的比特数来探究该问题。在最终循环监督下,单跳事实会逐步变得可读:尽管最终可读信息相当,但更大的记忆负载会延迟检索。相同展开深度的非绑定基线模型会在其堆栈末端附近集中检索,而循环模型则更早地暴露事实。这种延迟并非测试的回忆任务所固有:在每个循环中使用监督和特定深度的读出器进行训练,可使所有测试配置中在第一个循环后就能读取接近最终的信息。表征分析显示,在由查询键组织的状态中出现了与值相关的结构。随后,本研究探究了事实存储在权重而非提示中的多跳链,中间实体按链顺序可解码,且对齐的转换显示出下一个实体结构在当前实体结构仍占主导时发展。对一个已发布的六循环模型进行干预,确定了这些表征的因果作用:在单个提示位置替换探针定义的实体组件,会重定向下游桥接实体和最终答案;相反,从通过不同前置关系到达同一实体的查询中进行替换,保留剩余关系后缀,在超过99.5%的测试用例中保留原始答案。这些结果区分了依赖训练的事实回忆时间表与检索实体表征在后续组合中的因果作用。

英文摘要:

Looped transformers do not acquire new knowledge during a forward pass. Prior work shows that they store as many bits in their weights as non-looped models. It remains unclear how recurrence makes this knowledge available during inference. We study this question using synthetic factual recall and multi-hop reasoning, measuring depth-resolved readable information in bits with native readouts and tuned lenses. Under final-loop supervision, single-hop facts become readable progressively: heavier memorization loads delay retrieval despite comparable final readable information. Untied baselines of equal unrolled depth concentrate retrieval near the end of their stacks, whereas looped models expose facts earlier. This delay is not intrinsic to the tested recall tasks: training with supervision and depth-specific readouts at every loop makes near-final information readable after the first loop in all tested configurations. Representational analysis shows value-related structure emerging within states organized by the query key. We then study multi-hop chains whose facts are stored in the weights rather than given in the prompt. Intermediate entities become decodable in chain order, and aligned transitions show next-entity structure developing while current-entity structure remains dominant. Interventions in a released six-recurrence model establish a causal role for these representations. Counterfactual replacements of a probe-defined entity component at a single prompt position redirect downstream bridge entities and the final answer. Conversely, replacements from queries that reach the same entity through different preceding relations, preserving the remaining relation suffix, retain the original answer in over 99.5\% of tested cases. These results distinguish a training-dependent schedule for factual recall from the causal role of retrieved-entity representations in subsequent composition.

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

↑