arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.36524cs.CLcs.LG
收藏

Transformer中证据效应的因果定位

Causal Localization of Evidence Effects in Transformers

Jipeng Li, Pramod Khargonekar, Yanning Shen

AI总结:

本研究提出可控证据聚合与平衡效用因果选择方法,在Pythia-410M模型中定位出的注意力头集合可消除65.5%-91.6%的数量效应,且其因果影响可延伸至自然语言决策。

摘要:

可控符号输入能否揭示影响语言模型基于自然语言证据做出决策的注意力头?我们提出可控证据聚合(CEA),该方法在固定提示中改变两个符号的数量和顺序,并测量冻结Transformer对两个答案标记的偏好变化,偏好通过它们的logit差值衡量,提示未指定正确答案。平衡效用因果选择(BUC)通过联合评估消融注意力头输出能消除多少数量效应,以及在数量条件间修补平均输出能多准确地双向恢复该效应,来识别紧凑的注意力头集合。我们推导了将注意力头归因与干预效应关联的条件边界,并明确了何时能从有限样本中恢复归因候选集。在Pythia-410M模型中,针对四种顺序机制分别选择的1-12个注意力头集合,消融后可消除65.5%-91.6%的数量效应,且这些集合对未用于选择的数量比较仍保持影响。为测试符号输入之外的相关性,我们评估了一项判断哪个州得到更多报告的自然语言任务:仅基于符号是/否提示选择的8个注意力头,消融后平均准确率下降8.2个百分点,而大小和层匹配的随机集合仅下降0.8个百分点。我们的结果表明,可控符号探测可识别出具有因果影响的紧凑注意力头集合,其影响可延伸至自然语言决策。

英文摘要:

Can controlled symbolic inputs reveal attention heads that influence a language model's decisions from natural language evidence? We introduce controlled evidence aggregation (CEA), which varies the counts and order of two symbols in otherwise fixed prompts and measures changes in a frozen Transformer's preference between two answer tokens. The preference is measured by their logit difference; the prompts prescribe no correct answer. Balanced utility causal selection (BUC) identifies compact head sets by jointly evaluating how much ablating their outputs removes the count effect and how closely patching mean outputs between count conditions recovers the effect in both directions. We derive conditional bounds linking head attribution to intervention effects and specifying when the attribution shortlist can be recovered from finite samples. In Pythia-410M, ablating sets of 1-12 heads selected separately for four ordering regimes removes 65.5-91.6% of the count effect. The sets retain their influence on count comparisons not used for selection. To test relevance beyond symbolic inputs, we evaluate a natural language task asking which state is supported by more reports. Ablating eight heads selected only on symbolic yes/no prompts lowers mean accuracy by 8.2 percentage points, versus 0.8 for random sets matched by size and layer. Our results demonstrate that controlled symbolic probes can identify compact attention head sets whose causal influence extends to natural language decisions.

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

↑