Differentiable Environment-Trajectory Co-Optimization for Safe Multi-Agent Navigation
Organizations: Department of Computer Science and Technology, University of Cambridge, UK · Zurich University of Applied Sciences, ZHAW, Winterthur, Swizerland · Computational Robotics Lab, Department of Computer Science, ETH Zurich, Switzerland
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.
Figures & tables
| Scenario | Safety metric | SPL | NumCOLL | Computation time | PCTSpeed | |
| 1-1 Warehouse ( agents) | Optimized environment (ours) | 0.932 0.030 | 0.948 0.030 | 0 0 | 6.554 5.135 | 0.825 0.035 |
| Standard environment with a regular layout | 0.878 0.049 | 0.930 0.030 | 0 0 | 34.384 41.470 | 0.836 0.042 | |
| Baseline environment with a random layout | 0.870 0.073 | 0.934 0.022 | 0 0 | 51.817 61.533 | 0.838 0.034 | |
| 1-2 Warehouse ( agents) | Optimized environment (ours) | 0.944 0.019 | 0.944 0.029 | 0 0 | 40.677 38.371 | 0.793 0.030 |
| Standard environment with a regular layout | 0.909 0.027 | 0.916 0.019 | 0.063 0.134 | 93.067 75.022 | 0.814 0.022 | |
| Baseline environment with a random layout | 0.913 0.030 | 0.909 0.025 | 0.144 0.334 | 98.649 98.703 | 0.822 0.022 |
| Scenario | Safety metric | SPL | NumCOLL | Computation time | PCTSpeed | |
|---|---|---|---|---|---|---|
| Narrow Passage (unicycle) | Optimized environment (ours) | 0.833 | 0.981 | 0 | 41.275 | 0.227 |
| Narrow environment | 0.777 | 0.756 | 0.167 | 57.331 | 0.229 | |
| Wide environment | 0.784 | 0.987 | 0 | 74.580 | 0.275 | |
| Road intersection (unicycle) | Optimized environment (ours) | 0.949 | 0.990 | 0 | 26.043 | 0.701 |
| Baseline environment with an intersection angle | 0.932 | 0.984 | 0 | 56.251 | 0.705 | |
| Baseline environment with an intersection angle | 0.944 | 0.988 | 0 | 29.213 | 0.701 |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| Stochastic environment optimization | Safety metric | SPL | NumCOLL | Computation time | PCTSpeed |
|---|---|---|---|---|---|
| Optimized environment (ours) | 0.929 0.013 | 0.943 0.019 | 0 0 | 10.465 9.490 | 0.816 0.029 |
| Standard environment with a regular layout | 0.896 0.029 | 0.916 0.020 | 0 0 | 36.572 42.818 | 0.826 0.021 |
| Baseline environment with a random layout | 0.894 0.035 | 0.923 0.022 | 0.075 0.225 | 71.270 86.946 | 0.821 0.027 |