AlphaGo Zero
What happens when you give an AI nothing but the rules of Go and let it teach itself? In just 3 days, it surpasses every human and every previous AI — discovering strategies that humanity spent 2,500 years developing, then going beyond into territory no human has ever explored. This is the story of learning from first principles — and a proof that the right algorithm, given only a blank slate, can achieve superhuman mastery.
Silver, Schrittwieser et al. (2017) | DeepMind | Nature
PUCT(s, a) = Q(s,a) + c_puct * P(s,a) * sqrt(N_parent) / (1 + N(s,a))
Your Learning Path
Go is one of the oldest and most complex board games ever invented, with a history spanning over 2,500 years. On a 19x19 board, there are approximately 2.1 x 10^170 possible board positions — more than the number of atoms in the observable universe. This combinatorial explosion makes brute-force search completely impossible. Unlike chess, where Deep Blue could evaluate millions of positions per second and simply out-calculate human opponents, Go resists this approach entirely. The branching factor (~250 legal moves per turn) is so high that even the fastest computers cannot search deeply enough to play well.
But the difficulty of Go goes far beyond combinatorics. Go positions are notoriously hard to evaluate. In chess, you can count material (pieces have known values) and assess king safety with relatively simple heuristics. In Go, the value of a stone depends entirely on its context — its relationship to every other stone on the board, the overall territorial balance, and subtle concepts like “influence” and “thickness” that even professional players struggle to articulate. This is why traditional AI struggled with Go for decades after conquering chess.
Why Go is So Hard
- Branching factor: ~250 legal moves per turn (vs ~35 in chess)
- Game length: ~200 moves average (vs ~80 in chess)
- Evaluation: No simple heuristic for position quality
- Strategy: Requires both local tactics and global strategy
- Intuition: Top players rely on pattern recognition, not calculation
Before AlphaGo
- 1997: Deep Blue beats Kasparov at chess
- 2006-2015: Monte Carlo Tree Search improves Go AI to strong amateur
- 2015: Best Go programs still only at amateur level
- 2016: AlphaGo beats Lee Sedol — the watershed moment
- 2017: AlphaGo Zero — from nothing to superhuman in 3 days
Game Complexity Comparison
The question that AlphaGo Zero answers is profound: can a system learn to play Go at superhuman level without ever seeing a single human game? Can pure self-play and reinforcement learning discover strategies that took humanity millennia to develop? And if so, what does that tell us about the nature of intelligence and the value of human knowledge?
The Latin phrase “tabula rasa” means “blank slate.” AlphaGo Zero begins with absolutely no knowledge of Go beyond the rules. No expert games, no hand-crafted features, no human heuristics. Just the rules of the game and a neural network initialized with random weights. Its first moves are literally random — stones placed with no understanding of even the most basic Go concepts.
This is a deliberate and bold choice. The original AlphaGo was first trained on 160,000 expert games using supervised learning — it learned to mimic human play before being improved with reinforcement learning. AlphaGo Zero skips this entirely. Why? Because the DeepMind team hypothesized that human data, while helpful for bootstrapping, might actually be a limiting factor. Human experts have biases, blind spots, and conventions that may not be optimal. By learning from scratch, the system is free to explore the full space of possible strategies, unconstrained by human preconceptions.
What “No Human Knowledge” Really Means
- Rules of Go (legal moves, capture, ko, scoring)
- Neural network architecture (ResNet with dual heads)
- MCTS algorithm
- Training hyperparameters
- Expert game databases
- Opening theory (joseki, fuseki)
- Hand-crafted features (liberties, ladders, etc.)
- Position evaluation heuristics
The result validated this hypothesis spectacularly. AlphaGo Zero, starting from random play, surpassed the version of AlphaGo that defeated Lee Sedol after just 36 hours of training. After 72 hours, it defeated AlphaGo Master (which beat the world #1 Ke Jie) by 100 games to 0. Less human knowledge led to better performance — a counterintuitive but profound finding that challenges assumptions about the role of human expertise in AI development.
Did You Know?
The simplification of the input representation is just as remarkable as removing human games. The original AlphaGo used 48 hand-crafted feature planes including liberties, ladder status, and other expert-designed features. AlphaGo Zero uses just 17 binary planes — 8 history positions per color plus the current player indicator. Despite knowing less about Go's structure, the simpler system learned faster and played stronger. Complexity was the enemy.
The core innovation of AlphaGo Zero is its self-play training pipeline — a virtuous cycle where the system plays games against itself, uses those games as training data, and repeats. Each iteration produces a stronger player, which then generates higher-quality training data, which trains an even stronger player. This is fundamentally different from supervised learning on a fixed dataset: the training data quality improves automatically as the model improves, creating an ever-ascending spiral of capability.
Self-Play: Learning from Scratch Through Self-Competition
The system plays itself, generates training data, improves, and repeats -- each cycle producing a stronger player.
AlphaGo Zero's training is a continuous loop of four phases. The current best network plays games against itself, generating training data. A new network is trained on this data, then tested against the current best. If it wins >55% of 400 evaluation games, it becomes the new champion. Watch the cycle animate below.
Why this is different from supervised learning: In supervised learning, the training data quality is fixed -- you can only ever match human experts. In self-play, training data quality improves automatically as the model improves. A stronger player generates more nuanced games, which teach subtler lessons, which create an even stronger player. The ceiling is not human level but the theoretical optimum of the game.
The Virtuous Cycle
AlphaGo Zero starts with zero human knowledge -- no game databases, no expert moves, no hand-crafted features. Through self-play alone, it discovers Go strategies that took humanity thousands of years to develop, then invents entirely new ones that even top professionals had never seen. The training data quality improves automatically as the player improves, breaking through the ceiling that limits supervised learning on fixed human datasets.
Over 3 days, AlphaGo Zero generated approximately 4.9 million self-play games, each producing hundreds of training positions. At each position, the system stores a triple: the board state s, the MCTS search probabilities pi (the full distribution over moves, not just the best move — a much richer signal), and the eventual game outcome z (+1 for win, -1 for loss). This creates roughly 1 billion training examples — far more diverse and comprehensive than any human game database could ever be.
Self-Play Generation
The current best network plays complete games against itself using MCTS with 1,600 simulations per move. Temperature-based exploration in the first 30 moves ensures diverse openings. Each game takes about 2 seconds and produces ~200 training positions.
Network Training
A new network is trained on the last 500,000 games of self-play data. Mini-batches of 2,048 positions are sampled uniformly and used to update the network via SGD with momentum (0.9). The learning rate is annealed from 0.01 during training.
Evaluation Gate
The new network plays 400 games against the current best. If it wins more than 55% of games, it replaces the current best and becomes the new self-play agent. This gating mechanism prevents regression — the system never gets worse.
Why Self-Play Creates a Virtuous Cycle
Consider what happens in supervised learning on expert games: the data quality is fixed. No matter how long you train, the best you can do is match human experts. In self-play, the training signal improves as the player improves. A stronger player generates more nuanced games, which contain subtler lessons, which train an even stronger player. The ceiling is not human-level play but the theoretical optimum of the game itself. This is why AlphaGo Zero blows past human-level performance rather than merely matching it.
Monte Carlo Tree Search (MCTS) is the decision engine that makes AlphaGo Zero's moves. Imagine you are playing Go and you want to decide your next move. You cannot check every possible future — there are more possibilities than atoms in the universe. Instead, you imagine a few promising paths forward, check where they lead, and pick the one that looks best. That is exactly what MCTS does, but it does it 1,600 times per move, guided by a neural network that tells it which paths are worth imagining. Think of the neural network as a “fast intuition” (it instantly guesses which moves look good) and MCTS as “slow deliberation” (it carefully works out the consequences).
Monte Carlo Tree Search: How AlphaGo Zero “Thinks”
Each move requires 1,600 simulations. Each simulation follows these 4 steps to build a mental map of future possibilities.
1. Select
Starting from the root (current board position), walk down the tree picking the child with the highest PUCT score at each step. This is like choosing which path to imagine first.
Imagine you are at a crossroads. You pick the path that seems most promising based on what you know so far (exploitation) and what you have not yet explored (exploration).
Try dragging the c_puct slider. Low values favor exploitation (picking the move with the best known value Q). High values favor exploration (trying less-visited moves that the neural network thinks are promising).
Why This Works So Well
The neural network provides fast intuition (System 1 thinking) -- it sees a position and instantly guesses which moves are good and who is winning. MCTS provides slow deliberation(System 2 thinking) -- it carefully explores consequences. Together, they are far stronger than either alone: the raw network plays at ~Elo 3000, but with MCTS it reaches Elo 5185 -- a ~2000 point boost.
Each simulation starts at the root (current position) and walks down the tree by selecting actions using the PUCT formula. When it reaches a leaf node (a position not yet expanded), the neural network evaluates that position, producing both a value estimate v and a policy prior p. The leaf is expanded, and the value is propagated back up the tree, updating the average value Q and visit count N at every node along the path. After 1,600 simulations, the move with the most visits is selected — not the highest value, because visit count is a more reliable measure of a move's quality (it naturally integrates uncertainty).
Why MCTS + Neural Networks?
Traditional MCTS used random rollouts — playing randomly to the end of the game to estimate who wins from a position. This was slow and noisy: thousands of random games gave only a rough estimate. AlphaGo Zero replaces rollouts with a single neural network evaluation — one forward pass gives a value estimate more accurate than thousands of random playouts. This is both dramatically faster and more informative.
The Amplification Effect
MCTS amplifies the neural network's playing strength enormously. The raw network plays at roughly Elo 3000 (strong amateur), but MCTS with 1,600 simulations boosts this to Elo 5185 (far beyond any human). The search corrects the network's mistakes and discovers deeper tactical sequences that the network alone would miss. This ~2000 Elo boost from search alone is one of the paper's most striking findings.
AlphaGo Zero uses a single neural network that serves two roles simultaneously — like a chess expert who can both suggest good moves and tell you who is winning. The policy head answers “what should I play?” — it produces a probability distribution over all 362 possible actions (361 board positions + pass). The value head answers “who is winning?” — it outputs a single number between -1 (certain loss) and +1 (certain win). Both heads share a common backbone: a residual network (ResNet) with 40 blocks and 256 channels. This shared representation is more efficient and more effective than having two separate networks, because features useful for predicting good moves are often useful for evaluating positions too.
Unified Policy-Value Network Architecture
One network, two jobs: predict which moves are good (policy) and who is winning (value).
Unlike the original AlphaGo which used separate policy and value networks, AlphaGo Zero uses a single unified network with a shared trunk and two output heads. This is more efficient and allows the representations to be shared.
Why a Unified Network?
Having policy and value share a backbone means the network builds a single rich representation of the board. Features useful for predicting good moves are often useful for evaluating positions too. The shared computation is also 2x more efficient than running two separate networks.
The network takes a 19 x 19 x 17 tensor as input: 8 binary planes for black stone positions (current + 7 history steps), 8 for white stone positions, and 1 plane indicating the color to play. The history allows the network to detect ko (a rule that prevents immediate recapture) and understand temporal patterns in play — like whether an opponent is building momentum in a particular direction. This minimalist representation is one of the paper's key innovations: the original AlphaGo used 48 hand-crafted feature planes encoding expert knowledge about liberties, ladder status, and other Go concepts. AlphaGo Zero discovers all of these concepts and more from the raw stone positions alone.
Architecture Details
Did You Know?
The choice of 40 residual blocks was carefully validated through ablation. The paper tested both 20-block and 40-block architectures: the deeper network consistently outperformed the shallower one, reaching higher Elo more quickly. However, increasing beyond 40 blocks showed diminishing returns — suggesting that 40 blocks are roughly sufficient to capture the full complexity of Go positions on a 19x19 board.
The training loss simultaneously optimizes three objectives in an elegantly unified framework. The value loss teaches the network to predict game outcomes — did this position ultimately lead to a win or a loss? The policy loss teaches it to match MCTS search probabilities — not the single “best” move, but the full distribution that MCTS discovered through 1,600 simulations. And L2 regularization prevents overfitting to the training data.
Training Objective: What the Network Learns
Three loss terms work together to train a single network that can both predict good moves and evaluate positions.
The training loss is a sum of three terms. Think of it as simultaneously teaching the network three skills: (1) predict who will win, (2) predict what a strong search would recommend, and (3) keep the weights small to prevent memorization.
z = actual game outcome (+1 win, -1 loss). v = network's prediction. MSE pushes the network to accurately predict who will win from any position.
pi = MCTS search distribution (1,600 sims). p = network's move prediction. Cross-entropy teaches the network to mimic the search's wisdom.
L2 penalty with c = 10^-4. Prevents the network from memorizing specific training positions instead of learning general Go principles.
The key insight: The policy target is not a single “best move” but the full probability distribution from MCTS. This is like learning from a teacher who shows their entire thought process -- which moves they considered, how much weight they gave each -- not just their final answer. This distribution-to-distribution training makes learning vastly more efficient.
The Virtuous Cycle of Policy Improvement
MCTS with 1,600 simulations always produces a better policy than the raw network. By training the network to match this improved policy, each iteration starts from a stronger baseline. The stronger network makes MCTS even better, which generates even better training targets. This monotonic improvement is guaranteed by the policy improvement theorem and is why self-play never gets stuck.
A subtle but crucial detail: the policy target is not a single best move but the full MCTS search distribution pi. This is a much richer training signal because it encodes information about all considered moves and their relative strengths. It is like learning from a teacher who shows their entire thought process — which moves they considered, how much weight they gave each one, and which alternatives they explored — not just their final answer. This distribution-to-distribution training is what makes the learning so efficient.
Policy Improvement Theorem
MCTS with the current network always produces a policy at least as strong as the raw network. By training the network to match this improved policy, the next iteration starts from a stronger baseline — guaranteeing monotonic improvement. This is the theoretical foundation of the self-play training loop: each cycle makes the network at least as strong as it was before.
Training Details
SGD with momentum (0.9), learning rate annealed from 0.01, mini-batch size 2,048, sampled uniformly from the last 500,000 games. L2 regularization coefficient c = 10^-4. The policy and value losses are weighted equally (both normalized to similar scales). Training runs on 4 TPUs for approximately 3 days.
The heart of MCTS is the PUCT (Polynomial Upper Confidence Trees)formula that decides which branch to explore next. Imagine you are choosing restaurants for dinner. Exploitation means going to your favorite restaurant — the one you know is great. Exploration means trying that new place everyone is talking about — it might be amazing, but you are not sure yet. PUCT balances these two impulses mathematically. Too much exploitation and you never discover better options; too much exploration and you waste time on bad choices. The formula automatically shifts from exploration to exploitation as more simulations provide better information.
The formula is elegant in how it manages uncertainty over time. Early in the search (when visit counts are low), the exploration term dominates and the tree expands according to the neural network's prior — the network's “first instinct” about which moves look promising. As simulations accumulate, the exploitation term (empirical value Q) grows more reliable and takes over, potentially overriding the network's prior if the search discovers that a move the network thought was bad is actually good (or vice versa). This is analogous to Daniel Kahneman's System 1 (fast, intuitive) and System 2 (slow, deliberate) thinking — the neural network provides the fast intuition, MCTS provides the slow deliberation.
Q(s,a): Exploitation
The mean value of all simulations that passed through action a from state s. Initially 0 for unvisited nodes, it converges to the true value as more simulations accumulate. High Q means the move has historically led to good outcomes in the search.
U(s,a): Exploration
The exploration bonus decreases as N(s,a) grows — well-explored moves get less bonus. It increases with the neural network prior P(s,a) — moves the network considers promising get more exploration even before being visited. The c_puct constant (~1.5) controls the overall exploration level.
Perhaps the most fascinating aspect of AlphaGo Zero is what it learned. Starting from completely random play, it independently rediscovered Go concepts that humanity developed over thousands of years — and then went beyond, finding strategies that professional players had never considered. This is not just an AI achievement; it is a window into the structure of Go itself.
Knowledge Discovery: What AlphaGo Zero Learned
Starting from random moves, it rediscovered centuries of human Go wisdom in hours -- then went beyond into unexplored territory.
AlphaGo Zero independently discovered standard joseki (corner opening patterns) that humans developed over centuries. It progressed through historically significant openings, briefly using each before moving on to more sophisticated patterns.
Beyond Human Knowledge
AlphaGo Zero proves that superhuman performance can be achieved without any human data or feature engineering. By learning from first principles through self-play, it discovered strategies that 2,500 years of human play never found — and demonstrated that human knowledge can be a constraint, not just a benefit.
AlphaGo Zero passed through recognizable phases of Go knowledge during training. Within the first few hours, it discovered basic tactics like ladders, nets, and simple capture sequences. Within a day, it reinvented standard openings (joseki) and life-and-death patterns that took human players centuries to develop. By the end of training, it had moved beyond human understanding, developing novel opening strategies and endgame techniques that professional players struggled to comprehend — and yet these strategies proved demonstrably superior when tested in games.
Human Bias as a Limitation
The original AlphaGo, trained on human games, inherited human biases. It learned conventional openings that experts had agreed upon for centuries but never questioned whether they were optimal. AlphaGo Zero, free from these biases, discovered that some long-accepted human strategies are suboptimal — a humbling lesson for the Go community. Professional players have since studied AlphaGo Zero's games and incorporated its novel strategies into human play, leading to a renaissance in Go theory.
Did You Know?
AlphaGo Zero's training curve shows it rediscovering specific human joseki (opening patterns) at particular Elo ratings that correspond roughly to when those patterns were historically developed by human players. The system essentially compressed thousands of years of human Go evolution into 72 hours of computation, then continued into unexplored territory.
AlphaGo Zero is part of a remarkable lineage of increasingly powerful and general game-playing agents. Each version simplified the algorithm while improving performance — a rare and beautiful achievement in AI research where complexity usually increases with capability. The progression from AlphaGo Fan to AlphaZero demonstrates that simplicity and generalityare not obstacles to performance but enablers of it.
From AlphaGo to AlphaZero: Evolution of the Algorithm
Each version removed complexity while getting stronger -- the hallmark of genuine understanding.
The AlphaGo lineage shows a clear trend: less human knowledge, more self-play, better performance. Each version removed dependencies on human data while getting dramatically stronger. Notice how the architecture simplifies while the Elo increases.
AlphaGo Fan (2015)
Elo: 3144AlphaGo Lee (2016)
Elo: 3739AlphaGo Master (2017)
Elo: 4858AlphaGo Zero (2017)
Elo: 5185The paradox: AlphaGo Fan used 176 GPUs, 160K expert games, and 48 hand-crafted features to reach Elo 3144. AlphaGo Zero used 4 TPUs, zero expert games, and 17 raw feature planes to reach Elo 5185. Less knowledge, less compute, vastly better results.
The General Recipe
AlphaGo Zero established a powerful template: neural network + tree search + self-play. This recipe scales to multiple games and potentially to other domains. The descendants -- MuZero (learned world models), AlphaTensor (matrix multiplication), AlphaFold (protein folding) -- show how this idea keeps producing breakthroughs when applied to new problems.
The ablation studies in the paper are particularly illuminating. Removing any major component — the dual-head architecture, residual connections, or MCTS — significantly degrades performance. The most dramatic finding: the raw neural network (without MCTS) plays at roughly Elo 3000, while adding MCTS boosts it to over 5000. That is a ~2000 Elo improvement from search alone — roughly the difference between a strong amateur and a world-class professional. MCTS is not a minor enhancement; it is a fundamental capability multiplier.
The Simplification Trajectory
AlphaGo Fan (2015): supervised learning + RL + rollouts + value network + 48 features. AlphaGo Lee (2016): same but larger and tuned. AlphaGo Master (2017): smaller, faster, stronger. AlphaGo Zero (2017): no human data, no rollouts, dual-head network, 17 features. AlphaZero (2018): same algorithm for Go, chess, and shogi with no game-specific tuning. Each version removed complexity while improving results — the hallmark of genuine understanding.
AlphaGo Zero's impact extends far beyond the game of Go. It demonstrated that self-play reinforcement learning can discover superhuman strategies without any human knowledge, challenging the deep assumption that human expertise is necessary for training AI systems. But understanding its limitations is equally important — the approach has specific requirements that do not apply to all problems.
Broader Impact
- Protein folding: AlphaFold uses similar learning-from-physics principles
- Mathematics: AlphaTensor found faster matrix multiplication algorithms
- Code generation: AlphaCode uses search + neural networks for programming
- Science: Self-play ideas applied to materials discovery and drug design
- Chip design: AlphaChip uses RL for hardware layout optimization
Limitations
- Perfect information required: Does not work for games with hidden info (poker)
- Known rules needed: Requires a perfect simulator/environment
- Compute intensive: 4 TPUs for 3 days, millions of self-play games
- Single-agent: Does not directly apply to multi-agent cooperation
- Discrete actions: Designed for turn-based games, not continuous control
Open Questions
- Can self-play work in continuous action spaces?
- How to apply to imperfect information games?
- Can the approach scale to open-ended environments?
- Is self-play sufficient for general intelligence?
- How to handle environments with stochastic transitions?
Key Takeaways
- Human knowledge can be a constraint, not just a benefit
- Search + learning is more powerful than either alone
- Self-play creates an ever-improving training signal
- Simplicity and generality beat complex engineering
- The right algorithm can compress millennia of knowledge into days
AlphaGo Zero's legacy is multifaceted. On the technical level, it established self-play reinforcement learning with neural network guided MCTS as a general-purpose algorithm for sequential decision-making. On the philosophical level, it raised profound questions about the relationship between human knowledge and machine intelligence. Can AI systems discover truths that humans have missed? Is human expertise always helpful, or can it sometimes be a constraint?
The most direct successor, AlphaZero (2018), proved the algorithm's generality by achieving superhuman play in Go, chess, and shogi with the same algorithm and minimal game-specific modifications. It defeated Stockfish in chess after just 4 hours of training, Elmo in shogi after 2 hours, and previous AlphaGo versions in Go after 3 days. The chess games were particularly striking: AlphaZero developed a strikingly “human-like” aggressive, intuitive playing style that chess grandmasters found beautiful and instructive.
Beyond games, the self-play paradigm has inspired approaches across science and engineering. MuZero (2020) extended the approach to environments where the rules are not known, learning a world model alongside the policy and value functions. AlphaFold applied related principles to protein structure prediction — arguably the most impactful application of AI to science in the 2020s. The core insight — that systems can exceed human performance by learning from self-generated experience rather than human-curated data — continues to influence how researchers approach difficult problems.
Direct Descendants
Broader Influence
The Deepest Lesson
AlphaGo Zero's deepest contribution is not any specific algorithm but a proof of principle: systems that learn from first principles, without human prior knowledge, can discover strategies and insights that surpass the accumulated wisdom of human civilization. This challenges us to rethink when human expertise is truly necessary and when it might be better to let the algorithm find its own path. The answer, increasingly, is that the best results come from combining the two — using human insight to define the right problem and the right algorithm, then letting the system discover the solution on its own.
AlphaGo Zero Quiz
Question 1 of 10What is unique about AlphaGo Zero compared to the original AlphaGo?
Mastering Go from First Principles
AlphaGo Zero demonstrated that superhuman performance can emerge from pure self-play, without any human knowledge. By combining neural network intuition with tree search deliberation, it discovered strategies that millennia of human expertise had never found — then generalized the approach to chess, shogi, and beyond, fundamentally changing how we think about machine intelligence and the value of learning from scratch.