早期编码,后期使用:Transformer在何处开始依据推断的伙伴专业知识行事
研究论文 · 2026/09/09
本文研究了Transformer模型中推断属性(对话伙伴的专业水平)的可解码性与因果影响之间的时间差。通过ExpertCollab语料库(包含四个专业水平的角色扮演多轮研究规划对话),发现伙伴专业水平在早期层最可解码,在网络中点前降至接近随机水平。反事实修补显示,在峰值可解码层注入专业差异对后期层读出影响甚微,而在中点后注入则几乎完全传播,差异超过一个数量级。内容匹配的随机对照和无探针诊断将转变点定位在同一早期层,而静态指定控制属性则始终可解码。因此,推断的关系属性在其因果激活之前已被表示,这限制了读取或引导伙伴条件行为必须干预的位置。该研究使用单一模型在合成语料库上作为初步演示。
该研究首次探讨了推断属性(而非直接陈述属性)在Transformer中的可解码性与因果影响之间的时间差,为理解模型内部表示和因果机制提供了新视角,对可解释性和模型编辑有重要意义。
A transformer can make an attribute linearly decodable in its residual stream at a depth where that attribute does not yet influence the output. This gap between where information is readable and where it is used has been shown for attributes stated directly in the input. We ask whether it also holds for an attribute the model must infer gradually over a conversation, namely how expert its dialogue partner is. Using ExpertCollab, a corpus of multi-turn research-planning dialogues between model-played personas at four expertise levels, we find that partner expertise is most decodable in the early layers and falls to near chance before the midpoint of the network. Counterfactual patching shows that injecting the expertise difference at the layer of peak decodability barely changes a fixed late-layer readout, whereas the same difference injected past the midpoint propagates almost completely, a separation of more than an order of magnitude. A content-matched random control and a probe-free diagnostic place the transition at the same early layer, and a statically specified control attribute stays decodable throughout. An inferred relational attribute is therefore represented well before it becomes causally active, which bounds where any attempt to read out or steer partner-conditioned behavior must intervene. We use one model on a synthetic corpus as an initial demonstration.