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

在OthelloGPT中自动寻找基于规则的神经元

Automatically Finding Rule-Based Neurons in OthelloGPT

University of Chicago(芝加哥大学);Carnegie Mellon University(卡内基梅隆大学)

Aditya Singh, Zihang Wen, Srujananjali Medicherla, Adam Karvonen, Can Rager

AI总结:

提出基于决策树的自动化方法,识别并解释OthelloGPT中编码游戏规则的MLP神经元,验证了其因果相关性并提供映射工具,为可解释性研究提供资源。

摘要:

OthelloGPT是一个训练用于预测黑白棋(Othello)中合法落子的transformer,为可解释性研究提供了理想的测试平台。该模型足够复杂以展现出丰富的计算模式,同时又基于规则的游戏逻辑,使得有意义的逆向工程成为可能。我们提出了一种基于决策树的自动化方法,用于识别和解释编码了基于规则游戏逻辑的MLP神经元。我们的方法训练回归决策树将棋盘状态映射到神经元激活值,然后提取神经元高度活跃的决策路径,将其转化为人类可读的逻辑形式。这些描述揭示了高度可解释的模式;例如,某些神经元专门检测对角线落子何时变得合法。我们的研究结果表明,第5层中大约一半的神经元可以通过紧凑的、基于规则的决策树准确描述(在2,048个神经元中有913个的$R^2 > 0.7$),而其余的神经元可能参与更分布式的或非基于规则的计算。我们通过针对性干预验证了决策树所识别出的模式的因果相关性。对于特定方格的特定游戏模式,我们消融对应这些模式的神经元,发现与对照模式相比,模型预测这些模式合法落子的能力出现了约5-10倍的更强退化。为了促进未来的研究,我们提供了一个Python工具,能将基于规则的游戏行为映射到实现它们的神经元,作为研究人员的资源,以测试他们的可解释性方法是否能恢复有意义的计算结构。

英文摘要:

OthelloGPT, a transformer trained to predict valid moves in Othello, provides an ideal testbed for interpretability research. The model is complex enough to exhibit rich computational patterns, yet grounded in rule-based game logic that enables meaningful reverse-engineering. We present an automated approach based on decision trees to identify and interpret MLP neurons that encode rule-based game logic. Our method trains regression decision trees to map board states to neuron activations, then extracts decision paths where neurons are highly active to convert them into human-readable logical forms. These descriptions reveal highly interpretable patterns; for instance, neurons that specifically detect when diagonal moves become legal. Our findings suggest that roughly half of the neurons in layer 5 can be accurately described by compact, rule-based decision trees ($R^2 > 0.7$ for 913 of 2,048 neurons), while the remainder likely participate in more distributed or non-rule-based computations. We verify the causal relevance of patterns identified by our decision trees through targeted interventions. For a specific square, for specific game patterns, we ablate neurons corresponding to those patterns and find an approximately 5-10 fold stronger degradation in the model's ability to predict legal moves along those patterns compared to control patterns. To facilitate future work, we provide a Python tool that maps rule-based game behaviors to their implementing neurons, serving as a resource for researchers to test whether their interpretability methods recover meaningful computational structures.

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

↑