Skip to main content
QUICK REVIEW

[論文レビュー] Emergent World Models and Latent Variable Estimation in Chess-Playing Language Models

Adam Karvonen|arXiv (Cornell University)|Mar 21, 2024
Natural Language Processing TechniquesComputer Science被引用数 3
ひとこと要約

この論文は、チェスの対局記録のみを用いて次トークン予測の学習を実施した言語モデルが、内部の盤面状態表現や隠れされたプレイヤー実力推定といったエメrgentな世界モデルを発達させることを示している。線形プローブと活性化干渉を用いて、モデルの内部状態を編集し、その結果としてプレイの向上または劣化を観察することで、これらの表現を検証した。特に、実力ベクトルの干渉によって、最大で2.6倍の勝率向上を達成した。

ABSTRACT

Language models have shown unprecedented capabilities, sparking debate over the source of their performance. Is it merely the outcome of learning syntactic patterns and surface level statistics, or do they extract semantics and a world model from the text? Prior work by Li et al. investigated this by training a GPT model on synthetic, randomly generated Othello games and found that the model learned an internal representation of the board state. We extend this work into the more complex domain of chess, training on real games and investigating our model's internal representations using linear probes and contrastive activations. The model is given no a priori knowledge of the game and is solely trained on next character prediction, yet we find evidence of internal representations of board state. We validate these internal representations by using them to make interventions on the model's activations and edit its internal board state. Unlike Li et al's prior synthetic dataset approach, our analysis finds that the model also learns to estimate latent variables like player skill to better predict the next character. We derive a player skill vector and add it to the model, improving the model's win rate by up to 2.6 times.

研究の動機と目的

  • 実際のチェス対局記録のみで学習された言語モデルが、ゲームルールや明示的な教師信号なしに内部の世界モデルを発達させるかどうかを調査すること。
  • このようなモデルが、次トークン予測を改善するために、プレイヤー実力のような隠れ変数を推定できるかどうかを特定すること。
  • 盤面状態や実力レベルの変更といった、モデル活性化に対する因果的介入を通じて、内部表現を検証すること。
  • チェスのような現実的でルールに基づいたドメインにおいて、プロービングと干渉技術の有効性を比較すること。

提案手法

  • Lichessデータベースの1600万件の実際のチェス対局を用いて、8層および16層のGPTモデルを、次トークン予測のみで学習する。
  • 線形プローブを用いて、モデルの活性化から盤面状態およびプレイヤー実力の内部表現を抽出する。
  • モデルの隠れ状態を変更することで因果的干渉を実施:実力ベクトルを挿入または減算して性能を変更する。
  • 標準的およびランダムに初期化された盤面設定の両方で、Stockfish 16との対戦における勝率を測定することで、干渉の有効性を検証する。
  • 勾配ベースのプロービングを用いて、Eloレーティングのような隠れ変数を同定・操作し、モデル行動の制御可能な変更を可能にする。
  • 勝率と手の合法性(干渉後98%以上が合法手)を用いて、モデルの性能を評価する。
Figure 1: Heat maps of the model’s internal board state derived from the probe outputs, which have been trained on a one-hot classification objective. The probes output log probabilities for the 13 different piece types at every square, which we can use to construct a heat map for any piece type. Th
Figure 1: Heat maps of the model’s internal board state derived from the probe outputs, which have been trained on a one-hot classification objective. The probes output log probabilities for the 13 different piece types at every square, which we can use to construct a heat map for any piece type. Th

実験結果

リサーチクエスチョン

  • RQ1実際のチェス対局記録のみで学習された言語モデルが、ゲームの知識なしに盤面状態の内部表現を発達させるか?
  • RQ2モデルは、次トークン予測を改善するために、プレイヤー実力のような隠れ変数を推定するか?
  • RQ3線形プローブが、モデルの内部盤面状態および実力表現を正しく回復・操作できるか?
  • RQ4モデル活性化に対する因果的干渉が、チェスプレイの性能をどれほど向上または劣化させられるか?
  • RQ5実力ベクトルの干渉後、標準的配置からではなく、ランダムに移動させた配置から初期化した場合、モデルの性能はどのように変化するか?

主な発見

  • 線形プローブによる検証により、ピースの位置を高い信頼性で再構築できるため、モデルは頑健な内部盤面状態表現を学習している。
  • モデルは、隠れベクトルを介してプレイヤー実力を推定しており、このベクトルはプローブ可能かつ操作可能であり、性能に影響を与える。
  • 正の実力ベクトルを追加することで、16層モデルのランダムに初期化されたゲームにおけるStockfish 16との対戦で、勝率が最大2.6倍に向上した。
  • 同様の条件下で8層モデルの勝率も2倍に向上し、実力ベクトル干渉のスケーラビリティが裏付けられた。
  • 干渉後も合法手の割合が98%以上を維持しており、行動の制御性が保証された。
  • ランダムに初期化されたゲームの99.4%を低実力と分類しており、モデルが文脈からプレイヤー実力を推定しているという仮説を支持する。
Figure 2: Model win rate versus a range of Stockfish 16 levels. The 16 layer and 8 layer models are trained on identical datasets for an identical number of epochs. The 16 layer model consistently has a higher win rate than the 8 layer model. While precise Elo measurements for Stockfish are complex,
Figure 2: Model win rate versus a range of Stockfish 16 levels. The 16 layer and 8 layer models are trained on identical datasets for an identical number of epochs. The 16 layer model consistently has a higher win rate than the 8 layer model. While precise Elo measurements for Stockfish are complex,

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。