arXiv:2609.39889cs.MASep 2026

Manuscript Offprint

arXiv:2609.39889

Solving Multi-Agent Sokoban via LaCAM

Keisuke Okumura

ABSTRACT

Sokoban, a puzzle game in which an agent pushes boxes onto unlabelled target locations in a grid world, is a long-standing benchmark planning problem. While it is easy to see the connection to practical applications such as warehouse logistics with autonomous forklifts, its multi-agent counterpart has remained underdeveloped. This is because Multi-Agent Sokoban is substantially more difficult due to factors specific to multi-agent planning, such as the rapidly growing branching factor as the number of agents grows and the need to handle integrated task assignment and collision-free pathfinding. In this paper, we show that a scalable planner for Multi-Agent Sokoban can be designed by leveraging recent advances in multi-agent pathfinding (MAPF). Specifically, our Sokoban-LaCAM efficiently solves instances involving tens of agents and boxes while preserving both completeness and eventual optimality guarantees. This provides evidence that MAPF can serve as a powerful primitive for solving broader collective automation problems.

Project page: https://kei18.github.io/multi-agent-sokoban/

1 Introduction

Sokoban is a popular puzzle game in which an agent pushes boxes onto target locations in a grid world, but also a long-standing benchmark problem for heuristic search due to its computational difficulty [1–3]. For example, when a box is adjacent to a wall, the agent cannot push it from that direction, restricting the set of reachable box configurations. This asymmetry gives rise to dead-end situations, leading search algorithms to spend substantial effort exploring fruitless branches in the absence of effective heuristics, which are notoriously difficult to design. Not surprisingly, Sokoban is PSPACE-complete from the perspective of computational complexity [4].

By contrast, its multi-agent counterpart, which we refer to as Multi-Agent Sokoban, has received little attention. Only a few papers have explicitly considered this problem [5, 6], and no dedicated solver is publicly available to the best of our knowledge. Nevertheless, Multi-Agent Sokoban poses interesting challenges in multi-agent planning while maintaining strong connections to real-world problems. For example, a planner must determine both which agent should transport each box and which target location each box should be assigned to. It must then compute collision-free paths while avoiding agent–agent, agent–box, and box–box collisions, as well as dead-end situations. This structure closely resembles warehouse logistics [7], where multiple autonomous robots (e.g., AGVs and forklifts) transport goods (e.g., parcels and pallets) to designated locations while coordinating their movements to avoid mutual interference and maximise overall throughput.

We therefore regard Multi-Agent Sokoban as a fruitful benchmark for multi-agent planning, where a planner needs to address integrated task assignment and coordinated path planning. In particular, we ask whether multi-agent pathfinding (MAPF) techniques can provide a scalable and real-time planning primitive beyond the canonical MAPF formulation.

MAPF [8], the problem of computing collision-free paths for multiple agents on a graph, has been extensively studied since the early 2010s, driven by the increasing demand for coordinated robots in factory automation. Among recent advances, LaCAM (∗)^{(*)} [9, 10] demonstrates that reliable sub-second planning for hundreds of agents is possible. Since LaCAM searches directly over the configuration space, where a configuration represents the states of all agents, its search framework naturally extends to collective automation problems that admit a configuration-space formulation.

Keisuke Okumura

To this end, this paper presents Sokoban-LaCAM for Multi-Agent Sokoban. It performs search over the configuration space by generating joint actions via constrained PIBT [11], where each agent's action is determined based on target-box and agent-box assignments. To further speed up the solution discovery, we introduce problem-specific heuristics and pruning rules on top of the joint search. Theoretically, Sokoban-LaCAM is complete and eventually optimal with respect to cumulative transition cost (e.g., plan length; aka. makespan), meaning that it finds an optimal solution in finite time whenever one exists and otherwise correctly reports infeasibility. Empirically, Sokoban-LaCAM solves instances with tens of agents and boxes within seconds. This demonstrates substantially better scalability than adapting IDA* [12], which has traditionally been used for single-agent Sokoban.

Importantly, the broader goal of this work is not merely to solve Multi-Agent Sokoban, but to demonstrate that search-based MAPF algorithms, at least LaCAM, can serve as general multi-agent combinatorial search frameworks for collective automation problems. This perspective opens the door to integrating learned heuristics to guide search efficiently [13], as well as developing effective task-specific configuration generators that exploit the underlying problem structure [14, 15]. In the remainder of the paper, we first formulate Multi-Agent Sokoban and review related work, with a particular focus on connections to MAPF. We then present Sokoban-LaCAM and evaluate its performance experimentally. Throughout the paper, we use ⊥\perp as an “undefined” sign for convenience.

References (85)