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

国际象棋神经网络中学习到的前瞻算法的证据

Evidence of Learned Look-Ahead in a Chess-Playing Neural Network

UC Berkeley(加州大学伯克利分校);Independent(独立研究者)

Erik Jenner, Shreyas Kapur, Vasil Georgiev, Cameron Allen, Scott Emmons, Stuart Russell

AI总结:

该研究发现在最强神经国际象棋引擎 Leela Chess Zero 的策略网络中存在学习到的前瞻算法,通过分析其 transformer 架构中的因果激活、注意力头信息传递和探针预测,证明了网络能内部表示未来最佳走法。

摘要:

神经网络是“在自然环境中”学会了实现诸如前瞻或搜索等算法,还是纯粹依赖简单启发式规则的集合?我们提出了在 Leela Chess Zero(目前最强的神经国际象棋引擎)的策略网络中存在学习到的前瞻算法的证据。我们发现 Leela 在内部表示了未来的最佳走法,并且这些表示对于其在某些棋盘状态下的最终输出至关重要。具体而言,我们利用了 Leela 是一个将每个棋盘格像语言模型中的 token 一样对待的 transformer 这一事实,并给出了三条证据线:(1) 未来走法的某些棋盘格上的激活值在因果上异常重要;(2) 我们发现了能够将重要信息“在时间上向前和向后”移动的注意力头,例如从未来走法的棋盘格移动到较早走法的棋盘格;(3) 我们训练了一个简单的探针,能够以 92% 的准确率预测 2 步之后的最佳走法(在 Leela 找到单一最佳路线的棋盘状态下)。这些发现是神经网络中存在学习到的前瞻算法的存在性证明,可能是更好地理解其能力的一步。

英文摘要:

Do neural networks learn to implement algorithms such as look-ahead or search "in the wild"? Or do they rely purely on collections of simple heuristics? We present evidence of learned look-ahead in the policy network of Leela Chess Zero, the currently strongest neural chess engine. We find that Leela internally represents future optimal moves and that these representations are crucial for its final output in certain board states. Concretely, we exploit the fact that Leela is a transformer that treats every chessboard square like a token in language models, and give three lines of evidence (1) activations on certain squares of future moves are unusually important causally; (2) we find attention heads that move important information "forward and backward in time," e.g., from squares of future moves to squares of earlier ones; and (3) we train a simple probe that can predict the optimal move 2 turns ahead with 92% accuracy (in board states where Leela finds a single best line). These findings are an existence proof of learned look-ahead in neural networks and might be a step towards a better understanding of their capabilities.

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

↑