Modeling Strong and Human-Like Gameplay with KL-Regularized Search

Athul Paul Jacob, David J. Wu, Gabriele Farina, Adam Lerer, Anton Bakhtin, Jacob Andreas, Noam Brown

Abstract

We consider the task of building strong but human-like policies in multi-agent decision-making problems, given examples of human behavior. Imitation learning is effective at predicting human actions but may not match the strength of expert humans, while self-play learning and search techniques (e.g. AlphaZero) lead to strong performance but may produce policies that are difficult for humans to understand and coordinate with. We show in chess and Go that regularizing search based on the KL divergence from an imitation-learned policy results in higher human prediction accuracy and stronger performance than imitation learning alone. We then introduce a novel regret minimization algorithm that is regularized based on the KL divergence from an imitation-learned policy, and show that using this algorithm for search in no-press Diplomacy yields a policy that matches the human prediction accuracy of imitation learning while being substantially stronger.

Introduction

A persistent challenge in game-playing AI is the trade-off between strategic strength and human-likeness. Imitation learning (IL) produces agents that mimic human style but often lack the deep calculation required for expert performance. Conversely, superhuman agents trained via self-play and search often adopt "alien" strategies that are difficult for humans to interpret or coordinate with. This paper addresses this gap by introducing KL-regularized search, which anchors deep search algorithms to human-imitation policies.

Methodology

The core idea is to augment search algorithms with a penalty for deviating from a human-imitation "anchor" policy, using Kullback-Leibler (KL) divergence as the regularization metric.

Perfect-Information Games

In Chess and Go, the authors utilize Monte Carlo Tree Search (MCTS). They demonstrate that MCTS with a policy prior is mathematically an approximate form of KL-regularized search. By tuning the exploration parameter ($c_{puct}$), the search can be biased toward human-like moves. For Chess, the Maia models (trained on Lichess data) serve as anchors; for Go, the GoGoD professional dataset is used.

Imperfect-Information and Cooperative Games

For games with simultaneous moves and hidden information like Diplomacy, the authors introduce piKL-hedge, a novel regret minimization algorithm that incorporates a KL-penalty relative to the human anchor. For the cooperative game Hanabi, they adapt this into piKL-SPARTA.

Results and Discussion

Experimental results across Chess, Go, Diplomacy, and Hanabi demonstrate that regularized search consistently improves both strategic strength and human prediction accuracy.

Figure 3: Win rate vs. raw model and Top-1 accuracy difference. The plot illustrates the Pareto-like trade-off between strength and human-likeness, showing a "sweet spot" where both metrics are improved.

As shown in Figure 3, regularizing search allows agents to achieve significantly higher win rates (often >90%) compared to their raw imitation counterparts while maintaining or even increasing their accuracy in predicting human moves. This suggests that expert humans perform an internal search process that pure IL models fail to capture.

Table 1: Human prediction accuracy (Top-1) and strength comparisons for Chess and Go. Blue shading indicates improvement over the raw model, while red indicates a decrease.

Table 1 details these improvements. In Chess, MCTS on top of the Maia1900 model increased Top-1 accuracy from 53.2% to 54.3%. Similar gains were observed in Go, where the regularized model outperformed previous state-of-the-art imitation models. In Diplomacy, the piKL-hedge agent matched human prediction accuracy while being 1.4x stronger than the IL anchor.

Conclusion

KL-regularized search provides a principled framework for developing agents that are both strong and human-like. By explicitly modeling the search process inherent in expert human play, these agents become better predictors of human behavior and more effective partners in multi-agent environments. This approach has significant implications for human-AI cooperation and the development of more interpretable AI systems.

Summary updated

Abstract

We consider the task of building strong but human-like policies in multi-agent decision-making problems, given examples of human behavior. Imitation learning is effective at predicting human actions but may not match the strength of expert humans, while self-play learning and search techniques (e.g. AlphaZero) lead to strong performance but may produce policies that are difficult for humans to understand and coordinate with. We show in chess and Go that regularizing search based on the KL divergence from an imitation-learned policy results in higher human prediction accuracy and stronger performance than imitation learning alone. We then introduce a novel regret minimization algorithm that is regularized based on the KL divergence from an imitation-learned policy, and show that using this algorithm for search in no-press Diplomacy yields a policy that matches the human prediction accuracy of imitation learning while being substantially stronger.
BibTeX
@inproceedings{jacob2022modeling,
  author = {Athul Paul Jacob and David J. Wu and Gabriele Farina and Adam Lerer and Anton Bakhtin and Jacob Andreas and Noam Brown},
  title = {{Modeling Strong and Human-Like Gameplay with KL-Regularized Search}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=ZYE1tx8Hqu},
}
Figure