TL;DR
DiffLNS is a hybrid framework that uses a discrete diffusion model to generate high-quality "draft" plans for Multi-Agent Path Finding (MAPF), which are then refined by a traditional repair-based solver. By leveraging a generative prior to provide globally coherent initializations, DiffLNS achieves a 95.8% success rate in dense environments, outperforming state-of-the-art baselines and generalizing to agent counts three times larger than those seen during training.
What Problem Does This Paper Address?
Multi-Agent Path Finding (MAPF)—the task of moving a fleet of agents to their goals without collisions—is a cornerstone of warehouse automation and robotics. While "repair-based" solvers like Large Neighborhood Search 2 (LNS2) are highly effective, they suffer from a "garbage in, garbage out" problem. If the initial plan is a tangled mess of deadlocks and inconsistent motion, the repair stage often exhausts its computational budget before finding a feasible solution.
Most research has focused on improving the repair process itself. This paper identifies a critical, underexplored gap: initialization quality. The authors argue that a better "warm start"—one that captures complex spatiotemporal coordination—is the key to unlocking performance in highly congested environments where traditional heuristics fail.
Methods
The authors introduce DiffLNS, a hybrid framework that combines generative modeling with classical constraint satisfaction.
- Discrete Diffusion (D3PM) Initializer: Unlike standard diffusion models that work in continuous space, DiffLNS uses a Discrete Denoising Diffusion Probabilistic Model. It operates directly on the categorical action space (e.g., move up, down, stay). It learns from expert demonstrations to generate "draft" joint plans that are globally coherent but might still contain minor conflicts.
- Diffusion-Aware Sparse Social Attention: Modeling interactions between hundreds of agents is computationally expensive ($O(N^2)$). DiffLNS introduces a dynamic attention mechanism that infers agent trajectories at each denoising step and only focuses computation on agents likely to conflict based on their proximity. Sparse social attention mechanism
- Hybrid Pipeline: The D3PM generates multiple candidate drafts. These drafts undergo a quick preprocessing step (completing unfinished paths) and are then handed off to LNS2. LNS2 acts as the "enforcer," resolving any remaining hard constraints and ensuring the final paths are strictly collision-free. DiffLNS hybrid framework overview
Datasets
The model was trained and evaluated using the POGEMA benchmark, which generates procedurally diverse maps.
- Training: Conducted on 23x23 maps with agent counts of 32, 64, and 96. Expert trajectories were generated using the LaCAM3 solver.
- Evaluation: Tested across 20 distinct settings in five environment families: Small Random, Medium Maze, Medium Room, Medium Warehouse, and Large Maze. These settings represent high-density regimes where coordination is most difficult.
Key Insights and Ideas
- Structure Over Statistics: Surprisingly, diffusion-generated drafts often contain more raw conflicts than simple heuristic initializers. However, these conflicts are "repair-friendly." Because the diffusion model captures the global structure of the problem, the resulting drafts are easier for LNS2 to reorganize into a feasible solution.
- Zero-Shot Scalability: Even though the model was only trained on up to 96 agents, it successfully scales to 312 agents at inference time. This is due to the denoiser's permutation-equivariant architecture and the locality bias introduced by sparse social attention.
- Diversity is a Feature: Because diffusion is a stochastic generative process, DiffLNS can sample multiple diverse drafts for the same problem. If one draft leads to a deadlock during repair, another might succeed, making the system naturally robust and parallelizable.
Key Results
DiffLNS sets a new state-of-the-art for success rates in congested MAPF scenarios:
- Superior Success Rate: It achieved an average success rate of 95.8% across all 20 settings, outperforming the strongest baseline (LNS2+RL) by 9.6 percentage points.
- Robustness in Crowds: The performance gap is most significant in the most difficult environments, such as mazes and warehouses, where classical baselines see sharp declines in success as agent density increases.
- Generalization: The model maintained high success rates even when tested on agent counts far exceeding its training distribution (e.g., 312 agents in a Large Maze). Performance comparison across benchmarks
Limitations and Future Work
- Computational Overhead: Generating plans via iterative denoising is more time-consuming than simple heuristics. While this is offset by higher success rates and parallelizability, it may be a hurdle for real-time applications.
- Map Size Constraints: The current model was trained on 23x23 maps. While it generalizes well to agent counts, generalizing to significantly larger or different map structures might require broader training data or multi-scale architectures.
- Hard Constraint Dependency: DiffLNS still relies on LNS2 to guarantee feasibility. In extremely rare, "unrepairable" cases, the generative model cannot yet fully overcome the limitations of the downstream solver.
Summary updated