Interpreting Emergent Planning in Model-Free Reinforcement LearningInterpreting Emergent Planning in Model-Free Reinforcement Learning
The authors analyze DRC on Sokoban: Layer 3 Agent-Shortcut intervention success rate is 98.8% (Table 1).
- Decision-time planning usually relies on an explicit world model. DRC lacks such a model, yet behaves as if planning on Sokoban, and extra test-time computation also improves performance. The authors aim to determine whether this is internal planning or planning-like behavior caused by other mechanisms.
- The authors hypothesize that DRC uses grid concepts CA and CB to encode the direction of future steps onto cells and pushes of boxes away. Linear probes read these classes from each layer's cell state, then observe how the full set of arrows forms, is evaluated, and is modified across ticks. Finally, probe class vectors are added back to activations to force the agent to take longer suboptimal routes.
- The authors state that cell state probes exceed the observation baseline. In Table 1, Layer 3 trained-probe Agent-Shortcut success rate is 98.8%, and Box-Shortcut is 80.6%. The authors state that the internal plan resembles parallel bidirectional search and co-occurs with the benefit of extra test-time computation.
- The authors say planning in general environments remains unanswered and plan to extend to other agents, environments, and training factors such as architecture and dynamics. The main experimental subject is DRC(3,3) on Sokoban, with appendices also covering DRC(1,9), DRC(9,1), ResNet, and Mini PacMan.
- Evaluated models
- DRC (Deep Repeated ConvLSTM)DRC(1,9)DRC(9,1)ResNetDRC agent (Mini PacMan)
- Benchmarks
- SokobanBoxobanAgent-ShortcutBox-ShortcutCutoffMini PacMan
- Metrics
- macro F1success ratepercentage of levels solved
The paper provides mechanistic interpretability evidence showing that model-free reinforcement learning agents can learn to plan. The authors apply concept-based interpretability methods to DRC, a general model-free agent in Sokoban (proposed by Guez et al. 2019), first using probes to find planning-related concepts, then analyzing the formation of plans in the agent's representations, and verifying through interventions that these plans have a causal effect on action selection. The study shows that the emergence of these plans coincides with a planning-like property, namely that the agent can benefit from additional test-time compute. After a qualitative analysis of the planning algorithm the agent learns, the authors find it is highly similar to parallel bidirectional search, and point out that this helps understand the trend of LLMs acquiring planning and reasoning abilities through reinforcement learning.
Paper analysis
What problem does this paper attempt to solve?
The authors aim to distinguish whether DRC's planning-like behavior comes from internal decision-time planning.
Can reinforcement learning agents without an explicit world model plan internally at decision time, rather than merely exhibiting planning-like behavior?
- Setting: The authors define decision-time planning as selecting current actions by predicting and evaluating the consequences of future actions. Traditionally this is associated with agents with explicit world models like MuZero.
- Behavioral evidence is insufficient: Guez et al. (2019)'s Deep Repeated ConvLSTM (DRC) has no explicit world model but behaves like it plans at decision time in Sokoban, and extra test-time computation improves performance (Guez et al., 2019; Taufeeque et al., 2024). The authors argue this cannot distinguish internal planning from other mechanisms producing planning-like behavior.
- Operational definition: A plan is a sequence of potential future actions. Planning requires (i) forming a plan, (ii) evaluating the plan by predicted consequences, and (iii) actions being influenced by these plans. This relaxes the requirement of an explicit world model but still requires the agent to predict consequences of future actions.
- This paper's approach: For a DRC playing Sokoban, they use concept probing, plan formation checks, and activation interventions to see whether it uses learned concepts to predict long-term environmental effects of actions and selects actions accordingly. The authors call this the first non-behavioral evidence of internal planning in a model-free agent.
What related research exists?
The authors place this paper at the intersection of model-free planning and concept interpretability.
The introduction and Section 8 discuss related work in four groups. Differences are written only where the paper explicitly names a comparison.
Decision-time planning
- MuZero (Schrittwieser et al., 2020), VPN, IBP, I2A, MCTSNet, Thinker: search or imagine over an explicit world model to select actions with better long-term consequences.
- Guez et al. (2019)'s DRC: model-free ConvLSTM with multiple internal ticks per step, showing planning-like behavior on Sokoban.
- Taufeeque et al. (2024) report that extra test-time computation improves DRC performance. The authors relay Chung et al. (2024b), stating that DRC exceeds MuZero on Sokoban.
Concept interpretability
- Kim et al. (2018) use concept activation vectors; Alain & Bengio (2016) use linear probes to check whether intermediate layers linearly represent concepts.
- Game and language model work includes Schut et al. (2023), McGrath et al. (2022), and probing of world representations by Li, Nanda, Karvonen, Ivanitskiy, et al. The paper here is a survey and does not compare this paper piece by piece.
- Jenner et al. (2024) find look-ahead in chess networks. The paper notes that this work does not examine broader planning capabilities.
Other explanation routes
- Attribution methods use saliency to see which features in observations affect behavior (Weitkamp, Iyer, Puri, Greydanus, Hilton, et al.). The authors state these can rely on subjective interpretation (Atrey et al., 2020), so this paper does not use them.
- Example methods explain behavior with trajectories or transitions (Rupprecht, Sequeira, Deshmukh, Zahavy, et al.). The authors state these do not look inside the model and are unsuitable for this paper.
Emergent reasoning
- Wei et al. (2022), Kojima et al. (2022), Lehnert et al. (2024), Nye et al. (2021), Wang et al. (2024) mainly provide behavioral evidence of reasoning.
- Brinkmann et al. (2024) reverse-engineer a symbolic multi-step reasoning transformer. The authors state its reasoning form is simpler than this paper's planning. The introduction juxtaposes DRC's evaluation and modification of plans with DeepSeek-R1 (Guo et al., 2025)'s self-correction, but does not run that model.
Baselines and data
- Probe baselines input raw observations xt; intervention baselines use randomly initialized probe vectors. Levels come from Boxoban (Guez et al., 2018a), plus hand-made Agent-Shortcut, Box-Shortcut, and Cutoff levels.
The authors position this paper as: using concept representations to judge whether an agent has planning, rather than only asking whether the network represents a concept, and state that it provides non-behavioral evidence of model-free planning.
How does the paper address this problem?
Read plans with linear probes on CA and CB, then add class vectors back to the cell state for intervention.
The authors use concept interpretability in three steps: probe planning-related concepts, see how plans form in the representation, then intervene to confirm that plans have a causal effect on behavior.
Environment, Agent, and Planning Definition
- Sokoban: turn-based, fully observable, deterministic. 8×8 grid, four boxes, four targets; walking into a box cell pushes the box one cell in the same direction. Pushing a box into an unsolvable position is an irreversible negative long-term consequence. The authors say the problem is PSPACE-complete (Culberson, 1997).
- Observations: symbolic tensor xt, one-hot of shape 8×8×7. Pixels in figures are for visualization only.
- DRC(3,3): encoder followed by D=3 layers of ConvLSTM, with N=3 internal ticks per environment step. 32 channels, kernel size 3, one layer with zero padding on input, cell state same size as the board, 8×8. Appendix E.3 also describes skip connections and pool-and-inject.
- Training: Boxoban unfiltered training set with 900k levels, 250M transitions, IMPALA. Discount and V-trace λ are both 0.97. At test time, take the action with the highest logit. Details in Appendix E.4.
Hypothesized Cell-Level Concepts
- CA (Agent Approach Direction): whether the cell will be stepped on again in the future; if so, from which of UP, DOWN, LEFT, RIGHT it will be entered next. Otherwise NEVER.
- CB (Box Push Direction): whether a box will be pushed away from the cell in the future; if so, in which direction it will be pushed next. Same categories as above.
- Labels depend on the entire episode and are updated after each transition. The authors chose cell-level concepts because Sokoban transitions are determined by neighboring cells, and the ConvLSTM's three-dimensional state can align with the grid. Appendices D.4 and D.5 also examine simplified concepts, reverse asymmetry concepts, and direct prediction of future actions.
Linear Probes
- Input is the cell state after the 3rd tick of each step, trained separately for each layer. When predicting cell (x, y), the 1×1 probe uses only that position (160 parameters), the 3×3 probe uses the surrounding 3×3 (1440 parameters).
- Logistic regression, AdamW, 5 initialization seeds; 10 epochs, batch 16, learning rate 0.001, weight decay 0.001 (Appendix D.1).
- For the fully trained agent, training and test sets are 106.6k and 25.7k transitions, from 3000 episodes of unfiltered training and 1000 episodes of validation. Baseline probes use xt as input.
- NEVER is frequent, so macro F1 is used, not accuracy.
Plan Readout and Causal Intervention
- The authors combine the decoded CA and CB across the board as an internal plan, read out from cell state with 1×1 probes, and observe along environment steps and internal ticks how paths connect, extend, and are rewritten.
- Interventions add the probe's class vector back to the cell state: g′x,y ← gx,y + wk. This expression means adding the vector for class k at position (x, y) to push that cell to represent concept C as k.
- Agent-Shortcut: boxes and targets are in one area, with a short and a long path to get there, default taking the short one. Use CA's NEVER added to cells on the short path, and add the direction vector pointing to the first step of the long path to the corresponding cell. Box-Shortcut: a box can be pushed to the target along a short or long route, using CB for the corresponding intervention. Short-path interventions are repeated each step; direction interventions until the agent steps on that cell or pushes the box away from it.
- Success means solving the level in the specified suboptimal way. Random probe vectors are first scaled to have norms similar to trained probes. The appendix also introduces strength α, and the number of cells p intervened on the long path.
What experiments did the paper conduct?
According to Table 1, Layer 3 Agent-Shortcut success rate is 98.8%, and Box-Shortcut is 80.6%.
Experimental Setup
- Main agent: DRC(3,3) on Sokoban. The appendix also trains DRC(1,9), DRC(9,1) on 100M transitions, a ResNet with 250M transitions and 24 residual blocks, and another DRC(3,3) on Mini PacMan.
- Data: Main training uses the Boxoban unfiltered training set with 900k levels. Probe training uses 3000 episodes, testing 1000 episodes, from unfiltered training and validation respectively. Solve rates additionally use unfiltered test, and 1000 levels each of medium and hard.
- Intervention levels: Agent-Shortcut and Box-Shortcut each have 200 levels, generated from 25 handcrafted levels via vertical reflection and 90°, 180°, 270° rotations. Cutoff has another 200 levels. Default is to take the shortest optimal route; interventions force taking the longer route.
- Baselines: Probes on observations xt; interventions use 5 randomly initialized probes with norms similar to trained probes. Trained probes also use 5 seeds.
- Metrics and criteria: Probes use macro F1. Intervention success means solving the level in the specified suboptimal way, averaged over 5 probe interventions, reported with ±1 standard deviation. Thinking steps are forced pauses at the start.
- Replication: Main results come from one trained DRC. The paper does not report multiple training seeds or significance tests.
Main Results
Swipe horizontally to read the table
Intervention Layer 1 Layer 2 Layer 3 Agent-Shortcut, trained probes 94.6% (±0.5) 90.1% (±1.9) 98.8% (±0.0) Agent-Shortcut, random probes 33.7% (±32.7) 29.8% (±36.8) 27.8% (±37.9) Box-Shortcut, trained probes 56.2% (±1.4) 72.7% (±1.1) 80.6% (±2.4) Box-Shortcut, random probes 31.5% (±13.9) 30.9% (±25.8) 4.1% (±5.4) From Table 1. After training, this agent solves 97.3% of Boxoban unfiltered test (Appendix E.4); this number is not in the table above.
- The authors say CA, CB affect long-term behavior in a way that would be expected if used for planning.
- Box-Shortcut is lower than Agent-Shortcut but still higher than random probes at the same layer.
- The authors say that in Figure 7 and Figure 8, the decoded plans themselves change after intervention, not just actions. More examples in Appendix B.1.
Concept Probing
- What was tested: 1×1 and 3×3 probes predict CA, CB from three layers of cell state, compared to an observation baseline (Figure 4).
- Per-class numbers: From Table 2, the 1×1 probe for CA at Layer 3 has average F1 of NEVER 0.9845, UP 0.8396, DOWN 0.8255, LEFT 0.7955, RIGHT 0.8129; baseline direction classes are 0.0000, RIGHT is 0.2262. From Table 4, CB at Layer 3 is NEVER 0.9913, UP 0.8805, DOWN 0.8590, LEFT 0.8058, RIGHT 0.8315; baseline NEVER 0.9634, RIGHT 0.3079, other direction classes 0.0000.
- Authors' interpretation: The authors say cell state probes far exceed baseline, so the agent linearly represents CA, CB; the improvement from 1×1 to 3×3 is small, so the representation falls on the corresponding cell. Based on Figure 4, the authors say layers differ little, with Layer 2 slightly better than Layer 1. Table 4 is not identical per class: CB, 1×1, LEFT is 0.9247 at Layer 2 and 0.8058 at Layer 3. The main text does not give macro F1 readings for Figure 4.
Plan Formation and Test-Time Computation
- Qualitative plans: The authors read the arrows in Figure 1, Figure 5, and Appendix A as connected paths, often linking boxes to specific targets. The authors say the agent searches forward from boxes and backward from targets, and extends multiple segments in parallel; Figure 1(A)(B) is read as first forming a naive route, then revising the plan after judging it infeasible or improvable. The authors say this resembles parallel bidirectional search, unlike forward search commonly used in RL.
- Extra ticks: Forced pause at the start for 5 steps, i.e., 15 internal ticks, averaged over 1000 episodes. The authors say in Figure 6 that the macro F1 of the final-layer 1×1 probe increases with ticks, and they believe the plan improves iteratively. Per-tick readings are not given in the main text. Appendix A.3.1 says this increase occurs in all three layers.
- Out-of-distribution levels: Appendix A.2 shows plans with no agent, more boxes and targets, and walls added or removed mid-level. The authors say that after adding walls, routes change (Figure 20); after removing walls, some change (Figure 21a) and some do not (Figure 21b), and they speculate some routes are treated as already completed. With no agent, the authors say sometimes a plan is formed and then forgotten, without explaining why.
Co-occurrence in Training
- What was tested: Checkpoints saved every 1M transitions within the first 50M transitions. Compare macro F1 of the final-layer 1×1 probe, and the number of additional levels solved in 1000 medium levels after a forced 5-step pause at the start (Figure 9).
- Results: The main text does not give coordinates or correlation coefficients for each point. The authors say Figure 9 shows they are correlated, and they believe the agent only begins to benefit consistently from extra computation once the final-layer CA, CB are sufficiently formed.
- Appendix: Appendix C.3 says this relationship holds in all layers. Appendix C.1 says concepts mostly appear early in training, but at 50M macro F1 is still lower than the fully trained agent, without giving the difference. Appendix C.4 says "thinking steps can improve internal plans" and "thinking steps can solve more levels" appear at similar stages.
Other Ablations and Analyses
- Removing the short route decreases success rate, with Agent-Shortcut decreasing more (Appendix B.2.2); the main text has no readings for that figure. The authors speculate that path-following and box-pushing use different mechanisms.
- α too high or too low both reduce success rate; intervening on more cells on the long route helps at low α and hurts at high α (Appendix B.2.1). The main text does not give α values.
- Cutoff: without thinking steps, none of the 200 levels are solved; with extra computation, the authors say most can be solved. The intervention in Appendix B.3 aims to mimic this effect; Figure 34 has no main-text readings.
- Corridor lengths 2, 6, 10, 14, each with 80 levels. The authors say the thinking steps needed to solve at least half are: length 2 is 0, length 4 is 1, length 10 is 2, length 14 is 3 (Figure 24 text). The dataset description does not list length 4.
- Appendix F: DRC(1,9) solves 84.9% of unseen levels, and five thinking steps solve an additional 0.8% of medium; DRC(9,1) is 94.2% and 5.3%. The authors say CA is mainly in layers 8–9 of DRC(9,1), CB in layers 6–8; Box-Shortcut is more successful at layer 6 than layer 8, with no main-text readings for that figure.
- Appendix D.5: A global probe predicting actions 1–10 steps ahead has 10240 parameters, slightly above the observation baseline, but is worse than the 1×1 probe with 64 times fewer parameters. The authors conclude that the agent does not linearly represent "actions n steps ahead." The main text has no accuracy readings. The ResNet intervention in Appendix G multiplies the vector by 4; the authors say layer 1 intervention is very successful, even though later-layer probes are more accurate. On Mini PacMan, the original CA evidence is weak, so they probe a variant predicting 16 steps ahead; the main text has no macro F1 readings.
What are some points that can be further explored?
The authors say planning in general environments remains unanswered and plan to extend to other agents and training factors.
Limitations and Future Directions Noted by the Authors
- Section 9: Future work could extend this inspection to other RL agents and other environments.
- Section 9: It would be helpful to better understand the role of training factors in the emergence of planning, with examples being model architecture and environment dynamics.
- Section 7: After presenting evidence with no internal ticks, more internal ticks, ResNet, and Mini PacMan, the authors say the question of whether a general agent can learn to plan in a general environment remains unanswered.
Experimental Coverage
- The main experiment is a single DRC(3,3), D=3, N=3, 32 channels, trained on 900k levels from the Boxoban unfiltered training set for 250M transitions, with observations of 8×8×7; Appendix E.4 reports a 97.3% solve rate on unfiltered test.
- Probes are evaluated on 3000 training episodes and 1000 validation episodes, with 5 initialization seeds; Agent-Shortcut and Box-Shortcut each have 200 levels, with success rates averaged over 5 probes. Cutoff has 200 levels.
- Appendix F's DRC(1,9) and DRC(9,1) each train for 100M transitions; Appendix G's ResNet has 24 residual blocks and trains for 250M transitions; Appendix H trains another DRC(3,3) on 13×13 Mini PacMan for 250M transitions.
- The main concepts are CA and CB. Appendices D.4 and D.5 also probe binary simplifications, reverse asymmetry concepts, and future actions 1–10 steps ahead. Attribution methods are described by the authors in Section 8 as relying on subjective interpretation, so they are not used.
- The paper does not report macro F1 readings for Figure 4, correlation coefficients for Figure 9, nor significance tests or replication across training seeds.
Summarize the main content of the paper
DRC uses CA and CB to form plans that can be rewritten by intervention, which the authors say resembles parallel bidirectional search.
The authors use concept probing and activation intervention to check whether DRC, which has no explicit world model, plans during decision-making in Sokoban.
- Question: Planning-like behavior may come from internal plans or from heuristics. The authors require the agent to form latent action sequences, evaluate them by predicted consequences, and let plans influence actions.
- Subject and approach: The main subject is DRC(3,3) trained on Boxoban for 250M transitions. Grid concepts CA and CB encode, respectively, which side the agent will next step onto a cell and which direction it will next push a box away. Linear probes read these classes from each layer's cell state; then class vectors are added back to activations to force the agent to take longer routes.
- Results: After training, it solves 97.3% of the Boxoban unfiltered test (Appendix E.4). In Table 1, Layer 3 trained-probe Agent-Shortcut success rate is 98.8% (±0.0), and Box-Shortcut is 80.6% (±2.4); same-layer random probes are 27.8% and 4.1%. Layer 1 Box-Shortcut trained probe is 56.2% (±1.4). The authors state that cell state probes exceed the observation baseline (Figure 4).
- Authors' conclusion: The authors state that these representations are used for planning similar to parallel bidirectional search, can be improved with extra ticks at test time, and can be rewritten with interventions; representation formation co-occurs with "leaving 5 extra steps at the start solves more medium levels." The authors also state that whether general agents can learn planning in general environments remains unanswered.