Enhancing Lifelong Multi-Agent Path Finding with Cache Mechanism
Abstract
Lifelong Multi-Agent Path Finding (L-MAPF) is critical for the efficiency of automated warehouses. While caching high-demand items near unloading ports can theoretically boost performance, existing models often overlook the complexities of low-level path planning and physical race conditions. This paper introduces L-MAPF-CM, a framework that integrates physical cache grids into the L-MAPF loop. By utilizing a Task Assigner state machine and a computer-architecture-inspired locking mechanism, L-MAPF-CM effectively manages robot traffic and item availability, leading to significant improvements in warehouse throughput across various task distributions.
Introduction
In modern automated warehouses, hundreds of robots continuously move items from storage shelves to unloading ports. This continuous operation, known as Lifelong Multi-Agent Path Finding (L-MAPF), requires efficient, collision-free routing. To minimize travel time, warehouses often employ "caches"—temporary storage areas for frequently requested items located near the delivery points. However, most research on caching remains at a high mathematical level, ignoring the physical realities of robot movement, such as congestion and the time-lag between a robot deciding to fetch an item and actually reaching the cache.
The L-MAPF-CM Framework
The proposed Lifelong MAPF with Cache Mechanism (L-MAPF-CM) addresses these gaps by embedding the cache system directly into the low-level execution loop. The framework introduces designated "cache grids" situated strategically near unloading ports.
To manage the interaction between robots and these caches, two key components are implemented:
- Task Assigner (TA) State Machine: This external manager tracks item availability and assigns specific states to robots. Robots transition through states like
SF_GET(fetching from a shelf),CA_GET(fetching from a cache), orCA_ADD(storing an item in a cache). - Cache Lock Mechanism: To prevent physical race conditions—where the state of a cache changes while a robot is in transit—the TA employs a locking system. A Shared Read Lock allows multiple robots to head toward a cache to fetch the same item type, ensuring it isn't replaced. An Exclusive Write Lock ensures only one robot can modify a cache slot at a time.
Experimental Evaluation
The system was tested on a 27x71 warehouse map using the LaCAM pathfinding solver. Performance was evaluated against three task distributions: the theoretical M-K distribution, a realistic "long-tail" 7:2:1 distribution, and a Real Data Distribution (RDD) based on Kaggle warehouse demand data.
Key Insights and Results
The experiments revealed several critical findings:
- Throughput Gains: L-MAPF-CM consistently outperformed standard L-MAPF without caches across all tested distributions, completing more tasks per timestep.
- The Importance of Hit Rate: Similar to CPU performance, the warehouse throughput is highly dependent on the cache hit rate. Higher hit rates reduce travel distances and increase efficiency.
- The Congestion Bottleneck: While caches reduce travel distance, they can create localized traffic jams. When agent density is too high, the congestion near unloading ports and caches can negate the benefits of the cache, causing throughput to drop as robots wait for clear paths.
- Policy Neutrality: Interestingly, the specific cache replacement policy (e.g., LRU vs. FIFO) had a minimal impact on performance compared to the overall hit rate and traffic management.
Conclusion
L-MAPF-CM demonstrates that integrating physical cache mechanisms into low-level path planning is a viable and effective strategy for increasing warehouse efficiency. By treating physical space with the same concurrency controls used in computer memory, the system successfully manages the complexities of multi-agent coordination. Future work will focus on mitigating congestion through improved traffic flow designs and exploring predictive, data-driven task assignment strategies.
Summary updated