Llama-3的后路由算术:最后令牌结果书写与旋转结构数字方向
Post-Routing Arithmetic in Llama-3: Last-Token Result Writing and Rotation-Structured Digit Directions
AI总结:
Llama-3研究后路由阶段三位数加法机制,发现结果由最后令牌控制,通过旋转方向映射实现反事实编辑
摘要:
我们研究了Meta-Llama-3-8B(基础版)在单令牌读出下的三位数加法,以表征跨令牌路由变得因果无关后如何最终确定算术答案。因果残差补丁和累积注意力消融在第17层附近定位了一个尖锐边界:在此边界之外,解码的和几乎完全由最后一个输入令牌控制,而晚期层自注意力 largely 可有可无。在后路由 regime 中,数字(和)方向词典随着下一个更高位上下文变化,但通过一个近似正交映射在共享低秩子空间内保持良好相关性(低秩Procrustes对齐)。因果数字编辑匹配这种几何结构:朴素的跨上下文转移失败,而通过学习的映射旋转方向可恢复严格反事实编辑;负控不恢复。
英文摘要:
We study three-digit addition in Meta-Llama-3-8B (base) under a one-token readout to characterize how arithmetic answers are finalized after cross-token routing becomes causally irrelevant. Causal residual patching and cumulative attention ablations localize a sharp boundary near layer~17: beyond it, the decoded sum is controlled almost entirely by the last input token and late-layer self-attention is largely dispensable. In this post-routing regime, digit(-sum) direction dictionaries vary with a next-higher-digit context but are well-related by an approximately orthogonal map inside a shared low-rank subspace (low-rank Procrustes alignment). Causal digit editing matches this geometry: naive cross-context transfer fails, while rotating directions through the learned map restores strict counterfactual edits; negative controls do not recover.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。