How Treating Robots as Gas Makes Warehouse Pathfinding Tractable
Amazon Robotics researchers show that modeling thousands of warehouse robots as particles of gas — cold and lazy for exact solutions, hot and jittery for fast approximations — converts an NP-hard pathfinding problem into a tractable linear program, reducing computation from 478 seconds to 67 while staying within 6.5% of optimal.
Amazon Robotics operates over a million robots across more than 300 fulfillment centers. Inside a single warehouse, thousands of robots share the floor, and finding efficient collision-free paths for all of them simultaneously is a problem that grows combinatorially: on a 150×150 grid with 1,125 robots over a 30-step horizon, the naive formulation involves 3.4 million binary decision variables. The problem is NP-hard in general, and in practice the standard integer-programming approach often fails to find even a single feasible solution within 12 hours.
Usman Khan, a professor of computer science at Boston College and an Amazon Scholar, and his colleagues presented a paper at ICML 2026 that routes around this intractability by borrowing a framework from physics: treat the robots as a gas. The key insight is that if you model the fleet as a cold, lazy gas whose particles expend only the minimum energy to reach their destinations, the trajectory-planning problem becomes equivalent to a multimarginal optimal transport (MMOT) problem. Kantorovich's classical relaxation of Monge's transport formulation — allowing mass from one source to split among multiple destinations — converts a difficult nonlinear optimization into a linear program. Khan's team extends this to multiple time steps and proves that their formulation preserves total unimodularity of the constraint matrix, which guarantees that every vertex of the feasible polyhedron has integer coordinates. A linear program then finds an optimal integer solution in polynomial time.
Total unimodularity is the technical lever. Without it, an LP might return a fractional solution — half a robot going left, half going right — which is physically meaningless. The authors structure their constraints so the matrix remains totally unimodular across all time steps, yielding provably optimal collision-free paths. On their benchmark, this MMOT solver produces optimal trajectories in 478 seconds. That is a dramatic improvement over the NP-hard baseline, but 478 seconds is still impractical for real-time warehouse coordination.