Distributed Heuristic Multi-Agent Path Finding with Communication

Ziyuan Ma, Yudong Luo, Hang Ma

TL;DR

The DHC (Distributed, Heuristic, Communication) framework combines deep Q-learning with graph convolutional communication and flexible heuristic guidance to solve Multi-Agent Path Finding (MAPF) in complex environments. By training agents to learn from all potential shortest paths rather than a single fixed route, DHC achieves significantly higher success rates and path efficiency than previous reinforcement learning (RL) approaches in congested, obstacle-rich maps.

What Problem Does This Paper Address?

Multi-Agent Path Finding (MAPF)—the task of moving multiple agents to their respective goals without collisions—is a cornerstone of robotics, from automated warehouses to drone swarms. However, it is NP-hard to solve optimally. Traditional centralized planners (like A* variants) struggle to scale as the number of agents grows.

Recent Reinforcement Learning (RL) methods have attempted to learn decentralized policies, but they face two major hurdles:

  1. Long-Horizon Guidance: Agents often get "lost" in large environments before reaching their goals.
  2. Congestion and Cooperation: In tight spaces, agents must learn to "yield" or coordinate moves to avoid deadlocks (livelocks), a task that is difficult to master through individual rewards alone.

Existing RL methods like PRIMAL often rely on rigid imitation learning or single-path guidance that penalizes agents for deviating, which can actually hinder cooperation in crowded scenarios.

Methods

The authors propose DHC, a framework built on three pillars:

  • Distributed Training: Utilizing the Ape-X framework, the system uses 16 parallel "actors" to generate experiences in separate environment instances, which are then fed into a single "learner" that updates a global prioritized replay buffer. This significantly speeds up training.
  • Heuristic Guidance: Instead of forcing an agent to follow one specific path, DHC provides four "heuristic channels" as input. These channels indicate which actions (Up, Down, Left, Right) would move the agent closer to its goal based on a single-agent shortest path calculation. This allows the model to learn "rational knowledge"—knowing which moves are generally good while retaining the flexibility to deviate to avoid a teammate.
  • Graph Convolutional Communication: To facilitate cooperation, the environment is treated as a graph where agents are nodes. Agents within each other's field of view (FOV) are connected as neighbors. DHC uses a Multi-Head Attention mechanism as a convolutional kernel, allowing agents to exchange messages and weigh the importance of their neighbors' states before deciding on an action.
Fig. 1: DHC architecture featuring the observation encoder, communication block, and dueling Q-network.

The model itself is a Dueling DQN equipped with GRU (Gated Recurrent Units) to handle partial observability, ensuring agents can maintain a "memory" of their surroundings and previous communications.

Datasets

The researchers evaluated DHC in a custom-built discrete gridworld environment:

  • Maps: 40×40 and 80×80 grids with a high obstacle density (0.3).
  • Agents: Testing ranged from 4 to 64 agents in 40×40 maps, and up to 128 agents in 80×80 maps.
  • Curriculum Learning: Training started in simple 10×10 maps with one agent, gradually increasing map size and agent count as the success rate exceeded 90%.

Key Insights and Ideas

  • Flexible Heuristics vs. Rigid Paths: A key "aha moment" is that providing all optimal directions (as shown in Figure 2) is superior to providing a single path. In a multi-agent setting, the "best" path for one agent might be blocked by another; by knowing all valid shortcuts, the agent can pivot dynamically without losing its way.
Fig. 2: Heuristic channels indicating optimal directions toward the goal.
  • Communication is Essential for Density: The ablation studies revealed that while heuristic guidance helps in large, sparse maps, communication is the deciding factor in "tight" environments. Without graph convolution, success rates plummeted as agent density increased because agents couldn't coordinate to resolve bottlenecks.
  • Standard MAPF Setting: Unlike some predecessors, DHC trains in a "standard" setting where agents move simultaneously and stay in the environment after reaching their goals. This forces the RL to learn how to stay out of the way of others even after its own task is done.

Key Results

DHC consistently outperformed the state-of-the-art RL baseline, PRIMAL:

  • Success Rate: In 80×80 maps with 64 agents, DHC maintained a high success rate while PRIMAL's performance degraded significantly.
  • Efficiency: DHC achieved much lower "average steps" to completion compared to PRIMAL, coming closer to the performance of centralized expert planners like ODrM*.
  • Scalability: The model trained on up to 12 agents successfully generalized to scenarios with 128 agents during testing, demonstrating the power of decentralized execution.
Fig. 5: Success rate comparison showing DHC outperforming the baseline and its own non-communicative variant.

Limitations and Future Work

While DHC is robust, the authors note a few areas for improvement:

  • Communication Overhead: The current model limits communication to the two nearest neighbors to manage latency. Expanding the communication scope without ballooning computational costs is a key challenge.
  • Real-world Latency: The study assumes near-instantaneous communication between agents, which may not hold true in real-world robotic hardware with restricted bandwidth.
  • Fixed Communication Agents: Future work could explore dynamic communication strategies where agents decide when and with whom it is most critical to talk.

Summary updated

BibTeX
@inproceedings{ma2021distributed,
  author = {Ziyuan Ma and Yudong Luo and Hang Ma},
  title = {{Distributed Heuristic Multi-Agent Path Finding with Communication}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2021},
  url = {https://openreview.net/forum?id=coYBB4HqfU},
}
Figure