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

频谱探测电路:识别预训练Transformer中注意力头电路的三步法

Spectral Probe-Circuits: A Three-Step Recipe for Identifying Attention-Head Circuits in Pretrained Transformers

University of California, Berkeley(加州大学伯克利分校)

Yongzhong Xu

AI总结:

提出一种三步法,通过频谱信号排序、任务模式筛选和组消融因果验证,无需标签即可识别预训练Transformer中执行持续内容依赖计算的注意力头电路,并在多个模型上验证了其通用性和因果必要性。

摘要:

我们提出了一种三步法,用于识别预训练Transformer中的注意力头电路。每个头的频谱信号——即每个头注意力输出的时间积分参与比——可以在没有标签或归因梯度的情况下,对执行持续内容依赖计算的头进行排序。任务模式屏幕将此通用指标过滤为特定任务的候选电路,而针对匹配随机对照的组消融则完成了因果声明。我们在8倍参数范围(5100万至10亿活跃/70亿总参数)、两种架构族(密集型和混合专家)以及四种预训练流程上进行了验证。该方法是可移植的:一个2-6头的归纳电路在每个测试模型中都是因果必需的,消融后合成归纳top-1下降94-100%。频谱信号在无监督下具有预测性:在5100万参数探测模型的六个独立种子上,相同的计算识别出每个种子上的种子特定电路。在Pythia族(1.24亿至4.1亿)中,执行可识别专门计算的头比例保持在17-19%,而特定归纳电路保持3-11个头——与总头数呈次线性关系。本文是一个三篇论文计划的方法论锚点;配套论文将该方法扩展到预训练期间的发展轨迹以及组合任务电路,其中模式选择性与任务因果结构解耦。

英文摘要:

We present a three-step recipe for identifying attention-head circuits in pretrained transformers. A per-head spectral signal -- the time-integrated participation ratio of each head's attention output -- ranks heads doing sustained content-dependent computation without labels or attribution gradients. A task-pattern screen filters this general indicator into a task-specific candidate circuit, and group ablation against a matched-random control completes the causal claim. We validate across an 8x parameter range (51M to 1B-active / 7B-total), two architecture families (dense, mixture-of-experts), and four pretraining pipelines. The recipe ports: a 2-6 head induction circuit is causally necessary in every model tested, with a 94-100% drop in synthetic-induction top-1 after ablation. The spectral signal is predictive without supervision: on six independent seeds of a 51M-parameter probe model, the same computation identifies the seed-specific circuit on each seed. The fraction of heads doing identifiable specialized computation is conserved at 17-19% across the Pythia family (124M to 410M), while specific induction circuits stay 3-11 heads -- sublinear in total head count. This paper is the methodology anchor of a three-paper program; companion papers extend the recipe to developmental trajectories during pretraining and to composed-task circuits where pattern selectivity decouples from task-causal structure.

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

↑