# Mastering the Game of Stratego with Model-Free Multiagent Reinforcement Learning

Julien Perolat, Bart de Vylder, Daniel Hennes, Eugene Tarassov, Florian Strub, Vincent de Boer and 28 more · arXiv · 2022-6-30

- **Problem** Stratego's game tree and its private deployment phase make it hard for search-based methods, which must estimate hidden opponent pieces from public states.
- **Method** Trains DeepNash by model-free self-play with R-NaD and a deep network, learning deployment and game play end-to-end without search.
- **Results** Reached 84% win rate (42 of 50 ranked matches) against top human players on Gravon, and a win rate of at least 97% against the eight evaluated bots.

![Figure 8: Agent decomposition. Learner samples games/trajectories from Replay Buffer, improves weights, and periodically distributes these to actors and evalua…](https://refivu.com/papers/c8ba1a5f-8040-4096-92b0-d848951ca124/figures/figure-33327393b3ca4c8804a379f7d9a2d9f0.png?thumb=512)

**Figure 8** : Agent decomposition. Learner samples games/trajectories from Replay Buffer, improves weights, and periodically distributes these to actors and evaluators. Actors self-play and write experience into Replay Buffer. Evaluators play against other bots to assess performance.

[Original paper](https://arxiv.org/abs/2206.15378v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Extracted the figure area from page 41 of the original PDF.

## Why Stratego resists search-based methods

Chess and Go have no private deployment phase, so they avoid this burden entirely. Search methods that estimate the opponent's private configurations from public states become intractable here, which is why the approach in this work does not rely on search.

The goal is an agent that learns Stratego end-to-end from scratch, without human demonstration data, and reaches expert human level in Stratego Classic. Earlier artificial agents reached only a level comparable to a human amateur, so the target sits well above the existing state of the art. Learning deployment and game play together in one approach is the feature that separates this target from earlier systems.

## Aiming for a Nash equilibrium without search

The agent is trained to approximate a Nash equilibrium through self-play, because such a strategy performs well even against a worst-case opponent and cannot be exploited. The design pairs model-free reinforcement learning in self-play with the game-theoretic idea of Regularized Nash Dynamics (R-NaD). The model-free part means no explicit opponent model that tracks beliefs about hidden pieces is built, and the game-theoretic part alters the learning dynamics so that the agent moves toward the equilibrium.

This avoids the need to model private states from public ones.

Self-play with model-free reinforcement learning has been hard to stabilize in large games such as Capture the flag, Dota and StarCraft. Workarounds such as training against past agents, reward shaping or expert data help in practice, but they lack theoretical foundations and do not easily transfer to new games. Minimizing exploitability directly requires estimating best responses during training, which is computationally intractable in Stratego.

R-NaD instead defines a learning update whose dynamics admit a Lyapunov function that decreases during learning, so the dynamics settle at a fixed point.

## How one R-NaD iteration works

The steps are first shown on normal form games, where two players choose actions at the same time. In the first step, each player's reward is shifted by a log-ratio between its current policy and a regularization policy, scaled by eta, so the transformed reward depends on the policy. \\\[ r^i(\\pi^i,\\pi^{-i},a^i,a^{-i}) = r^i(a^i,a^{-i}) - \\eta \\log\\frac{\\pi^i(a^i)}{\\pi^i\_{reg}(a^i)} + \\eta \\log\\frac{\\pi^{-i}(a^{-i})}{\\pi^{-i}\_{reg}(a^{-i})} \\\] Because the modified reward moves with the policy, the game being solved is redefined at every iteration.

The regularization parameter eta is held fixed throughout the process.

The second step runs replicator dynamics on the modified game, which raises the probability of actions whose quality exceeds the policy's average and lowers the probability of the others. \\\[ \\frac{d}{d\\tau}\\pi^i\_\\tau(a^i)=\\pi^i\_\\tau(a^i)\\Big\[Q^i\_{\\pi\_\\tau}(a^i)-\\sum\_{b^i}\\pi^i\_\\tau(b^i)Q^i\_{\\pi\_\\tau}(b^i)\\Big\] \\\] The quality of an action is its expected reward against the opponent's current policy.

\\\[ Q^i\_{\\pi\_\\tau}(a^i)=\\mathbb{E}\_{a^{-i}\\sim\\pi^{-i}\_\\tau}\\big\[r^i(\\pi^i\_\\tau,\\pi^{-i}\_\\tau,a^i,a^{-i})\\big\] \\\] With the transformed reward the dynamics has a unique fixed point, and the function H decreases toward it, which is the Lyapunov function that certifies convergence. \\\[ H\_{\\pi\_{fix}}(\\pi)=\\sum\_{i=1}^{2}\\sum\_{a^i}\\pi^i\_{fix}(a^i)\\log\\frac{\\pi^i\_{fix}(a^i)}{\\pi^i(a^i)} \\\]

The third step makes the fixed point the regularization policy for the next iteration, and repeating the three steps produces a sequence of fixed points that converges to a Nash equilibrium of the original game. In the matching pennies example, with eta equal to 0.2 and a starting regularization policy of \[0.999, 0.001\], the first iteration's replicator dynamics converge to \[0.896, 0.104\] and \[0.263, 0.737\] for the two players, and the logarithm of the Lyapunov function falls across three iterations.

## Scaling R-NaD with a deep network

DeepNash keeps the three R-NaD steps and implements them with a deep convolutional network, with fine-tuning and test-time processing added around them. The torso is a U-Net with residual blocks and skip connections, and it feeds four heads. One head outputs a scalar value, while the other three output probability distributions for deployment, piece selection and piece displacement.

The value head is only used during training.

The observation is a spatial tensor of shape 10×10×82 for each player. The tensor is player-centric: for blue it is rotated 180 degrees, and the actions from 0 to 99 are read as squares relative to the player's own side. Figure 3 lays out the components of this input.

All modules follow a pyramid-like architecture built from residual blocks, and the torso produces an embedding with spatial size 10×10 and 256 channels. Policy heads use one outer block and no inner blocks, while the value head uses no outer blocks, and forbidden actions are masked before the softmax.

## Learning updates inside an iteration

Each iteration interpolates the reward between the previous and the current regularization policy over an interval of Delta m steps, using a weight alpha\_n. \\\[ \\alpha\_n=\\min\\Big(1,\\frac{2n}{\\Delta m}\\Big) \\\] The weight reaches 1 halfway through the interval, which smooths the switch from one regularization policy to the next.

Value and Q estimates use an adaptation of the v-trace estimator for two players, computed backward from the end of each trajectory without bootstrapping. Importance ratios between the current policy and the policy that generated the trajectory correct for the mismatch, and clipping coefficients bound them. The authors argue that this keeps the estimates low in bias while also limiting variance, even when the trajectory came from a different policy.

The value head is fit by regression onto these value estimates. The policy is updated by Neural Replicator Dynamics, which uses a clipped Q estimate and bounds each update. Adam applies the update, and a target parameter set follows the learned parameters through an averaging factor in the range 0 to 1. After Delta m steps the target policy becomes the fixed point, which is the next regularization policy, and training continues from the same parameters and optimizer state.

## Fine-tuning and test-time adjustments

During training, the action probabilities are thresholded and discretized to reduce these residual probabilities.

At test time, two rules remove play that the authors regard as pointless or unhelpful. The pointless threat rule allows an initial back-and-forth threat of three moves between adjacent squares, and afterwards only a single threatening move for the same two pieces in the same 2x2 region. The eagerness adjustment changes the draw ratio r to r' as follows.

\\\[ r' = 1-(1-r)^{\\alpha\_{eag}} \\\] This adjustment applies only to the agent, and not to its opponent.

## Training at scale

The training pipeline follows Sebulba Podracer and has four roles: Actors, Replay Buffer, Learner and Evaluators. Actors play full games against themselves and write them into the Replay Buffer, which works as a queue until the Learner reads them. The Learner samples batches of games, updates the network weights and periodically sends them to the Actors and Evaluators, while the Evaluators play fixed bots such as Uniform and Demon of Ignorance.

Scaling uses a SIMD model in JAX with the pmap transformation, where several learner machines each compute gradients on different games, average them across machines and apply the same update. The final agent was trained with 768 TPU nodes for Learners and 256 TPU nodes for Actors. Actors and Learners use different resources, since Actors run the environment and inference on CPU with a small amount of accelerator time, while the Learner uses accelerator FLOPS heavily.

Full games are stored instead of fixed-length sequences, so that returns on variable-length trajectories can be computed exactly. Batches are padded, split into fixed-length chunks and processed twice: a forward pass recomputes the network state and trajectory statistics, and a backward pass computes gradients with the exact state at the start of each chunk.

The forward pass runs outside the gradient computation, which avoids bootstrapping for returns and for the network state.

## Results against existing Stratego bots

The eight bots are Probe, Master of the Flag, Demon of Ignorance, Asmodeus, Celsius, Celsius1.1, PeternLewis and Vixen. Probe and Master of the Flag won the Computer Stratego World Championship in several years, Demon of Ignorance is an open-source implementation with a bot, and the other five were submitted to a 2012 Australian university programming competition.

DeepNash was trained only through self-play and never against any of these bots.

Table 1 gives win, draw and loss percentages from DeepNash's point of view. Probe and Master of the Flag were each played for 30 games, and DeepNash won all of them. Against Demon of Ignorance over 800 games, DeepNash won 97.1%, drew 1.8% and lost 1.1%. Against Celsius1.1 over 800 games, it won 97.9% and lost 2.1%, and against Vixen it won all 800 games.

Over 800 games it won 99.7% against Asmodeus, 98.2% against Celsius and 99.9% against PeternLewis.

The authors describe most of the few losses to Celsius1.1 as cases where that bot captured early with a high-ranking piece, aiming for a large material advantage. That strategy usually fails but occasionally leads to a win.

## Results on Gravon against human experts

Gravon is an internet platform with several online games, including Stratego, and it is described as the largest online platform for Stratego. Its ratings use the Kleier rating, the same system as the International Stratego Federation, which models win probability from the difference in two players' ratings. Gravon imposes limits so that ranked players face opponents of comparable strength.

DeepNash played 50 ranked matches over two weeks in early April 2022 against top human players and won 42 of them, which is 84%. On the all-time Classic Stratego ranking it holds a rating of 1778, again third, behind 1876 and 1823, and that leaderboard counts ranked games back to 2002.

The authors conclude that DeepNash reaches human expert level in Stratego through self-play alone, without bootstrapping from existing human data. That conclusion rests on one two-week period of 50 ranked matches on one platform.

## Deployments and information trade-offs in play

DeepNash learns deployment alongside game play, and the authors say it can generate billions of unique deployments. Deployments differ in strength, and placing a Flag in the open on the front row is weak. The 10 and 9 tend to sit on different sides of the board, and the Spy tends to sit near the 9 or 8 to guard against the opponent's 10. The 3s sit on the back row, and the eight 2s are spread between the front and the back.

In the Figure 4b example, Blue is behind by a 7 and an 8, yet none of its pieces is revealed, and DeepNash assessed its chance of winning as still around 70%. Blue won that match. In the Figure 4c state, DeepNash's policy supports three moves with probabilities of 56%, 6% and 38%, and it does not capture the opponent's 6 with its 9. The authors suggest this is because protecting the identity of the 9 is judged more important than the material gain.

These illustrations come from matches on Gravon and describe the behaviour in terms a human observer would use, such as deception and bluffing.

## Limitations

The observation encodes the last 40 moves, and in some human evaluation cases this history was not enough for a detailed assessment of a Stratego state. The authors name longer memory as an area for improvement, through architectures that cope better with long histories. A hand-specified memory heuristic tracks three patterns: a Spy attacks a known Marshal, a Marshal attacks a known General or Colonel when no recapture is possible, and a General attacks a known Colonel when no recapture is possible.

A non-attacking move then removes the matching piece types from the possibilities, and these eliminated types are set to 0 in the input.

The convergence argument for R-NaD assumes that the Nash equilibrium of the original game is unique. For the deep version, convergence to an epsilon-Nash equilibrium in Stratego is described as empirically demonstrated. Probe and Master of the Flag were evaluated over 30 games each, while the other six bots were evaluated over 800 games, and only the bots that could be run automatically were included.

The human evaluation covers one platform and one two-week period.

## Paper info

- **Authors**: Julien Perolat, Bart de Vylder, Daniel Hennes, Eugene Tarassov, Florian Strub, Vincent de Boer, Paul Muller, Jerome T. Connor, Neil Burch, Thomas Anthony, Stephen McAleer, Romuald Elie, Sarah H. Cen, Zhe Wang, Audrunas Gruslys, Aleksandra Malysheva, Mina Khan, Sherjil Ozair, Finbarr Timbers, Toby Pohlen, Tom Eccles, Mark Rowland, Marc Lanctot, Jean-Baptiste Lespiau, Bilal Piot, Shayegan Omidshafiei, Edward Lockhart, Laurent Sifre, Nathalie Beauguerlange, Remi Munos, David Silver, Satinder Singh, Demis Hassabis, Karl Tuyls
- **Venue**: arXiv · Preprint
- **First published**: 2022-6-30
- **Added**: 2026-11-6
- **Updated**: 2022-6-30
- **Version**: v1
- **arXiv**: 2206.15378
- **DOI**: 10.1126/science.add4679
- **Category**: cs.AI · cs.GT · cs.MA
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2206.15378v1) · [PDF ↗](https://arxiv.org/pdf/2206.15378v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

We introduce DeepNash, an autonomous agent capable of learning to play the imperfect information game Stratego from scratch, up to a human expert level. Stratego is one of the few iconic board games that Artificial Intelligence (AI) has not yet mastered. This popular game has an enormous game tree on the order of $10^{535}$ nodes, i.e., $10^{175}$ times larger than that of Go. It has the additional complexity of requiring decision-making under imperfect information, similar to Texas hold'em poker, which has a significantly smaller game tree (on the order of $10^{164}$ nodes). Decisions in Stratego are made over a large number of discrete actions with no obvious link between action and outcome. Episodes are long, with often hundreds of moves before a player wins, and situations in Stratego can not easily be broken down into manageably-sized sub-problems as in poker. For these reasons, Stratego has been a grand challenge for the field of AI for decades, and existing AI methods barely reach an amateur level of play. DeepNash uses a game-theoretic, model-free deep reinforcement learning method, without search, that learns to master Stratego via self-play. The Regularised Nash Dynamics (R-NaD) algorithm, a key component of DeepNash, converges to an approximate Nash equilibrium, instead of 'cycling' around it, by directly modifying the underlying multi-agent learning dynamics. DeepNash beats existing state-of-the-art AI methods in Stratego and achieved a yearly (2022) and all-time top-3 rank on the Gravon games platform, competing with human expert players.

## Quote from the paper

Julien Perolat, Bart de Vylder, Daniel Hennes, Eugene Tarassov, Florian Strub, Vincent de Boer, Paul Muller, Jerome T. Connor, Neil Burch, Thomas Anthony, Stephen McAleer, Romuald Elie, Sarah H. Cen, Zhe Wang, Audrunas Gruslys, Aleksandra Malysheva, Mina Khan, Sherjil Ozair, Finbarr Timbers, Toby Pohlen et al. (2022). Mastering the Game of Stratego with Model-Free Multiagent Reinforcement Learning. arXiv:2206.15378v1. https://doi.org/10.1126/science.add4679

**BibTeX**

```
@article{perolat2022mastering,
  title = {{Mastering the Game of Stratego with Model-Free Multiagent Reinforcement Learning}},
  author = {Julien Perolat and Bart de Vylder and Daniel Hennes and Eugene Tarassov and Florian Strub and Vincent de Boer and Paul Muller and Jerome T. Connor and Neil Burch and Thomas Anthony and Stephen McAleer and Romuald Elie and Sarah H. Cen and Zhe Wang and Audrunas Gruslys and Aleksandra Malysheva and Mina Khan and Sherjil Ozair and Finbarr Timbers and Toby Pohlen and Tom Eccles and Mark Rowland and Marc Lanctot and Jean-Baptiste Lespiau and Bilal Piot and Shayegan Omidshafiei and Edward Lockhart and Laurent Sifre and Nathalie Beauguerlange and Remi Munos and David Silver and Satinder Singh and Demis Hassabis and Karl Tuyls},
  year = {2022},
  eprint = {2206.15378},
  archivePrefix = {arXiv},
  doi = {10.1126/science.add4679},
  url = {https://arxiv.org/abs/2206.15378v1}
}
```

## Related papers

- [The Surprising Effectiveness of PPO in Cooperative, Multi-Agent Games](https://refivu.com/en/papers/7c9c355e-16b7-49a8-b767-07760b1c48a4-the-surprising-effectiveness-of-ppo-in-cooperative-multi.md)
- [Asynchronous Methods for Deep Reinforcement Learning](https://refivu.com/en/papers/39f3326a-859f-4ab8-9bdb-14644a9778e1-asynchronous-methods-for-deep-reinforcement-learning.md)

## Other paper commentary

- [Quantum agents in the Gym: a variational quantum algorithm for deep Q-learning](https://refivu.com/en/papers/61131563-04fb-4585-b080-efba1e8d4a85-quantum-agents-in-the-gym-a-variational-quantum.md)
- [Variational Quantum Circuits for Deep Reinforcement Learning](https://refivu.com/en/papers/f6af79b4-b092-4c2a-8589-70b19b37fcc5-variational-quantum-circuits-for-deep-reinforcement-learning.md)
- [Reinforcement Learning via Self-Distillation](https://refivu.com/en/papers/020d237b-90b6-4f93-9da6-e25bde98d4ec-reinforcement-learning-via-self-distillation.md)
- [Soft Actor-Critic: Off-Policy Maximum Entropy Deep Reinforcement Learning with a Stochastic Actor](https://refivu.com/en/papers/ea8ec555-d426-4464-bcf3-677288c80a9c-soft-actor-critic-off-policy-maximum-entropy-deep.md)
- [Continuous control with deep reinforcement learning](https://refivu.com/en/papers/4a1a35c3-732d-4750-869f-588d477a2492-continuous-control-with-deep-reinforcement-learning.md)
- [Learning Agile Soccer Skills for a Bipedal Robot with Deep Reinforcement Learning](https://refivu.com/en/papers/3ef41329-5e9b-477a-9ece-c7d4b12b603d-learning-agile-soccer-skills-for-a-bipedal-robot.md)
- [Real-World Humanoid Locomotion with Reinforcement Learning](https://refivu.com/en/papers/8e42e14f-83b7-4879-ab8c-1bd8a7bcea8a-real-world-humanoid-locomotion-with-reinforcement-learning.md)
- [Deep Visual Attention Prediction](https://refivu.com/en/papers/f63842a2-f64a-4970-8075-0c7abdfe8be0-deep-visual-attention-prediction.md)
- [Weakly-Supervised Convolutional Neural Networks for Multimodal Image Registration](https://refivu.com/en/papers/bfc7dfd6-1596-4541-9723-c26ab0c5a3f5-weakly-supervised-convolutional-neural-networks-for.md)
- [Large Language Models Encode Clinical Knowledge](https://refivu.com/en/papers/54421651-3211-4d10-8173-bc88802e60f6-large-language-models-encode-clinical-knowledge.md)
- [MoE-LLaVA: Mixture of Experts for Large Vision-Language Models](https://refivu.com/en/papers/fb693097-da32-48e7-b5d7-5855f63c8534-moe-llava-mixture-of-experts-for-large-vision.md)

## Terms in this paper

- [Lyapunov function](https://refivu.com/en/terms/5699a7f62460-lyapunov-function)
- [Nash equilibrium](https://refivu.com/en/terms/4b0748e657e3-nash-equilibrium)
- [self-play](https://refivu.com/en/terms/731527e271bf-self-play)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/c8ba1a5f-8040-4096-92b0-d848951ca124-mastering-the-game-of-stratego-with-model-free)
