---
title: "Lazy gas, hot gas, and a thousand robots"
description: "Amazon Robotics coordinates over a million robots across more than 300 warehouses, facing the NP-hard multiagent pathfinding (MAPF) problem of finding collision-free routes on a grid. The authors formulate MAPF as multimarginal optimal transport (MMOT), preserving total unimodularity to guarantee integer solutions via linear programming in O(n^1.68) time. For a 150x150 grid with 1,125 robots over 30 time steps, this optimal method solves in 478 seconds. To improve speed, they introduce a Schrödinger bridge — a hot-gas probabilistic model — that approximates the optimal transport solution with entropic relaxation, then projects back onto executable paths. This pipeline runs in 67 seconds (scaling O(n^1.15)) and stays within 6.5% of optimal, offering a practical tradeoff for real-time deployment."
---

# Lazy gas, hot gas, and a thousand robots

[AWS](https://yomu.fyi/company/aws) · Usman Khan · Nov 24, 2026

**Type:** Problem & solution

## Summary

Amazon Robotics coordinates over a million robots across more than 300 warehouses, facing the NP-hard multiagent pathfinding (MAPF) problem of finding collision-free routes on a grid. The authors formulate MAPF as multimarginal optimal transport (MMOT), preserving total unimodularity to guarantee integer solutions via linear programming in O(n^1.68) time. For a 150x150 grid with 1,125 robots over 30 time steps, this optimal method solves in 478 seconds. To improve speed, they introduce a Schrödinger bridge — a hot-gas probabilistic model — that approximates the optimal transport solution with entropic relaxation, then projects back onto executable paths. This pipeline runs in 67 seconds (scaling O(n^1.15)) and stays within 6.5% of optimal, offering a practical tradeoff for real-time deployment.

## Context

Amazon Robotics operates over a million robots across 300+ warehouses worldwide. Multiagent pathfinding (MAPF) is NP-hard and requires real-time coordination to find efficient, collision-free paths.

## Approach / What changed

Model the fleet as a cold lazy gas using multimarginal optimal transport (MMOT) with total unimodularity for optimal integer paths via linear programming. For faster computation, use a Schrödinger bridge (hot gas) as an entropic relaxation of MMOT, generating a probabilistic shadow transport that reveals important corridors, then project it onto executable paths.

## Takeaways

- The MMOT formulation with total unimodularity guarantees integer optimal solutions for anonymous MAPF in polynomial time, with a practical runtime of O(n^1.68).
- The Schrödinger bridge approach scales nearly linearly O(n^1.15) and achieves a 7x speedup (67 seconds vs 478 seconds) while staying within 6.5% of optimal cost.
- The Schrödinger bridge is equivalent to an entropic relaxation of the MMOT problem, where controlling the entropy (like temperature) trades off optimality for computational speed.

## FAQ

### How does total unimodularity enable integer solutions in MAPF?

Total unimodularity ensures every vertex of the feasible polyhedron has integer coordinates. Since a linear program attains its optimum at a vertex, the LP solution is automatically integer, avoiding the need for NP-hard integer programming.

### What is the relationship between the lazy gas and hot gas models?

The lazy gas corresponds to optimal transport (MMOT) where robots take minimum-effort paths. The hot gas, modeled via the Schrödinger bridge, adds randomness through Brownian motion. As the temperature (entropy parameter) drops to zero, the hot gas paths converge to the lazy gas optimal paths.

### Can this approach handle robots with assigned destinations?

The current formulation is for anonymous MAPF where any robot can go to any destination. The authors note they are developing extensions for labeled MAPF (fixed destinations) and lifelong MAPF (continuous tasks).

**Tags:** [Logistics](https://yomu.fyi/topic/logistics), [Machine Learning](https://yomu.fyi/topic/machine-learning), [Multi-Agent Swarms](https://yomu.fyi/topic/multi-agent-swarms), [Robotics](https://yomu.fyi/topic/robotics)

- Source: [AWS](https://www.amazon.science/blog/lazy-gas-hot-gas-and-a-thousand-robots)
- Source URL: https://www.amazon.science/blog/lazy-gas-hot-gas-and-a-thousand-robots
- Ingested by Yomu: 2026-11-24T18:01:06.202Z

[Read original post](https://www.amazon.science/blog/lazy-gas-hot-gas-and-a-thousand-robots)
