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)|2024. 02. 07.
Artificial Intelligence in GamesComputer Science인용 수 8
한 줄 요약

논문은 270M-parameter transformer를 10M chess games에서 Stockfish-annotated action-values로 학습시켜 검색 없이도 강력한 체스 정책을 만들어 그랜드마스터급 플레이에 도달하고 여러 기준선을 능가한다. 모델 및 데이터 확장은 강력한 성능의 핵심이다.

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.

연구 동기 및 목표

  • 대규모 감독 학습이 명시적 검색 없이도 고품질의 체스 정책을 yielding 수 있는지 조사한다.
  • 모델 크기와 데이터 세트 크기가 체스 성능에 어떤 영향을 미치는지 정량화한다.
  • Transformer 기반 정책과 강력한 기준선(Stockfish, AlphaZero 변형, GPT-3.5) 간의 다중 지표 비교를 수행한다.

제안 방법

  • 10M 주석된 체스 게임에서 9M, 136M, 270M 매개변수의 디코더-전용 트랜스포머를 학습시킨다.
  • Board를 Stockfish 16 상태- 및 액션-값으로 50ms per board로 주석하고 대규모 액션-값 데이터셋(~15.32B)을 생성한다.
  • 상태-액션 쌍에 대해 승리확률의 이산 구간(액션-값 예측)이나 상태값을 예측하거나, 직접 오라클 액션을 모방하는 행동 클로닝을 수행한다.
  • FEN을 통해 보드를 77자 문자열로 토크나이즈하고 토크나이즈된 액션은 1968개의 합법적 수에 대해 크로스 엔트로피 손실로 Adam optimizer로 10M 스텝을 학습한다.
  • 예측된 값(AV)을 최대화하는 액션, 예측된 상대 가치(SV)를 최소화하는 액션, 또는 예측된 액션 확률(BC)을 최대화하는 액션으로 정책을 구성한다.
  • 액션 정확도, Kendall의 τ 랭킹, 10k 퍼즐에서의 퍼즐 정확도, 인간 및 봇과의 Elo 기반 대국으로 평가한다.
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모델 크기와 학습 데이터 규모가 이전에 보지 못한 포지션 일반화 및 퍼즐 해결 능력에 어떤 영향을 미치는가?
  • RQ3Stockfish 주석, 데이터 주도 정책이 AlphaZero 및 GPT-3.5 같은 강력한 기준선과 비교해 플레이 및 퍼즐 해결에서 어떤 차이를 보이는가?
  • RQ4대상, 데이터 샘플링, 값 이산화, 손실 선택의 중요성에 대해 어떤 차별 실험이 이 설정에서 중요한가를 밝힌다.

주요 결과

  • 270M-parameter 트랜스포머가 인간에 대한 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 ) ).

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.