Sampling at Scale: Distributed Multi-Agent Trajectory Optimization
Multi-agent trajectory optimization poses two coupled challenges: effectively exploring non-convex landscapes and scaling favorably to large teams of agents. Sampling-based methods are natural candidates for the exploration challenge but scale poorly with problem dimension.
From the abstract. Our summary is in progress.
Full paper
Sampling at Scale: Distributed Multi-Agent Trajectory Optimization
Published under CC BY 4.0. Reproduced with attribution; original at arXiv:2611.31561 (PDF).
Abstract
Multi-agent trajectory optimization poses two coupled challenges: effectively exploring non-convex landscapes and scaling favorably to large teams of agents. Sampling-based methods are natural candidates for the exploration challenge but scale poorly with problem dimension. Moreover, their off-the-shelf integration into distributed optimization introduces a fundamental trade-off: sampling either fails to address the constraint-induced non-convexity or its search space grows with neighborhood size. We address this gap by introducing a Distributed Sampling-based Trajectory Optimization (DS-TO) architecture built on a splitting mechanism tailored to sampling. Under this splitting, each agent samples only in its own control space, independent of neighborhood size, while still remaining exposed to both the constraint-induced non-convexity and the decisions of other agents. The resulting algorithm is fully decentralized, requiring only neighborhood communication, with all local updates executed in parallel across agents. Efficient variations, including parallel Jacobi updates within each agent’s subproblem and single-step constraint linearization, further reduce computation. Experiments on 2D and 3D tasks with up to 1024 agents demonstrate improved exploration and constraint satisfaction over state-of-the-art derivative-based distributed optimization, and superior scalability to existing distributed sampling methods.
I Introduction
Cooperative trajectory planning is fundamental to the safe and efficient operation of robot teams in shared environments, such as aerial swarms navigating clutter [1], autonomous vehicles traversing intersections [2], and warehouse fleets transporting goods [3]. In such settings, robots must plan trajectories that optimize task performance subject to their dynamics, actuation limits, and collision avoidance with obstacles and other robots. These requirements render planning non-convex, coupling decisions through nonlinear dynamics across the horizon and inducing competing local minima among routes and passing orders. At the same time, scale compounds the difficulty: the computational cost of coordinating these coupled trajectories grows rapidly with team size. Meeting these requirements calls for methods that jointly address scalability and non-convexity.
Coordination has been pursued through multi-agent path finding [4], reactive feedback methods [5], learned policies [6], and dynamic games [7]; however, these approaches do not jointly optimize the team’s trajectories. In contrast, trajectory optimization (TO) plans all agents’ trajectories through a joint optimal control problem, yet solving that centrally quickly becomes prohibitive as teams grow. Distributed approaches address this bottleneck by decomposing the full problem into local agent-level subproblems solved in parallel and coordinated through neighborhood communication. Some of the most prominent ones build on the alternating direction method of multipliers (ADMM) [8], a well-established distributed optimization framework. Such methods have enabled distributed model predictive control [9, 10], collaborative manipulation [11] and legged locomotion [12], as well as distributed TO architectures scaling to thousands of agents [13, 14]. Nevertheless, these methods typically rely on derivative-based local solvers, remaining prone to initialization and poor local minima.
Sampling-based derivative-free methods such as model predictive path integral (MPPI) [15] and the cross entropy method (CEM) [16] are natural candidates for such non-convex landscapes. Although such methods are widely used in the single-agent setting [17, 18], their sample efficiency deteriorates as the search space grows, fundamentally limiting their extension to large-scale multi-agent problems. Some notable attempts include ADMM schemes that sample joint neighborhood trajectories [19, 20], belief propagation for distributed inference [21], and decentralized MPPI accounting for neighbors through predicted trajectories [22].
The effectiveness of distributed sampling schemes hinges on two factors: the dimension of each local search and the safety information available to evaluate rollouts. On one side, jointly sampling ego and neighboring controls [19, 20] exposes the sampler to all constraints but inflates the search dimension. On the other hand, splittings that isolate agent dynamics [13, 23] would keep the sampled dimension small but hide the constraints inside auxiliary copies, leaving the sampler to explore a surrogate objective blind to the true safety landscape. Some decentralized MPPI schemes [24] avoid the trade-off entirely, but only by abandoning coordination through a joint problem, treating neighbors as fixed predictions rather than co-optimizing agents. The core challenge is therefore to retain direct exploration of the non-convex safety landscape and joint trajectory coordination while sampling only each agent’s own controls.
We propose Distributed Sampling-based Trajectory Optimization (DS-TO), an ADMM-based distributed sampling-based TO framework that retains constraint-aware exploration while sampling only each agent’s own controls. The proposed formulation separates dynamically feasible primal trajectories from local copies subject to safety constraints, with global consensus variables enforcing consistency between the two. Soft constraint penalties in the primal objective let stochastic optimizers explore the non-convex safety landscape directly, while the local copies coordinate constraint satisfaction without entering the sampled search, keeping its dimension independent of neighborhood size. Instantiating the primal solver with MPPI, our experiments demonstrate strong constraint satisfaction, improved exploration in non-convex scenarios, and favorable scaling relative to state-of-the-art distributed TO baselines (Fig. 1).
The contributions of this work are:
- We formulate a distributed TO decomposition that separates agent dynamics from local constraints through consensus, enabling parallel agent updates and feasibility subproblems that decompose across time.
- We introduce DS-TO, a scalable, fully decentralized algorithm tailored to stochastic solvers, achieving constraint-aware exploration while keeping the sampled control dimension independent of neighborhood size.
- Extensive evaluation on 2D and 3D tasks with up to 1024 agents, demonstrating improved exploration and constraint satisfaction over state-of-the-art derivative-based distributed optimization, and superior scalability than existing distributed sampling methods.
II Preliminaries
II-A Notation
Scalars and vectors use lowercase letters, e.g., a\in\mathbb{R}, v\in\mathbb{R}^{n}, respectively; matrices use uppercase, e.g., A\in\mathbb{R}^{m\times n}; and calligraphic letters denote sets, with |\mathcal{S}| their cardinality. We use (\cdot)^{\top} for transpose, I for identity, \operatorname{blkdiag}(\cdot) for block-diagonal concatenation, and \|\cdot\| for the Euclidean norm, with \|v\|_{A}^{2}\triangleq v^{\top}Av as the weighted norm. A tilde (\tilde{\cdot}) denotes a local copy and a bar (\bar{\cdot}) a global variable. \mathcal{U}(a,b) denotes the uniform distribution on [a,b], and \mathcal{N}(\mu,\Sigma) a Gaussian distribution with mean \mu and covariance \Sigma.
II-B Problem Definition
We consider a team of N agents, with agent set \mathcal{V}\triangleq\{1,\ldots,N\}, over a finite horizon of T steps. At time t, agent i\!\in\!\mathcal{V} has state x_{i,t}\in\mathbb{R}^{n_{x}} and control input u_{i,t}\in\mathbb{R}^{n_{u}}. Each agent i has a neighborhood set \mathcal{N}_{i}\!\subseteq\!\mathcal{V}\setminus\!\{i\}, comprising agents with which it exchanges trajectory information.
We formulate the problem as an optimal control problem (OCP) over the agents’ trajectories. For agent i, let {x}_{i}\triangleq({x}_{i,0},\ldots,{x}_{i,T}) and {u}_{i}\triangleq({u}_{i,0},\ldots,{u}_{i,T-1}), with {X}\triangleq({x}_{1},\ldots,{x}_{N}) and {U}\triangleq({u}_{1},\ldots,{u}_{N}) denoting the team trajectories. The stage cost J_{i,t} captures task performance and control effort, while J_{i,T} encodes the terminal goal. The dynamics f_{i,t} govern state evolution, g_{i,t} captures agent-wise requirements (obstacle avoidance and state/control limits), and h_{ij,t} pairwise safety requirements (minimum separation). For all i\in\mathcal{V} and t=0,\dots,T-1, the resulting OCP is
\displaystyle\min_{X,U}\quad \\ \displaystyle\sum_{i\in\mathcal{V}}\left[\sum_{t=0}^{T-1}J_{i,t}(x_{i,t},u_{i,t})+J_{i,T}(x_{i,T})\right] \\ \displaystyle\mathrm{s.t.}\quad \\ \displaystyle x_{i,0}=x_{i,\mathrm{init}},\quad x_{i,t+1}=f_{i,t}(x_{i,t},u_{i,t}), \\ \displaystyle g_{i,t}(x_{i,t},u_{i,t})\leq 0, \\ \displaystyle h_{ij,t}(x_{i,t},x_{j,t},u_{i,t},u_{j,t})\leq 0,\quad j\in\mathcal{N}_{i}where the terminal constraints can be handled analogously.
II-C Alternating Direction Method of Multipliers (ADMM)
We briefly review the standard two-block ADMM [8]. Consider the constrained optimization problem
\min_{p,q}\quad\phi(p)+\psi(q)\quad\mathrm{s.t.}\quad Ap+Bq=c,where p\in\mathbb{R}^{n_{p}} and q\in\mathbb{R}^{n_{q}} are the two primal blocks, \phi and \psi are their objective terms, and A, B, and c define the coupling constraint. Introducing the dual variable \lambda and penalty parameter \rho>0, the augmented Lagrangian (AL) is
\mathcal{L}_{\rho}(p,q,\lambda)\!=\!\phi(p)\!+\!\psi(q)\!+\!\lambda^{\top}\!r\!+\!\frac{\rho}{2}\|r\|^{2},\quad\!\!\!r\!\triangleq\!Ap+Bq-cAt iteration \ell, ADMM alternates between minimization over the two primal blocks followed by a dual ascent step,
\displaystyle p^{\ell+1} \\ \displaystyle=\arg\min_{p}\,\mathcal{L}_{\rho}(p,q^{\ell},\lambda^{\ell}), \\ \displaystyle q^{\ell+1} \\ \displaystyle=\arg\min_{q}\,\mathcal{L}_{\rho}(p^{\ell+1},q,\lambda^{\ell}), \\ \displaystyle\lambda^{\ell+1} \\ \displaystyle=\lambda^{\ell}+\rho\!\left(Ap^{\ell+1}+Bq^{\ell+1}-c\right).The algorithm holds similarly for multiple primal blocks.
II-D Model Predictive Path Integral Control
Model Predictive Path Integral (MPPI) control is a derivative-free method for optimal control that iteratively updates a nominal control sequence using importance-weighted, dynamically feasible rollouts generated by forward simulation [15]. Given a nominal sequence u, MPPI samples K perturbed control sequences around it according to
u^{(k)}_{t}=u_{t}+\epsilon^{(k)}_{t},\qquad\epsilon^{(k)}_{t}\sim\mathcal{N}(0,\Sigma),where \Sigma is the sampling covariance. Each perturbed sequence is propagated through the dynamics and assigned a trajectory cost J^{(k)}. The samples are then weighted as
w_{k}=\exp(-\alpha J^{(k)})/\bar{w},\qquad\bar{w}=\sum_{r=1}^{K}\exp(-\alpha J^{(r)}),where \alpha>0 controls the concentration toward lower-cost rollouts. The nominal control trajectory, corresponding to the mean of the sampling distribution, is updated according to
u_{t}\leftarrow u_{t}+\sum_{k=1}^{K}w_{k}\epsilon^{(k)}_{t},\quad t=0,\ldots,T-1.III Methodology
DS-TO is built around a sampling-tailored decomposition: each agent samples only its own controls, while dynamics-free local copies represent neighboring trajectories and explicitly enforce local and interagent constraints. Soft penalties expose these constraints directly to the sampled primal rollouts, while ADMM consensus reconciles the dynamically feasible primal trajectories with their local copies. This keeps the sampled dimension independent of neighborhood size while allowing direct exploration of the non-convexity.
III-A Consensus Reformulation and Augmented Lagrangian
Let \mathcal{N}_{i}^{+}=\mathcal{N}_{i}\cup\{i\} denote agent i’s augmented neighborhood. Agent i maintains local state and input copies \tilde{x}_{j,t}^{i},\tilde{u}_{j,t}^{i} for each j\in\mathcal{N}_{i}^{+}, where superscript i identifies the agent holding the copy. We stack these variables as \tilde{x}_{i,t}^{a}:=(\tilde{x}_{j,t}^{i})_{j\in\mathcal{N}_{i}^{+}} and \tilde{u}_{i,t}^{a}:=(\tilde{u}_{j,t}^{i})_{j\in\mathcal{N}_{i}^{+}}, with superscript a denoting quantities stacked over \mathcal{N}_{i}^{+}. The local copies provide the variables on which constraints are imposed: g_{i,t} acts on agent i’s own copy, while h_{i,t}^{a} collects the interagent constraints with j\in\mathcal{N}_{i}. Global variables \bar{x}_{i,t},\bar{u}_{i,t} provide a common representation of each agent’s state and input, with \bar{x}_{i,t}^{a} and \bar{u}_{i,t}^{a} stacking the corresponding global variables over \mathcal{N}_{i}^{+}. Defining Z=(X,U), \tilde{Z}^{a}=(\tilde{X}^{a},\tilde{U}^{a}), and \bar{Z}=(\bar{X},\bar{U}) we reformulate the OCP (1) as follows
\displaystyle\min_{Z,\tilde{Z}^{a},\bar{Z}} \\ \displaystyle\sum_{i\in\mathcal{V}}\Phi_{i}(Z_{i},\tilde{Z}_{i}^{a}) \\ \displaystyle\text{s.t.} \\ \displaystyle x_{i,0}=x_{i,\mathrm{init}},\quad x_{i,t+1}=f_{i,t}(x_{i,t},u_{i,t}), \\ \displaystyle g_{i,t}(\tilde{x}_{i,t}^{i},\tilde{u}_{i,t}^{i})\leq 0,\quad h_{i,t}^{a}(\tilde{x}_{i,t}^{a},\tilde{u}_{i,t}^{a})\leq 0, \\ \displaystyle x_{i,t}=\bar{x}_{i,t},\quad u_{i,t}=\bar{u}_{i,t}, \\ \displaystyle\tilde{x}_{i,t}^{a}=\bar{x}_{i,t}^{a},\quad\tilde{u}_{i,t}^{a}=\bar{u}_{i,t}^{a},where the agent-wise objective \Phi_{i} combines task cost with soft penalties that expose constraint-induced non-convexity and neighboring-trajectory information to the primal update:
\displaystyle\Phi_{i}(Z_{i},\tilde{Z}_{i}^{a})\triangleq\; \\ \displaystyle\sum_{t=0}^{T-1}J_{i,t}(x_{i,t},u_{i,t})+J_{i,T}(x_{i,T}) \\ \displaystyle+\sum_{t=0}^{T-1}\beta_{g}\,c\!\left(g_{i,t}(x_{i,t},u_{i,t})\right) \\ \displaystyle+\sum_{t=0}^{T-1}\sum_{j\in\mathcal{N}_{i}}\beta_{h}\,c\!\left(h_{ij,t}(x_{i,t},u_{i,t},\tilde{x}_{j,t}^{i},\tilde{u}_{j,t}^{i})\right),where the penalty c(\cdot) is zero when constraints are satisfied and positive otherwise, with \beta_{g},\beta_{h}>0. At consensus, feasibility of the local copies ensures the original constraints in (1) are satisfied and therefore the soft penalties vanish.
To form the Augmented Lagrangian (AL), we introduce dual variables \lambda_{i} and \tilde{\lambda}_{i}^{a} for Z_{i}\!=\!\bar{Z}_{i} and \tilde{Z}_{i}^{a}\!=\!\bar{Z}_{i}^{a}, respectively. Define R:=\operatorname{blkdiag}(\rho I,\mu I) and \tilde{R}_{i}:=|\mathcal{P}_{i}|^{-1}\operatorname{blkdiag}(\tilde{\rho}I,\tilde{\mu}I), where \mathcal{P}_{i}:=\{k\mid i\in\mathcal{N}_{k}^{+}\} collects the agents holding copies of agent i, and all penalty coefficients are positive. Normalizing by |\mathcal{P}_{i}| preserves the primal’s contribution as the copy count increases. The augmented penalty is \tilde{R}_{i}^{a}:=\operatorname{blkdiag}((\tilde{R}_{j})_{j\in\mathcal{N}_{i}^{+}}). The AL is
\displaystyle\mathcal{L}=\sum_{i\in\mathcal{V}}\mathcal{L}_{i}= \\ \displaystyle\sum_{i\in\mathcal{V}}\Bigg[\Phi_{i}(Z_{i},\tilde{Z}_{i}^{a})+I_{f}(Z_{i})+I_{c}(\tilde{Z}_{i}^{a}) \\ \displaystyle+\!\lambda_{i}^{\top}\!(Z_{i}-\bar{Z}_{i})\!+\!\frac{1}{2}\|Z_{i}-\bar{Z}_{i}\|_{R}^{2} \\ \displaystyle+\!(\tilde{\lambda}_{i}^{a})^{\top}\!(\tilde{Z}_{i}^{a}-\bar{Z}_{i}^{a})\!+\!\frac{1}{2}\|\tilde{Z}_{i}^{a}-\bar{Z}_{i}^{a}\|_{\tilde{R}_{i}^{a}}^{2}\Bigg]where I_{f}(Z_{i}), I_{c}(\tilde{Z}_{i}^{a}) are indicators of dynamically feasible primal and constraint-feasible local-copy sets in (8).
In the following, we apply ADMM to alternate between local updates over (Z_{i},\tilde{Z}_{i}^{a}), decentralized consensus updates over \bar{Z}_{i}, and dual updates over (\lambda_{i},\tilde{\lambda}_{i}^{a}), corresponding to the updates in (4). Since the augmented Lagrangian is separable across agents, the local updates can be performed in parallel.
III-B First Block: Agent-wise Local Subproblem
In the first ADMM block, each agent independently minimizes \mathcal{L}_{i} over its primal and local-copy variables (Z_{i},\tilde{Z}_{i}^{a}), while keeping the global and dual variables fixed. The optimization variables remain coupled through the soft penalty terms \beta_{h}c(h_{ij,t}) in \Phi_{i}. Jointly solving for these variables cannot exploit distinct structures: the primal variables are constrained only by the dynamics, whereas the local copies are subject to hard constraints but timewise independent. We therefore use a block-coordinate update to separate updates, yielding subproblems tailored to their respective structures.
The block-coordinate update can follow either a Jacobi or Gauss–Seidel (GS) scheme; we use Jacobi by default, allowing both blocks to use previous iterates and perform the computationally intensive updates in parallel within each agent. The ADMM penalties maintain coupling between the two blocks through the shared consensus variables. Suppressing the inner block-coordinate iteration index, underlined variables denote the latest available values. They are initialized as \{\underline{x}_{i,t},\underline{u}_{i,t}\}=\{x_{i,t}^{\ell},u_{i,t}^{\ell}\} and \underline{\tilde{Z}}_{i}^{a}=\tilde{Z}_{i}^{a,\ell}.
III-B1 Sub-Block A: Primal Trajectory Update
Fixing the local copy \underline{\tilde{Z}}_{i}^{a}, each agent i optimizes only for Z_{i}:
\displaystyle Z_{i}^{\ell+1}= \\ \displaystyle\argmin_{Z_{i}}\;\Phi_{i}\!\left(Z_{i},\underline{\tilde{Z}}_{i}^{a}\right)+\frac{1}{2}\left\|Z_{i}-\bar{Z}_{i}^{\ell}+R^{-1}\lambda_{i}^{\ell}\right\|_{R}^{2} \\ \displaystyle\mathrm{s.t.}\;x_{i,0}=x_{i,\mathrm{init}},\quad x_{i,t+1}=f_{i,t}(x_{i,t},u_{i,t}),where I_{f}(Z_{i}) is enforced by the initial condition and dynamics, reducing the problem via forward rollout to unconstrained optimization over the control sequence. This is well suited to sampling-based optimization, since samples are drawn only over agent i’s controls, with a fixed sampling dimension of T\!\times\!n_{u} independent of neighborhood size. The soft penalties in \Phi_{i} incorporate constraint and neighboring-trajectory information, enabling exploration of the resulting non-convex landscape. Since the constraint-feasible local copies need not satisfy the dynamics, these penalties guide the primal trajectory toward consistency with them.
III-B2 Sub-Block B: Local-Copy Feasibility Update
Since \tilde{Z}_{i}^{a} carries no dynamic constraints, its update decomposes across time. With \{\underline{x}_{i,t},\underline{u}_{i,t}\} fixed, agent i solves
\displaystyle\tilde{Z}_{i,t}^{a,\ell+1}=\argmin_{\tilde{Z}_{i,t}^{a}}\; \\ \displaystyle\frac{1}{2}\left\|\tilde{Z}_{i,t}^{a}-\bar{Z}_{i,t}^{a,\ell}+(\tilde{R}^{a}_{i,t})^{-1}\tilde{\lambda}_{i,t}^{a,\ell}\right\|_{\tilde{R}^{a}_{i,t}}^{2} \\ \displaystyle+\sum_{j\in\mathcal{N}_{i}}\beta_{h}c\!\left(h_{ij,t}(\underline{x}_{i,t},\underline{u}_{i,t},\tilde{x}_{j,t}^{i},\tilde{u}_{j,t}^{i})\right) \\ \displaystyle\text{s.t.}\quad g_{i,t}(\tilde{x}_{i,t}^{i}, \\ \displaystyle\tilde{u}_{i,t}^{i})\leq 0,\quad h_{i,t}^{a}(\tilde{x}_{i,t}^{a},\tilde{u}_{i,t}^{a})\leq 0,for each t=0,\ldots,T-1. Unlike the primal update, this subproblem explicitly enforces constraints g_{i} and h_{i}^{a}, thereby producing constraint-feasible local copies. The decomposition confines neighborhood-dependent scaling to each time step rather than over the entire horizon.
If \beta_{h}=0, the primal and local-copy updates decouple within the ADMM primal step (4a). The soft penalties introduce this coupling, allowing constraint-feasible local copies to inform the dynamically feasible primal update and thereby motivating the block-coordinate update scheme.
III-C Second Block: Global Consensus and Dual Updates
Minimizing \mathcal{L}_{i} over \bar{Z}_{i} yields a second ADMM block with penalty weights R,\tilde{R}_{i} and dual corrections \lambda_{i},\{\tilde{\lambda}_{i}^{k}\}_{k\in\mathcal{P}_{i}},
\bar{Z}_{i}^{\ell+1}\!\!=\!\big(R\!+\!|\mathcal{P}_{i}|\tilde{R}_{i}\big)^{-1}\Bigg[RZ_{i}^{\ell+1}\!\!\!+\!\lambda_{i}^{\ell}\!+\!\!\!\sum_{k\in\mathcal{P}_{i}}\!\!\left(\tilde{R}_{i}\tilde{Z}_{i}^{k,\ell+1}\!\!+\!\tilde{\lambda}_{i}^{k,\ell}\right)\!\!\Bigg]Agent i evaluates (13) using (Z_{i},\lambda_{i}) and (\tilde{Z}_{i}^{k},\tilde{\lambda}_{i}^{k}) received from agents k\in\mathcal{P}_{i}. Since |\mathcal{P}_{i}|\tilde{R}_{i}=\operatorname{blkdiag}(\tilde{\rho}I,\tilde{\mu}I), the total weight assigned to all local copies of agent i, \{\tilde{Z}_{i}^{k}\}_{k\in\mathcal{P}_{i}}, remains fixed as |\mathcal{P}_{i}| grows, preserving the relative influence of Z_{i} in the consensus update.
Finally, each agent updates its dual variables \lambda_{i} and \tilde{\lambda}_{i}^{a} by ascent on the primal and local copy consensus residuals,
\displaystyle\lambda_{i}^{\ell+1} \\ \displaystyle=\lambda_{i}^{\ell}+R(Z_{i}^{\ell+1}-\bar{Z}_{i}^{\ell+1}), \\ \displaystyle\tilde{\lambda}_{i}^{a,\ell+1} \\ \displaystyle=\tilde{\lambda}_{i}^{a,\ell}+\tilde{R}_{i}^{a}(\tilde{Z}_{i}^{a,\ell+1}-\bar{Z}_{i}^{a,\ell+1}),where \bar{Z}_{i}^{a,\ell+1} collects \bar{Z}_{j}^{\ell+1} for j\in\mathcal{N}_{i}^{+}, with each neighbor j\in\mathcal{N}_{i} communicating the updated \bar{Z}_{j}^{\ell+1} to agent i.
IV Implementation Decisions
We describe the solver choices and approximations used in DS-TO. These choices are specific to our implementation, and alternatives can be used within the same framework.
IV-A MPPI for Constraint-Aware Exploration
We employ MPPI to solve (11), sampling each agent’s control sequence T\times n_{u} and generating dynamically feasible rollouts in parallel. The soft penalties \beta_{g}c(g_{i,t}) and \beta_{h}c(h_{ij,t}) guide dynamically feasible exploration of the non-convex constraint landscape. Penalty evaluations can be performed in parallel across samples and constraints without requiring any constraint derivatives. Note that a convergence guarantee accounting for the inexact stochastic MPPI updates lies beyond the scope of this work.
IV-B Constraint Linearization and Relaxation
The local copy variables are warm-started from the global consensus variables, which also serve as the proximal targets in (12) and carry information from the preceding primal update through (13). This motivates normalizing the local-copy penalties to preserve the influence of explored primal trajectories. Although (12) decomposes across time, fully solving each nonlinear subproblem requires multiple iterations. We instead linearize the constraints and omit the interagent soft penalty \beta_{h}c(h_{ij,t}), yielding a small QP independent of the current primal update and relinearize at the next ADMM iteration. Since the omitted penalty and its gradient vanish at consensus, this does not alter the stationarity conditions.
Since global consensus may violate the constraints, linearization around consensus variables can yield an infeasible subproblem. We therefore introduce slack variables initialized from the current violations to ensure a feasible relaxed subproblem. We do not warm-start the local solver dual variables, avoiding bias toward the previous active set.
18 agents. The middle snapshot is taken when agents are closest to one another. Red agent edges indicate collisions.V Experiments
We first study fully connected (|\mathcal{N}_{i}^{+}|=N,\forall i\in\mathcal{V}) agents in tasks emphasizing interagent coordination and non-convex route exploration, then evaluate locally connected (|\mathcal{N}_{i}^{+}|\ll N,\forall i\in\mathcal{V}) agents to assess scalability. The agents are modeled as unicycles or drones. We select baselines with complementary characteristics. Merged DistributedDDP [13] is a scalable deterministic baseline using three-block ADMM with primal–local and local–global consensus and gradient-based trajectory updates. DSS [19, 20] utilizes MPPI with soft penalties using two-block ADMM, but samples control trajectories over the augmented neighborhood, increasing the search dimension to |\mathcal{N}_{i}^{+}|\times T\times n_{u}. We also include SQP [25], with OSQP [26] as the internal solver. The ablations of DS-TO either remove the interagent soft penalty (\beta_{h}=0), both of them (\beta_{g},\beta_{h}=0), or replace the default parallel Jacobi update with sequential Gauss–Seidel.
Distributed methods use 100 ADMM iterations, while SQP uses 100 outer iterations. For DS-TO, \rho,\mu,\tilde{\rho},\tilde{\mu}=10, with local-copy penalties scaled by 1/|\mathcal{P}_{i}|. Both DS-TO and DSS use c(\cdot)=[\max(0,\cdot)]^{2} with \beta_{g}=\beta_{h}=10^{5}. DS-TO performs one Jacobi block-coordinate update per ADMM iteration. For unicycle tasks, baseline penalties are tuned over \rho=\mu\in\{0.1,1,10,100,1000\}; DSS additionally sweeps \alpha\in\{10^{2},10^{3},10^{4}\}. For each task and scale, We report the best Clean or Succ rate, as defined in the corresponding sections. For drone experiments, we use the same ADMM penalty as DS-TO.
DistributedDDP performs eight DDP updates per ADMM iteration, while DS-TO and DSS perform three MPPI updates with K=4096 samples. DS-TO uses \alpha=100, while DSS uses the tuned value above. The sampling covariances are \Sigma_{\mathrm{uni}}\!=\!\operatorname{diag}(0.4,0.2) and \Sigma_{\mathrm{drone}}\!=\!\operatorname{diag}(10^{-2}\!,10^{-4}\!,10^{-4}\!,10^{-4}). For sampling methods, each environment and scale is evaluated over five random seeds.
The agents’ dynamics are discretized by forward Euler using \Delta t=0.1\,\mathrm{s}. The unicycle has state x_{i}=[p_{x,i},p_{y,i},\theta_{i}]^{\top}\in\mathbb{R}^{3} (planar position and heading) and control u_{i}=[\upsilon_{i},\dot{\theta}_{i}]^{\top}\in\mathbb{R}^{2} (linear and angular velocity). The drone follows the model in [27], with state x_{i}=[p_{i}^{\top},\dot{p}_{i}^{\top},\eta_{i}^{\top},\Omega_{i}^{\top}]^{\top}\in\mathbb{R}^{12} (position, velocity, Euler angles, and body angular velocity) and control u_{i}=[\mathcal{F}_{i},\tau_{i}^{\top}]^{\top}\in\mathbb{R}^{4} (total thrust and body torque). We use mass m=1\,\mathrm{kg} and inertia tensor \mathcal{I}=\operatorname{diag}(0.02,0.02,0.04)\,\mathrm{kg\!\cdot\!m^{2}}. Control bounds \upsilon_{i}\in[-1,3], |\dot{\theta}_{i}|\leq 2, \mathcal{F}_{i}\in[0,20], |\tau_{i,k}|\leq 0.2 are enforced by clamping in MPPI and box constraining the QPs. Since DistributedDDP does not enforce these bounds, control bound violations are excluded from comparison metrics.
All tasks use per-agent quadratic stage J_{i,t}(x_{i,t},u_{i,t})=\tfrac{1}{2}\|x_{i,t}-x_{i}^{\mathrm{ref}}\|_{Q}^{2}+\tfrac{1}{2}\|u_{i,t}-u^{\mathrm{ref}}\|_{R}^{2} and terminal cost J_{i,T}(x_{i,T})=\tfrac{1}{2}\|x_{i,T}-x_{i}^{\mathrm{ref}}\|_{Q_{T}}^{2}, where x_{i}^{\mathrm{ref}} is the target state. For unicycle, Q=\operatorname{diag}(1,1,0), R=\operatorname{diag}(3,0.3), and u^{\mathrm{ref}}=0; for drones, Q=\operatorname{blkdiag}(I_{3},0.1I_{3},0_{3\times 3},0.01I_{3}), R=0.01I_{4}, and u^{\mathrm{ref}}=[9.81,0,0,0]^{\top}, where both use Q_{T}=2400\times Q. State trajectories are initialized at x_{i,\mathrm{init}} and control sequences at u^{\mathrm{ref}}. Obstacle constraints are defined as g_{i,t}^{\mathrm{obs}}=(r_{\mathrm{agent}}+r_{\mathrm{obs}})-\|p_{i,t}-c_{\mathrm{obs}}\|, where c_{\mathrm{obs}} and r_{\mathrm{obs}} denote the obstacle center and radius, respectively; the resulting constraints are stacked into g_{i,t}. Interagent collision avoidance is imposed as h_{ij,t}=2r_{\mathrm{agent}}-\|p_{i,t}-p_{j,t}\|.
Experiments were conducted on an Intel i9-13900K CPU, 64 GB RAM, and an NVIDIA RTX 4090 GPU. ADMM methods execute on the GPU while SQP (OSQP) on the CPU. For Jacobi, parallel runtime is estimated as the maximum solve time of (11) and (12), measured sequentially with GPU synchronization. For locally connected cases with N\geq 64, methods are serialized in batches of 32 agents due to hardware limits; we report average per-batch runtime to reflect parallel execution in a distributed deployment.
V-A Fully Connected Agents
We employ unicycles of r_{\mathrm{agent}}=0.3\,\mathrm{m} and evaluate 20 environments. Clean denotes the fraction of episodes in which all agents finish within 2r_{\mathrm{agent}} of their goals while all obstacle and interagent violations remain below 0.05\,\mathrm{m}. We also report the maximum penetration \delta_{\max} over all episodes.
\uparrow); bottom left: \delta_{\max} (\downarrow); top right: J/N (\downarrow); bottom right: computation time (\downarrow).24 agents. The left two columns show the antipodal goal assignment, and the right two columns show the random permutation assignment. The middle snapshot is taken when agents are closest to one another. Red agent edges indicate collisions.V-A1 Gate
This task requires two groups to exchange positions through a narrow passage. We consider N\in\{2,8,18,32\} with T=100, pairing corresponding positions to equalize travel distances and offsetting initial heights by \pm 0.3\,\mathrm{m} to break symmetry. The two obstacles share r_{\mathrm{obs}}\sim\mathcal{U}(0.5,3.0)\,\mathrm{m}, with horizontal offsets from \mathcal{U}(-1,1)\,\mathrm{m}; passage width and vertical center are sampled from \mathcal{U}(1.3,2.4)\,\mathrm{m} and \mathcal{U}(-0.6,0.6)\,\mathrm{m}. Large obstacles force coordination through the central passage, as shown in Fig. 2, whereas smaller ones allow detours.
Figure 3 shows that DS-TO achieves Clean rates of 1.00, 0.92, and 0.68 at N=8,18,32, respectively. In contrast, DistributedDDP has no clean episodes for N\geq 8, while SQP drops to 0.15 at N=32, highlighting the limited exploratory capability of gradient-based updates. DSS also degrades with team size and exceeds memory at N=32. DS-TO scales more favorably, requiring 17.1\,\mathrm{s} at N=32, versus 38.0\,\mathrm{s} for DistributedDDP and 523.3\,\mathrm{s} for SQP, while achieving a lower J/N of 2.44\times 10^{3}, compared with 3.27\times 10^{3} and 6.92\times 10^{3}, respectively. We omit J/N hereafter.
Finally, we compare the default Jacobi update with GS. GS improves Clean from 0.92 to 0.99 at N=18 and from 0.68 to 0.93 at N=32, at up to 21\% additional computation time. The modest subproblem sizes, however, limit the computational benefit of parallel Jacobi updates.
V-A2 Circle
\uparrow) and log-scale computation time (\downarrow).\uparrow); right: maximum penetration \delta_{\max} (\downarrow).In this task, we examine interagent coordination with route exploration in cluttered environments. We initialize N\in\{3,6,12,24\} agents evenly on a circle of radius 4\,\mathrm{m} with T=200. The antipodal setting assigns diametrically opposite goals, requiring compatible passing orders near the center, whereas the permutation setting randomly assigns goals, requiring agents to navigate through the obstacle field (Fig. 4). Each environment contains 11 circular obstacles with r_{\mathrm{obs}}\sim\mathcal{U}(0.45,0.75)\,\mathrm{m} inside the initialization circle with sufficient clearance; obstacles either overlap by at least 0.18\,\mathrm{m} or are separated by at least \frac{8}{3}r_{\mathrm{agent}}, creating traps while excluding marginally traversable gaps.
Figure 5 shows that DS-TO maintains a Clean rate of at least 0.98 for all N under the permutation setting, while it decreases to 0.85 at N=24 under the antipodal setting. At this scale, both deterministic baselines have zero Clean rate under the antipodal setting; under the permutation, SQP reaches 0.35 while DistributedDDP reaches zero. As the problem size increases, the gradient-based baselines become increasingly prone to local minima, resulting in lower Clean rates. DSS has no clean episodes at N=12 and exceeds available memory at N=24. The computation time for DS-TO remains below 20\,\mathrm{s} at N=24 in both settings, compared with at least 52.7\,\mathrm{s} for DistributedDDP and 632.4\,\mathrm{s} for SQP.
The benefit of parallel Jacobi updates becomes more pronounced in this task. At N=24 under the antipodal assignment, the QP accounts for 55\% of the iteration time, yielding a 1.74\times speedup over GS, compared with 1.06–1.23\times for smaller problems. Jacobi also achieves a higher Clean rate, 0.85 versus 0.66, indicating that sequential updates do not uniformly improve finite-budget solution quality.
Figure 6 evaluates the role of the soft penalties. At N=6, removing the interagent penalty reduces Clean under both assignments, while removing both penalties yields no clean episodes, supporting the use of soft penalties for sampling.
V-B Locally Connected Formation of Large Teams
We next evaluate scalability under local connectivity. Agents with r_{\mathrm{agent}}=0.15\,\mathrm{m} are arranged on a 0.9\,\mathrm{m} grid with formation constraints preserving the initial coordinate-wise ordering, h_{ij,t}^{c}=-s_{ij}^{c}(p_{j,t}^{c}-p_{i,t}^{c})\leq 0, where s_{ij}^{c}=\mathrm{sign}(p_{j,0}^{c}-p_{i,0}^{c}) and c\in\{x,y\}. The constraint uses x, y, or both coordinates for horizontal, vertical, or diagonal neighbors. Each of the 20 environments contains 48 obstacles with r_{\mathrm{obs}}=0.2\,\mathrm{m}, sampled in a 2\times 18\,\mathrm{m} region under the same overlap and gap conditions as in the Circle task. Figure 7 shows trajectories at the largest scale.
We report the agent-wise success rate Succ., defined analogously to Clean with the formation constraints, together with \delta_{\max}. The horizons are T=40,40,50,70,90, and 90 for N=2,8,32,64,128, and 256, respectively. As SQP scales poorly with the number of agents, we omit its results here.
\uparrow); right: maximum penetration \delta_{\max} (\downarrow). The shaded region fixes k_{\max}=8.As shown in Fig. 8, DS-TO maintains a success rate of 1.00 as local connectivity increases over k_{\max}=1,2,5, and 8, corresponding to N=2,8,32, and 64. At k_{\max}=8, DistributedDDP drops to 0.80 with \delta_{\max}=0.298. DSS also degrades with increasing connectivity; at N=64, we reduce its chunk size from 32 to 16 to avoid out-of-memory, yet its success rate is only 0.19.
Next, fixing k_{\max}=8, we scale the team from N=64 to 256. DS-TO maintains a success rate of 1.00, while DistributedDDP remains between 0.78 and 0.81. At N=256, DS-TO achieves \delta_{\max}=0.170, compared with 0.307 for DistributedDDP. The primal soft penalties discourage violations before full consensus, whereas consensus residuals in DistributedDDP can directly induce constraint violations.
\uparrow) and \delta_{\max} (\downarrow). Right: average computation time (\downarrow) on a square-root scale per framework chunk (in lines), and DS-TO sub-block solves (MPPI and QP; in bars).V-C Scalability in a 3D Multi-Drone Task
We further evaluate scalability on a 3D multi-drone task with T=90 over 5 environments. Extending the 2D formation along z gives k_{\max}=8,17, and 26 for N=256,512, and 1024. Each environment contains 16 spherical obstacles with r_{\mathrm{obs}}=0.6\,\mathrm{m}, using the same x–y distribution as in the Formation task and c_{z}\sim\mathcal{U}(-a_{z},a_{z}), with a_{z}=1.65,2.10, and 3.00 chosen according to the formation height to maintain comparable difficulty. The same overlap and gap conditions as in the Circle task are applied in 3D. Due to memory limitations and poor scalability with neighborhood size, we omit DSS from this experiment.
Figure 9 shows that DS-TO maintains a success rate of at least 0.997 with \delta_{\max}\leq 0.017 across all scales, while DistributedDDP reaches \delta_{\max}=0.505 at N=1024. At N=512, comparable MPPI and QP solve times maximize the benefit of parallel execution, making DS-TO 4.21\times faster than DistributedDDP (22.1\,\mathrm{s} compared with 93.0\,\mathrm{s}). At N=1024, the QP dominates as k_{\max} grows, but DS-TO remains 4.19\times faster (44.9\,\mathrm{s} compared with 188.3\,\mathrm{s}).
VI Conclusion
We proposed DS-TO, a highly parallel and fully decentralized framework for multi-agent trajectory optimization. DS-TO combines sampling-based optimization in each agent’s control space with locally optimized views of interacting agents’ trajectories, which are reconciled through decentralized consensus of ADMM. This separates constraint-aware exploration from multi-agent coordination without requiring a centralized optimizer. Across the considered tasks, DS-TO maintained high solution feasibility in challenging non-convex multi-agent problems and scaled to large locally connected teams, including a team of 1024 drones.
While this work focuses on MPPI as the local solver, the framework remains well suited to other sampling-based methods. Future work will explore integrating more advanced training-free [28] or learning-based diffusion/flow-based samplers [29] to further enhance performance. Another interesting direction is extending to the MPC setting, where previous solutions would effectively warm-start sampling.