Manuscript Offprint

arXiv:2611.23149

Capability Composition in Heterogeneous Teams via Barrier-Guided Diffusion Sampling

Diana Laura Morales, Ruoyu Lin, Magnus Egerstedt, Fabio Pasqualetti

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

The agents in a heterogeneous team can cooperate to accomplish tasks that exceed their individual capabilities. The team trajectories for a cooperative task can be generated by a generative model, provided that the model has been trained on demonstrations of the agents cooperating. Yet, demonstrations of cooperation are costly and may not exist for tasks that the team has never performed. The conditions under which the agents can combine their capabilities, however, are physical properties of the team and are known before any demonstration is collected. We encode the conditions as constraints on the team trajectories, and we enforce the constraints while sampling from generative models trained on demonstrations of each agent alone. We prove that the proposed method can generate every team trajectory that satisfies the constraints, although the demonstrations contain no cooperation. Hence the constraints determine which team trajectories can be generated, and the demonstrations determine how likely each team trajectory is. Numerical results on two cooperative tasks show the effectiveness of the method, which generates cooperative team trajectories that satisfy the constraints and requires no retraining when agents join or leave the team. Finally, we implement the method on a multi-robot testbed.

Keywords Multi-agent systems, cooperating robots, capability composition, integrated planning and learning

1 Introduction

Cooperation allows the agents in a team to accomplish tasks that exceed their individual capabilities. Cooperation in multi-agent teams has long been studied, from the allocation and scheduling of tasks [1, 2] to the control of several robots acting on a common object [3, 4]. Existing methods assume that the capabilities of the team are specified in advance, together with the conditions under which each capability can be used. The capabilities that a task requires, however, depend on the environment where the agents are deployed, and the environment is often unknown when the agents are trained. The task may then require a capability that no agent has alone, and that the agents obtain only by combining their individual capabilities. Hence the required cooperation can be neither specified nor demonstrated in advance, and generating cooperative behaviors for the task remains a challenge.

Generative models, and diffusion models in particular, are effective methods to generate the trajectories of an agent [5, 6] or of a team [7, 8], provided that the demonstrations contain the desired behavior. To overcome this limitation, we observe that the conditions under which the agents can combine their capabilities follow from the physics of the team. Hence the conditions can be written as constraints on the team trajectories without any demonstration. We then sample the team trajectories from generative models trained on demonstrations of each agent alone, and we impose the constraints during sampling using a guidance method [9, 5]. This results in a method to sample cooperative team trajectories from models pre-trained on non-cooperative demonstrations.

Related work. Task allocation and scheduling decide which agent performs which task and when [1, 2], and a trajectory planner then realizes the decision. We sample the trajectories directly from diffusion models and read the pattern of cooperation off the result, with nothing computed in advance. One line of multi-agent diffusion planners trains on demonstrations of cooperation where they exist [7, 8], and reproduces only the cooperation those demonstrations contain. Another trains on single-robot data and reconciles the resulting plans by search [10] or by projection [11]. These approaches combine constraints by intersection, as for collision avoidance. We combine them by union, because cooperation admits configurations that no agent reaches alone. Cooperation is available only while the agents are physically arranged for it, and has to be encoded as a constraint that holds at every timestep of a trajectory. Control barrier functions [12] (barriers, for short) encode such constraints. A barrier keeps a trajectory inside the set it defines. Boolean combinations of barriers give intersections and unions of the admissible sets [13, 14]. On the generative side, barriers have been used to keep diffusion samples inside a safe set [15] and to guide sampling with a constricting condition that tightens as noise falls [16]. Barriers also make flow-matching samplers safe [17, 18]. In multi-agent systems, guidance can be distributed, so that each agent computes its own Lyapunov-based guidance input [19].

Contributions. Our contributions are as follows. First, we formulate cooperative trajectory generation without demonstrations of cooperation as barrier-guided diffusion sampling, with constraints that encode the individual capabilities of the agents and the cooperative ones. Second, we propose a scheme in which the scores trained independently for each agent are summed into a product prior, and we prove that the sum is the exact score of that product at every noise level, since the densities of different agents depend on disjoint sets of variables. Third, we prove that the sampler can generate every team trajectory satisfying the constraints with nonzero probability and, when its guidance succeeds at every step, no other. Thus, every pattern of cooperation the constraints permit can be generated, and none is specified or pre-computed. Fourth, we demonstrate the method on a river crossing task, in simulation and on the Robotarium. The generated trajectories cross the river cooperatively, while sampling the prior alone yields agents that ignore each other and fail the task. We also show that the sampler requires no retraining to generate trajectories when agents join or leave the team. Finally, we consider a task in which cooperation also has to be timed. The sampler generates such trajectories without demonstrations, but less often than in the river crossing. Most failures of the sampler are consistent with local maxima of the barrier.

References (26)