Teaching Deep Convolutional Neural Networks to Play Go

Christopher Clark, Amos Storkey

This 2015 paper from the University of Edinburgh represents a pivotal moment in the history of AI and board games. Before AlphaGo became a household name, researchers were exploring whether Deep Convolutional Neural Networks (DCNNs) could move beyond simple image recognition to master the "intuition" required for the ancient game of Go.

TL;DR

The authors demonstrate that deep learning can achieve state-of-the-art move prediction in Go by mimicking expert human play. By introducing novel techniques like "weight tying" to hard-code board symmetries, they created a network that plays at a high amateur level (approx. 4-5 kyu) using pure pattern recognition—zero look-ahead required.

What Problem Does This Paper Address?

For decades, Go was the "holy grail" of AI board games. Unlike Chess, where a computer can use relatively simple heuristics to evaluate a position, Go has a massive branching factor (roughly 361 possible moves per turn compared to 50 in Chess) and no easy way to calculate who is winning.

Traditional Go programs relied on Monte Carlo Tree Search (MCTS), which simulates thousands of random "playouts" to estimate move quality. However, human experts don't simulate millions of positions; they use pattern recognition to "see" the best moves. This paper asks: Can we skip the brute-force simulations and train a neural network to directly predict the moves an expert would make?

Methods

The researchers trained an 8-layer DCNN to take a 19x19 board state as input and output a probability distribution over all possible moves. Key technical innovations include:

  • Symmetry Weight Tying: In Go, a position is functionally identical if it is rotated or reflected. Instead of just augmenting the data, the authors "hard-coded" these symmetries into the network by tying weights together. This reduced the number of parameters by eightfold and forced the filters to learn symmetric features.
  • Edge Encoding: Standard CNN padding makes the board appear surrounded by empty space. The authors added a dedicated "edge channel" to help the network distinguish between an empty grid point and the board's boundary.
  • Liberties and Ko Encoding: Beyond just stone positions, the input included channels for "liberties" (empty adjacent spaces) and "ko" constraints (rules preventing infinite loops), providing the network with essential tactical context.
  • Masked Training: The network was trained to ignore illegal moves during the learning process, simplifying the function it had to learn.
Visualization of weights with and without symmetry enforcement.

Datasets

The study utilized two massive datasets, totaling roughly 16.5 million position-move pairs each:

  1. GoGoD: 81,000 professional games, typically played with long time controls.
  2. KGS: 86,000 games from high-ranked players on the KGS Go server, often featuring faster "blitz" play.

Key Insights and Ideas

  • Intuition is Learnable: The network achieved high accuracy without ever "thinking ahead." This suggests that a significant portion of expert Go skill is grounded in sophisticated pattern recognition rather than just deep calculation.
  • Symmetry is a Powerful Prior: The ablation study showed that enforcing reflectional symmetry was the single most effective optimization, boosting accuracy by nearly 2%.
  • Generalization over Memorization: By choosing not to include the previous move as input, the authors forced the network to evaluate the board state holistically. This prevented the model from relying on simple "play near the last move" heuristics, leading to better performance as a standalone player.
Example of capturing pieces, a fundamental pattern the network must learn.

Key Results

  • Move Prediction Accuracy: The final model achieved 41.1% accuracy on the GoGoD dataset and 44.4% on the KGS dataset, significantly outperforming previous state-of-the-art methods (which hovered around 34-37%).
  • Playing Strength: Despite having no search capabilities, the DCNN consistently defeated GNU Go (a popular open-source engine).
  • Beating MCTS: The network managed to win 12-14% of its games against Fuego, a state-of-the-art MCTS engine, while using only a fraction of the computation time. This established the DCNN as the strongest "zero-step look ahead" player of its time.

Limitations and Future Work

The authors noted a few key hurdles:

  • The "Pass" Problem: The network was not trained to "pass" its turn. In the endgame, this led to "suicidal" moves where the network would fill in its own territory because it didn't know the game should be over.
  • Lack of Search: While the "intuition" was strong, the lack of a look-ahead mechanism meant the network could still fall for deep tactical traps that a human or MCTS engine would easily spot.
  • Integration: The authors correctly predicted that the next logical step was to integrate these DCNNs into an MCTS framework to provide high-quality "priors" for the search—a strategy that would later be perfected by DeepMind's AlphaGo.

Summary updated

Abstract

Mastering the game of Go has remained a long standing challenge to the field of AI. Modern computer Go systems rely on processing millions of possible future positions to play well, but intuitively a stronger and more 'humanlike' way to play the game would be to rely on pattern recognition abilities rather then brute force computation. Following this sentiment, we train deep convolutional neural networks to play Go by training them to predict the moves made by expert Go players. To solve this problem we introduce a number of novel techniques, including a method of tying weights in the network to 'hard code' symmetries that are expect to exist in the target function, and demonstrate in an ablation study they considerably improve performance. Our final networks are able to achieve move prediction accuracies of 41.1% and 44.4% on two different Go datasets, surpassing previous state of the art on this task by significant margins. Additionally, while previous move prediction programs have not yielded strong Go playing programs, we show that the networks trained in this work acquired high levels of skill. Our convolutional neural networks can consistently defeat the well known Go program GNU Go, indicating it is state of the art among programs that do not use Monte Carlo Tree Search. It is also able to win some games against state of the art Go playing program Fuego while using a fraction of the play time. This success at playing Go indicates high level principles of the game were learned.
BibTeX
@misc{clark2014teaching,
  author = {Christopher Clark and Amos Storkey},
  title = {{Teaching Deep Convolutional Neural Networks to Play Go}},
  year = {2014},
  eprint = {1412.3409},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1412.3409},
}
Figure