arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2605.26343cs.LG
收藏

MechRL:强化学习智能体进行电路发现以实现机械可解释性

MechRL: Reinforcement Learning Agents Perform Circuit Discovery for Mechanistic Interpretability

The University of Southern Mississippi(美国密西西比州立大学)

Barsat Khadka

AI总结:

提出将电路发现转化为强化学习问题,使用PPO策略在GPT-2 small的144个注意力头上进行零消融和对比奖励,成功在训练任务和未见任务上恢复标准电路,验证了强化学习在机械可解释性中的有效性。

摘要:

机械可解释性已经识别出在Transformer语言模型中实现特定行为的小型注意力头集合,但恢复这些电路通常需要为每个新任务定制分析流程。我们将电路发现重新定义为强化学习问题。一个智能体在GPT-2 small的144个注意力头上操作,作为离散动作空间;每个动作触发零消融和对比奖励,该奖励从消融对目标任务的损害中减去其对通用下一个词预测的损害。一个在向量化多任务环境中训练于两个任务(归纳和IOI)的单一PPO策略,在两个训练任务以及一个保留的第三个任务(文档字符串补全)上均达到每轮最优。其偏好的头与现有文献中规范的头一致,恰好符合这些论文在单头消融下识别为因果非冗余的轴;它们识别为冗余的类别被智能体正确降级。在保留任务上,最佳五次规划在评估时未提供任务信号的情况下恢复了最优上限的96%。这些结果表明,基于因果干预的强化学习是识别机械电路单头瓶颈的可行且可迁移的方法,与现有的路径修补方法互补。

英文摘要:

Mechanistic interpretability seeks to explain a model's behaviour by finding its circuit: the sparse subgraph of the model's computation that is causally responsible for it. Automated methods have made this search systematic, but each one starts afresh for every behaviour, and the effort spent finding one circuit does nothing for the next. Circuit discovery has thus been automated, but not amortised. We ask whether circuit discovery can itself be learned. We frame it as a sequential decision problem over the computation graph of GPT-2 small, in which a policy removes edges until it reaches a compact subgraph that preserves the behaviour, guided by a faithfulness reward defined through causal intervention. A single policy trained across twelve behaviours recovers a faithful circuit for each, and once frozen it transfers to behaviours it never saw during training, recovering their known circuits without further search. A short warm-start improves these transferred circuits, returning far smaller ones than training from scratch. While the learned policy does not match a per-behaviour search on circuit size or cost, it shows that circuit discovery is a learnable, transferable procedure rather than a search repeated for every behaviour.

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

↑