Lifelong Multi-Agent Path Finding for Online Pickup and Delivery Tasks

Hang Ma, Jiaoyang Li, T. K. Satish Kumar, Sven Koenig

Abstract

Traditional Multi-Agent Path Finding (MAPF) often focuses on "one-shot" problems where agents move from fixed starts to fixed goals. However, real-world applications like automated warehouses require a "lifelong" approach to handle a continuous stream of online tasks. This paper introduces the Multi-Agent Pickup and Delivery (MAPD) framework and proposes two scalable algorithms: Token Passing (TP) and Token Passing with Task Swaps (TPTS). These algorithms provide theoretical guarantees for task completion in "well-formed" environments and demonstrate the ability to coordinate hundreds of agents in real-time.

Introduction

In industrial settings such as Amazon's robotic warehouses or aircraft-towing operations, robots do not simply stop after completing a single task. Instead, they face a dynamic environment where new pickup and delivery tasks arrive continuously. This lifelong setting presents two major challenges: dynamic task assignment and collision-free path planning that avoids indefinite deadlocks.

A simple Multi-Agent Pickup and Delivery (MAPD) instance showing agents and task locations.

The authors formalize this as the MAPD problem. In this framework, tasks (consisting of pickup and delivery pairs) enter the system at any time. Agents must navigate a graph to complete these tasks efficiently while ensuring they do not block each other indefinitely.

Methodology

The paper proposes two decoupled algorithms that utilize a synchronized shared memory block, or "token," to coordinate agent actions without the computational overhead of fully centralized planning.

Token Passing (TP) and TPTS

In Token Passing (TP), the token stores the current paths and task assignments for all agents. When an agent becomes idle, it requests the token, assigns itself the nearest available task, plans a collision-free path using A, and updates the token. If no tasks are available, the agent moves to a designated "parking" endpoint to avoid obstructing others. Token Passing with Task Swaps (TPTS)* enhances this by allowing idle agents to "swap" tasks with agents already in transit if they can reach the pickup location more quickly, thereby improving overall system throughput.

Well-Formed Environments

A critical theoretical contribution of this work is the definition of "well-formed" MAPD instances. These are environments designed with a sufficient number of endpoints (parking spots) such that agents resting at these locations do not permanently block paths between any other two endpoints.

An example of a well-formed MAPD environment with designated endpoints (e1-e4) to prevent deadlocks.

The authors mathematically prove that in well-formed environments, TP and TPTS are guaranteed to complete all tasks, ensuring the system remains live and deadlock-free.

Experimental Evaluation

The algorithms were evaluated in simulated warehouse environments of varying scales:

  • Small Warehouse: A $21 \times 35$ grid with 50 agents and 500 tasks.
  • Large Warehouse: An $81 \times 81$ grid with 500 agents and 1,000 tasks.

Performance was compared against a centralized baseline (CENTRAL) that uses the Hungarian Method for task assignment and Conflict-Based Search (CBS) for optimal pathfinding.

Key Results and Insights

  • Scalability: TP proved exceptionally efficient, handling up to 200 agents in under 500 milliseconds per timestep in the large warehouse scenario.
  • Efficiency vs. Complexity: While the CENTRAL baseline provided the shortest service times, its computational cost grows exponentially with the number of agents. TPTS and CENTRAL reduced service times by up to 42% and 48% respectively compared to basic TP, positioning TPTS as a highly effective real-time solution.
  • Decoupled Planning Sufficiency: The results demonstrate that serialized, decoupled planning via a token is sufficient for large-scale lifelong logistics, offering a much more scalable alternative to centralized optimal solvers.

Conclusion

This research successfully extends MAPF to the lifelong MAPD setting, providing practical algorithms with strong theoretical guarantees. Future work will focus on incorporating realistic kinematic constraints, such as turning radii and inertia, and exploring more complex task dependencies where multiple agents must cooperate to complete a single objective.

Summary updated

BibTeX
@inproceedings{ma2017lifelong,
  author = {Hang Ma and Jiaoyang Li and T. K. Satish Kumar and Sven Koenig},
  title = {{Lifelong Multi-Agent Path Finding for Online Pickup and Delivery Tasks}},
  booktitle = {AAMAS},
  year = {2017},
  url = {https://openreview.net/forum?id=HZI1BKxYK_},
}
Figure