Manuscript Offprint
arXiv:2609.38133Multi-Agent Flow Matching with Decoupled Generative Guidance
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Ruoyu Lin
Magnus Egerstedt
Fabio Pasqualetti
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.
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
Ruoyu Lin and Fabio Pasqualetti are with the Department of Electrical Engineering and Computer Science, University of California, Irvine, Irvine, CA 92697 USA. Email: {rlin10, fabiopas}@uci.edu
Magnus Egerstedt is with the University of North Carolina at Chapel Hill, Chapel Hill, NC 27599 USA. Email: magnus@unc.edu 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.1 MULTI-AGENT FLOW MATCHING
Consider a team of agents, indexed by , whose joint generative process produces an output for a given task, where denotes the corresponding output space. Let denote the generation condition, where is the corresponding condition space. The condition contains information such as initial states, agent or object properties, environment information, or task specifications. The output depends on specific applications. For example, in Section 4.1, represents a motion policy for robots, and in Section 4.2, represents an arrangement of objects. Instead of generating directly, each agent has a generative state at generative time , which is different from physical time . Denote the joint generative state as . The task-specific decoder and encoder map between the joint generative state space and the output space are denoted as
For a training data , per (2) gives its target generative state for flow matching, and per (1) represents the final generated object.
Given and , let denote the joint conditional distribution of the encoded training data in , and let denote a simple initial distribution in from which samples can be drawn efficiently. Generation starts from and evolves over governed by the dynamical system
The objective of flow matching (Lipman et al., 2022) is to learn a vector field whose flow transports to . To learn such a vector field, for each target , consider a conditional probability path satisfying and , where is a realization of the intermediate random variable and is the Dirac delta concentrated at . Let denote a conditional time-varying vector field that generates this path, then the marginal probability path is , and the corresponding marginal vector field is
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)
which we refer to as the nominal vector field. The same neural network parameters 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 , where is the nominal vector field of agent , which is trained using the multi-agent conditional flow matching loss
(5) in which the expectation is taken over , the encoded data random variable , and the intermediate state random variable along the conditional probability path. After training, 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 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 be the guidance input of agent , and be the map determining how the guidance input affects the generative dynamics. Then, the guided generative dynamics are in the control-affine form
We represent the hard requirement by a (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 without access to the simultaneously computed guidance input , .
SE guidance. Let be a factor graph (Kschischang et al., 2001), where is a finite set of factors and is the incidence relation. For each factor , define the incident agent set as , and let denote the corresponding subvector of the joint generative state. Let be . The guidance input of agent is such that
(7)
in which
(8)
where is an extended class function.
PE guidance. For each agent , let be . The guidance input of agent is such that
(9)
in which
and
(10)
where , and is a subadditive class 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 , 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 function represent a shared requirement, where means that the requirement is satisfied. An initial sample need not satisfy this requirement. Thus, we introduce a time-varying upper bound that is initialized from . The bound is chosen to satisfy
and is tightened toward a prescribed terminal value. In particular, choosing ensures that the desired hard requirement is satisfied by the end of the generative process.
Accordingly, define
so that is equivalent to . Since factor involves multiple agents, can be allocated among the involved agents using with , i.e.,
(13)
Since , 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 and be . Suppose (11) holds, and let and be defined by (12) and (13), with and . If every agent , along a trajectory of (6), satisfies (7), , then
In particular, if
then
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 according to how each agent can affect the shared requirements. Define
which determines how the guidance input affects the shared requirement . Based on (13), the constraint (7) can be written as with
When , already satisfies this inequality. When , agent must apply a guidance input that reduces the corresponding requirement. When two SE factors are simultaneously active at agent , their local guidance conditions may compete for the same input . To address this issue, let and if and otherwise. Then, characterizes how aligned the effects of on the two active requirements is. For , let be a function satisfying for , for , and for . Then, we define the effective directions
and
When only one SE factor is active at agent i, we set . 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
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 when , then, there exists a guidance input satisfying (7), . Such a guidance input can be obtained from
(15)
which admits a unique minimizer when , where .
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 in the SE guidance scenario, here each agent has a nonnegative representing the violation of its private requirement that can be dependent on its neighbors. Let and choose the total violation to be
so means that all private requirements are satisfied. We then choose
where and . The choice of enables finite-horizon convergence, and in (10) modulates the required decrease of over , as shown in the following theorem.
Theorem 3.3 (Finite-horizon convergence for PE guidance). Let be given by (16). If every agent, along a trajectory of (6), satisfies (9), , then
In particular, if
then
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
and
\begin{align*}b_{i}^{\mathrm{PE}}:=\nabla_{z_{i}}V^{\mathrm{PE}}(\mathbf{z}\mid\chi)^\top f_{i}^\theta(\tau,\mathbf{z}\mid\chi)\\+c^{\mathrm{PE}}\omega^{\mathrm{PE}}(\tau)\left(V_{i}^{\mathrm{PE}}(\mathbf{z}\mid\chi)\right)^\rho^{\mathrm{PE}}.\end{align*}Then the constraint (9) becomes . If , the nominal input already satisfies the constraint. If , a feasible guidance input exists when . This gives the following feasibility result.
Corollary 3.4 (Feasibility of PE guidance). Per Theorem 3.3, if , or if and , then there exists a guidance input satisfying (9), . Such a guidance input can be obtained from
which admits a unique minimizer when .
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.,
and
with , where the joint guidance correction is denoted by
(18)
Let and denote the probability distributions of and , respectively.
Theorem 3.5 (Wasserstein bound on guidance-induced distributional deviation). Assume and have finite second moments and, for all and ,
where is integrable. If
where per (18) is the guidance correction corresponding to the initial sample , then
(19)
In addition, given , assume the decoder satisfies
, for some . Let and denote the probability distributions of and , respectively. Then
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 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
Require: Condition , decoder , and either a pretrained or training data with encoder .
1: if is unavailable then
2: using (5)
3: end if
4: .
5: if SE guidance then
6: Specify , , , and , and construct and using (12)–(13).
7: for all do
8: solution of (15).
9: end for
10: else if PE guidance then
11: Choose and according to Theorem 3.3.
12: for all do
13: solution of (17).
14: end for
15: end if
16: Evolve over according to (6) with .
17: return .

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.
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 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: , which encodes task progress at the plank pose reached after the executed actions, and , 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 in (6). We refer to the generative process with as Nominal, and to the same nominal vector field with SE guidance , where is obtained from (15), as Guided. Nominal and Guided use the same initial physical condition, initial sample , conditioning information , and decoder . The nominal vector field is trained with , and we evaluate 50 manipulation trials for each , with evaluating generalization to team sizes unseen in the training data.
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

Figure 2: Evolution of and its time-varying upper bound 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.
Table 1: Success rates for Task 1
| N | Nominal | Guided |
|---|---|---|
| 4 | 46/50 (92%) | 50/50 (100%) |
| 5 | 45/50 (90%) | 50/50 (100%) |
| 6 | 43/50 (86%) | 50/50 (100%) |
| 7 (unseen) | 42/50 (84%) | 50/50 (100%) |
| 8 (unseen) | 42/50 (84%) | 50/50 (100%) |
| Overall | 218/250 (87.2%) | 250/250 (100%) |
and validation curves, are provided in Appendix B.3.
Figure 2 shows and along in the generative process for policies generated at early, middle, and late physical times in the manipulation stage of the Guided example shown in Figure 1. For visualization only, both curves in each plot are shifted by the same constant , and is unchanged. The shaded region corresponds to . As shown in Figure 2, early in physical time, starts close to its upper bound and then moves farther below it during the generative process. This is because is initialized just above the task factor value of the initial sample, and 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 from the contracting upper bound while improving the task accomplishment. At the middle physical time, stays below even though it increases during the generative process. This is because the SE guidance does not require to decrease monotonically. Instead, it only requires , allowing the nominal vector field to dominate the generated policy. Across the three physical times, the observed relation 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 objects. For object , denote its pose by , and let . The condition 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 , let denote its th geometric requirement, where 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 and choose a buffer . We define with . Detailed settings are provided in Appendix C.
For evaluation, the nominal vector field is trained on scenes with , and we evaluate 50 cases for each . 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 unseen in the training data. Figure 3 shows an 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 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.
Figure 4 shows the evolution of during the generative process for the 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
Table 2: Success rates for Task 2
| N | Natural Nominal | Private Nominal | Guided |
|---|---|---|---|
| 4 | 44/50 (88%) | 36/50 (72%) | 50/50 (100%) |
| 5 | 35/50 (70%) | 31/50 (62%) | 50/50 (100%) |
| 6 | 32/50 (64%) | 26/50 (52%) | 50/50 (100%) |
| 7 (unseen) | 16/50 (32%) | 13/50 (26%) | 50/50 (100%) |
| 8 (unseen) | 8/50 (16%) | 6/50 (12%) | 50/50 (100%) |
| Overall | 135/250 (54.0%) | 112/250 (44.8%) | 250/250 (100%) |

Figure 3: An 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: Evolution of during the generative process for the example in Figure 3.
is violated at the end of the generative process, whereas PE guidance guarantees that converges to zero and generates a scene satisfying the new requirement without retraining, which is consistent with Theorem 3.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
Michael Albergo, Nicholas M Boffi, and Eric Vanden-Eijnden. Stochastic interpolants: A unifying framework for flows and diffusions. Journal of Machine Learning Research, 26(209):1–80, 2025.
Aaron D Ames, Xiangru Xu, Jessy W Grizzle, and Paulo Tabuada. Control barrier function based quadratic programs for safety critical systems. IEEE transactions on automatic control, 62(8):3861–3876, 2016.
Arpit Bansal, Hong-Min Chu, Avi Schwarzschild, Roni Sengupta, Micah Goldblum, Jonas Geiping, and Tom Goldstein. Universal guidance for diffusion models. In International Conference on Learning Representations, volume 2024, pages 51304–51323, 2024.
Sanjay P Bhat and Dennis S Bernstein. Finite-time stability of continuous autonomous systems. SIAM Journal on Control and optimization, 38(3):751–766, 2000.
Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. Advances in neural information processing systems, 33:1877–1901, 2020.
Cheng Chi, Zhenjia Xu, Siyuan Feng, Eric Cousineau, Yilun Du, Benjamin Burchfiel, Russ Tedrake, and Shuran Song.
Diffusion policy: Visuomotor policy learning via action diffusion. The International Journal of Robotics Research, 44(10-11):1684–1704, 2025.
Xiaobing Dai, Zewen Yang, Dian Yu, Fangzhou Liu, Hamid Sadeghian, Sami Haddadin, and Sandra Hirche. Safeflow: Safe robot motion planning with flow matching via control barrier functions. arXiv preprint arXiv:2504.08661, 2025.
Ruiqi Feng, Chenglei Yu, Wenhao Deng, Peiyan Hu, and Tailin Wu. On the guidance of flow matching. arXiv preprint arXiv:2502.02150, 2025.
Darshan Gadginmath, Ahmed Allibhoy, and Fabio Pasqualetti. Provably safe generative sampling with constricting barrier functions. arXiv preprint arXiv:2602.21429, 2026.
Justin Gilmer, Samuel S Schoenholz, Patrick F Riley, Oriol Vinyals, and George E Dahl. Neural message passing for quantum chemistry. In International conference on machine learning, pages 1263–1272. Pmlr, 2017.
Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. Advances in neural information processing systems, 33:6840–6851, 2020.
Michael Janner, Yilun Du, Joshua B Tenenbaum, and Sergey Levine. Planning with diffusion for flexible behavior synthesis. arXiv preprint arXiv:2205.09991, 2022.
Frank R Kschischang, Brendan J Frey, and H-A Loeliger. Factor graphs and the sum-product algorithm. IEEE Transactions on information theory, 47(2):498–519, 2001.
Dongsu Lee, Daehee Lee, and Amy Zhang. Multi-agent coordination via flow matching. In International Conference on Learning Representations, volume 2026, pages 99912–99943, 2026.
Jinhao Liang, Jacob K Christopher, Sven Koenig, and Ferdinando Fioretto. Simultaneous multi-robot motion planning with projected diffusion models. arXiv preprint arXiv:2502.03607, 2025.
Ruoyu Lin, Gennaro Notomista, and Magnus Egerstedt. Disentangled control of multi-agent systems. IEEE Transactions on Control of Network Systems, 2026.
Yaron Lipman, Ricky TQ Chen, Heli Ben-Hamu, Maximilian Nickel, and Matt Le. Flow matching for generative modeling. arXiv preprint arXiv:2210.02747, 2022.
Viraj Parimi and Brian C Williams. Diffusion-guided multi-arm motion planning. arXiv preprint arXiv:2509.08160, 2025.
Frank C Park. Distance metrics on the rigid-body motions with applications to mechanism design. Journal of Mechanical Design, 1995.
Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. In 2022 IEEE/CVF conference on computer vision and pattern recognition (CVPR), pages 10674–10685. ieee, 2022.
Yorai Shaoul, Itamar Mishani, Shivam Vats, Jiaoyang Li, and Maxim Likhachev. Multi-robot motion planning with diffusion models. In International Conference on Learning Representations, volume 2025, pages 95791–95811, 2025.
Jiapeng Tang, Yinyu Nie, Lev Markhasin, Angela Dai, Justus Thies, and Matthias Nießner. Diffuscene: Denoising diffusion models for generative indoor scene synthesis. In 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 20507–20518. IEEE, 2024.
Emanuel Todorov, Tom Erez, and Yuval Tassa. Mujoco: A physics engine for model-based control. In 2012 IEEE/RSJ international conference on intelligent robots and systems, pages 5026–5033. IEEE, 2012.
Wei Xiao, Johnson Wang, Chuang Gan, Ramin Hasani, Mathias Lechner, and Daniela Rus. Safediffuser: Safe planning with diffusion probabilistic models. In International Conference on Learning Representations, volume 2025, pages 100391–100412, 2025.
Jeongyong Yang, Seunghwan Jang, and SooJean Han. Safe-flowmatcher: Safe and fast planning using flow matching with control barrier functions. In International Conference on Learning Representations, volume 2026, pages 54058–54087, 2026.
Zhengbang Zhu, Minghuan Liu, Liyuan Mao, Bingyi Kang, Minkai Xu, Yong Yu, Stefano Ermon, and Weinan Zhang. Madiff: Offline multi-agent learning with diffusion models. Advances in Neural Information Processing Systems, 37: 4177–4206, 2024.
A PROOFS
A.1 PROOF OF THEOREM 3.1
For any , (12) gives
Along a trajectory of (6),
(21)
According to (13), (7) becomes
(22)
Summing (22) over and using such that yields
(23)
According to (23) and (21), we have
Since is an extended class- function, we have and . Suppose but there exists some such that . By continuity, let be the last time before at which . Then, for every , , , and by (24), which contradicts and . Therefore,
and (12) at gives .
A.2 PROOF OF PROPOSITION 3.2
In this paper, we choose
which satisfies that , , and , .
Given an agnet , assume it is incident to two active SE factors, indexed by 1 and 2, at any . Since , then we have
where the last two quantities are strictly positive whenever the corresponding since and . Additionally, for every active SE factor , (14) satisfies and . Also, consider the SE inequalities
Define when , and otherwise. One can observe that whenever since in this case. Now choose
Then, for a = 1,
(26)
If , the first and last terms on the right-hand side of (26) cancel, and the remaining term is nonpositive. If , then and the left-hand side of (26) is nonpositive. The same analysis holds for . Hence, (25) are satisfied. If only one SE factor is active, then , and the same construction with a single coefficient also gives a feasible . Therefore, the feasible set of (15) is nonempty.
A.3 PROOF OF THEOREM 3.3
Since , we have
(27)
Using (16) in (10), summing (9) over , and applying (27) yield
Since , is subadditive on . Hence,
and thus
which adapts the finite-time Lyapunov inequality (Bhat and Bernstein, 2000) to the generative process using the time-varying weight . On any interval over which , multiplying (28) by leads to
Integrating from 0 to while results in
Additionally, (28) and imply that, for any ,
Therefore,
and evaluating the upper bound at implies .
A.4 PROOF OF COROLLARY 3.4
If , then satisfies the inequality constraint in (17). If and , choose
Since and , we have , and thus . Therefore, the feasible set of (17) is nonempty.
A.5 PROOF OF THEOREM 3.5
For an initial sample , define
Since the nominal and guided trajectories start from the same initial sample, . Then, we can obtain
Since , , , we have
Then, applying Grönwall's inequality leads to
Thus, using Minkowski's inequality, we can obtain
(29)
Since the Wasserstein distance between and with finite second moments is
where denotes the set of probability measures on whose first and second marginal distributions are and , respectively, we have
Using(29), (19) can be obtained.
In addition, for a , let have joint probability distribution . Then and have probability distributions and , respectively. Thus, according to (30) and , , we can obtain
Since is arbitrary, we have
which gives (20).
B TASK 1: DETAILED SETTINGS AND ADDITIONAL RESULTS
B.1 REPRESENTATION, CONDITIONING, NETWORK STRUCTURE, AND TRAINING
Denote the plank pose as , with orientation and position . Its body twist is
where .
For robot , let denote its contact point in the body frame of the plank and define . The velocity of the contact point is
where .
The object generated in Task 1 is a motion policy over a finite physical horizon. Conditioned on , the decoder maps the joint generative state to a sequence of robot contact-point velocities,
where and . Only the first actions of the generated policy are executed before a new policy is generated.
Let . For each robot, the generative state is decoded into three-dimensional vectors , . Define and , with . Let with , and let be the B-spline matrix. Before a new policy is generated, a T-step body twist sequence is constructed with the previously generated policy and the current motion. Then, the decoder gives
and . Only the first 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 , and its first five values interpolated between the current motion and the shifted sequence. The resulting sequence is included in the next condition .
For Task 1, the condition contains only quantities known before a new policy is generated and is characterized by three vectors for each robot . Specifically, the vector represents robot , the plank, and their locations relative to the workspace geometry. For each other robot , the vector represents the position and velocity of robot relative to robot . The vector represents robot '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 be the current position and velocity of robot in the world frame. Denote the current plank pose as with , and let denote the angle associated with . Let and be the current translational and angular velocities of the plank. The corresponding quantities in the body frame of the plank are , , and . Let quantify the workspace, define and , and let and be the two -coordinates of the gap edges. We denote by the minimum -coordinate of the region from which robot goals are sampled. The vector consists of the plank orientation and its position relative to the workspace, i.e.,
Denote , which indicates if robot is on the initial side ground, on the plank, or on the opposite side ground. Let indicate whether robot contacts with the plank, and let indicate whether bridge construction has succeeded. Additionally,
For every , denote the relative position and velocity and in the body frame of the plank, then
Let be the plank length, and the desired plank pose be . Denote , and let be the shortest signed angular difference from to . Let
For each of the 40 entries of , the corresponding training set mean is subtracted and the result is divided by the corresponding training set standard deviation. Let denote the resulting matrix, then
where for and for , and stacks the entries of a matrix into a vector.
For each , the multilayer perceptron (MLP) , with layer dimensions , is applied to , , and to form the message vector
The message vectors from all other robots are averaged as
The MLP shared by each agent, with layer dimensions , is used to represent
in which
The nominal vector field is trained and validated on . For Task 1, we instantiate the conditional probability path by choosing . For an encoded data sample , we draw and choose
Then, the corresponding conditional vector field is
At in the generative process, the estimated endpoint is
Let and denote the velocity of the contact point and the body twist of the plank obtained by decoding , and let and denote the corresponding quantities from the trajectory used to construct . Let contain the training set scales for the two components of the contact point velocity, and let contain the training set scales for the three components of the body twist of the plank. Define for and otherwise. The loss function for Task 1 is augmented as
in which
and
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
and the spatial gap takes
The plank length and width are and , each robot is a disk with radius , the required plank support on each side of the gap is , and the traversable region for the robot centers must extend at least beyond each gap edge. Let , , denote the plank poses predicted after the actions that will be executed, with and orientation angle . Define and with . The distance from the plank center to its outermost point along the x-axis of the world frame is
The projection onto the same axis of the usable half-length of the plank for a robot center is
At predicted step t, let the four margins be
and let denote the remaining geometric margins included in the task factor, where is the total number of task margins. The task factor evaluates all of these margins at the final predicted plank pose as
Let denote the geometric margins at predicted step , where 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
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 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.

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.
For Task 1, we choose , , and . For either factor, . Hence, is the upper bound imposed on during the generative process, and is equivalent to . Choose
At the beginning of each policy generation, let denote the plank pose and let denote the task factor evaluated at instead of the predicted terminal plank pose. Let denote the Gaussian initial state during the generative process. Specifically,
Therefore, at the end of each generative process, the task factor is required to satisfy , and the safety factor is required to satisfy . Note that is calculated once before the generative process and is fixed throughout the generative process so is in . In addition, the adaptive constraint allocation coefficients are calculated using (14) with . 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 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 and its time-varying upper bound 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, stays below as the latter goes to , with the generated policy satisfying .
Figure 7 shows the training and validation losses over three independent training seeds. The lines show the mean across

Figure 6: Evolution of and its time-varying upper bound 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: Training and validation losses over three independent seeds for the GNN-represented nominal vector field in Task 1. Shaded regions represent one sample standard deviation.
seeds, and the shaded regions show one sample standard deviation.
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 , ,
and . The tabletop is centered at the origin and has size . For each object , is decoded into a planar position and an angular coordinate by with the corresponding orientation . 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 for a disk of radius , for a rounded rectangle with half width , half height , and rounded corner radius , and for a circular affordance region of radius centered at in the object's body frame. For multiple affordance regions with the same -coordinate and radius, we list their -coordinates as a set. For example, denotes circles centered at , each with radius . For the th affordance region of object , let denote the center of the region in the body frame of object , and let denote its radius. A user-specified requirement is parameterized by , where changes the distance of the affordance region from the object, changes its radius, and changes its direction relative to the object. Then, the center and radius expressed in the world frame are and , respectively. The default requirement corresponds to . 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 and . For a change in access direction, is selected from the allowed directions for that object type, with an additional perturbation in . The alternative directions are and for drawer organizer and drawing board; and for desk lamp, handled mug, and tissue box; , , and for teacup, laptop, scissors, pencil case, and pen cup; and , , and for potted plant and compact printer.
In addition, training contains 4,000 scenes for each 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 . 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.
Figure 8 shows a complementary 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 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 objects. For each fixed , let denote the number of evaluated scenes. For scene and object , denote the final generated states by Nominal and Guided by and , respectively. The corresponding joint generative states of the complete scenes are then denoted by and , respectively. Thus, the two sets and approximate the corresponding Nominal and Guided scene distributions. First, we evaluate the distance directly in the generative state space. For two scene states and , denote the normalized Euclidean distance as . Using the generated scenes, we approximate the Wasserstein distance between the Nominal and Guided joint distributions as
where denotes the set of all permutations of . Thus, specifies a optimal transport assignment between the Nominal scenes and the Guided scenes.
We also evaluate the same distributional deviation after decoding into object poses using , with representing Nominal and Guided, and . Denote the complete decoded scene as . For two object poses and , we use the geodesic (Park, 1995)
where , and we choose , 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 and , define the scene distance by
Then the corresponding approximation of the Wasserstein distance is
Table 3: Object geometry and default affordance regions for Task 2
| Object | Geometry | Affordance region(s) |
|---|---|---|
| Drawer organizer | ||
| Teacup | ||
| Desk lamp | ||
| Laptop | ||
| Potted plant | ||
| Handled mug | ||
| Drawing board | ||
| Scissors | ||
| Compact printer | ||
| Pencil case | ||
| Tissue box | ||
| Pen cup |
Table 4: Task 2 results with different affordance requirements.
| Requirement | Natural Nominal | Private Nominal | Guided |
|---|---|---|---|
| Default | 27/50 (54%) | 27/50 (54%) | 50/50 (100%) |
| Opposite-side access | 27/50 (54%) | 23/50 (46%) | 50/50 (100%) |
| Side-direction access | 31/50 (62%) | 23/50 (46%) | 50/50 (100%) |
| Larger affordance region | 23/50 (46%) | 22/50 (44%) | 50/50 (100%) |
| Combined | 27/50 (54%) | 17/50 (34%) | 50/50 (100%) |
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 complete scenes generated by the nominal vector field. In the generative state space, define
Similarly, in the decoded physical space, define
We then plot the two ratios and 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 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 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, increases from 20.6% for to 34.5% for . In the decoded pose space, increases from 20.5% to 33.7%. Thus, even for , 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
and
These quantities are defined in exactly the same way as and , but using the complete scenes generated with guidance. Across , ranges from 98.3% to 99.9%, and 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 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 9: Training and validation flow matching losses over three independent seeds for the nominal vector field in Task 2. Shaded regions represent one sample standard deviation.

Figure 10: Approximation of the Wasserstein distance between the Nominal and Guided distributions in Task 2 with respect to 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.