Abstract
This paper presents a deep reinforcement learning (RL) framework designed to solve complex instances of Sokoban, a PSPACE-complete AI planning game. By implementing a curriculum-driven strategy—incrementally increasing the number of boxes on a fixed board layout—the system overcomes the sparse reward problem inherent in long-horizon planning tasks. The approach combines Monte Carlo Tree Search (MCTS) with a deep residual network (ResNet). Experimental results demonstrate that the framework can solve benchmark instances previously considered "unsolvable" by state-of-the-art domain-independent and specialized planners, showing near-polynomial scaling in search time as problem complexity increases.
Introduction
AI planning is a fundamental challenge in computer science. Even seemingly simple problems like Sokoban, where a player must move boxes onto target squares within a maze, are PSPACE-complete. Traditional domain-independent planners, such as FF, and specialized solvers like Sokolution often encounter an "exponential wall," failing to solve complex instances within practical time limits.
The primary obstacle for applying Deep RL to these domains is the sparse reward problem. In single-agent planning, a reward is typically only granted upon reaching the goal. For a hard Sokoban instance requiring hundreds of precise steps, a random agent is statistically unlikely to find the solution by chance, leaving the neural network with no signal to learn from.
Methodology
The researchers adapted the AlphaZero framework, which integrates Monte Carlo Tree Search (MCTS) with a Deep Neural Network (ResNet), for the planning domain. The core innovation is the Curriculum-Driven Strategy, which facilitates learning in environments with sparse rewards.
Curriculum-Driven Strategy
- Sub-problem Generation: Instead of attempting a 16-box problem immediately, the agent begins training on a simplified version of the target board with only a few boxes (e.g., 2 boxes instead of 16).
- Incremental Difficulty: Once the agent achieves a high success rate on the sub-problem, the number of boxes is gradually increased (e.g., 3, 4, ..., up to the original $n$).
- Action Space Optimization: The agent operates on "pushes" rather than raw directional moves (up, down, left, right). This significantly reduces the plan length and simplifies the search space.
- State Representation: The board is processed by the ResNet as a 6-layer image stack (representing walls, goals, boxes, player reachability, etc.), allowing the network to leverage convolutional layers to interpret spatial structures.
Experimental Results
The framework was evaluated against standard academic Sokoban benchmarks, including XSokoban_29 (16 boxes), Sasquatch_30, and Grigr2001_2. These instances were selected specifically because they were previously marked as "unsolved" by modern solvers within standard time limits.
Solving the "Unsolvable"
On the XSokoban_29 instance, the proposed method found a solution in 9.1 hours. In contrast, state-of-the-art solvers like Sokolution and FF failed to find a solution even when granted 24 hours of computation time. Similar breakthroughs were observed across other benchmarks, such as Sasquatch3_18 (solved in 14.9h) and Grigr2001_2 (solved in 22.1h).
Scaling and Generalization
A significant finding is the transition from exponential to near-polynomial scaling. While traditional solvers show exponential growth in search time as boxes are added, the curriculum-driven RL approach scales much more efficiently. Once the network learns the underlying logic of the board from 15 boxes, solving for the 16th box adds negligible training time.
Furthermore, the network demonstrates generalization. It does not merely memorize paths but learns a "distance-to-goal" utility function that applies to unseen box configurations on the same wall layout.
Discussion and Limitations
While the results are promising, the current framework has limitations:
- Instance Specificity: The network is trained for a specific board layout. While it generalizes across box placements on that board, it is not yet a universal solver for all Sokoban layouts.
- Catastrophic Forgetting: As the agent masters the 16-box problem, its performance on the initial 2-box "easy" problems degrades. This suggests the network reallocates its capacity to handle higher complexity, highlighting a need for curricula that preserve proficiency across all difficulty levels.
- Computational Overhead: The method requires significant resources (e.g., 5 GPUs) and hours of training, making it less efficient than traditional solvers for simple puzzles.
Conclusion
This research demonstrates that curriculum-driven deep RL can automatically uncover complex domain structures that previously required handcrafted heuristics. By breaking down PSPACE-complete problems into a series of manageable sub-problems, the system can overcome the sparse reward barrier. Future work will explore applying this methodology to other high-complexity domains, such as automated theorem proving, where long chains of logical inference present similar challenges to long-horizon planning.
Summary updated