迈入模型可解释性(一):残差流、注意力电路与因果路径

把 “When Mary and John went to the store, John gave a drink to” 输入 GPT-2,模型几乎毫不犹豫地预测出 “Mary”。在几十层矩阵乘法内部,它究竟是如何排除 “John”、选中 “Mary” 的?本文沿着这一具体问题层层推进,从 Attention Map 的失灵出发,串联起 Residual Stream、直接与间接效应、QK/OV Circuit、Induction Heads 与 Hydra Effect。

2026-12-02 · 9 分钟 · Youyin Wang