Introduction
Deep reinforcement learning (RL) agents like AlphaZero achieve world-class performance in complex board games, yet they are often treated as "black boxes." While we know these models win, it remains unclear why they make certain decisions or if they are "right for the right reasons." A major concern in AI is that high task performance can mask fundamental flaws in understanding; for instance, AlphaZero has historically struggled with specific concepts like "ladders" in Go despite its overall dominance.
This paper bridges the gap between performance and interpretability by investigating AlphaZero's internal representations in the game of Hex. Specifically, it asks: Does AlphaZero learn identifiable human game concepts? When during training are these concepts learned? And where in the neural network's layers are they stored?
Methodology: Adapting NLP Techniques for RL
To peek inside AlphaZero's "brain," the researchers adapted evaluation techniques traditionally used in Natural Language Processing (NLP):
- Representational Probing: Simple linear classifiers (probes) were trained on the internal activations of AlphaZero’s neural network. If a probe can accurately predict the presence of a specific board concept based solely on the network's internal state, it suggests the network has encoded that concept.
- Behavioral Tests: Because probing only shows that information is present, the researchers created "challenge sets"—synthetic board positions where a specific concept is required to win. If the agent makes the correct move in these forced scenarios, it demonstrates an actionable understanding of the concept.
- Structural Probing: The team analyzed first-layer embeddings to determine if the model implicitly learns the hexagonal geometry of the board (i.e., which cells are neighbors) despite receiving the board state as a flattened 1D vector.
Datasets and Concept Taxonomy
The study evaluated a top-performing AlphaZero model trained on 9x9 Hex. The probing dataset consisted of 2,500 board configurations per concept, featuring minimal templates mixed with random "noise" pieces. The behavioral dataset included 100 tailored board positions per concept to test forced-win navigation.
The researchers tracked nine specific Hex concepts, categorized into:
- Positive Concepts: Tactical advantages like bridges, crescents, trapezoids, and spans.
- Ladder Concepts: Bottlenecks and escapes.
- Negative Concepts: Dead or captured cells that offer no strategic value.
Key Insights
MCTS is the "Teacher"
One of the most striking findings is the relationship between Monte Carlo Tree Search (MCTS) and the neural network. Improvements in behavioral tests (driven by MCTS) occur before improvements in probing accuracy. This suggests that MCTS acts as a "scout," discovering strategic concepts first. The neural network then eventually "distills" or absorbs this knowledge into its weights later in the training process.
Layer Specialization by Time Horizon
The model organizes information based on the "time horizon" of the strategy. Concepts related to short-term, end-game planning are most clearly represented in the final layers of the network, closest to the output. Conversely, long-term strategic concepts are best represented in the middle layers.
Implicit Geometry
Despite being fed a flat list of cells, AlphaZero’s first layer successfully learns to reconstruct the 2D neighborhood structure of the hexagonal grid. It independently deduces the board's shape and spatial relationships.
The Blind Spot for "Useless" Moves
AlphaZero proved significantly worse at recognizing "negative concepts," such as dead or captured cells.
Because playing a piece in a dead cell doesn't technically change the game's ultimate outcome (it is merely a wasted move), the reward signal isn't strong enough to teach the model to avoid them as strictly as a human expert would.
Results and Limitations
Overall, AlphaZero successfully encodes both short-term and long-term concepts with high selectivity scores, indicating that its internal representations are meaningful and not just random patterns. By roughly 60% through training, the model's "pre-conceptual" information coalesces into an actionable understanding of basic tactics. While behavioral tests show early progress, both probing and behavior eventually converge near the end of training, reflecting a matured, unified strategy.
Limitations and Future Work: * Correlation vs. Causation: While probing shows a concept is represented, it doesn't strictly prove a causal link (e.g., "The model made this move because it recognized a bridge"). Future work could involve causal interventions—manually altering internal activations to observe changes in the model's behavior. * Human-Centric Bias: The study relies on concepts defined by human Hex experts. AlphaZero may utilize "alien" concepts unrecognizable to humans, which these specific probes would miss. * Generalization: While these findings align with concurrent studies in Chess and Go, further research is needed to determine if these layer-wise and MCTS-first patterns hold true across all types of reinforcement learning environments.
Summary updated