Skip to main content
QUICK REVIEW

[论文解读] Amortized Planning with Large-Scale Transformers: A Case Study on Chess

Anian Ruoss, Grégoire Delétang|arXiv (Cornell University)|Feb 7, 2024
Artificial Intelligence in GamesComputer Science被引用 8
一句话总结

本论文在 270M 参数的 Transformer 上对 10 million 局棋局,使用 Stockfish 注释的行动值,训练出一个强大且无需搜索的棋局策略,达到大师级别并超越若干基线。模型和数据规模是实现强性能的关键。

ABSTRACT

This paper uses chess, a landmark planning problem in AI, to assess transformers' performance on a planning task where memorization is futile $\unicode{x2013}$ even at a large scale. To this end, we release ChessBench, a large-scale benchmark dataset of 10 million chess games with legal move and value annotations (15 billion data points) provided by Stockfish 16, the state-of-the-art chess engine. We train transformers with up to 270 million parameters on ChessBench via supervised learning and perform extensive ablations to assess the impact of dataset size, model size, architecture type, and different prediction targets (state-values, action-values, and behavioral cloning). Our largest models learn to predict action-values for novel boards quite accurately, implying highly non-trivial generalization. Despite performing no explicit search, our resulting chess policy solves challenging chess puzzles and achieves a surprisingly strong Lichess blitz Elo of 2895 against humans (grandmaster level). We also compare to Leela Chess Zero and AlphaZero (trained without supervision via self-play) with and without search. We show that, although a remarkably good approximation of Stockfish's search-based algorithm can be distilled into large-scale transformers via supervised learning, perfect distillation is still beyond reach, thus making ChessBench well-suited for future research.

研究动机与目标

  • 研究在大规模有监督学习下,是否可以在不显式搜索的情况下获得高质量的棋类策略。
  • 量化模型规模和数据集规模如何影响棋局表现。
  • 在多项指标上,将基于变换器的策略与强基线(Stockfish、AlphaZero 及 GPT-3.5 等变体)进行比较。

提出的方法

  • 训练具有 9M、136M 和 270M 参数的解码器式 Transformer,在 10 million annotated chess games 上。
  • 使用 Stockfish 16 的状态值和行动值对棋盘进行标注,标注间隔为每个棋盘 50ms;创建大型行动值数据集(~15.32B)。
  • 对状态-行动对预测胜率的离散区间(行动值预测)或状态值,或直接模仿 oracle 动作(行为克隆)。
  • 用 FEN 将棋盘标记为 77 字符串;将可行动作标记为 1968 种可能的合法步法;使用 Adam 进行 10 million steps 的交叉熵损失训练。
  • 通过选择最大化预测值(AV)、最小化预测对手值(SV)或最大化预测行动概率(BC)来构建策略。
  • 通过行动准确率、Kendall’s τ 排名、对 10k 道谜题的谜题准确率,以及以 Elo 为基础的对 humans 和 bots 的对弈进行评估。
Figure 1 : Top (Data annotation): We extract all boards from $N$ randomly drawn games from Lichess, discard duplicate board states, and compute the state-value for each board as the win-probability via Stockfish. We compute action-values and the best action for all legal moves of a board state in th
Figure 1 : Top (Data annotation): We extract all boards from $N$ randomly drawn games from Lichess, discard duplicate board states, and compute the state-value for each board as the win-probability via Stockfish. We compute action-values and the best action for all legal moves of a board state in th

实验结果

研究问题

  • RQ1大规模、有监督的变换器是否能够在不进行显式搜索的情况下学习到有竞争力的棋类策略?
  • RQ2模型规模和训练数据规模如何影响对未见局面的一般化以及解谜能力?
  • RQ3基于 Stockfish 注释、数据驱动的策略在对局和解谜方面与 AlphaZero、GPT-3.5 等既有基线相比如何?
  • RQ4在此设置中,哪些消融实验揭示目标、数据采样、值分箱和损失选择的重要性?

主要发现

  • 一个 270M 参数的 transformer 对人类在 Lichess 快棋中达到 Elo 2895。
  • 更大的模型在各项指标上持续提升性能(9M、136M、270M)。
  • 该模型在若干基准测试中超越 AlphaZero 的策略网络和价值网络(不使用 MCTS),以及 GPT-3.5-turbo-instruct。
  • 谜题求解方面,270M 模型最强,接近 Stockfish 在精选谜题上的表现,Stockfish 领先但本模型具竞争力。
  • 在预测目标中,行动值预测在总体排名和谜题准确性方面表现最佳;规模和数据多样性至关重要。
  • 只有在模型规模和数据集规模都达到足够规模时,才出现稳健的一般化。
Figure 2 : Puzzle solving competency comparison between our 270M transformer, Stockfish 16 (time limit of 50ms per move), AlphaZero’s value network, and GPT-3.5-turbo-instruct on 10 000 Lichess puzzles (curated following Carlini ( 2023 ) ).
Figure 2 : Puzzle solving competency comparison between our 270M transformer, Stockfish 16 (time limit of 50ms per move), AlphaZero’s value network, and GPT-3.5-turbo-instruct on 10 000 Lichess puzzles (curated following Carlini ( 2023 ) ).

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。