Skip to content
Robotics.world

Research

Policy Search in Code Space for Multi-Agent Pathfinding

Coordinating hundreds of robots that continuously receive delivery tasks requires jointly deciding who does what and how robots move without colliding, all within strict per-step compute budgets.

The paper’s first page · arXiv:2610.25946
arXiv
2610.25946 · Preprint · not peer-reviewed
Published
2026-10-19 · revised · 2026-10-20
Authors
Matthias Eder, Pantelis Emmanouil, Vivek Farias, Fabian Fischer, Adam Jozefiak, Tianyi Peng, Thomas Ulz, Raphael Watschinger, Fangyu Wu, Andrew Zheng

In plain words

Coordinating hundreds of robots that continuously receive delivery tasks requires jointly deciding who does what and how robots move without colliding, all within strict per-step compute budgets. Existing options are hand-designed solvers and heuristics (limited by human engineering throughput) or neural reinforcement learning policies (opaque, hard to verify, hard to modify).

AI summary

Overview

Research area: multi-agent pathfinding (MAPF) and lifelong MAPF (LMAPF) for warehouse and fleet coordination, combined with automated program synthesis by LLM coding agents. Technical level: Intermediate (readable with basic familiarity with path planning and simulation-based benchmarking, though the appendix algorithm is advanced). Scope: a two-case-study evaluation of whether coding agents, steered by humans, can search directly over planner source code to produce coordination policies that beat hand-engineered baselines in a competition benchmark and in simulated industrial warehouses.

What This Paper Is About

Coordinating hundreds of robots that continuously receive delivery tasks requires jointly deciding who does what and how robots move without colliding, all within strict per-step compute budgets. Existing options are hand-designed solvers and heuristics (limited by human engineering throughput) or neural reinforcement learning policies (opaque, hard to verify, hard to modify). The authors ask whether an LLM coding agent can iteratively rewrite the planner's source code itself — guided by simulation scores, unit tests, and profiler traces — to discover better algorithms that remain readable and formally checkable.

Key Contributions

  1. Introduces and demonstrates policy search in code space (PSCS) for LMAPF: a human-directed loop in which a coding agent proposes, implements, evaluates, and diagnoses changes to planner and scheduler source code, with strictly offline model use (zero inference latency at runtime).
  2. On the 2024 League of Robot Runners (LoRR) benchmark, shows PSCS refines standard baselines into a map-specific policy (PLATM) that outperforms the stronger locally reproduced competition entry by up to 35.0% in mean throughput, on all five instances.
  3. In high-fidelity simulated KNAPP warehouses, shows PSCS discovered an entirely new algorithm class (CGAR) that beats a calibrated proprietary production baseline by 58.9% on WAREHOUSE-01, and transfers across all six layouts with a single uncalibrated configuration.
  4. Provides a proof (Theorem 1, Appendix A, under stated assumptions) that CGAR is collision-free and completes in finite time every accepted goal that is not withdrawn or replaced, plus generalization checks on unseen layouts (Appendices B.1 and B.2).

Main Findings

  • Competition benchmark gains: PLATM completed 736.8 ± 10.4 tasks on RANDOM-01 (+7.22% over the stronger baseline), 1,356.9 ± 14.6 on RANDOM-02 (+11.30%), 2,647.5 ± 31.4 on RANDOM-03 (+11.05%), 2,790.1 ± 54.9 on RANDOM-04 (+6.87%), and 4,253.3 ± 59.8 on RANDOM-05 (+35.00%, versus 3,150.5 for the stronger baseline). The largest gain appears on the densest instance (800 robots), where congestion collapse hurts standard solvers.
  • Search trajectory on RANDOM-05: early candidates timed out from exponential backtracking and deadlocked at only 54 tasks; the agent then added pre-rotation of waiting robots (about 2,400 tasks), evaluated more candidate plans per step (about 3,000 tasks), and scored moves via short rollouts (over 4,000 tasks).
  • Search cost, case study 1: the PLATM search converged in 42.3 wall-clock hours, using 3.5M output tokens (approximately $700).
  • Warehouse throughput: on WAREHOUSE-01 (65 robots), CGAR reached 775.3 ± 25.4 orders/hour versus 487.9 ± 51.9 for the proprietary baseline (+58.9%). On the other five layouts the baseline was described as not optimized (values in parentheses), and CGAR reached 278.6, 135.1, 269.4, 191.4, and 304.8 orders/hour respectively.
  • Per-robot efficiency: across fleet sizes from 8 to 65 robots and mean route lengths from 21 to 74 m, CGAR sustained 9.52 to 16.89 orders per hour per robot.
  • Search trajectory on WAREHOUSE-01: the seed implementation enforced the progress guarantee so rigidly that execution was nearly sequential and completed almost no orders; certifying concurrent transitions brought it to about 350 orders/hour, stabilizing lane admission reached about 440, throughput plateaued near 445 due to unnecessary detours, route commitments and fair queue release (introduced with the newer coding models) reached 630.6, and final yielding and dispatching refinements reached 775.3.
  • Search cost, case study 2: 177.8 elapsed development hours and 22.0M output tokens (approximately $4,800). The authors identify simulation as the bottleneck driving this cost.
  • Generalization: recalibrating PLATM on a newly generated layout yields throughput within 3.9% of the competition benchmark across all fleet densities; CGAR, with no parameter adjustment on the unseen synthetic WAREHOUSE-00, sustains 16.98 orders per hour per robot.
  • Interpretability trade-off: the agent optimizes purely for empirical performance, so codebases accumulate tightly coupled heuristics and become monolithic and harder for developers to audit than modular human-written code.
  • Methodological caveat: both policies were developed with organic human-in-the-loop steering rather than a fully autonomous, hardcoded search harness; the agents used were Codex Astra for PLATM, and Codex 5.6 Sol plus Codex Astra for CGAR, with Fable 5.1, Fable 5, and Opus 5 consulted for review and diagnostics.

Methodology in Plain English

The human team writes down the environment, the physical constraints, the objective, and a starting codebase (for example, a PIBT planner, the WPPL windowed large-neighborhood-search framework with guidance graphs, and existing task dispatchers). A coding agent working in a command-line environment with compilers, local simulators, and trajectory verifiers then loops: propose an algorithmic edit, implement it in source code, run closed-loop simulation to score it, read execution traces and profiler logs to diagnose what is slow or deadlocking, and repeat. Candidates pass a hierarchy of checks before acceptance — first clean compilation plus unit tests for collision avoidance, deadlock prevention, and compute budgets; then fast short-horizon simulations to discard weak candidates; then longer multi-seed runs to confirm throughput gains under stochastic task arrivals. Benchmarking is paired: identical hardware, fixed initial poses, and shared random seeds across methods, with eight paired trials per instance. For the warehouse case, the agent was seeded only with a design specification demanding a provable finite-time completion guarantee, plus freedom to build throughput heuristics on top; once a throughput layer was found, the algorithm was locked into a two-layer structure where a safety layer commits a motion only if a recovery plan back to a "core graph" of poses still exists. All model queries happen during development; deployed policies are compiled binaries.

Why This Matters

The paper argues that code is a practical middle ground between hand engineering and black-box learning: it scales with compute like learning, but yields inspectable source with no runtime model inference and admits formal verification under stated assumptions. Cost figures (roughly $700 and $4,800 in API usage) make the approach concrete and comparable against engineering effort. For research, it reframes MAPF progress as a search over algorithm implementations rather than over parameters or neural weights, and it reports honest limitations — simulation-bound evaluation and accumulating code complexity — that set the agenda for follow-up work.

Real-world applications:

  • Warehouse fulfillment and automated mobile robot fleets, where throughput per hour directly determines capital efficiency.
  • Factory automation and parcel sorting, where fleets share narrow lanes under hard real-time budgets.
  • Hospital, airport, and logistics-hub material transport with mixed vehicle footprints and continuous geometry.
  • Any multi-robot coordination layer needing auditable, certifiable safety behavior rather than an opaque learned policy.

Industry relevance: the second case study uses simulated operational KNAPP warehouses and a proprietary production baseline, so the comparison targets a real deployment setting in which baselines normally require per-floor-plan manual calibration of lane directions, traversal costs, and stopping rules. A single topology-agnostic policy that transfers across layouts without recalibration is directly commercially relevant.

Future Directions

  • Accelerating policy evaluation, since simulation over long horizons and multiple stochastic realizations is the dominant cost; the authors point to temporal parallelization, importance sampling, and surrogate simulators.
  • Incorporating software engineering objectives into the search, such as penalizing cyclomatic complexity or enforcing periodic refactoring, to counter monolithic generated code.
  • Characterizing the right boundary between programmatic search scaffolding and open-ended model-driven steering, and whether rigid harnesses overfit to a specific model release.
  • Extending PSCS to other cyber-physical systems with coupled allocation, planning, and latency requirements, and testing whether discovered algorithms generalize beyond the layouts studied here.

Target Audience

Robotics and MAPF researchers; warehouse automation and fleet-control engineers evaluating alternatives to hand-tuned solvers or reinforcement learning; and researchers in LLM-based program synthesis and agentic code generation who want evidence of the approach on a demanding cyber-physical application rather than a stylized combinatorial benchmark. Also useful for engineering managers weighing the API cost and code-maintenance trade-offs of agent-driven algorithm discovery.

Authors’ abstract

Developing coordination policies for complex multi-agent systems relies on either labor-intensive algorithm design or opaque task-specific reinforcement learning. With recent advances in autonomous coding agents, we show that policy search directly in code space offers a compelling third path that combines automated optimization with explicit interpretability. We investigate a human-directed workflow in which coding agents iteratively propose, implement, evaluate, diagnose,…

The full abstract on arXiv
Read the original paper

Related papers