MEKAWIRE
ExpertarXiv

Multi-Agent Flow Matching with Decoupled Generative Guidance

Ruoyu Lin, Magnus Egerstedt, Fabio PasqualettiUniversity of California, Irvine; University of North Carolina at Chapel Hill
In 30 seconds

A guidance method for generative AI models lets a team of robots plan a shared plank bridge that works in all 250 test cases, against 32 failures for the unguided model, including team sizes never seen in training, in a preprint from UC Irvine and UNC Chapel Hill. Each robot computes its own correction without waiting for the others.

Research question

Can a flow-matching generative model be steered so that what several agents generate together provably satisfies hard joint requirements, while each agent computes its own guidance without knowing the others' simultaneous corrections?

Problem

Generative models such as diffusion and flow matching produce diverse robot motions or scenes, but nothing guarantees the output respects hard constraints. With many agents the problem worsens: a requirement such as keeping a shared object level, or leaving room to open a drawer, depends on several agents at once, and coordinating corrections centrally does not scale.

Previous approach

Guidance for diffusion and flow models typically adds gradients of a cost or classifier during sampling, which nudges outputs toward constraints without guarantees, or projects samples onto a feasible set after generation; multi-agent versions usually assume a central solver that sees every agent's correction.

New approach

DeGG-Flow treats the generative process as a control-affine dynamical system and designs guidance inputs like controllers. It separates shared requirements, satisfied by agents jointly, from private requirements, owned by one agent but affected by its neighbours, and gives each class a decoupled guidance law with feasibility conditions and finite-horizon convergence guarantees. A Wasserstein bound states how far guidance can pull the generated distribution from the unguided one.

Results

In a multi-robot task where a team must place a plank to cross a gap, a model trained on teams of four to six robots was tested on four to eight (50 trials each): the unguided model failed in 32 of 250 trials, while the guided version built a traversable bridge in all 250, including the 100 trials with unseen team sizes of seven and eight. In multi-object scene generation with per-object access requirements, guided generation satisfied every requirement in all 250 cases, while unguided success fell as the number of objects grew.

Limitations

The paper reports computational experiments only; no hardware robot trials are described. Guarantees hold under the stated feasibility conditions and the chosen requirement functions, which must be written by hand for each task. The two tasks are stylised, and the paper does not compare against other constrained-sampling methods on a common benchmark in the sections we read.

Industry impact

This preprint matters to companies using generative policies for fleets, such as warehouse robots or multi-arm cells, where outputs must respect collision and workspace limits every time, not on average. Decoupled guidance fits decentralised control, so it could reach multi-robot planners within two to three years if the guarantees survive real sensing noise; near-term use is in simulation and layout generation.

Full paper

Multi-Agent Flow Matching with Decoupled Generative Guidance

Ruoyu Lin, Magnus Egerstedt, Fabio Pasqualetti

Published under CC BY 4.0. Reproduced with attribution; original at arXiv:2609.38133 (PDF).

Abstract

Generative modeling is widely used for producing diverse objects from complex, multimodal distributions. However, its expressivity does not, in general, come with formal guarantees that the generated objects satisfy hard constraints or requirements. In multi-agent generation, this problem becomes more challenging because a hard requirement can depend on multiple agents, while each agent may need to determine its own guidance input without relying on the simultaneously computed guidance inputs of other agents. To this end, we introduce DeGG-Flow, a general framework for multi-agent flow matching with decoupled generative guidance. By representing the generative process as a control-affine dynamical system, we develop guidance conditions for two classes of coupled requirements: shared requirements whose satisfaction depends on multiple agents together, and private requirements associated with each individual agent dependent on its neighbors. For both classes, we establish feasibility conditions and finite-horizon convergence guarantees. We further derive a Wasserstein bound that characterizes the distributional deviation induced by the guidance. We demonstrate DeGG-Flow on multi-robot collaboration for crossing a spatial gap by reconfiguring the environment, and on multi-object scene generation with affordance requirements. Across both applications, DeGG-Flow directly generates objects that satisfy all corresponding hard requirements, including at team sizes unseen during training.

12

1 Introduction

Generative models have achieved remarkable success across a wide range of domains, from language and vision to robotics and scientific discovery (Brown et al., 2020; Rombach et al., 2022; Chi et al., 2025; Lipman et al., 2022; Albergo et al., 2025; Janner et al., 2022; Tang et al., 2024). A core strength of these models is their ability to characterize complex, multimodal distributions and generate diverse objects from them. However, such expressivity, in general, does not imply that every generated object satisfies desired hard constraints or requirements. For example, a generated motion may violate safety requirements, a generated molecular structure may violate physical or chemical constraints, and new requirements introduced after training may not be represented in the training data. This gap is especially important when a learned generative model is already useful but new hard requirements arise after training. In such cases, it is desirable to impose constraints at generation time without collecting new data or retraining the model.

Guidance in the generative process provides a natural mechanism for enforcing constraints (Bansal et al., 2024; Feng et al., 2025). Recent work has made this idea increasingly principled by incorporating control barrier functions (CBF) (Ames et al., 2016) into generative process. SafeDiffuser (Xiao et al., 2025) introduces CBF into the denoising process of diffusion probabilistic model (Ho et al., 2020); SafeFlow (Dai et al., 2025) targets robot motion planning by imposing CBF constraints at the waypoints of a generated trajectory; Gadginmath et al. (2026) formulate constrained sampling through a stochastic differential equation and implement discrete-time CBF through a first-order approximation; and SafeFlowMatcher (Yang et al., 2026) addresses robotic path planning by first generating a candidate path and then applying a separate CBF-based correction.

Multi-agent generative modeling changes the structure of such guidance, as hard constraints or requirements may depend jointly on multiple agents. A direct approach is to treat all agents as a single-agent system and compute the guidance together. However, a key advantage of multi-agent systems is that the team need not depend on a single central decision maker, whose failure could affect all agents at once. This motivates decentralized or agent-wise guidance, where each agent determines its own guidance without relying on that of any other agent. Existing multi-agent generative models address different aspects of this problem. MADiff (Zhu et al., 2024) models multimodal multi-agent behavior and supports decentralized execution; Shaoul et al. (2025) combine diffusion models with search-based planning to generate collision-free multi-robot trajectories; Parimi and Williams (2025) decompose multi-arm planning into single-arm trajectory generation and pairwise collision resolution; Liang et al. (2025) integrate constrained projection into the denoising process (Ho et al., 2020) to satisfy collision avoidance and kinematic constraints; and MAC-Flow (Lee et al., 2026) learns joint behaviors with flow matching and distills them into decentralized one-step policies. These works provide different mechanisms for generating, coordinating, and adapting multi-agent behavior. What remains unresolved is how to guarantee a hard requirement that depends on multiple agents when each agent determines only its own guidance.

The constrained generative methods discussed earlier do not directly resolve this problem either. Applied to the full multi-agent state, they naturally lead to a joint guidance problem. The challenge is thus to formulate a guidance rule for each agent that it can satisfy, while ensuring that these agent-level rules together provide provable guarantees on the team-level coupled constraints or requirements.

To this end, we introduce DeGG-Flow, a general framework for multi-agent flow matching with decoupled generative guidance. Its central idea is to preserve agent-wise guidance while providing formal guarantees for requirements that can couple multiple agents. DeGG-Flow handles two classes of requirements: shared requirements for which multiple agents collaboratively contribute to their satisfaction, and private requirements associated with each individual agent whose satisfaction depends on its neighbors. The guidance is applied during the generative process, without collecting new training data, retraining the learned generative model, or repairing the generated objects afterward. The distributional deviation induced by the guidance is further shown to be theoretically bounded rather than uncharacterized. Our main contributions are summarized as follows.

  • Agent-wise guidance with team-level requirement. We formulate the generative process of multi-agent flow matching as a control-affine dynamical system and adapt disentangled control (Lin et al., 2026) to decoupled guidance, so that each agent determines only its own guidance input without relying on the simultaneously computed guidance input of any other agent, while retaining formal guarantees for requirements that couple multiple agents.
  • Feasibility and finite-horizon convergence guarantees. For shared requirements, we introduce an adaptive constraint allocation approach to ensure feasibility of the corresponding decoupled guidance, and propose a time-varying bound that guarantees the generated object reaches a desired set in the generative state space within finite horizon. For private requirements, we also establish feasibility conditions for the corresponding decoupled guidance and propose an approach to guarantee finite-horizon convergence.
  • Bounded distributional deviation under guidance. We derive a Wasserstein bound that characterizes how far the guided joint generative distribution can deviate from the unguided one, and empirically evaluate the resulting distributional deviation in experiments.
  • Applications with shared and private requirements. We demonstrate DeGG-Flow on multi-robot collaborative policy generation with shared coupled requirements for crossing a spatial gap by reconfiguring the environment, and on multi-object scene generation with private coupled requirements, where each object’s affordance requirements, i.e., its access and use requirements, depend on neighboring objects. In both tasks, DeGG-Flow directly generates objects that satisfy all hard requirements without post-generation correction, including for numbers of agents beyond those used during training.

2 Multi-Agent Flow Matching Guided by Disentangled Control

2.1 Multi-agent flow matching

Consider a team of N\in\mathbb{Z}^{+} agents, indexed by i\in\mathcal{N}\coloneqq\{1,\ldots,N\}, whose joint generative process produces an output y\in\mathcal{Y}_{N} for a given task, where \mathcal{Y}_{N} denotes the corresponding output space. Let \chi\in\mathcal{C}_{N} denote the generation condition, where \mathcal{C}_{N} is the corresponding condition space. The condition contains information such as initial states, agent or object properties, environment information, or task specifications. The output y depends on specific applications. For example, in Section 4.1, y represents a motion policy for N robots, and in Section 4.2, y represents an arrangement of N objects. Instead of generating y directly, each agent i has a generative state z_{i}(\tau)\in\mathcal{Z}\subseteq\mathbb{R}^{d_{z}} at generative time \tau\in[0,1], which is different from physical time t\in\mathbb{R}_{\geq 0}. Denote the joint generative state as \mathbf{z}(\tau)\coloneqq[z_{1}(\tau)^{\top},\ldots,z_{N}(\tau)^{\top}]^{\top}\in\mathcal{Z}^{N}\subseteq\mathbb{R}^{Nd_{z}}. The task-specific decoder and encoder map between the joint generative state space and the output space are denoted as

\displaystyle\mathcal{D}_{N} \\ \displaystyle:\mathcal{Z}^{N}\times\mathcal{C}_{N}\rightarrow\mathcal{Y}_{N},\quad y=\mathcal{D}_{N}(\mathbf{z}\,|\,\chi), \\ \displaystyle\mathcal{E}_{N} \\ \displaystyle:\mathcal{Y}_{N}\times\mathcal{C}_{N}\rightarrow\mathcal{Z}^{N},\quad\mathbf{z}=\mathcal{E}_{N}(y\,|\,\chi).
(1) (2)

For a training data y, \mathcal{E}_{N}(y\,|\,\chi) per (2) gives its target generative state for flow matching, and \mathcal{D}_{N}(\mathbf{z}(1)\,|\,\chi) per (1) represents the final generated object.

Given N and \chi, let p_{\mathrm{data}}(\mathbf{z}\,|\,\chi) denote the joint conditional distribution of the encoded training data in \mathcal{Z}^{N}, and let p_{0}(\mathbf{x}) denote a simple initial distribution in \mathcal{Z}^{N} from which samples can be drawn efficiently. Generation starts from \mathbf{z}(0)\sim p_{0} and evolves over \tau\in[0,1] governed by the dynamical system

\dot{\mathbf{z}}=f(\tau,\mathbf{z}\,|\,\chi).

The objective of flow matching (Lipman et al., 2022) is to learn a vector field whose flow transports p_{0} to p_{\mathrm{data}}(\mathbf{z}\,|\,\chi). To learn such a vector field, for each target \mathbf{z}\in\mathcal{Z}^{N}, consider a conditional probability path p(\tau,\mathbf{x}\,|\,\mathbf{z},\chi) satisfying p(0,\mathbf{x}\,|\,\mathbf{z},\chi)=p_{0}(\mathbf{x}) and p(1,\mathbf{x}\,|\,\mathbf{z},\chi)=\delta(\mathbf{x}-\mathbf{z}), where \mathbf{x}\in\mathcal{Z}^{N} is a realization of the intermediate random variable \mathbf{X}(\tau) and \delta(\mathbf{x}-\mathbf{z}) is the Dirac delta concentrated at \mathbf{z}. Let v(\tau,\mathbf{x}\,|\,\mathbf{z},\chi)\in\mathbb{R}^{Nd_{z}} denote a conditional time-varying vector field that generates this path, then the marginal probability path is p(\tau,\mathbf{x}\,|\,\chi)=\int_{\mathcal{Z}^{N}}p(\tau,\mathbf{x}\,|\,\mathbf{z},\chi)p_{\mathrm{data}}(\mathbf{z}\,|\,\chi)\,\mathrm{d}\mathbf{z}, and the corresponding marginal vector field is

f(\tau,\mathbf{x}\,|\,\chi)\coloneqq\int_{\mathcal{Z}^{N}}\!v(\tau,\mathbf{x}\,|\,\mathbf{z},\chi)\,\frac{p(\tau,\mathbf{x}\,|\,\mathbf{z},\chi)p_{\mathrm{data}}(\mathbf{z}\,|\,\chi)}{p(\tau,\mathbf{x}\,|\,\chi)}\,\mathrm{d}\mathbf{z}.
(3)

Since (3) depends on the unknown data distribution, in this paper, (3) is represented as a message passing graph neural network (GNN) (Gilmer et al., 2017)

f^{\theta}:[0,1]\times\mathcal{Z}^{N}\times\mathcal{C}_{N}\rightarrow\mathbb{R}^{Nd_{z}},
(4)

which we refer to as the nominal vector field. The same neural network parameters \theta are shared across all agents. Each agent computes its output from its own state and messages aggregated from neighboring agents so that the GNN (4) is permutation equivariant. Denote f^{\theta}=[(f_{1}^{\theta})^{\top},\ldots,(f_{N}^{\theta})^{\top}]^{\top}, where f_{i}^{\theta}\in\mathbb{R}^{d_{z}} is the nominal vector field of agent i, which is trained using the multi-agent conditional flow matching loss

\displaystyle\mathcal{L}_{\mathrm{MAC}}(\theta\,|\,\chi)\coloneqq\mathbb{E}\Bigg[ \\ \displaystyle\frac{1}{N}\sum_{i=1}^{N}\Big\|f_{i}^{\theta}(\tau,\mathbf{X}(\tau)\,|\,\chi) \\ \displaystyle-v_{i}(\tau,\mathbf{X}(\tau)\,|\,\mathbf{Z},\chi)\Big\|^{2}\Bigg],

in which the expectation is taken over \tau\sim\mathrm{Unif}[0,1], the encoded data random variable \mathbf{Z}\sim p_{\mathrm{data}}(\mathbf{z}\,|\,\chi), and the intermediate state random variable \mathbf{X}(\tau)\sim p(\tau,\mathbf{x}\,|\,\mathbf{Z},\chi) along the conditional probability path. After training, f^{\theta} is the nominal vector field governing the generative dynamics. We next introduce a guidance mechanism modifying such dynamics.

2.2 Disentangled control guidance

The nominal vector field f^{\theta} transports samples from a simple initial distribution toward a complex, multimodal distribution that approximates the encoded data distribution. However, the resulting generated objects are not, in general, guaranteed to satisfy hard constraints or requirements. To this end, we introduce a guidance input to the dynamics of each agent in the generative process. Let u_{i}(\tau)\in\mathbb{R}^{m_{i}} be the guidance input of agent i, and g_{i}:[0,1]\times\mathcal{Z}^{N}\times\mathcal{C}_{N}\rightarrow\mathbb{R}^{d_{z}\times m_{i}} be the map determining how the guidance input affects the generative dynamics. Then, the guided generative dynamics are in the control-affine form

\dot{z}_{i}=f_{i}^{\theta}(\tau,\mathbf{z}\,|\,\chi)+g_{i}(\tau,\mathbf{z}\,|\,\chi)u_{i},\quad\forall i\in\mathcal{N}.
(6)

We represent the hard requirement by a C^{1} (i.e., continuously differentiable) function, and consider two classes of decoupled guidance by adapting disentangled control (Lin et al., 2026) from multi-agent control in physical space into the generative process as a form of decoupled guidance, i.e., guidance for shared-entangled requirements (SE guidance) and guidance for private-entangled requirements (PE guidance), to enable agent i to compute u_{i} without access to the simultaneously computed guidance input u_{j}, \forall j\in\mathcal{N}\setminus\!\{i\}.

SE guidance.

Let \mathcal{G}_{\mathrm{F}}^{\mathrm{SE}}=(\mathcal{N},\mathcal{A}^{\mathrm{SE}},\mathcal{I}^{\mathrm{SE}}) be a factor graph (Kschischang et al., 2001), where \mathcal{A}^{\mathrm{SE}} is a finite set of factors and \mathcal{I}^{\mathrm{SE}}\subseteq\mathcal{N}\times\mathcal{A}^{\mathrm{SE}} is the incidence relation. For each factor a\in\mathcal{A}^{\mathrm{SE}}, define the incident agent set as \mathcal{S}_{a}^{\mathrm{SE}}\coloneqq\{i\in\mathcal{N}:(i,a)\in\mathcal{I}^{\mathrm{SE}}\}\neq\varnothing, and let \mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}} denote the corresponding subvector of the joint generative state. Let V_{a}^{\mathrm{SE}}:[0,1]\times\prod_{i\in\mathcal{S}_{a}^{\mathrm{SE}}}\mathcal{Z}\times\mathcal{C}_{N}\rightarrow\mathbb{R} be C^{1}. The guidance input u_{i} of agent i\in\mathcal{S}_{a}^{\mathrm{SE}} is such that

\displaystyle\nabla_{z_{i}}V_{a}^{\mathrm{SE}}(\tau,\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}\,|\,\chi)^{\top}\Bigl(f_{i}^{\theta}(\tau,\mathbf{z}\,|\,\chi) \\ \displaystyle+g_{i}(\tau,\mathbf{z}\,|\,\chi)u_{i}\Bigr)+\zeta_{a,i}^{\mathrm{SE}}(\tau,\mathbf{z}\,|\,\chi)\leq 0,

in which

\displaystyle\sum_{i\in\mathcal{S}_{a}^{\mathrm{SE}}}\zeta_{a,i}^{\mathrm{SE}}(\tau,\mathbf{z}\,|\,\chi) \\ \displaystyle=\partial_{\tau}V_{a}^{\mathrm{SE}}(\tau,\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}\,|\,\chi) \\ \displaystyle+\alpha_{a}^{\mathrm{SE}}\!\left(V_{a}^{\mathrm{SE}}(\tau,\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}\,|\,\chi)\right),

where \alpha_{a}^{\mathrm{SE}}:\mathbb{R}\rightarrow\mathbb{R} is an extended class \mathcal{K}_{\infty} function.

PE guidance.

For each agent i\in\mathcal{N}, let V_{i}^{\mathrm{PE}}:[0,1]\times\mathcal{Z}^{N}\times\mathcal{C}_{N}\rightarrow\mathbb{R}_{\geq 0} be C^{1}. The guidance input u_{i} of agent i is such that

\displaystyle\nabla_{z_{i}}V^{\mathrm{PE}}(\tau,\mathbf{z}\,|\,\chi)^{\top}\left(f_{i}^{\theta}(\tau,\mathbf{z}\,|\,\chi)+g_{i}(\tau,\mathbf{z}\,|\,\chi)u_{i}\right) \\ \displaystyle+\zeta_{i}^{\mathrm{PE}}(\tau,\mathbf{z}\,|\,\chi)\leq 0,\quad\forall i\in\mathcal{N},

in which

V^{\mathrm{PE}}(\tau,\mathbf{z}\,|\,\chi)\coloneqq\sum_{i\in\mathcal{N}}V_{i}^{\mathrm{PE}}(\tau,\mathbf{z}\,|\,\chi)

and

\displaystyle\zeta_{i}^{\mathrm{PE}}(\tau,\mathbf{z}\,|\,\chi) \\ \displaystyle\coloneqq\partial_{\tau}V_{i}^{\mathrm{PE}}(\tau,\mathbf{z}\,|\,\chi) \\ \displaystyle+\omega^{\mathrm{PE}}(\tau)\,\alpha^{\mathrm{PE}}\!\left(V_{i}^{\mathrm{PE}}(\tau,\mathbf{z}\,|\,\chi)\right),

where \omega^{\mathrm{PE}}:[0,1]\rightarrow\mathbb{R}_{\geq 0}, and \alpha^{\mathrm{PE}}:\mathbb{R}_{\geq 0}\rightarrow\mathbb{R}_{\geq 0} is a subadditive class \mathcal{K}_{\infty} function.

Intuitively, SE guidance is suitable for scenarios where multiple agents have certain shared goals or requirements, such as the task of multi-robot collaborative policy generation in Section 4.1, while PE guidance is suitable for scenarios where each agent has its own requirement, which can be affected by its neighbors, such as the task of multi-object scene generation in Section 4.2.

3 Adaptive Guidance and Formal Guarantees

Section 2 introduces two classes of decoupled guidance for multi-agent generation, under which each agent computes its own guidance input without relying on the simultaneously computed guidance inputs of other agents. Since the generative process evolves over the finite horizon \tau\in[0,1], it is necessary to ensure that the final generated object directly satisfies the desired hard requirements. In this section, we propose separate finite-horizon convergence methods for SE and PE guidance. We further characterize the distributional deviation induced by guidance through a Wasserstein bound on the guided and nominal joint generative distributions.

3.1 SE guidance with finite-horizon convergence

Let the C^{1} function q_{a}^{\mathrm{SE}}(\tau,\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}\,|\,\chi) represent a shared requirement, where q_{a}^{\mathrm{SE}}\leq 0 means that the requirement is satisfied. An initial sample \mathbf{z}(0)\sim p_{0} need not satisfy this requirement. Thus, we introduce a time-varying upper bound \beta_{a}^{\mathrm{SE}}(\tau\,|\,\chi,\mathbf{z}(0)) that is initialized from \mathbf{z}(0). The bound is chosen to satisfy

\beta_{a}^{\mathrm{SE}}(0\,|\,\chi,\mathbf{z}(0))\geq q_{a}^{\mathrm{SE}}(0,\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}(0)\,|\,\chi),
(11)

and is tightened toward a prescribed terminal value. In particular, choosing \beta_{a}^{\mathrm{SE}}(1\,|\,\chi,\mathbf{z}(0))=0 ensures that the desired hard requirement is satisfied by the end of the generative process.

Accordingly, define

V_{a}^{\mathrm{SE}}(\tau,\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}\,|\,\chi)\coloneqq q_{a}^{\mathrm{SE}}(\tau,\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}\,|\,\chi)-\beta_{a}^{\mathrm{SE}}(\tau\,|\,\chi,\mathbf{z}(0)),
(12)

so that V_{a}^{\mathrm{SE}}\leq 0 is equivalent to q_{a}^{\mathrm{SE}}\leq\beta_{a}^{\mathrm{SE}}. Since factor a involves multiple agents, \partial_{\tau}V_{a}^{\mathrm{SE}}+\alpha_{a}^{\mathrm{SE}}(V_{a}^{\mathrm{SE}}) can be allocated among the involved agents using w_{a,i}^{\mathrm{SE}}\geq 0 with \sum_{i\in\mathcal{S}_{a}^{\mathrm{SE}}}w_{a,i}^{\mathrm{SE}}=1, i.e.,

\displaystyle\zeta_{a,i}^{\mathrm{SE}}(\tau,\mathbf{z}\,|\,\chi) \\ \displaystyle\coloneqq w_{a,i}^{\mathrm{SE}}\Bigl(\partial_{\tau}q_{a}^{\mathrm{SE}}(\tau,\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}\,|\,\chi) \\ \displaystyle-\dot{\beta}_{a}^{\mathrm{SE}}(\tau\,|\,\chi,\mathbf{z}(0)) \\ \displaystyle+\alpha_{a}^{\mathrm{SE}}\!\left(V_{a}^{\mathrm{SE}}(\tau,\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}\,|\,\chi)\right)\Bigr).

Since \partial_{\tau}V_{a}^{\mathrm{SE}}=\partial_{\tau}q_{a}^{\mathrm{SE}}-\dot{\beta}_{a}^{\mathrm{SE}}, this construction satisfies (8). The following theorem shows that satisfying the agent-wise constraint of SE guidance keeps the shared requirement below its prescribed bound throughout the generative process.

Theorem 3.1 (Finite-horizon convergence for SE guidance).

Let q_{a}^{\mathrm{SE}} and \beta_{a}^{\mathrm{SE}} be C^{1}. Suppose (11) holds, and let V_{a}^{\mathrm{SE}} and \zeta_{a,i}^{\mathrm{SE}} be defined by (12) and (13), with w_{a,i}^{\mathrm{SE}}\geq 0 and \sum_{i\in\mathcal{S}_{a}^{\mathrm{SE}}}w_{a,i}^{\mathrm{SE}}=1. If every agent i\in\mathcal{S}_{a}^{\mathrm{SE}}, along a trajectory of (6), satisfies (7), \forall\tau\in[0,1], then

q_{a}^{\mathrm{SE}}(\tau,\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}(\tau)\,|\,\chi)\leq\beta_{a}^{\mathrm{SE}}(\tau\,|\,\chi,\mathbf{z}(0)),\quad\forall\tau\in[0,1].

In particular, if

\beta_{a}^{\mathrm{SE}}(1\,|\,\chi,\mathbf{z}(0))=0,

then

q_{a}^{\mathrm{SE}}(1,\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}(1)\,|\,\chi)\leq 0,

i.e., the final generated state satisfies the shared requirement.

Proof.

See Appendix A.1. ∎

To ensure that the constraint (7) is feasible for each agent, we adapt the coefficients w_{a,i}^{\mathrm{SE}} according to how each agent can affect the shared requirements. Define

\ell_{a,i}^{\mathrm{SE}}\coloneqq g_{i}(\tau,\mathbf{z}\,|\,\chi)^{\top}\nabla_{z_{i}}q_{a}^{\mathrm{SE}}(\tau,\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}\,|\,\chi),

which determines how the guidance input u_{i} affects the shared requirement q_{a}^{\mathrm{SE}}. Based on (13), the constraint (7) can be written as (\ell_{a,i}^{\mathrm{SE}})^{\top}u_{i}+b_{a,i}^{\mathrm{SE}}\leq 0 with

b_{a,i}^{\mathrm{SE}}\coloneqq\nabla_{z_{i}}q_{a}^{\mathrm{SE}}(\tau,\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}\,|\,\chi)^{\top}f_{i}^{\theta}(\tau,\mathbf{z}\,|\,\chi)+\zeta_{a,i}^{\mathrm{SE}}(\tau,\mathbf{z}\,|\,\chi).

When b_{a,i}^{\mathrm{SE}}\leq 0, u_{i}=0 already satisfies this inequality. When b_{a,i}^{\mathrm{SE}}>0, agent i must apply a guidance input that reduces the corresponding requirement. When two SE factors are simultaneously active at agent i, their local guidance conditions may compete for the same input u_{i}. To address this issue, let a\in\{1,2\} and \hat{\ell}_{a,i}^{\mathrm{SE}}\coloneqq{\ell_{a,i}^{\mathrm{SE}}}/{\|\ell_{a,i}^{\mathrm{SE}}\|} if \ell_{a,i}^{\mathrm{SE}}\neq 0 and \hat{\ell}_{a,i}^{\mathrm{SE}}\coloneqq 0 otherwise. Then, \eta_{i}^{\mathrm{SE}}\coloneqq(\hat{\ell}_{1,i}^{\mathrm{SE}})^{\top}\hat{\ell}_{2,i}^{\mathrm{SE}} characterizes how aligned the effects of u_{i} on the two active requirements is. For \delta\in(0,1), let \phi_{\delta}:[-1,1]\rightarrow[-1,0] be a C^{2} function satisfying \phi_{\delta}(\eta)=\eta for \eta\leq-\delta, \phi_{\delta}(\eta)=0 for \eta\geq\delta, and \phi_{\delta}(\eta)\leq\min\{\eta,0\} for \eta\in[-1,1]. Then, we define the effective directions

d_{1,i}^{\mathrm{SE}}\coloneqq\ell_{1,i}^{\mathrm{SE}}-\|\ell_{1,i}^{\mathrm{SE}}\|\phi_{\delta}(\eta_{i}^{\mathrm{SE}})\hat{\ell}_{2,i}^{\mathrm{SE}}

and

d_{2,i}^{\mathrm{SE}}\coloneqq\ell_{2,i}^{\mathrm{SE}}-\|\ell_{2,i}^{\mathrm{SE}}\|\phi_{\delta}(\eta_{i}^{\mathrm{SE}})\hat{\ell}_{1,i}^{\mathrm{SE}}.

When only one SE factor is active at agent i, we set d_{a,i}^{\mathrm{SE}}\coloneqq\ell_{a,i}^{\mathrm{SE}}. The modification is inactive when the two effective directions are sufficiently aligned and increases as they become opposed. As such, for each active SE factor, we choose the adaptive constraint allocation coefficient in (13) as

w_{a,i}^{\mathrm{SE}}\coloneqq\frac{\|d_{a,i}^{\mathrm{SE}}\|^{2}}{\sum_{j\in\mathcal{S}_{a}^{\mathrm{SE}}}\|d_{a,j}^{\mathrm{SE}}\|^{2}}.
(14)

Then, the following proposition establishes the existence of guidance inputs such that (7) is satisfied.

Proposition 3.2 (Adaptive SE guidance).

If each agent is incident to at most two simultaneously active SE factors, and for every active SE factor the denominator of (14) is nonzero and d_{a,i}^{\mathrm{SE}}\neq 0 when b_{a,i}^{\mathrm{SE}}>0, then, there exists a guidance input u_{i}(\tau) satisfying (7), \forall\tau\in[0,1]. Such a guidance input can be obtained from

\displaystyle\min_{u_{i}\in\mathbb{R}^{m_{i}}}\quad u_{i}^{\top}H_{i}u_{i} \\ \displaystyle\mathrm{s.t.}\quad\;\,(\ell_{a,i}^{\mathrm{SE}})^{\top}u_{i}+b_{a,i}^{\mathrm{SE}}\leq 0,\quad\forall a\in\mathcal{A}_{i}^{\mathrm{SE}},

which admits a unique minimizer when H_{i}\succ 0, where \mathcal{A}_{i}^{\mathrm{SE}}\coloneqq\{a\in\mathcal{A}^{\mathrm{SE}}:i\in\mathcal{S}_{a}^{\mathrm{SE}}\}.

Proof.

See Appendix A.2. ∎

3.2 PE guidance with finite-horizon convergence

Next, we propose a method to ensure finite-horizon convergence for PE guidance. Recall that, unlike the real-valued V_{a}^{\mathrm{SE}}\in\mathbb{R} in the SE guidance scenario, here each agent has a nonnegative V_{i}^{\mathrm{PE}}\in\mathbb{R}_{\geq 0} representing the violation of its private requirement that can be dependent on its neighbors. Let \partial_{\tau}V_{i}^{\mathrm{PE}}(\tau,\mathbf{z}\,|\,\chi)=0 and choose the total violation to be

V^{\mathrm{PE}}(\mathbf{z}\,|\,\chi)=\sum_{i\in\mathcal{N}}V_{i}^{\mathrm{PE}}(\mathbf{z}\,|\,\chi),

so V^{\mathrm{PE}}=0 means that all private requirements are satisfied. We then choose

\alpha^{\mathrm{PE}}(s)\coloneqq c^{\mathrm{PE}}s^{\rho^{\mathrm{PE}}},
(16)

where c^{\mathrm{PE}}\in\mathbb{R}_{>0} and \rho^{\mathrm{PE}}\in(0,1). The choice of 0<\rho^{\mathrm{PE}}<1 enables finite-horizon convergence, and \omega^{\mathrm{PE}}(\tau) in (10) modulates the required decrease of V^{\mathrm{PE}} over \tau, as shown in the following theorem.

Theorem 3.3 (Finite-horizon convergence for PE guidance).

Let \alpha^{\mathrm{PE}} be given by (16). If every agent, along a trajectory of (6), satisfies (9), \forall\tau\in[0,1], then

\displaystyle V^{\mathrm{PE}}(\mathbf{z}(\tau)\,|\,\chi) \\ \displaystyle\leq\max\Biggl\{0,\;\left(V^{\mathrm{PE}}(\mathbf{z}(0)\,|\,\chi)\right)^{1-\rho^{\mathrm{PE}}} \\ \displaystyle-c^{\mathrm{PE}}(1-\rho^{\mathrm{PE}})\int_{0}^{\tau}\!\omega^{\mathrm{PE}}(s)\,\mathrm{d}s\Biggr\}^{\frac{1}{1-\rho^{\mathrm{PE}}}}.

In particular, if

c^{\mathrm{PE}}(1-\rho^{\mathrm{PE}})\int_{0}^{1}\!\omega^{\mathrm{PE}}(s)\,\mathrm{d}s\geq\left(V^{\mathrm{PE}}(\mathbf{z}(0)\,|\,\chi)\right)^{1-\rho^{\mathrm{PE}}},

then

V^{\mathrm{PE}}(\mathbf{z}(1)\,|\,\chi)=0,

i.e., the final generated state satisfies all private requirements.

Proof.

See Appendix A.3. ∎

Unlike SE guidance, PE guidance assigns each agent a single inequality constraint. Define

\ell_{i}^{\mathrm{PE}}\coloneqq g_{i}(\tau,\mathbf{z}\,|\,\chi)^{\top}\nabla_{z_{i}}V^{\mathrm{PE}}(\mathbf{z}\,|\,\chi)

and

\displaystyle b_{i}^{\mathrm{PE}} \\ \displaystyle\coloneqq\nabla_{z_{i}}V^{\mathrm{PE}}(\mathbf{z}\,|\,\chi)^{\top}f_{i}^{\theta}(\tau,\mathbf{z}\,|\,\chi) \\ \displaystyle\quad+c^{\mathrm{PE}}\omega^{\mathrm{PE}}(\tau)\left(V_{i}^{\mathrm{PE}}(\mathbf{z}\,|\,\chi)\right)^{\rho^{\mathrm{PE}}}.

Then the constraint (9) becomes (\ell_{i}^{\mathrm{PE}})^{\top}u_{i}+b_{i}^{\mathrm{PE}}\leq 0. If b_{i}^{\mathrm{PE}}\leq 0, the nominal input u_{i}=0 already satisfies the constraint. If b_{i}^{\mathrm{PE}}>0, a feasible guidance input exists when \ell_{i}^{\mathrm{PE}}\neq 0. This gives the following feasibility result.

Corollary 3.4 (Feasibility of PE guidance).

Per Theorem 3.3, if b_{i}^{\mathrm{PE}}\leq 0, or if b_{i}^{\mathrm{PE}}>0 and \ell_{i}^{\mathrm{PE}}\neq 0, then there exists a guidance input u_{i}(\tau) satisfying (9), \forall\tau\in[0,1]. Such a guidance input can be obtained from

\displaystyle\min_{u_{i}\in\mathbb{R}^{m_{i}}}\quad u_{i}^{\top}H_{i}u_{i} \\ \displaystyle\mathrm{s.t.}\quad\;\,(\ell_{i}^{\mathrm{PE}})^{\top}u_{i}+b_{i}^{\mathrm{PE}}\leq 0,

which admits a unique minimizer when H_{i}\succ 0.

Proof.

See Appendix A.4. ∎

3.3 Distributional deviation

For generated objects to satisfy certain hard constraints or reach a desired set in the generative space, the nominal vector field is modified by SE or PE guidance. We then establish a Wasserstein bound to characterize the resulting deviation from the nominal joint generative distribution. The bound relates this deviation to the magnitude of the guidance correction, providing a theoretical characterization of such intervention. Specifically, consider nominal and guided joint generative state trajectories initialized from the same random sample, i.e.,

\frac{\mathrm{d}}{\mathrm{d}\tau}\mathbf{X}^{\mathrm{nom}}(\tau)=f^{\theta}(\tau,\mathbf{X}^{\mathrm{nom}}(\tau)\,|\,\chi)

and

\frac{\mathrm{d}}{\mathrm{d}\tau}\mathbf{X}^{\mathrm{gui}}(\tau)=f^{\theta}(\tau,\mathbf{X}^{\mathrm{gui}}(\tau)\,|\,\chi)+\Gamma(\tau\,|\,\xi)

with \mathbf{X}^{\mathrm{nom}}(0)=\mathbf{X}^{\mathrm{gui}}(0)=\xi\sim p_{0}, where the joint guidance correction is denoted by

\displaystyle\Gamma(\tau\,|\,\xi)\coloneqq \\ \displaystyle\Bigl[(g_{1}(\tau,\mathbf{X}^{\mathrm{gui}}(\tau)\,|\,\chi)u_{1}(\tau))^{\top},\ldots, \\ \displaystyle(g_{N}(\tau,\mathbf{X}^{\mathrm{gui}}(\tau)\,|\,\chi)u_{N}(\tau))^{\top}\Bigr]^{\top}.

Let \mu_{1} and \nu_{1} denote the probability distributions of \mathbf{X}^{\mathrm{nom}}(1) and \mathbf{X}^{\mathrm{gui}}(1), respectively.

Theorem 3.5 (Wasserstein bound on guidance-induced distributional deviation).

Assume \mu_{1} and \nu_{1} have finite second moments and, for all \tau\in[0,1] and \mathbf{y},\mathbf{z}\in\mathcal{Z}^{N},

\left\|f^{\theta}(\tau,\mathbf{y}\,|\,\chi)-f^{\theta}(\tau,\mathbf{z}\,|\,\chi)\right\|\leq L(\tau)\left\|\mathbf{y}-\mathbf{z}\right\|,

where L:[0,1]\rightarrow\mathbb{R}_{\geq 0} is integrable. If

\int_{0}^{1}\!\sqrt{\int_{\mathcal{Z}^{N}}\left\|\Gamma(s\,|\,\xi)\right\|^{2}p_{0}(\xi)\,\mathrm{d}\xi}\,\mathrm{d}s<\infty,

where \Gamma(s\,|\,\xi) per (18) is the guidance correction corresponding to the initial sample \xi\sim p_{0}, then

\displaystyle W_{2}(\mu_{1},\nu_{1})\leq \\ \displaystyle\int_{0}^{1}\!\exp\!\left(\int_{s}^{1}\!L(r)\,\mathrm{d}r\right) \\ \displaystyle\cdot\,\sqrt{\int_{\mathcal{Z}^{N}}\!\left\|\Gamma(s\,|\,\xi)\right\|^{2}p_{0}(\xi)\,\mathrm{d}\xi}\;\mathrm{d}s.

In addition, given \chi, assume the decoder satisfies

\left\|\mathcal{D}_{N}(\mathbf{y}\,|\,\chi)-\mathcal{D}_{N}(\mathbf{z}\,|\,\chi)\right\|\leq L_{D}\left\|\mathbf{y}-\mathbf{z}\right\|,

\forall\mathbf{y},\mathbf{z}\in\mathcal{Z}^{N}, for some L_{D}\in\mathbb{R}_{\geq 0}. Let \bar{\mu}_{1} and \bar{\nu}_{1} denote the probability distributions of \mathcal{D}_{N}(\mathbf{X}^{\mathrm{nom}}(1)\,|\,\chi) and \mathcal{D}_{N}(\mathbf{X}^{\mathrm{gui}}(1)\,|\,\chi), respectively. Then

W_{2}(\bar{\mu}_{1},\bar{\nu}_{1})\leq L_{D}W_{2}(\mu_{1},\nu_{1}).
(20)
Proof.

See Appendix A.5. ∎

Empirically evaluation of the distributional deviation between the nominal vector field and the guided one is in Appendix C.2.

3.4 Algorithm

After establishing the finite-horizon convergence guarantees for SE and PE guidance, Algorithm 1 summarizes the decoupled guidance procedure. The nominal vector field f_{i}^{\theta} may be provided by a pretrained model, or learned using (5) that can be augmented with task-specific training losses. Such augmentation affects only the learned nominal vector field and is independent of the SE or PE guidance applied during the generative process. Note that the proposed decoupled guidance requires neither retraining nor a particular neural network architecture for the nominal vector field.

Algorithm 1 Multi-agent flow matching with SE/PE guidance
Figure 1: Snapshots of an N=5 complete process of Task 1 with SE guidance. Top: the initial configuration. Middle: successful bridge construction. Bottom: spatial gap crossing.
Figure 2: Evolution of q_{\rm task} and its time-varying upper bound \beta_{\rm task} during generative processes for policies generated at early (left), middle (center), and late (right) physical times in the manipulation stage of the example shown in Figure 1.

4 Applications

In this section, we apply DeGG-Flow to two tasks with shared and private coupled requirements, respectively. Both applications are visualized in MuJoCo (Todorov et al., 2012).

4.1 Task 1: Multi-Robot Policy Generation Using SE Guidance

Motivated by disaster response and search-and-rescue tasks, we study how multiple robots can collaborate and exploit tools in the environment to accomplish tasks beyond the capability of an individual robot. In Task 1, a team of robots faces a spatial gap that cannot be crossed directly, and collaboratively uses a plank to construct a traversable bridge. Since all robots act on the same rigid body, their generated motions must remain mutually compatible while satisfying shared task and safety requirements. Therefore, SE guidance is suitable for Task 1.

The generated object is a motion policy specifying the robot contact point velocities on the plank. The condition \chi contains the current robot and plank states and environment information. Only the first few actions of each generated policy are executed before a new policy is generated. Task 1 contains two SE factors: q_{\rm task}(\mathbf{z}\,|\,\chi), which encodes task progress at the plank pose reached after the executed actions, and q_{\rm safe}(\mathbf{z}\,|\,\chi), which evaluates safety along these actions. The detailed settings are provided in Appendix B.

For visualization, each complete process consists of three stages. The plank pose, robot initial and goal positions, and robot-plank contact points are randomly sampled subject to workspace constraints. First, the robots move to the contact points. Then, the learned multi-agent motion policy generates the collaborative motions for the robots to manipulate the plank to form a bridge over the spatial gap, with or without SE guidance. The success rates in Table 1 evaluate only this manipulation stage. After the bridge is successfully constructed, the robots move to the goals through the bridge.

For evaluation, every robot uses the same trained GNN representing the nominal vector field f_{i}^{\theta} in (6). We refer to the generative process with u_{i}=0 as Nominal, and to the same nominal vector field with SE guidance g_{i}u_{i}^{*}, where u_{i}^{*} is obtained from (15), as Guided. Nominal and Guided use the same initial physical condition, initial sample \mathbf{z}(0), conditioning information \chi, and decoder \mathcal{D}_{N}. The nominal vector field is trained with N\in\{4,5,6\}, and we evaluate 50 manipulation trials for each N\in\{4,5,6,7,8\}, with N=7,8 evaluating generalization to team sizes unseen in the training data.

Table 1: Success rates for Task 1
  • 4
    Nominal
    46/50 (92%)
    Guided
    50/50 (100%)
  • 5
    Nominal
    45/50 (90%)
    Guided
    50/50 (100%)
  • 6
    Nominal
    43/50 (86%)
    Guided
    50/50 (100%)
  • 7 (unseen)
    Nominal
    42/50 (84%)
    Guided
    50/50 (100%)
  • 8 (unseen)
    Nominal
    42/50 (84%)
    Guided
    50/50 (100%)
  • Overall
    Nominal
    218/250 (87.2%)
    Guided
    250/250 (100%)

As shown in Table 1, Nominal fails in 32 trials, whereas Guided successfully constructs a traversable bridge in all 250 trials, including the 100 trials with unseen team sizes of N=7,8. Figure 1 visualizes an N=5 Guided example. These results show that SE guidance can recover failures of the nominal generative policy while preserving successful collaboration at team sizes beyond those used during training. Additional results, including an N=7 rescue example, and multi-seed training and validation curves, are provided in Appendix B.3.

Figure 2 shows q_{\rm task}(\mathbf{z}(\tau)\,|\,\chi) and \beta_{\rm task}(\tau) along \tau in the generative process for policies generated at early, middle, and late physical times in the manipulation stage of the N=5 Guided example shown in Figure 1. For visualization only, both curves in each plot are shifted by the same constant \beta_{\rm task}(1), and q_{\rm task}-\beta_{\rm task} is unchanged. The shaded region corresponds to q_{\rm task}(\mathbf{z}(\tau)\,|\,\chi)\leq\beta_{\rm task}(\tau). As shown in Figure 2, early in physical time, q_{\rm task} starts close to its upper bound \beta_{\rm task} and then moves farther below it during the generative process. This is because \beta_{\rm task,start} is initialized just above the task factor value of the initial sample, and \beta_{\rm task,end}=q_{\rm task}^{\rm cur}-0.05 requires the generated policy to reduce the task factor by at least 0.05 relative to its value at the current plank pose. The SE guidance therefore progressively separates q_{\rm task} from the contracting upper bound while improving the task accomplishment. At the middle physical time, q_{\rm task} stays below \beta_{\rm task} even though it increases during the generative process. This is because the SE guidance does not require q_{\rm task} to decrease monotonically. Instead, it only requires q_{\rm task}\leq\beta_{\rm task}, allowing the nominal vector field to dominate the generated policy. Across the three physical times, the observed relation q_{\rm task}(\mathbf{z}(\tau)\,|\,\chi)\leq\beta_{\rm task}(\tau) is consistent with Theorem 3.1.

4.2 Task 2: Multi-Object Scene Generation Using PE Guidance

Section 4.1 demonstrates SE guidance in multi-robot collaboration. We next consider PE guidance in multi-object scene generation. A useful scene must satisfy not only geometric validity, such as collision avoidance and workspace containment, but also how individual objects are intended to be accessed or used. Each object therefore has its own affordance requirement, while whether that requirement is satisfied can depend on neighboring objects. Thus, PE guidance is suitable for Task 2.

Task 2 generates a tabletop arrangement of N objects. For object i\in\mathcal{N}, denote its pose by g_{O_{i}}=(R_{i},p_{i})\in\mathbb{SE}(2), and let \mathcal{D}_{N}(\mathbf{z}\,|\,\chi)=\{g_{O_{i}}\}_{i\in\mathcal{N}}. The condition \chi specifies the selected objects from a library, their geometry, the tabletop, and their affordance requirements. For each object, one or more nearby regions are specified and should be unobstructed when the object is used. We refer to these as affordance regions. For object i, let h_{ik}(\mathbf{z}\,|\,\chi) denote its kth geometric requirement, where h_{ik}\geq 0 means that the requirement is satisfied. These requirements include object separation, unobstructed affordance regions, and containment of both objects and affordance regions within the tabletop. Let r_{ik}=-h_{ik} and choose a buffer \delta^{\mathrm{PE}}>0. We define V^{\mathrm{PE}}=\sum_{i=1}^{N}V_{i}^{\mathrm{PE}} with V_{i}^{\mathrm{PE}}(\mathbf{z}\,|\,\chi)=\sum_{k}\frac{1}{2}\max\!\left\{r_{ik}(\mathbf{z}\,|\,\chi)+\delta^{\mathrm{PE}},0\right\}^{2}. Detailed settings are provided in Appendix C.

For evaluation, the nominal vector field is trained on scenes with N\in\{4,5,6\}, and we evaluate 50 cases for each N\in\{4,5,6,7,8\}. Natural Nominal evaluates scenes generated by the nominal vector field under the default affordance requirements. Private Nominal evaluates the same nominal scenes after the affordance requirements are changed, while Guided starts from the same initial samples and incorporates PE guidance based on the changed requirements. As shown in Table 2, the nominal success rate decreases as the number of objects increases, and Private Nominal further shows that a scene valid under the default requirements can become invalid when the desired access or use of an object changes. In contrast, Guided satisfies all requirements in all 250 cases, including the 100 cases with team sizes N=7,8 unseen in the training data. Figure 3 shows an N=7 example in which PE guidance adapts a nominal scene from a right-handed to a left-handed laptop use requirement without retraining the generative model. These results demonstrate that PE guidance can result in generated objects satisfying private requirements, including at team sizes beyond those used during training. Additional results, including an N=8 example with multiple simultaneous violations resulting from the nominal vector field, results across different affordance requirements, and multi-seed training and validation curves are provided in Appendix C.2.

Table 2: Success rates for Task 2
  • 4
    Natural Nominal
    44/50 (88%)
    Private Nominal
    36/50 (72%)
    Guided
    50/50 (100%)
  • 5
    Natural Nominal
    35/50 (70%)
    Private Nominal
    31/50 (62%)
    Guided
    50/50 (100%)
  • 6
    Natural Nominal
    32/50 (64%)
    Private Nominal
    26/50 (52%)
    Guided
    50/50 (100%)
  • 7 (unseen)
    Natural Nominal
    16/50 (32%)
    Private Nominal
    13/50 (26%)
    Guided
    50/50 (100%)
  • 8 (unseen)
    Natural Nominal
    8/50 (16%)
    Private Nominal
    6/50 (12%)
    Guided
    50/50 (100%)
  • Overall
    Natural Nominal
    135/250 (54.0%)
    Private Nominal
    112/250 (44.8%)
    Guided
    250/250 (100%)
Figure 3: An N=7 example for Task 2. Green circles represent the objects’ affordance regions that are unobstructed, while the red circle represents one that is obstructed. Left: the scene generated using the nominal vector field satisfies the default right-handed laptop use requirement. Center: the same scene evaluated for a left-handed user, where the required mouse operating region on the left side of the laptop is occupied by a potted plant. Right: PE guidance generates a scene satisfying the left-handed use requirement.

Figure 4 shows the evolution of V^{\mathrm{PE}} during the generative process for the N=7 example corresponding to Figure 3. Both trajectories start from the same initial Gaussian sample and are evaluated under the same left-handed laptop use requirement, which requires the mouse operating region on the left side of the laptop to be unobstructed. Without guidance, this requirement is violated at the end of the generative process, whereas PE guidance guarantees that V^{\mathrm{PE}} converges to zero and generates a scene satisfying the new requirement without retraining, which is consistent with Theorem 3.3.

Figure 4: Evolution of V^{\mathrm{PE}} during the generative process for the N=7 example in Figure 3.

5 Conclusion

This paper proposes DeGG-Flow, a general framework for addressing coupled multi-agent requirements through decoupled generative guidance, without applying a separate correction stage after generation. Each agent determines its own guidance without relying on the simultaneously computed guidance of any other agents, so the team need not rely on a central decision maker. We establish feasibility and finite-horizon guarantees for both SE and PE guidance, and demonstrate the effectiveness of DeGG-Flow in multi-robot collaboration and multi-object scene generation, including numbers of agents beyond those used in training. More broadly, DeGG-Flow allows a pretrained generative model to accommodate new hard requirements or constraints that are unseen in its training data, without the need of collecting new data or retraining the model. Future work will investigate discrete-time theoretical guarantees and large-scale multi-agent systems in real world.

References

  1. Albergo et al. (2025) M. Albergo, N. M. Boffi, and E. Vanden-Eijnden Stochastic interpolants: a unifying framework for flows and diffusions. Journal of Machine Learning Research 26 (209), pp. 1–80.
  2. Ames et al. (2016) A. D. Ames, X. Xu, J. W. Grizzle, and P. Tabuada Control barrier function based quadratic programs for safety critical systems. IEEE transactions on automatic control 62 (8), pp. 3861–3876.
  3. Bansal et al. (2024) A. Bansal, H. Chu, A. Schwarzschild, R. Sengupta, M. Goldblum, J. Geiping, and T. Goldstein Universal guidance for diffusion models. In International Conference on Learning Representations, Vol. 2024, pp. 51304–51323.
  4. Bhat and Bernstein (2000) S. P. Bhat and D. S. Bernstein Finite-time stability of continuous autonomous systems. SIAM Journal on Control and optimization 38 (3), pp. 751–766.
  5. Brown et al. (2020) T. Brown, B. Mann, N. Ryder, M. Subbiah, J. D. Kaplan, P. Dhariwal, A. Neelakantan, P. Shyam, G. Sastry, A. Askell, et al. Language models are few-shot learners. Advances in neural information processing systems 33, pp. 1877–1901.
  6. Chi et al. (2025) C. Chi, Z. Xu, S. Feng, E. Cousineau, Y. Du, B. Burchfiel, R. Tedrake, and S. Song Diffusion policy: visuomotor policy learning via action diffusion. The International Journal of Robotics Research 44 (10-11), pp. 1684–1704.
  7. Dai et al. (2025) X. Dai, Z. Yang, D. Yu, F. Liu, H. Sadeghian, S. Haddadin, and S. Hirche SafeFlow: safe robot motion planning with flow matching via control barrier functions. arXiv preprint arXiv:2504.08661.
  8. Feng et al. (2025) R. Feng, C. Yu, W. Deng, P. Hu, and T. Wu On the guidance of flow matching. arXiv preprint arXiv:2502.02150.
  9. Gadginmath et al. (2026) D. Gadginmath, A. Allibhoy, and F. Pasqualetti Provably safe generative sampling with constricting barrier functions. arXiv preprint arXiv:2602.21429.
  10. Gilmer et al. (2017) J. Gilmer, S. S. Schoenholz, P. F. Riley, O. Vinyals, and G. E. Dahl Neural message passing for quantum chemistry. In International conference on machine learning, pp. 1263–1272.
  11. Ho et al. (2020) J. Ho, A. Jain, and P. Abbeel Denoising diffusion probabilistic models. Advances in neural information processing systems 33, pp. 6840–6851.
  12. Janner et al. (2022) M. Janner, Y. Du, J. B. Tenenbaum, and S. Levine Planning with diffusion for flexible behavior synthesis. arXiv preprint arXiv:2205.09991.
  13. Kschischang et al. (2001) F. R. Kschischang, B. J. Frey, and H. Loeliger Factor graphs and the sum-product algorithm. IEEE Transactions on information theory 47 (2), pp. 498–519.
  14. Lee et al. (2026) D. Lee, D. Lee, and A. Zhang Multi-agent coordination via flow matching. In International Conference on Learning Representations, Vol. 2026, pp. 99912–99943.
  15. Liang et al. (2025) J. Liang, J. K. Christopher, S. Koenig, and F. Fioretto Simultaneous multi-robot motion planning with projected diffusion models. arXiv preprint arXiv:2502.03607.
  16. Lin et al. (2026) R. Lin, G. Notomista, and M. Egerstedt Disentangled control of multi-agent systems. IEEE Transactions on Control of Network Systems.
  17. Lipman et al. (2022) Y. Lipman, R. T. Chen, H. Ben-Hamu, M. Nickel, and M. Le Flow matching for generative modeling. arXiv preprint arXiv:2210.02747.
  18. Parimi and Williams (2025) V. Parimi and B. C. Williams Diffusion-guided multi-arm motion planning. arXiv preprint arXiv:2509.08160.
  19. Park (1995) F. C. Park Distance metrics on the rigid-body motions with applications to mechanism design. Journal of Mechanical Design.
  20. Rombach et al. (2022) R. Rombach, A. Blattmann, D. Lorenz, P. Esser, and B. Ommer High-resolution image synthesis with latent diffusion models. In 2022 IEEE/CVF conference on computer vision and pattern recognition (CVPR), pp. 10674–10685.
  21. Shaoul et al. (2025) Y. Shaoul, I. Mishani, S. Vats, J. Li, and M. Likhachev Multi-robot motion planning with diffusion models. In International Conference on Learning Representations, Vol. 2025, pp. 95791–95811.
  22. Tang et al. (2024) J. Tang, Y. Nie, L. Markhasin, A. Dai, J. Thies, and M. Nießner Diffuscene: denoising diffusion models for generative indoor scene synthesis. In 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 20507–20518.
  23. Todorov et al. (2012) E. Todorov, T. Erez, and Y. Tassa Mujoco: a physics engine for model-based control. In 2012 IEEE/RSJ international conference on intelligent robots and systems, pp. 5026–5033.
  24. Xiao et al. (2025) W. Xiao, J. Wang, C. Gan, R. Hasani, M. Lechner, and D. Rus Safediffuser: safe planning with diffusion probabilistic models. In International Conference on Learning Representations, Vol. 2025, pp. 100391–100412.
  25. Yang et al. (2026) J. Yang, S. Jang, and S. Han Safeflowmatcher: safe and fast planning using flow matching with control barrier functions. In International Conference on Learning Representations, Vol. 2026, pp. 54058–54087.
  26. Zhu et al. (2024) Z. Zhu, M. Liu, L. Mao, B. Kang, M. Xu, Y. Yu, S. Ermon, and W. Zhang Madiff: offline multi-agent learning with diffusion models. Advances in Neural Information Processing Systems 37, pp. 4177–4206.

Appendix A Proofs

A.1 Proof of Theorem 3.1

For any i\in\mathcal{S}_{a}^{\mathrm{SE}}, (12) gives

\nabla_{z_{i}}V_{a}^{\mathrm{SE}}(\tau,\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}\,|\,\chi)=\nabla_{z_{i}}q_{a}^{\mathrm{SE}}(\tau,\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}\,|\,\chi).

Along a trajectory of (6),

\displaystyle\frac{\mathrm{d}}{\mathrm{d}\tau}V_{a}^{\mathrm{SE}}(\tau,\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}(\tau)\,|\,\chi) \\ \displaystyle= \\ \displaystyle\partial_{\tau}q_{a}^{\mathrm{SE}}(\tau,\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}(\tau)\,|\,\chi)-\dot{\beta}_{a}^{\mathrm{SE}}(\tau\,|\,\chi,\mathbf{z}(0)) \\ \displaystyle+\sum_{i\in\mathcal{S}_{a}^{\mathrm{SE}}}\nabla_{z_{i}}q_{a}^{\mathrm{SE}}(\tau,\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}(\tau)\,|\,\chi)^{\top} \\ \displaystyle\cdot\left(f_{i}^{\theta}(\tau,\mathbf{z}(\tau)\,|\,\chi)+g_{i}(\tau,\mathbf{z}(\tau)\,|\,\chi)u_{i}(\tau)\right).

According to (13), (7) becomes

\displaystyle\nabla_{z_{i}}q_{a}^{\mathrm{SE}}(\tau,\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}(\tau)\,|\,\chi)^{\top} \\ \displaystyle\cdot\left(f_{i}^{\theta}(\tau,\mathbf{z}(\tau)\,|\,\chi)+g_{i}(\tau,\mathbf{z}(\tau)\,|\,\chi)u_{i}(\tau)\right) \\ \displaystyle+ \\ \displaystyle w_{a,i}^{\mathrm{SE}}\Bigl(\partial_{\tau}q_{a}^{\mathrm{SE}}(\tau,\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}(\tau)\,|\,\chi)-\dot{\beta}_{a}^{\mathrm{SE}}(\tau\,|\,\chi,\mathbf{z}(0)) \\ \displaystyle+\alpha_{a}^{\mathrm{SE}}\!\left(V_{a}^{\mathrm{SE}}(\tau,\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}(\tau)\,|\,\chi)\right)\Bigr)\leq 0.

Summing (22) over i\in\mathcal{S}_{a}^{\mathrm{SE}} and using w_{a,i}^{\mathrm{SE}}\geq 0 such that \sum_{i\in\mathcal{S}_{a}^{\mathrm{SE}}}w_{a,i}^{\mathrm{SE}}=1 yields

\displaystyle\sum_{i\in\mathcal{S}_{a}^{\mathrm{SE}}}\nabla_{z_{i}}q_{a}^{\mathrm{SE}}(\tau,\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}(\tau)\,|\,\chi)^{\top} \\ \displaystyle\cdot\left(f_{i}^{\theta}(\tau,\mathbf{z}(\tau)\,|\,\chi)+g_{i}(\tau,\mathbf{z}(\tau)\,|\,\chi)u_{i}(\tau)\right) \\ \displaystyle+\partial_{\tau}q_{a}^{\mathrm{SE}}(\tau,\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}(\tau)\,|\,\chi)-\dot{\beta}_{a}^{\mathrm{SE}}(\tau\,|\,\chi,\mathbf{z}(0)) \\ \displaystyle+\alpha_{a}^{\mathrm{SE}}\!\left(V_{a}^{\mathrm{SE}}(\tau,\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}(\tau)\,|\,\chi)\right)\leq 0.

According to (23) and (21), we have

\frac{\mathrm{d}}{\mathrm{d}\tau}V_{a}^{\mathrm{SE}}(\tau,\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}(\tau)\,|\,\chi)+\alpha_{a}^{\mathrm{SE}}\!\left(V_{a}^{\mathrm{SE}}(\tau,\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}(\tau)\,|\,\chi)\right)\leq 0.
(24)

Since \alpha_{a}^{\mathrm{SE}} is an extended class-\mathcal{K}_{\infty} function, we have \alpha_{a}^{\mathrm{SE}}(0)=0 and \alpha_{a}^{\mathrm{SE}}(s)\in\mathbb{R}_{\geq 0}, \forall s\in\mathbb{R}_{\geq 0}. Suppose V_{a}^{\mathrm{SE}}(0,\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}(0)\,|\,\chi)\leq 0 but there exists some \tau_{1}\in(0,1] such that V_{a}^{\mathrm{SE}}(\tau_{1},\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}(\tau_{1})\,|\,\chi)\in\mathbb{R}_{>0}. By continuity, let \tau_{0}<\tau_{1} be the last time before \tau_{1} at which V_{a}^{\mathrm{SE}}(\tau_{0},\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}(\tau_{0})\,|\,\chi)=0. Then, for every \tau\in(\tau_{0},\tau_{1}], V_{a}^{\mathrm{SE}}(\tau,\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}(\tau)\,|\,\chi)\in\mathbb{R}_{>0}, \alpha_{a}^{\mathrm{SE}}\!\left(V_{a}^{\mathrm{SE}}(\tau,\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}(\tau)\,|\,\chi)\right)\in\mathbb{R}_{>0}, and \frac{\mathrm{d}}{\mathrm{d}\tau}V_{a}^{\mathrm{SE}}(\tau,\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}(\tau)\,|\,\chi)<0 by (24), which contradicts V_{a}^{\mathrm{SE}}(\tau_{0},\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}(\tau_{0})\,|\,\chi)=0 and V_{a}^{\mathrm{SE}}(\tau_{1},\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}(\tau_{1})\,|\,\chi)\in\mathbb{R}_{\geq 0}. Therefore,

V_{a}^{\mathrm{SE}}(\tau,\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}(\tau)\,|\,\chi)\leq 0,\quad\forall\tau\in[0,1],

and (12) at \tau=1 gives q_{a}^{\mathrm{SE}}(1,\mathbf{z}_{\mathcal{S}_{a}^{\mathrm{SE}}}(1)\,|\,\chi)\leq\beta_{a}^{\mathrm{SE}}(1\,|\,\chi,\mathbf{z}(0)).

A.2 Proof of Proposition 3.2

In this paper, we choose

\phi_{\delta}(\eta)=\begin{cases}\eta,&\eta\leq-\delta,\\
{\delta}\left({\eta}/{\delta}-1\right)^{3}\left({\eta}/{\delta}+3\right)/{16},&|\eta|<\delta,\\
0,&\eta\geq\delta,\end{cases}

which satisfies that \phi_{\delta}\in C^{2}, \phi_{\delta}(\eta)\in[-1,0], and \phi_{\delta}(\eta)\leq\min\{\eta,0\}, \forall\eta\in[-1,1].

Given an agnet i, assume it is incident to two active SE factors, indexed by 1 and 2, at any \tau\in[0,1]. Since \phi_{\delta}(\eta)\leq\eta, then we have

\displaystyle(\ell_{2,i}^{\mathrm{SE}})^{\top}d_{1,i}^{\mathrm{SE}} \\ \displaystyle=\left\|\ell_{1,i}^{\mathrm{SE}}\right\|\left\|\ell_{2,i}^{\mathrm{SE}}\right\|\left(\eta_{i}^{\mathrm{SE}}-\phi_{\delta}(\eta_{i}^{\mathrm{SE}})\right)\geq 0, \\ \displaystyle(\ell_{1,i}^{\mathrm{SE}})^{\top}d_{2,i}^{\mathrm{SE}} \\ \displaystyle=\left\|\ell_{1,i}^{\mathrm{SE}}\right\|\left\|\ell_{2,i}^{\mathrm{SE}}\right\|\left(\eta_{i}^{\mathrm{SE}}-\phi_{\delta}(\eta_{i}^{\mathrm{SE}})\right)\geq 0, \\ \displaystyle(\ell_{1,i}^{\mathrm{SE}})^{\top}d_{1,i}^{\mathrm{SE}} \\ \displaystyle=\left\|\ell_{1,i}^{\mathrm{SE}}\right\|^{2}\left(1-\eta_{i}^{\mathrm{SE}}\phi_{\delta}(\eta_{i}^{\mathrm{SE}})\right)\geq 0, \\ \displaystyle(\ell_{2,i}^{\mathrm{SE}})^{\top}d_{2,i}^{\mathrm{SE}} \\ \displaystyle=\left\|\ell_{2,i}^{\mathrm{SE}}\right\|^{2}\left(1-\eta_{i}^{\mathrm{SE}}\phi_{\delta}(\eta_{i}^{\mathrm{SE}})\right)\geq 0,

where the last two quantities are strictly positive whenever the corresponding d_{a,i}^{\mathrm{SE}}\neq 0 since \eta_{i}^{\mathrm{SE}}\in[-1,1] and \phi_{\delta}(\eta_{i}^{\mathrm{SE}})\in[-1,0]. Additionally, for every active SE factor a, (14) satisfies w_{a,i}^{\mathrm{SE}}\geq 0 and \sum_{i\in\mathcal{S}_{a}^{\mathrm{SE}}}w_{a,i}^{\mathrm{SE}}=1. Also, consider the SE inequalities

(\ell_{a,i}^{\mathrm{SE}})^{\top}u_{i}+b_{a,i}^{\mathrm{SE}}\leq 0,\quad\forall a\in\{1,2\}.
(25)

Define \lambda_{a,i}\coloneqq b_{a,i}^{\mathrm{SE}}/((\ell_{a,i}^{\mathrm{SE}})^{\top}d_{a,i}^{\mathrm{SE}}) when b_{a,i}^{\mathrm{SE}}>0, and \lambda_{a,i}\coloneqq 0 otherwise. One can observe that (\ell_{a,i}^{\mathrm{SE}})^{\top}d_{a,i}^{\mathrm{SE}}>0 whenever b_{a,i}^{\mathrm{SE}}>0 since d_{a,i}^{\mathrm{SE}}\neq 0 in this case. Now choose

u_{i}=-\lambda_{1,i}d_{1,i}^{\mathrm{SE}}-\lambda_{2,i}d_{2,i}^{\mathrm{SE}}.

Then, for a=1,

(\ell_{1,i}^{\mathrm{SE}})^{\top}u_{i}+b_{1,i}^{\mathrm{SE}}=-\lambda_{1,i}(\ell_{1,i}^{\mathrm{SE}})^{\top}d_{1,i}^{\mathrm{SE}}-\lambda_{2,i}(\ell_{1,i}^{\mathrm{SE}})^{\top}d_{2,i}^{\mathrm{SE}}+b_{1,i}^{\mathrm{SE}}.
(26)

If b_{1,i}^{\mathrm{SE}}>0, the first and last terms on the right-hand side of (26) cancel, and the remaining term is nonpositive. If b_{1,i}^{\mathrm{SE}}\leq 0, then \lambda_{1,i}=0 and the left-hand side of (26) is nonpositive. The same analysis holds for a=2. Hence, (25) are satisfied. If only one SE factor is active, then d_{a,i}^{\mathrm{SE}}=\ell_{a,i}^{\mathrm{SE}}, and the same construction with a single coefficient \lambda_{a,i} also gives a feasible u_{i}. Therefore, the feasible set of (15) is nonempty.

A.3 Proof of Theorem 3.3

Since \partial_{\tau}V_{i}^{\mathrm{PE}}(\tau,\mathbf{z}\,|\,\chi)=0, \forall i\in\mathcal{N}, we have

\displaystyle\frac{\mathrm{d}}{\mathrm{d}\tau}V^{\mathrm{PE}}(\mathbf{z}(\tau)\,|\,\chi) \\ \displaystyle={} \\ \displaystyle\sum_{i\in\mathcal{N}}\nabla_{z_{i}}V^{\mathrm{PE}}(\mathbf{z}(\tau)\,|\,\chi)^{\top} \\ \displaystyle\cdot\left(f_{i}^{\theta}(\tau,\mathbf{z}(\tau)\,|\,\chi)+g_{i}(\tau,\mathbf{z}(\tau)\,|\,\chi)u_{i}(\tau)\right).

Using (16) in (10), summing (9) over i\in\mathcal{N}, and applying (27) yield

\frac{\mathrm{d}}{\mathrm{d}\tau}V^{\mathrm{PE}}(\mathbf{z}(\tau)\,|\,\chi)+c^{\mathrm{PE}}\omega^{\mathrm{PE}}(\tau)\sum_{i\in\mathcal{N}}\left(V_{i}^{\mathrm{PE}}(\mathbf{z}(\tau)\,|\,\chi)\right)^{\rho^{\mathrm{PE}}}\leq 0.

Since \rho^{\mathrm{PE}}\in(0,1), \alpha^{\mathrm{PE}}(s)=c^{\mathrm{PE}}s^{\rho^{\mathrm{PE}}} is subadditive on \mathbb{R}_{\geq 0}. Hence,

\alpha^{\mathrm{PE}}\!\left(V^{\mathrm{PE}}(\mathbf{z}(\tau)\,|\,\chi)\right)\leq\sum_{i\in\mathcal{N}}\alpha^{\mathrm{PE}}\!\left(V_{i}^{\mathrm{PE}}(\mathbf{z}(\tau)\,|\,\chi)\right),

and thus

\frac{\mathrm{d}}{\mathrm{d}\tau}V^{\mathrm{PE}}(\mathbf{z}(\tau)\,|\,\chi)\leq-c^{\mathrm{PE}}\omega^{\mathrm{PE}}(\tau)\left(V^{\mathrm{PE}}(\mathbf{z}(\tau)\,|\,\chi)\right)^{\rho^{\mathrm{PE}}},
(28)

which adapts the finite-time Lyapunov inequality (Bhat and Bernstein, 2000) to the generative process using the time-varying weight \omega^{\mathrm{PE}}(\tau). On any interval over which V^{\mathrm{PE}}(\mathbf{z}(\tau)\,|\,\chi)>0, multiplying (28) by (1-\rho^{\mathrm{PE}})\left(V^{\mathrm{PE}}(\mathbf{z}(\tau)\,|\,\chi)\right)^{-\rho^{\mathrm{PE}}} leads to

\frac{\mathrm{d}}{\mathrm{d}\tau}\left(V^{\mathrm{PE}}(\mathbf{z}(\tau)\,|\,\chi)\right)^{1-\rho^{\mathrm{PE}}}\leq-c^{\mathrm{PE}}(1-\rho^{\mathrm{PE}})\,\omega^{\mathrm{PE}}(\tau).

Integrating from 0 to \tau while V^{\mathrm{PE}}(\mathbf{z}(\tau)\,|\,\chi)>0 results in

\displaystyle\left(V^{\mathrm{PE}}(\mathbf{z}(\tau)\,|\,\chi)\right)^{1-\rho^{\mathrm{PE}}} \\ \displaystyle\leq \\ \displaystyle\left(V^{\mathrm{PE}}(\mathbf{z}(0)\,|\,\chi)\right)^{1-\rho^{\mathrm{PE}}}-c^{\mathrm{PE}}(1-\rho^{\mathrm{PE}})\int_{0}^{\tau}\!\omega^{\mathrm{PE}}(s)\,\mathrm{d}s.

Additionally, (28) and V^{\mathrm{PE}}\geq 0 imply that, for any \bar{\tau}\in[0,1],

V^{\mathrm{PE}}(\mathbf{z}(\bar{\tau})\,|\,\chi)=0\;\;\Longrightarrow\;\;V^{\mathrm{PE}}(\mathbf{z}(\tau)\,|\,\chi)=0,\;\forall\tau\in[\bar{\tau},1].

Therefore,

\displaystyle V^{\mathrm{PE}}(\mathbf{z}(\tau)\,|\,\chi) \\ \displaystyle\leq\max\biggl\{0,\;\left(V^{\mathrm{PE}}(\mathbf{z}(0)\,|\,\chi)\right)^{1-\rho^{\mathrm{PE}}} \\ \displaystyle-c^{\mathrm{PE}}(1-\rho^{\mathrm{PE}})\int_{0}^{\tau}\!\omega^{\mathrm{PE}}(s)\,\mathrm{d}s\biggr\}^{\frac{1}{1-\rho^{\mathrm{PE}}}},

and evaluating the upper bound at \tau=1 implies V^{\mathrm{PE}}(\mathbf{z}(1)\,|\,\chi)=0.

A.4 Proof of Corollary 3.4

If b_{i}^{\mathrm{PE}}\leq 0, then u_{i}=0 satisfies the inequality constraint in (17). If b_{i}^{\mathrm{PE}}>0 and \ell_{i}^{\mathrm{PE}}\neq 0, choose

u_{i}=-\frac{b_{i}^{\mathrm{PE}}}{(\ell_{i}^{\mathrm{PE}})^{\top}H_{i}^{-1}\ell_{i}^{\mathrm{PE}}}H_{i}^{-1}\ell_{i}^{\mathrm{PE}}.

Since H_{i}\succ 0 and \ell_{i}^{\mathrm{PE}}\neq 0, we have (\ell_{i}^{\mathrm{PE}})^{\top}H_{i}^{-1}\ell_{i}^{\mathrm{PE}}>0, and thus (\ell_{i}^{\mathrm{PE}})^{\top}u_{i}+b_{i}^{\mathrm{PE}}=0. Therefore, the feasible set of (17) is nonempty.

A.5 Proof of Theorem 3.5

For an initial sample \xi\sim p_{0}, define

\Delta(\tau\,|\,\xi)\coloneqq\mathbf{X}^{\mathrm{gui}}(\tau\,|\,\xi)-\mathbf{X}^{\mathrm{nom}}(\tau\,|\,\xi).

Since the nominal and guided trajectories start from the same initial sample, \Delta(0\,|\,\xi)=0. Then, we can obtain

\displaystyle\Delta(\tau\,|\,\xi)=\int_{0}^{\tau}\!\Bigl( \\ \displaystyle f^{\theta}(s,\mathbf{X}^{\mathrm{gui}}(s\,|\,\xi)\,|\,\chi) \\ \displaystyle-f^{\theta}(s,\mathbf{X}^{\mathrm{nom}}(s\,|\,\xi)\,|\,\chi)+\Gamma(s\,|\,\xi)\Bigr)\,\mathrm{d}s.

Since \left\|f^{\theta}(\tau,\mathbf{y}\,|\,\chi)-f^{\theta}(\tau,\mathbf{z}\,|\,\chi)\right\|\leq L(\tau)\left\|\mathbf{y}-\mathbf{z}\right\|, \forall\tau\in[0,1], \forall\mathbf{y},\mathbf{z}\in\mathcal{Z}^{N}, we have

\left\|\Delta(\tau\,|\,\xi)\right\|\leq\int_{0}^{\tau}\!L(s)\left\|\Delta(s\,|\,\xi)\right\|\,\mathrm{d}s+\int_{0}^{\tau}\!\left\|\Gamma(s\,|\,\xi)\right\|\,\mathrm{d}s.

Then, applying Grönwall’s inequality leads to

\left\|\Delta(1\,|\,\xi)\right\|\leq\int_{0}^{1}\exp\!\left(\int_{s}^{1}L(r)\,\mathrm{d}r\right)\left\|\Gamma(s\,|\,\xi)\right\|\,\mathrm{d}s.

Thus, using Minkowski’s inequality, we can obtain

\displaystyle\sqrt{\int_{\mathcal{Z}^{N}}\!\left\|\Delta(1\,|\,\xi)\right\|^{2}p_{0}(\xi)\,\mathrm{d}\xi} \\ \displaystyle\leq \\ \displaystyle\int_{0}^{1}\!\exp\!\left(\int_{s}^{1}\!L(r)\,\mathrm{d}r\right)\sqrt{\int_{\mathcal{Z}^{N}}\!\left\|\Gamma(s\,|\,\xi)\right\|^{2}p_{0}(\xi)\,\mathrm{d}\xi}\;\mathrm{d}s.

Since the Wasserstein distance between \mu and \nu with finite second moments is

W_{2}^{2}(\mu,\nu)\coloneqq\inf_{\pi\in\Pi(\mu,\nu)}\int\!\left\|\mathbf{x}-\mathbf{y}\right\|^{2}\,\mathrm{d}\pi(\mathbf{x},\mathbf{y}),
(30)

where \Pi(\mu,\nu) denotes the set of probability measures \pi on \mathcal{Z}^{N}\times\mathcal{Z}^{N} whose first and second marginal distributions are \mu and \nu, respectively, we have

\displaystyle W_{2}^{2}(\mu_{1},\nu_{1})\leq \\ \displaystyle\int_{\mathcal{Z}^{N}}\!\left\|\mathbf{X}^{\mathrm{gui}}(1\,|\,\xi)-\mathbf{X}^{\mathrm{nom}}(1\,|\,\xi)\right\|^{2}p_{0}(\xi)\,\mathrm{d}\xi \\ \displaystyle=\int_{\mathcal{Z}^{N}}\!\left\|\Delta(1\,|\,\xi)\right\|^{2}p_{0}(\xi)\,\mathrm{d}\xi.

Using(29), (19) can be obtained.

In addition, for a \pi\in\Pi(\mu_{1},\nu_{1}), let (\mathbf{Z}^{\mathrm{nom}},\mathbf{Z}^{\mathrm{gui}}) have joint probability distribution \pi. Then \mathcal{D}_{N}(\mathbf{Z}^{\mathrm{nom}}\,|\,\chi) and \mathcal{D}_{N}(\mathbf{Z}^{\mathrm{gui}}\,|\,\chi) have probability distributions \bar{\mu}_{1} and \bar{\nu}_{1}, respectively. Thus, according to (30) and \left\|\mathcal{D}_{N}(\mathbf{y}\,|\,\chi)-\mathcal{D}_{N}(\mathbf{z}\,|\,\chi)\right\|\leq L_{D}\left\|\mathbf{y}-\mathbf{z}\right\|, \forall\mathbf{y},\mathbf{z}\in\mathcal{Z}^{N}, we can obtain

\displaystyle W_{2}^{2}(\bar{\mu}_{1},\bar{\nu}_{1}) \\ \displaystyle\leq\int\!\left\|\mathcal{D}_{N}(\mathbf{x}\,|\,\chi)-\mathcal{D}_{N}(\mathbf{y}\,|\,\chi)\right\|^{2}\,\mathrm{d}\pi(\mathbf{x},\mathbf{y}) \\ \displaystyle\leq L_{D}^{2}\int\!\left\|\mathbf{x}-\mathbf{y}\right\|^{2}\,\mathrm{d}\pi(\mathbf{x},\mathbf{y}).

Since \pi\in\Pi(\mu_{1},\nu_{1}) is arbitrary, we have

W_{2}^{2}(\bar{\mu}_{1},\bar{\nu}_{1})\leq L_{D}^{2}W_{2}^{2}(\mu_{1},\nu_{1}),

which gives (20).

Appendix B Task 1: Detailed Settings and Additional Results

B.1 Representation, conditioning, network structure, and training

Denote the plank pose as g_{B}\in\mathbb{SE}(2), with orientation R_{B}\in\mathbb{SO}(2) and position p_{B}\in\mathbb{R}^{2}. Its body twist is

\xi_{B}^{b}=(g_{B}^{-1}\dot{g}_{B})^{\vee}=[(v_{B}^{b})^{\top},\omega_{B}^{b}]^{\top}\in\mathbb{R}^{3},

where (\cdot)^{\vee}:\mathfrak{se}(2)\rightarrow\mathbb{R}^{3}.

For robot i, let r_{i}=[r_{i,x},r_{i,y}]^{\top}\in\mathbb{R}^{2} denote its contact point in the body frame of the plank and define r_{i}^{\perp}\coloneqq[-r_{i,y},\,r_{i,x}]^{\top}. The velocity of the contact point is

c_{i}^{b}=J_{B}(r_{i})\xi_{B}^{b},

where J_{B}(r_{i})\coloneqq[I_{2},r_{i}^{\perp}]\in\mathbb{R}^{2\times 3}.

The object generated in Task 1 is a motion policy over a finite physical horizon. Conditioned on \chi, the decoder maps the joint generative state to a sequence of robot contact-point velocities,

\mathcal{D}_{N}(\mathbf{z}\,|\,\chi)=\{c_{i,t}^{b}\}_{i\in\mathcal{N},\,t\in\mathcal{T}},

where \mathcal{T}\coloneqq\{1,\ldots,T\} and c_{i,t}^{b}=J_{B}(r_{i})\xi_{B,t}^{b}(\mathbf{z}\,|\,\chi). Only the first T_{\rm exec} actions of the generated policy are executed before a new policy is generated.

Let \mathcal{K}\coloneqq\{1,\ldots,K\}. For each robot, the generative state z_{i}\in\mathbb{R}^{24} is decoded into K=8 three-dimensional vectors \eta_{i,k}\in\mathbb{R}^{3}, \forall k\in\mathcal{K}. Define M_{i}\coloneqq J_{B}(r_{i})^{\top}J_{B}(r_{i}) and G\coloneqq\sum_{i=1}^{N}M_{i}, with G\succ 0. Let \mathcal{T}\coloneqq\{1,\ldots,T\} with T=20, and let B_{\rm spl}\in\mathbb{R}^{T\times K} be the B-spline matrix. Before a new policy is generated, a T-step body twist sequence \{\bar{\xi}_{B,t}^{b}\}_{t\in\mathcal{T}} is constructed with the previously generated policy and the current motion. Then, the decoder \mathcal{D}_{N}(\mathbf{z}\,|\,\chi)=\{c_{i,t}^{b}\}_{i\in\mathcal{N},t\in\mathcal{T}} gives

\xi_{B,t}^{b}=\bar{\xi}_{B,t}^{b}+\sum_{k=1}^{K}(B_{\rm spl})_{t,k}(G^{-1}\sum_{i=1}^{N}M_{i}\eta_{i,k}),

and c_{i,t}^{b}=J_{B}(r_{i})\xi_{B,t}^{b}, \forall i\in\mathcal{N},t\in\mathcal{T}. Only the first T_{\rm exec}=4 actions of the generated T-step policy are executed before a new policy is generated. Before the next initial sample is drawn from a Gaussian distribution, the previous policy is shifted forward by these four actions, with its final value repeated to keep length T, and its first five values interpolated between the current motion and the shifted sequence. The resulting sequence \{\bar{\xi}_{B,t}^{b}\}_{t\in\mathcal{T}} is included in the next condition \chi.

For Task 1, the condition \chi contains only quantities known before a new policy is generated and is characterized by three vectors for each robot i. Specifically, the vector \lambda_{i}\in\mathbb{R}^{23} represents robot i, the plank, and their locations relative to the workspace geometry. For each other robot j\neq i, the vector \pi_{ij}\in\mathbb{R}^{8} represents the position and velocity of robot j relative to robot i. The vector c_{i}\in\mathbb{R}^{45} represents robot i’s contact location on the plank, the desired plank pose, and the continuation of its contact point velocities from the previously generated policy. In particular, let p_{i}^{w},v_{i}^{w}\in\mathbb{R}^{2} be the current position and velocity of robot i in the world frame. Denote the current plank pose as g_{B}=(R_{B},p_{B}) with p_{B}=[x_{B},y_{B}]^{\top}, and let \theta_{B} denote the angle associated with R_{B}. Let v_{B}^{w}\in\mathbb{R}^{2} and \omega_{B}^{b}\in\mathbb{R} be the current translational and angular velocities of the plank. The corresponding quantities in the body frame of the plank are \Delta p_{i}^{b}\coloneqq R_{B}^{\top}(p_{i}^{w}-p_{B}), v_{i}^{b}\coloneqq R_{B}^{\top}v_{i}^{w}, and v_{B}^{b}\coloneqq R_{B}^{\top}v_{B}^{w}. Let [X_{\min},X_{\max}]\times[Y_{\min},Y_{\max}] quantify the workspace, define X\coloneqq(X_{\max}-X_{\min})/2 and Y\coloneqq(Y_{\max}-Y_{\min})/2, and let x_{\rm gap}^{L} and x_{\rm gap}^{R} be the two x-coordinates of the gap edges. We denote by x_{\rm goal}^{\min} the minimum x-coordinate of the region from which robot goals are sampled. The vector e_{B}\in\mathbb{R}^{11} consists of the plank orientation and its position relative to the workspace, i.e.,

\displaystyle e_{B}:=\Bigg[ \\ \displaystyle\cos(\theta_{B}),\,-\sin(\theta_{B}),\,\sin(\theta_{B}),\,\cos(\theta_{B}), \\ \displaystyle\frac{X_{\min}-x_{B}}{X},\,\frac{x_{\rm gap}^{L}-x_{B}}{X},\,\frac{x_{\rm gap}^{R}-x_{B}}{X},\,\frac{x_{\rm goal}^{\min}-x_{B}}{X}, \\ \displaystyle\frac{X_{\max}-x_{B}}{X},\,\frac{Y_{\min}-y_{B}}{Y},\,\frac{Y_{\max}-y_{B}}{Y}\Bigg]^{\top}.

Denote o_{i}\in\{0,1\}^{3}, which indicates if robot i is on the initial side ground, on the plank, or on the opposite side ground. Let a_{i}\in\{0,1\} indicate whether robot i contacts with the plank, and let b_{B}\in\{0,1\} indicate whether bridge construction has succeeded. Additionally,

\displaystyle\lambda_{i}=\Biggl[ \\ \displaystyle\left(\operatorname{diag}\!\left(\frac{1}{X},\frac{1}{Y}\right)\Delta p_{i}^{b}\right)^{\top}, \\ \displaystyle\left(\frac{v_{i}^{b}}{0.86}\right)^{\top},o_{i}^{\top},\left(\frac{v_{B}^{b}}{0.44}\right)^{\top}, \\ \displaystyle\frac{\omega_{B}^{b}}{0.32},b_{B},a_{i},e_{B}^{\top}\Biggr]^{\top}\in\mathbb{R}^{23}.

For every j\neq i, denote the relative position and velocity \Delta p_{ij}^{b}\coloneqq R_{B}^{\top}(p_{j}^{w}-p_{i}^{w}) and \Delta v_{ij}^{b}\coloneqq R_{B}^{\top}(v_{j}^{w}-v_{i}^{w}) in the body frame of the plank, then

\displaystyle\pi_{ij}=\Biggl[ \\ \displaystyle\left(\operatorname{diag}\!\left(\frac{1}{X},\frac{1}{Y}\right)\Delta p_{ij}^{b}\right)^{\top}, \\ \displaystyle\left(\frac{\Delta v_{ij}^{b}}{0.86}\right)^{\top},o_{j}^{\top},a_{j}\Biggr]^{\top}\in\mathbb{R}^{8}.

Let L_{B} be the plank length, and the desired plank pose be g_{B}^{\rm goal}=(R_{g}(\theta_{g}),p_{g}). Denote R_{B}^{\top}(p_{g}-p_{B})=[\Delta x_{g}^{b},\Delta y_{g}^{b}]^{\top}, and let \Delta\theta_{g}\in(-\pi,\pi] be the shortest signed angular difference from \theta_{B} to \theta_{g}. Let

C_{i}^{\rm cont}=\left[J_{B}(r_{i})\bar{\xi}_{B,1}^{b},\ldots,J_{B}(r_{i})\bar{\xi}_{B,T}^{b}\right]^{\top}\in\mathbb{R}^{T\times 2}.

For each of the 40 entries of C_{i}^{\rm cont}, the corresponding training set mean is subtracted and the result is divided by the corresponding training set standard deviation. Let \widetilde{C}_{i}^{\rm cont}\in\mathbb{R}^{T\times 2} denote the resulting matrix, then

\displaystyle c_{i}=\Biggl[ \\ \displaystyle\frac{r_{i,x}}{L_{B}/2},\operatorname{sgn}(r_{i,y}),\frac{\Delta x_{g}^{b}}{L_{B}}, \\ \displaystyle\frac{\Delta y_{g}^{b}}{Y},\frac{\Delta\theta_{g}}{\pi/3},\operatorname{vec}(\widetilde{C}_{i}^{\rm cont})^{\top}\Biggr]^{\top}\in\mathbb{R}^{45},

where \operatorname{sgn}(s)=1 for s>0 and \operatorname{sgn}(s)=-1 for s<0, and \operatorname{vec}(\cdot) stacks the entries of a matrix into a vector.

For each j\neq i, the multilayer perceptron (MLP) \psi_{\rm msg}, with layer dimensions 77\rightarrow 160\rightarrow 160, is applied to z_{j}, c_{j}, and \pi_{ij} to form the message vector

m_{ij}=\psi_{\rm msg}\!\left([z_{j}^{\top},c_{j}^{\top},\pi_{ij}^{\top}]^{\top}\right)\in\mathbb{R}^{160}.

The message vectors from all other robots are averaged as

\bar{m}_{i}\coloneqq\frac{1}{N-1}\sum_{j\neq i}m_{ij}.

The MLP \psi_{\rm ag} shared by each agent, with layer dimensions 258\rightarrow 256\rightarrow 256\rightarrow 256\rightarrow 24, is used to represent

\displaystyle f_{i}^{\theta}(\tau,\mathbf{z}\,|\,\chi)=\psi_{\rm ag}\!\Bigl( \\ \displaystyle[z_{i}^{\top},c_{i}^{\top},\lambda_{i}^{\top},\bar{m}_{i}^{\top}, \\ \displaystyle(N-1)/7,\varphi(\tau)^{\top}]^{\top}\Bigr)\in\mathbb{R}^{24},

in which

\varphi(\tau)=[\tau,\sin(\pi\tau),\cos(\pi\tau),\sin(2\pi\tau),\cos(2\pi\tau)]^{\top}\in\mathbb{R}^{5}.

The nominal vector field is trained and validated on N\in\{4,5,6\}. For Task 1, we instantiate the conditional probability path by choosing p_{0}=\mathcal{N}(0,I). For an encoded data sample \mathbf{Z}\sim p_{\rm data}(\mathbf{z}\,|\,\chi), we draw \mathbf{X}_{0}\sim p_{0} and choose

\mathbf{X}(\tau)=(1-\tau)\mathbf{X}_{0}+\tau\mathbf{Z},\quad\forall\tau\sim\mathrm{Unif}[0,1]

Then, the corresponding conditional vector field is

v(\tau,\mathbf{X}(\tau)\,|\,\mathbf{Z},\chi)=\mathbf{Z}-\mathbf{X}_{0}.

At \tau in the generative process, the estimated endpoint is

\widehat{\mathbf{Z}}=\mathbf{X}(\tau)+(1-\tau)f^{\theta}(\tau,\mathbf{X}(\tau)\,|\,\chi).

Let \widehat{c}_{i,t}^{b} and \widehat{\xi}_{B,t}^{b} denote the velocity of the contact point and the body twist of the plank obtained by decoding \widehat{\mathbf{Z}}, and let c_{i,t}^{b,*} and \xi_{B,t}^{b,*} denote the corresponding quantities from the trajectory used to construct \mathbf{Z}. Let \sigma_{c}\in\mathbb{R}^{2} contain the training set scales for the two components of the contact point velocity, and let \sigma_{\xi}\in\mathbb{R}^{3} contain the training set scales for the three components of the body twist of the plank. Define \rho_{t}=2.5 for t=1,\ldots,4 and \rho_{t}=1 otherwise. The loss function \mathcal{L}_{\rm MAC} for Task 1 is augmented as

\mathcal{L}_{\rm train}=\mathcal{L}_{\rm MAC}+0.16\,\mathcal{L}_{\rm motion}+0.45\,\mathcal{L}_{\rm twist},

in which

\displaystyle\mathcal{L}_{\rm motion} \\ \displaystyle=\frac{1}{2N\sum_{t=1}^{T}\rho_{t}}\sum_{i=1}^{N}\sum_{t=1}^{T}\rho_{t} \\ \displaystyle\cdot\,\left\|\operatorname{diag}(\sigma_{c})^{-1}\left(\widehat{c}_{i,t}^{b}-c_{i,t}^{b,*}\right)\right\|^{2}

and

\mathcal{L}_{\rm twist}=\frac{1}{3\sum_{t=1}^{T}\rho_{t}}\sum_{t=1}^{T}\rho_{t}\left\|\operatorname{diag}(\sigma_{\xi})^{-1}\left(\widehat{\xi}_{B,t}^{b}-\xi_{B,t}^{b,*}\right)\right\|^{2}.

In addition, training and validation curves over three independent seeds are provided in Appendix B.3.

B.2 Task and safety factors

The task and safety factors are constructed from geometric margins. Each margin is positive when its corresponding requirement is satisfied. Specifically, the workspace is

[X_{\min},X_{\max}]\times[Y_{\min},Y_{\max}]=[-7,6.8]\times[-3,3],

and the spatial gap takes

x\in[x_{\rm gap}^{\min},x_{\rm gap}^{\max}]=[0,2].

The plank length and width are L_{B}=5.8 and W_{B}=0.72, each robot is a disk with radius r_{R}=0.16, the required plank support on each side of the gap is d_{\rm sup}=0.55, and the traversable region for the robot centers must extend at least d_{\rm cor}=0.05 beyond each gap edge. Let g_{B,t}=(R_{B,t},p_{B,t}), t=1,\ldots,T_{\rm exec}, denote the plank poses predicted after the T_{\rm exec}=4 actions that will be executed, with p_{B,t}=[x_{t},y_{t}]^{\top} and orientation angle \theta_{t}. Define |\cos(\theta)|_{\varepsilon}\coloneqq\sqrt{\cos^{2}(\theta)+\varepsilon^{2}} and |\sin(\theta)|_{\varepsilon}\coloneqq\sqrt{\sin^{2}(\theta)+\varepsilon^{2}} with \varepsilon=10^{-6}. The distance from the plank center to its outermost point along the x-axis of the world frame is

h_{x}(\theta)\coloneqq\tfrac{1}{2}\!\left(L_{B}|\cos(\theta)|_{\varepsilon}+W_{B}|\sin(\theta)|_{\varepsilon}\right).

The projection onto the same axis of the usable half-length of the plank for a robot center is

h_{c}(\theta)\coloneqq\left(L_{B}/2-r_{R}-0.075\right)|\cos(\theta)|_{\varepsilon}.

At predicted step t, let the four margins be

\displaystyle m_{1,t}^{\rm task} \\ \displaystyle=x_{\rm gap}^{\min}-x_{t}+h_{x}(\theta_{t})-d_{\rm sup}, \\ \displaystyle m_{2,t}^{\rm task} \\ \displaystyle=x_{t}+h_{x}(\theta_{t})-x_{\rm gap}^{\max}-d_{\rm sup}, \\ \displaystyle m_{3,t}^{\rm task} \\ \displaystyle=x_{\rm gap}^{\min}-x_{t}+h_{c}(\theta_{t})-d_{\rm cor}, \\ \displaystyle m_{4,t}^{\rm task} \\ \displaystyle=x_{t}+h_{c}(\theta_{t})-x_{\rm gap}^{\max}-d_{\rm cor}.

and let m_{5,t}^{\rm task},\ldots,m_{M_{\rm task},t}^{\rm task} denote the remaining geometric margins included in the task factor, where M_{\rm task} is the total number of task margins. The task factor evaluates all of these margins at the final predicted plank pose as

\displaystyle q_{\rm task}(\mathbf{z}\,|\,\chi)=\frac{1}{80}\log\Biggl( \\ \displaystyle\sum_{k=1}^{2}\exp\!\left[-80\,\frac{m_{k,T_{\rm exec}}^{\rm task}}{0.55}\right] \\ \displaystyle+\sum_{k=3}^{M_{\rm task}}\exp\!\left[-80\,\frac{m_{k,T_{\rm exec}}^{\rm task}}{0.2}\right]\Biggr).

Let m_{t,1}^{\rm safe},\ldots,m_{t,M_{\rm safe}}^{\rm safe} denote the geometric margins at predicted step t\in\{1,\ldots,T_{\rm exec}\}, where M_{\rm safe} is the number of safety margins evaluated at each step. These margins measure the distances of the plank from the upper and lower workspace boundaries using a 0.2 buffer, the distances of the robot disks from the gap and from the upper and lower workspace boundaries using a 0.1 buffer, and whether the plank has sufficient support on the side of the workspace where robots are initiated or has reached sufficient support on the opposite side. The safety factor is then

q_{\rm safe}(\mathbf{z}\,|\,\chi)=\frac{1}{60}\log\!\left(\sum_{t=1}^{T_{\rm exec}}\sum_{k=1}^{M_{\rm safe}}\exp\!\left[-60\,\frac{m_{t,k}^{\rm safe}}{0.1}\right]\right).

The success and failure are evaluated using the exact geometry (without buffers) instead of the factors above. A trial is successful if the robots can move the plank such that it provides at least d_{\rm sup}=0.55 of support on both sides of the gap and the region traversable by the robot centers extends beyond both gap edges as required. A failure is counted if the plank loses support on the initial side before reaching the opposite side, leaves the workspace, or causes any robot to cross the workspace boundary or enter the spatial gap.

For Task 1, we choose g_{i}=I_{24}, H_{i}=I_{24}, and \alpha_{a}^{\rm SE}(s)=s. For either factor, V_{a}^{\rm SE}(\tau,\mathbf{z}\,|\,\chi)=q_{a}(\mathbf{z}\,|\,\chi)-\beta_{a}(\tau). Hence, \beta_{a}(\tau) is the upper bound imposed on q_{a} during the generative process, and V_{a}^{\rm SE}\leq 0 is equivalent to q_{a}(\mathbf{z}\,|\,\chi)\leq\beta_{a}(\tau). Choose

\beta_{a}(\tau)=\beta_{a,\rm end}+\left(\beta_{a,\rm start}-\beta_{a,\rm end}\right)(1-6\tau^{5}+15\tau^{4}-10\tau^{3}).

At the beginning of each policy generation, let g_{B}^{\rm cur} denote the plank pose and let q_{\rm task}^{\rm cur} denote the task factor evaluated at g_{B}^{\rm cur} instead of the predicted terminal plank pose. Let \mathbf{z}_{0}\coloneqq\mathbf{z}(0) denote the Gaussian initial state during the generative process. Specifically,

\beta_{\rm task,end}=q_{\rm task}^{\rm cur}-0.05,
\beta_{\rm task,start}=\max\!\left\{q_{\rm task}(\mathbf{z}_{0}\,|\,\chi)+0.02,\,\beta_{\rm task,end}+0.02\right\},
\beta_{\rm safe,end}=0,
\beta_{\rm safe,start}=q_{\rm safe}(\mathbf{z}_{0}\,|\,\chi)+0.02.

Therefore, at the end of each generative process, the task factor is required to satisfy q_{\rm task}\leq q_{\rm task}^{\rm cur}-0.05, and the safety factor is required to satisfy q_{\rm safe}\leq 0. Note that \beta_{task,\rm start} is calculated once before the generative process and is fixed throughout the generative process so \beta_{\rm task}(\tau) is C^{1} in \tau. In addition, the adaptive constraint allocation coefficients w_{a,i}^{\rm SE} are calculated using (14) with \delta=0.02. Each robot then solves the decoupled guidance using (15) with one constraint corresponding to the task factor and one corresponding to the safety factor.

B.3 Additional results for Task 1

Figure 5 shows an N=7 trial in which the two policies, Nominal and Guided, start from the same physical configuration and initial sample. The policy generated by the nominal vector field drives the plank out of the workspace, whereas the policy generated with SE guidance avoids this failure and successfully constructs the bridge. Figure 6 shows the evolution of q_{\rm safe} and its time-varying upper bound \beta_{\rm safe} during a generative process with SE guidance right before the policies generated by the nominal vector field drive the plank out of the workspace. During the generative process, q_{\rm safe}(\mathbf{z}(\tau)\,|\,\chi) stays below \beta_{\rm safe}(\tau) as the latter goes to \beta_{\rm safe}(1)=0, with the generated policy satisfying q_{\rm safe}(\mathbf{z}(1)\,|\,\chi)<0.

Figure 5: An N=7 trial of Task 1. Left: the policies generated by the nominal vector field are driving the plank out of the workspace. Right: the policies with SE guidance lead to successful bridge construction.
Figure 6: Evolution of q_{\rm safe} and its time-varying upper bound \beta_{\rm safe} during a generative process with SE guidance at a physical time right before the policies generated by the nominal vector field drive the plank out of the workspace in an N=7 trial.

Figure 7 shows the training and validation losses over three independent training seeds. The lines show the mean across seeds, and the shaded regions show \pm one sample standard deviation.

Figure 7: Training and validation losses over three independent seeds for the GNN-represented nominal vector field in Task 1. Shaded regions represent \pm one sample standard deviation.

Appendix C Task 2: Detailed Settings and Additional Results

C.1 Detailed settings for Task 2

Task 2 considers tabletop scenes with a library of 12 object types. For each scene, N different objects are randomly selected from the library. Each object has a fixed geometric shape and one or more nearby regions that should remain unobstructed when the object is used, which are referred to as affordance regions. A user-specified affordance requirement can change the location, size, or direction of these regions relative to the object. An object can therefore be required to remain accessible from a different side, to have more free space around it, or to satisfy combinations of these changes. The complete object library, geometric representations, affordance-region definitions, and ranges used to generate modified requirements are given below.

For Task 2, choose g_{i}=I_{3}, \delta^{\mathrm{PE}}=0.02,

\omega^{\mathrm{PE}}(\tau)=0.1+1.8\tau,
c^{\mathrm{PE}}=\frac{1.15}{(1-\rho^{\mathrm{PE}})}\max\!\left\{V^{\mathrm{PE}}(0),10^{-30}\right\}^{1-\rho^{\mathrm{PE}}},

and \rho^{\mathrm{PE}}=0.75. The tabletop is centered at the origin and has size 1.40\times 0.94. For each object i, z_{i}\in\mathbb{R}^{3} is decoded into a planar position p_{i}\in\mathbb{R}^{2} and an angular coordinate \theta_{i}\in\mathbb{R} by [p_{i}^{\top},\theta_{i}]^{\top}=\operatorname{diag}(0.70,0.47,1.35)\,z_{i} with the corresponding orientation R_{i}(\theta_{i})\in\mathbb{SO}(2). Each type of object also has a fixed geometric shape defined in its body frame, represented as a disk, a rounded rectangle, or a combination of these shapes.

Table 3 summarizes the 12 object categories, with each category showing at most once in a scene. Denote C(r) for a disk of radius r, R(a,b,r_{c}) for a rounded rectangle with half width a, half height b, and rounded corner radius r_{c}, and A(x,y,r) for a circular affordance region of radius r centered at (x,y) in the object’s body frame. For multiple affordance regions with the same y-coordinate and radius, we list their x-coordinates as a set. For example, A(\{x_{1},\ldots,x_{m}\},y,r) denotes circles centered at (x_{1},y),\ldots,(x_{m},y), each with radius r. For the qth affordance region of object i, let a_{iq}\in\mathbb{R}^{2} denote the center of the region in the body frame of object i, and let r_{iq}>0 denote its radius. A user-specified requirement is parameterized by (s_{i}^{o},s_{i}^{r},\varphi_{i}), where s_{i}^{o} changes the distance of the affordance region from the object, s_{i}^{r} changes its radius, and \varphi_{i} changes its direction relative to the object. Then, the center and radius expressed in the world frame are a_{iq}^{W}=p_{i}+R(\theta_{i}+\varphi_{i})s_{i}^{o}a_{iq} and r_{iq}^{W}=s_{i}^{r}r_{iq}, respectively. The default requirement corresponds to (s_{i}^{o},s_{i}^{r},\varphi_{i})=(1,1,0). A user may instead require an object to be accessible from another side, require more free space around the object, or combine these changes. We sample s_{i}^{o}\in[0.98,1.12] and s_{i}^{r}\in[1.04,1.24]. For a change in access direction, \varphi_{i} is selected from the allowed directions for that object type, with an additional perturbation in [-\pi/22.5,\pi/22.5]. The alternative directions are -\pi/6 and \pi/6 for drawer organizer and drawing board; -\pi/2 and \pi/2 for desk lamp, handled mug, and tissue box; \pi, -\pi/2, and \pi/2 for teacup, laptop, scissors, pencil case, and pen cup; and -\pi/2, \pi/2, and \pi for potted plant and compact printer.

Table 3: Object geometry and default affordance regions for Task 2
  • Drawer organizer
    Geometry
    R(0.156,0.090,0.012)
    Affordance region(s)
    A(\{-0.1,0,0.1\},-0.205,0.108)
  • Teacup
    Geometry
    C(0.046)\cup(C(0.019)+(0.061,0))
    Affordance region(s)
    A(0.125,0,0.055)
  • Desk lamp
    Geometry
    C(0.06)
    Affordance region(s)
    A(0,-0.147,0.079)
  • Laptop
    Geometry
    R(0.085,0.065,0.006)
    Affordance region(s)
    A(0.155,0,0.07)
  • Potted plant
    Geometry
    C(0.078)
    Affordance region(s)
    A(0,-0.123,0.062)
  • Handled mug
    Geometry
    C(0.067)
    Affordance region(s)
    A(0,-0.141,0.054)
  • Drawing board
    Geometry
    R(0.135,0.048,0.008)
    Affordance region(s)
    A(\{-0.065,0.065\},-0.108,0.05)
  • Scissors
    Geometry
    R(0.039,0.026,0.016)
    Affordance region(s)
    A(0.083,0,0.043)
  • Compact printer
    Geometry
    R(0.099,0.07,0.009)
    Affordance region(s)
    A(0,-0.133,0.057)
  • Pencil case
    Geometry
    R(0.037,0.072,0.007)
    Affordance region(s)
    A(0.087,0,0.046)
  • Tissue box
    Geometry
    R(0.049,0.04,0.009)
    Affordance region(s)
    A(0,-0.103,0.047)
  • Pen cup
    Geometry
    C(0.034)
    Affordance region(s)
    A(0.083,0,0.039)

In addition, training contains 4,000 scenes for each N\in\{4,5,6\} and 400 validation scenes for each N. For every scene, N different types of objects are sampled uniformly without replacement from the library. Thus, all object categories appear during training, while N=7,8 evaluate generalization to scenes containing more objects than those used for training. The nominal vector field is represented by a GNN shared by every agent. It is trained using (5) without augmentation.

C.2 Additional results for Task 2

We additionally evaluate five types of requirement: the default requirements, opposite-side access, side-direction access, a larger affordance region, and combinations of these changes. Opposite-side access selects the direction farthest from the default one, and side-direction access selects one of the other non-default directions. Each type contains 50 cases, with 10 cases for each N\in\{4,5,6,7,8\}. As shown in Table 4, Guided directly generates the scenes satisfying all 50 cases in every type of requirement without retraining the nominal vector field.

Table 4: Task 2 results with different affordance requirements.
  • Default
    Natural Nominal
    27/50 (54%)
    Private Nominal
    27/50 (54%)
    Guided
    50/50 (100%)
  • Opposite-side access
    Natural Nominal
    27/50 (54%)
    Private Nominal
    23/50 (46%)
    Guided
    50/50 (100%)
  • Side-direction access
    Natural Nominal
    31/50 (62%)
    Private Nominal
    23/50 (46%)
    Guided
    50/50 (100%)
  • Larger affordance region
    Natural Nominal
    23/50 (46%)
    Private Nominal
    22/50 (44%)
    Guided
    50/50 (100%)
  • Combined
    Natural Nominal
    27/50 (54%)
    Private Nominal
    17/50 (34%)
    Guided
    50/50 (100%)
Figure 8: An N=8 example of Task 2. Green circles denote unobstructed affordance regions, a red circle denotes an obstructed affordance region, and red object outlines indicate pairs of objects that are too close to each other. Left: the compact printer and scissors, and the desk lamp and pen cup, are too close to each other, and the drawer organizer obstructs the affordance region of the handled mug. Right: PE guidance resolves all three violations from the same initial sample without any model retraining.

Figure 8 shows a complementary N=8 example without any user-specified change to the default requirements. The scene generated by the nominal vector field contains several violations: the compact printer and scissors are too close to each other, the desk lamp and pen cup are also too close to each other, and the drawer organizer obstructs the affordance region of the handled mug. Starting from the same initial Gaussian sample, PE guidance directly generates a scene satisfying all of these requirements, without any model retraining.

Figure 9 shows the training and validation flow matching losses over three independent training seeds. The lines show the mean across seeds, and the shaded regions show \pm one sample standard deviation.

We further evaluate how much PE guidance changes the distribution characterized by the nominal flow. Task 2 provides a natural setting for this evaluation as each generative process directly produces one complete scene consisting of the poses of all N objects. For each fixed N\in\{4,5,6,7,8\}, let M=50 denote the number of evaluated scenes. For scene m\in\{1,\ldots,M\} and object i\in\{1,\ldots,N\}, denote the final generated states by Nominal and Guided by z_{m,i}^{\rm Nom} and z_{m,i}^{\rm Gui}, respectively. The corresponding joint generative states of the complete scenes are then denoted by \mathbf{z}_{m}^{\rm Nom}=[(z_{m,1}^{\rm Nom})^{\top},\ldots,(z_{m,N}^{\rm Nom})^{\top}]^{\top} and \mathbf{z}_{m}^{\rm Gui}=[(z_{m,1}^{\rm Gui})^{\top},\ldots,(z_{m,N}^{\rm Gui})^{\top}]^{\top}, respectively. Thus, the two sets \{\mathbf{z}_{m}^{\rm Nom}\}_{m=1}^{M} and \{\mathbf{z}_{m}^{\rm Gui}\}_{m=1}^{M} approximate the corresponding Nominal and Guided scene distributions. First, we evaluate the distance directly in the generative state space. For two scene states \mathbf{z}=[z_{1}^{\top},\ldots,z_{N}^{\top}]^{\top} and \mathbf{z}^{\prime}=[(z_{1}^{\prime})^{\top},\ldots,(z_{N}^{\prime})^{\top}]^{\top}, denote the normalized Euclidean distance as d_{z}^{2}(\mathbf{z},\mathbf{z}^{\prime})=\frac{1}{N}\sum_{i=1}^{N}\|z_{i}-z_{i}^{\prime}\|_{2}^{2}. Using the M generated scenes, we approximate the Wasserstein distance between the Nominal and Guided joint distributions as

\widehat{W}_{2,z}^{\,2}(N)=\min_{\sigma\in\mathfrak{S}_{M}}\frac{1}{M}\sum_{m=1}^{M}d_{z}^{2}\left(\mathbf{z}_{m}^{\rm Nom},\mathbf{z}_{\sigma(m)}^{\rm Gui}\right),

where \mathfrak{S}_{M} denotes the set of all permutations of \{1,\ldots,M\}. Thus, \sigma specifies a optimal transport assignment between the M Nominal scenes and the M Guided scenes.

We also evaluate the same distributional deviation after decoding into object poses using [(p_{m,i}^{b})^{\top},\theta_{m,i}^{b}]^{\top}=\operatorname{diag}(0.70,0.47,1.35)\,z_{m,i}^{b}, with b\in\{{\rm Nom},{\rm Gui}\} representing Nominal and Guided, and g_{m,i}^{b}\in\mathbb{SE}(2). Denote the complete decoded scene as \mathbf{g}_{m}^{b}=\left(g_{m,1}^{b},\ldots,g_{m,N}^{b}\right). For two object poses g_{i} and g_{i}^{\prime}, we use the geodesic (Park, 1995)

d_{\mathbb{SE}(2)}^{2}(g_{i},g_{i}^{\prime})=\|p_{i}-p_{i}^{\prime}\|_{2}^{2}+\lambda_{\theta}^{2}\Delta\theta_{i}^{2},

where \Delta\theta_{i}=\operatorname{atan2}\left(\sin(\theta_{i}-\theta_{i}^{\prime}),\cos(\theta_{i}-\theta_{i}^{\prime})\right)\in[-\pi,\pi], and we choose \lambda_{\theta}=0.1, which places translational and rotational differences on a common length scale comparable to the sizes of the objects in Table 3. For two decoded scenes \mathbf{g}=(g_{1},\ldots,g_{N}) and \mathbf{g}^{\prime}=(g_{1}^{\prime},\ldots,g_{N}^{\prime}), define the scene distance by

d_{\rm scene}^{2}(\mathbf{g},\mathbf{g}^{\prime})=\frac{1}{N}\sum_{i=1}^{N}d_{\mathbb{SE}(2)}^{2}(g_{i},g_{i}^{\prime}).

Then the corresponding approximation of the Wasserstein distance is

\widehat{W}_{2,g}^{\,2}(N)=\min_{\sigma\in\mathfrak{S}_{M}}\frac{1}{M}\sum_{m=1}^{M}d_{\rm scene}^{2}\left(\mathbf{g}_{m}^{\rm Nom},\mathbf{g}_{\sigma(m)}^{\rm Gui}\right).

The magnitude of a Wasserstein distance is difficult to interpret without a reference scale, so we compare it with the root mean square (RMS) pairwise distance among the M complete scenes generated by the nominal vector field. In the generative state space, define

S_{{\rm Nom},z}(N)=\left(\!\frac{2}{M(M-1)}\sum_{1\leq m<n\leq M}\!\!d_{z}^{2}\left(\mathbf{z}_{m}^{\rm Nom},\mathbf{z}_{n}^{\rm Nom}\right)\!\right)^{\!\!\frac{1}{2}}\!.

Similarly, in the decoded physical space, define

S_{{\rm Nom},g}(N)=\left(\!\!\frac{2}{M(M-1)}\!\sum_{1\leq m<n\leq M}\!\!\!d_{\rm scene}^{2}\left(\mathbf{g}_{m}^{\rm Nom},\mathbf{g}_{n}^{\rm Nom}\right)\!\!\right)^{\!\!\!\frac{1}{2}}\!\!.

We then plot the two ratios \frac{\widehat{W}_{2,z}(N)}{S_{{\rm Nom},z}(N)} and \frac{\widehat{W}_{2,g}(N)}{S_{{\rm Nom},g}(N)} in Figure 10, where the first ratio measures the Wasserstein distance between the Nominal and Guided distributions in the generative state space relative to the RMS pairwise distance among the M complete scenes generated by the nominal vector field, and the second ratio measures the one in the decoded pose space. For example, a value of 0.3 means that the Wasserstein distance between the Nominal and Guided distributions is 0.3 times the RMS pairwise distance among the M complete scenes generated by the nominal vector field. As the number of objects increases, both curves increase gradually, meaning that guidance makes larger modifications when there are more objects and thus more coupled requirements. As shown in Figure 10, in the generative state space, \widehat{W}_{2,z}(N)/S_{{\rm Nom},z}(N) increases from 20.6\% for N=4 to 34.5\% for N=8. In the decoded pose space, \widehat{W}_{2,g}(N)/S_{{\rm Nom},g}(N) increases from 20.5\% to 33.7\%. Thus, even for N=8, the Wasserstein distance between the Nominal and Guided distributions is only about one third of the RMS pairwise distance among the complete scenes generated by the nominal vector field that measures how spread out the generated scenes are. The results show that guidance introduce a distributional deviation that is much smaller than the variation among scenes generated by the nominal vector field.

We additionally examine whether guidance reduces how spread the generated objects are. Define

S_{{\rm Gui},z}(N)=\left(\frac{2}{M(M-1)}\sum_{1\leq m<n\leq M}d_{z}^{2}\left(\mathbf{z}_{m}^{\rm Gui},\mathbf{z}_{n}^{\rm Gui}\right)\right)^{\frac{1}{2}},

and

S_{{\rm Gui},g}(N)=\left(\!\frac{2}{M(M-1)}\sum_{1\leq m<n\leq M}\!\!d_{\rm scene}^{2}\left(\mathbf{g}_{m}^{\rm Gui},\mathbf{g}_{n}^{\rm Gui}\right)\!\right)^{\!\!\frac{1}{2}}\!\!.

These quantities are defined in exactly the same way as S_{{\rm Nom},z}(N) and S_{{\rm Nom},g}(N), but using the M complete scenes generated with guidance. Across N=4,\ldots,8, S_{{\rm Gui},z}(N)/S_{{\rm Nom},z}(N) ranges from 98.3\% to 99.9\%, and S_{{\rm Gui},g}(N)/S_{{\rm Nom},g}(N) ranges from 99.1\% to 100.5\%, meaning that the RMS pairwise distance among Guided scenes is almost the same as that among scenes generated by the nominal vector field.

These results show that the generated objects with PE guidance satisfy the desired hard requirements while leading to only a moderate deviation of the distribution resulting from the nominal vector field, and approximately preserving the spread of the generated scenes.

Figure 9: Training and validation flow matching losses over three independent seeds for the nominal vector field in Task 2. Shaded regions represent \pm one sample standard deviation.
Figure 10: Approximation of the Wasserstein distance between the Nominal and Guided distributions in Task 2 with respect the total number of generated objects, normalized by the RMS pairwise distance among the M=50 scenes generated by the nominal vector field. The blue and orange curves use the distance metrics in the generative state space and the decoded pose space, respectively.