Judgelight: Trajectory-Level Post-Optimization for Multi-Agent Path Finding via Closed-Subwalk Collapsing

Yimin Tang, Sven Koenig, Erdem Bıyık · DOI

TL;DR

Judgelight is a post-optimization framework that cleans up inefficient, oscillatory paths generated by fast Multi-Agent Path Finding (MAPF) solvers. By formulating the removal of redundant loops as an Integer Linear Programming (ILP) problem, it reduces path costs by 20–40% while maintaining real-time performance.

What Problem Does This Paper Address?

Multi-Agent Path Finding (MAPF) is the backbone of automated warehouses (like Amazon’s) and drone swarms. While traditional search-based algorithms find optimal paths, they struggle to scale as the number of robots increases. To solve this, researchers have turned to deep learning, which provides near-instant decisions.

However, neural networks have a "jitter" problem. Because they often predict movement one step at a time without a long-term horizon, they frequently produce "feasible but messy" trajectories. Robots might oscillate back and forth or move in redundant loops even when the path is clear. This isn't just aesthetically unpleasing; it wastes battery, increases mechanical wear, and raises the risk of collisions in crowded spaces. The authors tackle the challenge of removing these redundancies without breaking the safety constraints that keep robots from crashing into each other.

Methods

The authors introduce MAPF-Collapse, a formal optimization problem where the goal is to "collapse" closed subwalks (sequences where an agent leaves a spot and eventually returns to it) into a single "wait" action.

To solve this, they propose Judgelight, which uses Integer Linear Programming (ILP). The process involves:

  1. Identifying Candidates: Finding every instance where an agent returns to a previously visited location.
  2. Building a Constraint Graph: This is the clever part. You can't just remove one agent's loop in isolation because another agent might have been planning to move through that space while the first agent was "looping." Judgelight models three types of constraints:
  3. Mutual Exclusion: An agent cannot apply two overlapping collapses.
  4. Action-Action Collisions: Two agents' collapses cannot place them in the same spot at the same time.
  5. Dependency Chains: If Agent A collapses a loop and stays put, Agent B (who was supposed to pass through that spot) must also collapse a loop or move elsewhere to avoid a collision.
  6. Optimization: Two key heuristics—filtering long identical segments and pre-processing "ABA" oscillations—are used to keep the number of ILP variables manageable.

Datasets

The researchers evaluated Judgelight using the POGEMA benchmark, a standard for testing learning-based MAPF solvers. They tested on five distinct map types:

  • Maze & Random: Dense obstacles.
  • Warehouse: Structured, grid-like environments.
  • Puzzle: Tight, constrained spaces.
  • Cities-tiles: Realistic urban-style layouts.

They applied Judgelight to several state-of-the-art solvers, including SCRIMP, DCC, RAILGUN, MAMBA, and the search-based LaCAM.

Key Insights and Ideas

  • Post-Optimization is NP-Hard: Surprisingly, even if you already have a valid solution, finding the best way to remove redundant moves is NP-hard. The authors proved this via a reduction from the Independent Set problem.
  • The "Wait" Preference: The core philosophy is that an agent should stay in place unless movement is strictly necessary for progress or collision avoidance.
  • Learning-Based Solvers Benefit Most: While search-based solvers like LaCAM are already quite efficient, learning-based policies (which are prone to "exploratory" jitter) see massive improvements, effectively getting the speed of AI with the path quality of classical optimization.

Key Results

  • Cost Reduction: Judgelight consistently reduced the "Sum of Costs" (total time spent moving) by 20% to 40% across various models.
  • Efficiency: Despite the NP-hard nature of the problem, the ILP formulation is highly efficient. Over 90% of test cases were optimized in under one second, making it viable for real-world deployment.
  • Robustness: The system works even in "partially solved" scenarios. If some agents can't reach their goals, Judgelight at least ensures they don't move around aimlessly, reducing overall system congestion.

Limitations and Future Work

  • Wait-Time Optimization: Currently, Judgelight only removes redundant movements. It does not optimize "unnecessary waiting"—for example, it won't realize that an agent could have started moving two seconds earlier to reach its goal faster.
  • Heuristic Trade-offs: The "ABA" filter used to keep the ILP small is a heuristic. While necessary for speed, it technically means the solver might miss the absolute global optimum in very specific, complex oscillatory cases.
  • Future Directions: The authors suggest extending this to Lifelong MAPF (where robots get new tasks continuously) and incorporating rotation-based costs for more realistic robot kinematics.

Summary updated

BibTeX
@misc{tang2026judgelight,
  author = {Yimin Tang and Sven Koenig and Erdem Bıyık},
  title = {{Judgelight: Trajectory-Level Post-Optimization for Multi-Agent Path Finding via Closed-Subwalk Collapsing}},
  year = {2026},
  eprint = {2601.19388},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.19388},
}
Figure