Differentiable Environment-Trajectory Co-Optimization for Safe Multi-Agent Navigation

Zhan Gao, Gabriele Fadini, Stelian Coros, Amanda Prorok
4/8/2026
cs.ROcs.MA

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

The environment plays a critical role in multi-agent navigation by imposing spatial constraints, rules, and limitations that agents must navigate around. Traditional approaches treat the environment as fixed, without exploring its impact on agents' performance. This work considers environment configurations as decision variables, alongside agent actions, to jointly achieve safe navigation. We formulate a bi-level problem, where the lower-level sub-problem optimizes agent trajectories that minimize navigation cost and the upper-level sub-problem optimizes environment configurations that maximize navigation safety. We develop a differentiable optimization method that iteratively solves the lower-level sub-problem with interior point methods and the upper-level sub-problem with gradient ascent. A key challenge lies in analytically coupling these two levels. We address this by leveraging KKT conditions and the Implicit Function Theorem to compute gradients of agent trajectories w.r.t. environment parameters, enabling differentiation throughout the bi-level structure. Moreover, we propose a novel metric that quantifies navigation safety as a criterion for the upper-level environment optimization, and prove its validity through measure theory. Our experiments validate the effectiveness of the proposed framework in a variety of safety-critical navigation scenarios, inspired from warehouse logistics to urban transportation. The results demonstrate that optimized environments provide navigation guidance, improving both agents' safety and efficiency.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{gao2026differentiable,
  title  = {Differentiable Environment-Trajectory Co-Optimization for Safe Multi-Agent Navigation},
  author = {Zhan Gao and Gabriele Fadini and Stelian Coros and Amanda Prorok},
  year   = {2026},
  eprint = {2604.06972},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.06972v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2604.06972.svg)](https://codeofpaper.com/paper/2604.06972)

Discussion