计划在哪里?通过轻量级机制干预定位语言模型中的潜在规划
Where's the Plan? Locating Latent Planning in Language Models with Lightweight Mechanistic Interventions
AI总结:
通过押韵对句补全任务,使用线性探针和激活修补方法,研究语言模型在生成过程中是否形成并因果依赖未来约束的潜在规划,发现仅Gemma-3-27B模型存在因果依赖,并定位到五个注意力头。
摘要:
我们研究语言模型中的规划位点形成——在前向传播过程中,结构约束的未来标记的内部表示是否形成,以及它们是否因果驱动生成。使用押韵对句补全作为前向约束的干净测试,我们在Qwen3、Gemma-3和Llama-3的十多个规模上应用两种轻量级方法(线性探针和激活修补)。探针显示,未来押韵信息在行边界处是线性可解码的,且信号在所有三个模型族中随规模增强。激活修补揭示,只有Gemma-3-27B因果依赖这种编码,表现出一种交接,其中因果驱动因素在大约第30层从押韵词迁移到行边界。我们测试的其他每个模型在整个生成过程中都条件于押韵词,在行边界处因果效应接近零,尽管探针信号很强。通过两阶段路径修补,我们将Gemma-3-27B的交接定位到五个注意力头,这些头在新行处恢复了约90%的押韵路由能力。
英文摘要:
We study planning site formation in language models -- where internal representations of structurally-constrained future tokens form during the forward pass, and whether they causally drive generation. Using rhyming-couplet completion as a clean test of forward-looking constraint, we apply two lightweight methods (linear probing and activation patching) across Qwen3, Gemma-3, and Llama-3 at more than ten scales. Probing shows that future-rhyme information is linearly decodable at the line boundary, with signal that strengthens with scale in all three families. Activation patching reveals that only Gemma-3-27B causally relies on this encoding, exhibiting a handoff in which the causal driver migrates from the rhyme word to the line boundary around layer 30. Every other model we test conditions on the rhyme word throughout generation, with near-zero causal effect at the line boundary despite strong probe signal. We localize the Gemma-3-27B handoff to five attention heads through two-stage path patching that recover ~90% of the rhyme-routing capacity at the newline.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。