Manuscript Offprint
arXiv:2610.30443SpecMAGIC: Specification-Guided Multi-Task Generalization in Multi-Agent Reinforcement Learning
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
Multi-task generalization is an important yet underexplored problem in multi-agent reinforcement learning (MARL). Many real-world applications require multi-agent systems to generalize across complex, temporally extended tasks with diverse inter-agent coordination requirements. We introduce a specification language that combines temporal-logic task specifications with operators for expressing such requirements. We propose SpecMAGIC, a hierarchical framework that leverages the automaton structure of task specifications for subtask decomposition. A centralized high-level planner identifies and allocates compatible subtask sequences across agents, while decentralized low-level policies execute individual subtasks. This enables zero-shot generalization to new tasks by composing reusable subtask policies according to new specifications, without retraining. We establish soundness and probabilistic completeness of the high-level planner. Experiments on multi-agent navigation tasks show that SpecMAGIC substantially outperforms existing approaches on unseen task specifications and maintains strong performance as the number of agents increases. The code is available at https://github.com/BU-DEPEND-Lab/SpecMAGIC.
1 INTRODUCTION
Multi-task multi-agent reinforcement learning (MTMARL) aims to learn multi-agent policies that generalize across diverse tasks (Omidshafiei et al., 2017; Chai et al., 2025). Recent methods have explored this setting in applications including multi-robot systems (Wang et al., 2023; Li et al., 2024a; Zhu et al., 2025) and autonomous driving (Berahman et al., 2025; Wu et al., 2026). However, zero-shot generalization to complex, temporally extended tasks with diverse inter-agent coordination requirements, as arise in many real-world applications, remains largely underexplored. To capture this setting, we consider multi-agent systems where each agent is assigned individual tasks, while the team must additionally satisfy coordination requirements such as dependency and count constraints. Moreover, at test time, both the individual tasks and the coordination structure among agents can differ from those encountered during training. For example, warehouse robots that have learned to deliver packages need to follow different user-specified delivery sequences, where some deliveries must precede others and certain deliveries require a specified number of robots.
Temporal logic provides a principled framework for specifying multi-agent behaviors over time. In particular, linear temporal logic (LTL) has been widely used to express complex temporally extended tasks and to guide the learning of policies that satisfy them (León & Belardinelli, 2020; Liu et al., 2025; Yalcinkaya et al., 2025). Recent approaches exploit the structure of automata corresponding to LTL specifications (Vardi & Wolper, 1986) to decompose them into subtasks or subtask sequences (Vaezipoor et al., 2021; Qiu et al., 2023; Jackermeier & Abate, 2025), enabling generalization to unseen specifications by composing previously learned subtask policies according to the structure of a new specification. This paradigm can, in principle, be extended to multi-agent specifications by combining individual tasks and inter-agent coordination requirements into a global specification and applying the same decomposition procedure. However, the automaton corresponding to a global specification can be exponential in the size of the specification, and composing agent-specific requirements can further induce a combinatorial blow-up in the joint state space. Consequently, explicit automaton construction and planning become increasingly intractable as the number of agents and specification complexity grow.
In this work, we propose SpecMAGIC, a hierarchical framework for zero-shot Specification-guided Multi-Agent task Generalization with Inter-agent Coordination requirements. We introduce specification operators for dependency and count constraints that can be translated into standard LTL formulas. allowing individual tasks and coordination requirements to be represented within a unified specification framework. To avoid constructing a global automaton over all agents and coordination requirements, SpecMAGIC decomposes the specifications into reach-avoid subtask sequences and plans directly over the resulting subtask space. A centralized sampling-based high-level planner then identifies, allocates and sequences compatible subtasks across agents. The resulting plan is executed by decentralized subtask-conditioned RL policies, compatible with a variety of goal-conditioned RL policies with subtask embeddings (Vaezipoor et al., 2021; Qiu et al., 2023; Jackermeier & Abate, 2025; Guo et al., 2026a). This hierarchical approach enables learned subtask policies to be recombined at test time to satisfy unseen individual tasks and coordination constraints, including both finite- and infinite-horizon specifications. Our main contributions are summarized as follows:
• We study zero-shot generalization to complex multi-agent LTL specifications that combine individual tasks with inter-agent coordination requirements, and introduce new specification operators to conveniently express these coordination constraints.
• We develop a scalable task-allocation approach that avoids the exponential complexity associated with explicit global product-automaton construction, and establish soundness and probabilistic completeness of the proposed planner.
• We conduct comprehensive experiments on diverse multi-agent task specifications with varying numbers of agents in a navigation environment, demonstrating consistent improvements over state-of-the-art baselines in zero-shot task generalization and scalability.
Multi-agent task decomposition and allocation. In multi-agent systems with temporal-logic specifications, task decomposition and allocation are widely used to synthesize coordinated plans, ranging from independently assigned local specifications to global tasks with temporal dependencies, collaborative execution, and capability constraints (Guo & Dimarogonas, 2015; Liu et al., 2024b; Li et al., 2025; Luo & Liu, 2025). These methods primarily address planning for a given specification and typically assume known system dynamics. To improve planning efficiency, sampling-based approaches incrementally explore the product-automaton state space rather than exhaustively searching it (Kantaros & Zavlanos, 2018; 2020). Hierarchical methods have also been developed for task decomposition and allocation in MTMARL (Wang et al., 2021; Iqbal et al., 2022; Li et al., 2024b), but do not consider temporal-logic specifications. In contrast, our high-level planner samples directly over reach-avoid subtask sequences derived from the component specifications, avoiding construction of the global product automaton, while decentralized policies learn to execute reusable subtasks under unknown dynamics.
3 PRELIMINARIES
Markov Games. In this work, we consider partially observable Markov games (POMGs) (Littman, 1994). A POMG with agents is defined as the tuple , where denotes the joint state space, denotes the joint action space, denotes the joint observation space. The transition dynamics are given by is the discount factor, and is the initial state distribution. Each agent receives its local observation correlated with the state and selects an action according to a policy . The joint policy is denoted by . Unlike standard formulations, we do not explicitly define a reward function as part of the POMG since the reward is induced by the task specification provided at test time.
Linear Temporal Logic. LTL (Pnueli, 1977) provides a formalism for expressing temporal properties over system behaviors. Given a finite set of atomic propositions AP, an LTL formula is recursively constructed using Boolean operators negation , conjunction , and disjunction , together with the temporal operators “until” (U), “eventually” (F), and “always” (G):
Intuitively, the formula holds if is satisfied at all time steps prior to the first occurrence of . The operator holds if is satisfied at some future time, while holds if is satisfied from the current step onward. For each agent , let denote its set of atomic propositions, and let denote the overall proposition set. Each agent has access to a known labeling function that maps its local state to the set of atomic propositions. We write for the propositions satisfied at a joint state . For a trajectory , its trace is given by , and iff this trace satisfies . Accordingly, the probability of satisfying under policy is . We are interested in learning policies that maximize this satisfaction probability for arbitrary .
Büchi automata and subtasks. We represent an LTL specification using a (non-deterministic) Büchi automaton (Büchi, 1966) , where is a finite set of automaton states, is the alphabet, is the transition relation, is the set of accepting states, and is the initial state. For an infinite word , a run satisfies for every and is accepting iff it visits an accepting state infinitely often. To keep track of progress toward specification satisfaction, reach-avoid subtasks (Jackermeier & Abate, 2025), denoted by , are proposed to represent transitions over the automaton. The reach part corresponds to a transition , where and are consecutive states along an accepting run and when . The avoid part corresponds to a transition , where and are not consecutive states along any accepting run. Intuitively, the reach part specifies progress toward satisfying the specification, whereas the avoid part captures transitions that can lead to a violation.
4 METHOD
In this section, we present our hierarchical framework, with an overview shown in Figure 1. We first state the generalization problem considered in this work (Section 4.1) and then introduce the different classes of task specifications (Section 4.2). Next, we present the centralized sampling-based high-level planner for task allocation over reach-avoid subtask sequences and establish its soundness and probabilistic completeness (Section 4.3). Finally, we present the decentralized low-level subtask-conditioned policies (Section 4.4).
4.1 PROBLEM STATEMENT
We consider multi-agent tasks in which each agent is assigned an individual-agent specification, together with additional inter-agent dependency and count requirements. A global specification combines all these specification components , where is the agent index set, , for , , and , where , , and denote arbitrary distributions over these three types of specifications. Let denote the distribution over such global specifications. Our goal is to learn a multi-agent policy that maximizes the probability of satisfying specifications drawn from

Figure 1: Overview of the proposed hierarchical framework. Specifications are decomposed into reach-avoid subtasks, from which a centralized sampling-based planner constructs a feasible subtask sequence for execution by decentralized low-level policies. Solid and dotted blocks and arrows indicate components used at test time and during training, respectively.
4.2 SPECIFICATION LANGUAGE
We now introduce the specification language for the components of . We use standard LTL to express individual-agent specifications, allowing each , , to be an arbitrary LTL formula over the agent-specific atomic propositions . To express inter-agent coordination, we augment these temporal-logic task specifications with operators for dependency and count requirements.
Dependency requirements. To capture dependency relations among agents, we define the operators Req and EachReq, and specify dependency requirements by the following syntax:
where and are Boolean formulas over atomic propositions. We say iff there exists a time such that and and iff for every such that and either or , there exists such that and for all . Intuitively, requires the prerequisite before the first occurrence of , whereas requires before every non-consecutive occurrence of . In contrast, the negation of a dependency relation, e.g., or , does not correspond to a meaningful dependency requirement and is therefore excluded from the syntax.
Count requirements. We also introduce operators Sync and Async to express count requirements among agents, such as how many agents must satisfy a given condition. The corresponding specifications are defined by the following syntax:
where is a Boolean formulas over atomic propositions, is the set of agents , and . Satisfaction of by is defined as and . Intuitively, Sync requires at least agents to satisfy at the same (discrete) timestep, and Async only requires at least agents to satisfy , possibly at different timesteps.
Connections to real-world applications. These operators provide a convenient way to express coordination requirements among agents that naturally arise in a wide range of multi-agent applications. For example, in surveillance and security, a guard robot may need to inspect an area before another robot enters, which can be expressed using Req or EachReq, while Async can specify that a certain number of areas are visited for monitoring coverage. In warehouse automation, Req or EachReq can specify that inventory availability must be confirmed before items are retrieved, while Async can prevent a certain number of robots from retrieving out-of-stock items. In multi-robot manufacturing, Req or EachReq can require an object to be stabilized before manipulation, while Sync can limit the number of robots operating on the same object simultaneously. These operators also serve as a convenient specification interface and can be translated into standard LTL formulas, allowing standard automata-theoretic constructions and operations for LTL to be directly applied; the corresponding translations are provided in Appendix B.2.
4.3 TASK DECOMPOSITION AND ALLOCATION
To obtain a feasible multi-agent task plan, a straightforward approach is to construct the automaton of the global specification , or equivalently the product automaton of its component specifications, and search for feasible subtask sequences. However, the resulting state space grows exponentially with the number of agents and specification complexity (Kantaros & Zavlanos, 2018; 2020; Abate et al., 2026), making explicit construction and search intractable at scale. Previous works (Qiu et al., 2023; Jackermeier & Abate, 2025; Guo et al., 2026a) have shown that leveraging equivalent subtask sequences derived from specifications can improve learning efficiency and generalization. Motivated by this, we develop a sampling-based task-allocation method that operates on the reach-avoid subtask sequences of the component specifications, identifies compatible combinations of subtasks across components while respecting their coordination requirements, and incrementally constructs a feasible multi-agent plan without explicitly constructing the product automaton. Under unknown dynamics and partial observability, we focus on finding feasible solutions and establish the soundness and probabilistic completeness of the planner.
Algorithm 1 Centralized sampling-based planner
Require: Subtask-sequence sets for specifications , maximum sampling iterations
1: Initialize tree with the nominal (empty) root
2: for do
3: Sample
4:
5: if is INVALID, then continue
6: if , then add with parent
7: if is terminal, then return the root-to- subtask sequence
8: end for
9: return FAILURE
Algorithm 2 Extend
Require: Node and
1: Identify expandable components
2: Sample a nonempty subset
3:
4: for do
5: Determine the current subtask for component , update and with its reach and avoid conditions, and update accordingly
6: end for
7: if is valid, then return
8: return INVALID
Sampling-based task allocation. The overall process of the proposed method is summarized in Algorithm 1. For each , , let denote the set of candidate subtask sequences, where . Each is a finite sequence , where denotes a reach-avoid subtask. The planner constructs a search tree over the subtask space, where each node represents the progress of all specification components as a set of index tuples , with exactly one tuple for each . For each tuple, identifies the specification component, identifies the selected sequence , and identifies the current subtask in that sequence, with indicating that the planner has reached the end of the sequence. We use when no sequence has yet been selected for component , such that the root node is . At each iteration, a node is uniformly sampled from and extended using Algorithm 2 to obtain a successor with compatible next subtasks. If such a successor is found, it is added to . A node is terminal when, for every tuple , a sequence has been selected and the planner has reached its end, i.e., and for all . The path from to a terminal node then yields a subtask sequence satisfying all specifications. More generally, our method also applies when the specifications are provided as a collection of Büchi automata, as the planner only requires the corresponding reach-avoid subtask sequences.
Subtask combination compatibility. Algorithm 2 identifies a compatible combination of next subtasks for a sampled node. Given , we define the expandable components as for the tuple , i.e., components for which no sequence has yet been selected, or the planner has not yet reached the end of the selected sequence. We then sample a nonempty subset of components to consider at the current planning step, since enumerating all possible subsets can be intractable. For each , if its tuple is , we sample a sequence and select its first subtask; otherwise, for tuple , we select the next subtask in . The corresponding tuples are updated to record this planning progress, while the tuples for remain unchanged. To check compatibility, for each , one conjunctive clause is sampled from the reach condition of its selected subtask, while for . The joint reach condition is then . In contrast, every component contributes its full avoid condition , yielding , since omitting an unselected component's avoid condition could allow it to be satisfied during execution, after which the corresponding specification can no longer be satisfied. The sampled successor is invalid if there exists a conjunctive clause such that . More details of the planner can be found in Appendix C.
Soundness and (probabilistic) completeness. Many automata-based search methods (Guo et al., 2013; Guo & Dimarogonas, 2015; Qiu et al., 2023; Shah et al., 2024b; Jackermeier & Abate, 2025) have been developed to find accepting paths that satisfy a given LTL specification. These methods search for a finite prefix reaching an accepting state together with a cyclic suffix, and the resulting prefix-suffix paths, i.e., subtask sequences, are guaranteed to satisfy the given specification. We leverage these methods to obtain candidate subtask sequences for each specification component over which our planner operates. Given this property, we have the following soundness guarantee:
Theorem 1 (Soundness). Let be a path returned by the proposed sampling-based planner. Then is an accepting path satisfying the global specification , i.e., .
Soundness guarantees that any path returned by the proposed method satisfies the global specification. We next show probabilistic completeness, i.e., if a feasible path exists, the probability of finding one converges to one given sufficient iterations. The proofs are provided in Appendix A.
Theorem 2 (Probabilistic completeness). Suppose that there exists a feasible subtask sequence that satisfies . Then, the probability that Algorithm 1 finds a feasible subtask sequence converges to one as the number of sampling iterations approaches infinity.
4.4 POLICY LEARNING
The goal is to learn a decentralized goal-conditioned policy for each agent , which takes as input its local observation and current reach-avoid subtask . We assume that all agents are homogeneous. The challenge is that the same set of local subtasks can correspond to different coordination requirements under different specifications. For example, two agents may have the same local subtasks of reaching their respective target regions, while one specification allows them to complete these subtasks independently and another requires them to do so simultaneously. Thus, the global coordination requirement cannot be determined from the local subtasks alone. Consequently, commonly adopted cooperative MARL schemes based on shared team rewards and centralized critics (Sunehag et al., 2017; Foerster et al., 2018; Rashid et al., 2020; Yu et al., 2022) are not well suited to our setting. Instead, we use a subtask-dependent reward and cost function evaluated with respect to each agent's own subtask, and follow an IPPO-style approach (De Witt et al., 2020) to learn decentralized policies and critics.
During training, the high-level planner described in Section 4.3 is not required. We independently sample a reach-avoid subtask for each agent and train the low-level policies to complete their respective subtasks. Although the subtasks are sampled independently, agents still interact and must account for one another, allowing the policies to learn interaction-aware behaviors; for example, multiple agents may sample subtasks that require reaching the same region and must avoid collisions with other agents. Each agent learns to satisfy its subtask by receiving positive rewards for subtask satisfaction while being penalized for collisions and subtask violations. High-level coordination requirements, such as synchronized or ordered subtask execution, are instead handled at test time by the centralized planner, which controls each agent's current subtask and its progression. The learned subtask-conditioned policies are then reused to execute these planned subtasks across different specifications, enabling zero-shot generalization to unseen specifications without retraining. We instantiate the low-level policies by adapting GenZ-LTL (Guo et al., 2026a) because it explicitly models safety constraints, which are common in our specifications, while our framework is also compatible with other goal-conditioned RL methods capable of learning reach-avoid policies (Qiu et al., 2023; Yalcinkaya et al., 2024). Further implementation details are provided in Appendix C.
5 EXPERIMENTS
In this section, we evaluate our method, SpecMAGIC, in a navigation environment across a wide range of multi-agent task specifications to answer the following questions: Q1: Can SpecMAGIC generalize zero-shot to unseen task specifications? Q2: How well does SpecMAGIC scale as the
Table 1: Evaluation results of finite-horizon tasks: success rate , violation rate , and average steps to satisfy the complex specifications listed in Table 3. : higher is better; : lower is better. Bold: the best performance for each metric. Each value is reported as mean standard deviation over 5 seeds, with 100 trajectories evaluated per seed.
| Specifications | ACC-MARL | Ours | |||||
|---|---|---|---|---|---|---|---|
| IND | |||||||
| N/A | |||||||
| Average | |||||||
| OOD | |||||||
| N/A | |||||||
| Average | |||||||

Figure 2: Example trajectories of 2 agents in the Zone environment:
number of agents increases? Q3: What is the impact of the proposed sampling-based planner on SpecMAGIC versus a reference product-automaton-based planner?
Environments. We consider a multi-agent Zone environment based on prior work (Jackermeier & Abate, 2025; Guo et al., 2026a;b), where multiple agents with continuous action spaces and high-dimensional lidar observations navigate among randomly positioned colored regions to satisfy the given task specifications. The Zone environment is similar to the commonly used Multi-Agent Particle Environment (MPE) for MARL (Lowe et al., 2017), but involves complex long-horizon tasks, including reaching sequences of regions with varying lengths, satisfying diverse coordination constraints among agents, and avoiding inter-agent collisions at all times. An illustration of the environment with an example trajectory is shown in Figure 2; more details are provided in Appendix B.1.
Baselines. We compare our method with ACC-MARL (Yalcinkaya et al., 2025), the only existing method that, to our knowledge, targets generalization across temporal-logic specifications in MARL. ACC-MARL first learns embeddings of compositions of deterministic finite automata (DFAs). It then learns decentralized policies, with each agent's policy conditioned on the global state information together with the DFA embeddings of the specifications assigned to all agents. Further details of the implementation are provided in Appendix C.
LTL specifications. For individual tasks , we consider reach-avoid specifications of varying complexity, constructed from nested properties of the form and combinations with , and . For multi-agent tasks, we consider specifications that capture both independent and joint behaviors, including inter-agent dependency requirements and count requirements , both of which are constructed to involve all agents in the team rather than a subset of agents. We then evaluate four types of specifications: , , , and . The specifications used for evaluation are listed in Table 3.
Evaluation metrics. For each LTL specification, we measure the success rate and violation rate , corresponding to the fractions of trajectories that satisfy and violate the specification, respectively. The remaining trajectories are captured by . We also report the average number of steps required for successful trajectories to satisfy the specification, treating it as a secondary metric since efficiency is less informative when few trajectories succeed.
5.1 CAN SPECMAGIC GENERALIZE ZERO-SHOT TO UNSEEN TASK SPECIFICATIONS (Q1)?
Finite-horizon tasks. We first evaluate finite-horizon tasks, i.e., specifications that can be satisfied by finite-length trajectories. We consider 3 agents, each assigned an individual task, together with additional inter-agent dependency and count requirements . We evaluate both in-distribution (IND) and out-of-distribution (OOD) specifications, following the specification distribution used to train ACC-MARL. ACC-MARL is trained on specifications represented as DFAs and sampled from a fixed distribution; IND specifications are drawn from this distribution, whereas OOD specifications fall outside it and require longer subtask sequences to satisfy. The same IND/OOD specification sets used to evaluate ACC-MARL are used to evaluate SpecMAGIC.
As shown in Table 1, our method consistently outperforms the baseline across all evaluated specifications, achieving higher success rates, lower violation rates, and better efficiency, as indicated by fewer steps required for satisfaction. ACC-MARL supports only , where each agent has an individual task and access to the task automata of the other agents. Extending it to and would require additional training distributions over these specifications, potentially biasing zero-shot evaluation. ACC-MARL also assumes access to agent state information , whereas agents in our environment receive only partial observations through LiDAR sensing. Moreover, ACC-MARL pre-trains automaton embeddings using automata sampled from a fixed distribution, which limits its generalization when encountering unseen automata. In contrast, our method decomposes specifications into reach-avoid subtasks and learns reusable subtask-conditioned policies, enabling unseen specifications to be handled by composing previously learned subtask behaviors and thereby improving OOD generalization. Finally, performance generally decreases with increasing specification complexity, such as from to . Inter-agent dependency and count requirements introduce additional coordination constraints, while OOD specifications further increase the difficulty by requiring each agent to complete more subtasks and imposing more constraints in and . These factors make successful coordination more challenging and can increase the likelihood of inter-agent collisions in practice. Nevertheless, our method maintains high success rates and low violation rates across these more complex and unseen specifications.
Infinite-horizon tasks. Our method can also handle infinite-horizon specifications by repeatedly applying the same planning and execution procedure. ACC-MARL is excluded from this evaluation since it relies on DFAs, which cannot represent such specifications. We therefore report only the performance of our method, with the results provided in Appendix D as a reference for future comparisons when suitable baselines become available.
5.2 HOW WELL DOES SPECMAGIC SCALE AS THE NUMBER OF AGENTS INCREASES? (Q2)
We evaluate scalability with respect to the number of agents using specifications from , with . Note that the complexity of and increases with , since these specifications impose coordination requirements involving an increasing number of agents: more Req operators are introduced in to ensure that each agent has at least one dependency with another agent, while the agent index sets of the count operators grow accordingly to include all agents (see Appendix B.2 for details). We first evaluate the scalability of the high-level planner separately and then the overall framework.
Evaluation of the high-level planner. We measure specification complexity by the number of states in the automaton corresponding to the global specification ; this automaton is used only as a reference measure and is not required by our planner. For the proposed sampling-based planner, we report the number of sampling iterations required to find a feasible path and the resulting tree size , which counts all explored nodes, including those not on the final feasible path. We also report the average planning time , excluding automaton-construction time; includes both finding feasible paths for the component specifications and the subsequent sampling process for the final multi-agent subtask allocation. As shown in Table 2, the automaton size grows rapidly with the number of agents and becomes intractable to construct for 10 agents (see Appendix C for details), while the sampling-based planner maintains a relatively small tree, with only a moderate increase in and sampling iterations.
Table 2: High-level planner scalability. We report the product-automaton size , the constructed tree size , sampling iterations, and planning time , averaged over 10 seeds.
| N | Iterations | |||
|---|---|---|---|---|
| 3 | ||||
| 5 | ||||
| 10 | >118814.3 |
Evaluation of the overall framework. We next evaluate the overall framework by training policies with agents and evaluating each policy with agents without retraining. We report the success rate , violation rate , and average number of steps to satisfy the specifications, with results shown in Figure 3. When , performance slightly decreases as the number of agents increases, as indicated by lower success rates and higher violation rates, due to more frequent inter-agent interactions and the increasing complexity of and . When , the performance drop becomes more noticeable, as the larger number of agents makes the environment more congested and shifts the observation distribution, making safety constraints more difficult to satisfy. For a fixed , policies trained with more agents tend to perform better; for example, when , the policy trained with

Figure 3: Performance under different numbers of agents during training and evaluation. We report the average success rate , violation rate , and number of steps to specification satisfaction for . Error bars indicate one standard deviation.
outperforms that trained with . In contrast, when , the policies maintain or slightly improve their performance, as training with more agents exposes the policies to more complex inter-agent interactions and leads to more robust execution when fewer agents are present. Overall, these results show that our framework can be directly applied to different numbers of agents without retraining, while improving the robustness of the low-level policies could further enhance performance when scaling to larger multi-agent systems.
5.3 ABLATION STUDY: WHAT IS THE IMPACT OF THE PROPOSED SAMPLING-BASED PLANNER ON SPECMAGIC VERSUS A REFERENCE SEARCH-BASED PLANNER? (Q3)

Figure 4: Average success rate , violation rate , and average number of steps to satisfy the IND specifications , , , and listed in Table 3.
We compare the proposed sampling-based planner with a product-automaton (PA)-based planner, which explicitly constructs the product automaton of the component specifications as discussed in Section 4.3 and performs graph search to find a feasible subtask sequence. The resulting subtasks are executed sequentially using the same trained low-level policies as our sampling-based planner. We evaluate both approaches on the 3-agent IND specifications in Table 3, with results shown in Figure 4. We report the average planning time as defined in Section 5.2, excluding automaton-construction time for both methods. Our sampling-based method achieves similar success rates, violation rates, and average steps to specification satisfaction as the search-based planner across all evaluated specifications, empirically validating the proposed sampling technique. Meanwhile, our method requires substantially less planning time than the search-based planner, with the gap becoming more pronounced as specification complexity increases. For specifications involving four or more agents evaluated in Section 5.2, the search-based planner fails to find a feasible path within a 10-minute time limit; thus, these results are excluded from the comparison.
6 CONCLUSION AND FUTURE WORK
This work develops a hierarchical framework for zero-shot generalization across diverse LTL specifications in multi-agent systems. The framework consists of a novel centralized sampling-based high-level planner with soundness and probabilistic completeness guarantees for planning over the reach-avoid subtask space, and decentralized subtask-conditioned policies for low-level execution. Empirical results demonstrate that our method achieves strong generalization across diverse finite-and infinite-horizon specifications and remains effective as the number of agents increases. A limitation of our framework is that the high-level planner remains centralized, which may limit scalability as the number of agents further increases. Future work will investigate fully decentralized planning mechanisms to further improve scalability and integrate alternative safe RL methods (Kushwaha et al., 2025) into the low-level policies that may better handle safety constraints.
ACKNOWLEDGEMENT
This work was supported in part by the U.S. National Science Foundation under grant CCF-2340776.
AI USE STATEMENT
In this work, we used generative AI tools for grammar checking and assistance with parts of the code. All AI-assisted code was reviewed, verified, and tested for correctness by two authors. We have reviewed all AI-assisted work and take responsibility for the final content of this work, including text, claims, and artifacts produced with the aid of generative AI.
ETHICS STATEMENT
This work does not introduce specific ethical concerns beyond those generally associated with autonomous multi-agent systems. However, care should be taken when designing task specifications to ensure that they do not induce unsafe or undesirable behaviors.
REPRODUCIBILITY STATEMENT
To support reproducibility, we provide the source code and implementation details necessary to reproduce the experiments and results reported in this work in the supplementary materials.
REFERENCES
Alessandro Abate, Giuseppe De Giacomo, Mathias Jackermeier, Jan Kretinský, Maximilian Prokop, and Christoph Weinhuber. Semantically labelled automata for multi-task reinforcement learning with ltl instructions. arXiv preprint arXiv:2602.06746, 2026.
Christel Baier, Joost-Pieter Katoen, and Kim Guldstrand Larsen. Principles of model checking, volume 735. MIT press Cambridge, 2008.
Mehran Berahman, Athanasia Karalakou, Majid Rostami-Shahrbabaki, and Klaus Bogenberger. Multi-task lane-free driving strategy for connected and automated vehicles: A multi-agent deep reinforcement learning approach. Engineering Applications of Artificial Intelligence, 154:110797, 2025.
J Richard Büchi. Symposium on decision problems: On a decision method in restricted second order arithmetic. In Studies in Logic and the Foundations of Mathematics, volume 44, pp. 1–11. Elsevier, 1966.
Jiajun Chai, Zijie Zhao, Yuanheng Zhu, and Dongbin Zhao. A survey of cooperative multi-agent reinforcement learning for multi-task scenarios. Artificial Intelligence Science and Engineering, 1(2):98–121, 2025.
Christian Schroeder De Witt, Tarun Gupta, Denys Makoviichuk, Viktor Makoviychuk, Philip HS Torr, Mingfei Sun, and Shimon Whiteson. Is independent learning all you need in the starcraft multi-agent challenge? arXiv preprint arXiv:2011.09533, 2020.
Jakob Foerster, Gregory Farquhar, Triantafyllos Afouras, Nantas Nardelli, and Shimon Whiteson. Counterfactual multi-agent policy gradients. In Proceedings of the AAAI conference on artificial intelligence, volume 32, 2018.
Meng Guo and Dimos V Dimarogonas. Multi-agent plan reconfiguration under local ltl specifications. The International Journal of Robotics Research, 34(2):218–235, 2015.
Meng Guo, Karl H Johansson, and Dimos V Dimarogonas. Revising motion planning under linear temporal logic specifications in partially known workspaces. In 2013 IEEE international conference on robotics and automation, pp. 5025–5032. IEEE, 2013.
Zijian Guo, İlker Işık, HM Ahmad, and Wenchao Li. One subgoal at a time: Zero-shot generalization to arbitrary linear temporal logic requirements in multi-task reinforcement learning. Advances in Neural Information Processing Systems, 38:77500–77529, 2026a.
Zijian Guo, İlker Işık, HM Ahmad, and Wenchao Li. Specrlbench: A benchmark for generalization in specification-guided reinforcement learning. arXiv preprint arXiv:2604.24729, 2026b.
Lewis Hammond, Alessandro Abate, Julian Gutierrez, and Michael Wooldridge. Multi-agent reinforcement learning with temporal logic specifications. arXiv preprint arXiv:2102.00582, 2021.
Mohammadhosein Hasanbeig, Alessandro Abate, and Daniel Kroening. Logically-constrained reinforcement learning. arXiv preprint arXiv:1801.08099, 2018.
Shariq Iqbal, Robby Costales, and Fei Sha. Alma: Hierarchical learning for composite multi-agent tasks. Advances in neural information processing systems, 35:7155–7166, 2022.
Mathias Jackermeier and Alessandro Abate. Deeptl: Learning to efficiently satisfy complex ltl specifications for multi-task rl. In International Conference on Learning Representations, volume 2025, pp. 14000–14028, 2025.
Yiannis Kantaros and Michael M Zavlanos. Sampling-based optimal control synthesis for multirobot systems under global temporal tasks. IEEE Transactions on Automatic Control, 64(5):1916–1931, 2018.
Yiannis Kantaros and Michael M Zavlanos. Stylus*: A temporal logic optimal control synthesis algorithm for large-scale multi-robot systems. The International Journal of Robotics Research, 39(7):812–836, 2020.
Ankita Kushwaha, Kiran Ravish, Preeti Lamba, and Pawan Kumar. A survey of safe reinforcement learning and constrained mdps: A technical survey on single-agent and multi-agent safety. arXiv preprint arXiv:2505.17342, 2025.
Borja G León and Francesco Belardinelli. Extended markov games to learn multiple tasks in multi-agent reinforcement learning. In ECAI 2020: 24th European Conference on Artificial Intelligence, 29 August–8 September 2020, Santiago de Compostela, Spain–Including 10th Conference on Prestigious Applications of Artificial Intelligence (PAIS 2020), pp. 139–146. SAGE Publications 1 Oliver's Yard, 55 City Road, London, EC1Y 1SP, 2020.
Chao Li, Shaokang Dong, Shangdong Yang, Yujing Hu, Tianyu Ding, Wenbin Li, and Yang Gao. Multi-task multi-agent reinforcement learning with interaction and task representations. IEEE transactions on neural networks and learning systems, 36(7):13431–13445, 2024a.
Lin Li, Ziyang Chen, Hao Wang, and Zhen Kan. Task allocation of heterogeneous robots under temporal logic specifications with inter-task constraints and variable capabilities. IEEE Transactions on Automation Science and Engineering, 22:14030–14047, 2025.
Xianglong Li, Yuan Li, Jieyuan Zhang, Xinhai Xu, and Donghong Liu. A hierarchical multi-agent allocation-action learning framework for multi-subtask games. Complex & Intelligent Systems, 10(2):1985–1995, 2024b.
Michael L Littman. Markov games as a framework for multi-agent reinforcement learning. In Machine learning proceedings 1994, pp. 157–163. Elsevier, 1994.
Chanjuan Liu, Jinmiao Cong, Bingcai Chen, Yaochu Jin, and Enqiang Zhu. Guiding multiagent multitask reinforcement learning by a hierarchical framework with logical reward shaping. IEEE Transactions on Cybernetics, 2025.
Jason Xinyu Liu, Ankit Shah, Eric Rosen, Mingxi Jia, George Konidaris, and Stefanie Tellex. Skill Transfer for Temporal Task Specification. In 2024 IEEE International Conference on Robotics and Automation (ICRA), pp. 2535–2541, 2024a. doi: 10.1109/ICRA57147.2024.10611432.
Zesen Liu, Meng Guo, Weimin Bao, and Zhongkui Li. Fast and adaptive multi-agent planning under collaborative temporal logic tasks via poset products. Research, 7:0337, 2024b.
Ryan Lowe, Yi I Wu, Aviv Tamar, Jean Harb, OpenAI Pieter Abbeel, and Igor Mordatch. Multi-agent actor-critic for mixed cooperative-competitive environments. Advances in neural information processing systems, 30, 2017.
Xusheng Luo and Changliu Liu. Simultaneous task allocation and planning for multi-robots under hierarchical temporal logic specifications. IEEE Transactions on Robotics, 2025.
Cyrus Neary, Zhe Xu, Bo Wu, and Ufuk Topcu. Reward machines for cooperative multi-agent reinforcement learning. arXiv preprint arXiv:2007.01962, 2020.
Shayegan Omidshafiei, Jason Pazis, Christopher Amato, Jonathan P How, and John Vian. Deep decentralized multi-task multi-agent reinforcement learning under partial observability. In International conference on machine learning, pp. 2681–2690. PMLR, 2017.
Amir Pnueli. The temporal logic of programs. In 18th annual symposium on foundations of computer science (sfcs 1977), pp. 46–57. ieee, 1977.
Wenjie Qiu, Wensen Mao, and He Zhu. Instructing goal-conditioned reinforcement learning agents with temporal logic objectives. Advances in Neural Information Processing Systems, 36:39147–39175, 2023.
Tabish Rashid, Mikayel Samvelyan, Christian Schroeder De Witt, Gregory Farquhar, Jakob Foerster, and Shimon Whiteson. Monotonic value function factorisation for deep multi-agent reinforcement learning. Journal of Machine Learning Research, 21(178):1–51, 2020.
Kenneth H Rosen and Kamala Krithivasan. Discrete mathematics and its applications, volume 6. McGraw-hill New York, 1999.
Ameesh Shah, Cameron Voloshin, Chenxi Yang, Abhinav Verma, Swarat Chaudhuri, and Sanjit A. Seshia. LTL-Constrained Policy Optimization with Cycle Experience Replay. In arXiv, 2024a. doi: 10.48550/arXiv.2404.11578.
Ameesh Shah, Cameron Voloshin, Chenxi Yang, Abhinav Verma, Swarat Chaudhuri, and Sanjit A Seshia. Ltl-constrained policy optimization with cycle experience replay. arXiv preprint arXiv:2404.11578, 2024b.
Ameesh Shah, Niklas Lauffer, Thomas Chen, Nikhil Pitta, and Sanjit A Seshia. Learning symbolic task decompositions for multi-agent teams. arXiv preprint arXiv:2502.13376, 2025.
Daqian Shao and Marta Kwiatkowska. Sample efficient model-free reinforcement learning from LTL specifications with optimality guarantees. In Proceedings of the Thirty-Second International Joint Conference on Artificial Intelligence, pp. 4180–4189, 2023. doi: 10.24963/IJCAI.2023/465.
Sophia Smith, Cyrus Neary, and Ufuk Topcu. Automatic decomposition of reward machines for decentralized multiagent reinforcement learning. In 2023 62nd IEEE Conference on Decision and Control (CDC), pp. 5423–5430. IEEE, 2023.
Peter Sunehag, Guy Lever, Audrunas Gruslys, Wojciech Marian Czarnecki, Vinicius Zambaldi, Max Jaderberg, Marc Lanctot, Nicolas Sonnerat, Joel Z Leibo, Karl Tuyls, et al. Value-decomposition networks for cooperative multi-agent learning. arXiv preprint arXiv:1706.05296, 2017.
Pashootan Vaezipoor, Andrew C Li, Rodrigo A Toro Icarte, and Sheila A Mcilraith. Ltl2action: Generalizing ltl instructions for multi-task rl. In International Conference on Machine Learning, pp. 10497–10508. PMLR, 2021.
Moshe Y Vardi and Pierre Wolper. An automata-theoretic approach to automatic program verification. In 1st Symposium in Logic in Computer Science (LICS). IEEE Computer Society, 1986.
Jiawei Wang, Jian Zhao, Zhengtao Cao, Ruili Feng, Rongjun Qin, and Yang Yu. Multi-task multi-agent shared layers are universal cognition of multi-agent coordination. arXiv preprint arXiv:2312.15674, 2023.
Tonghan Wang, Tarun Gupta, Anuj Mahajan, Bei Peng, Shimon Whiteson, and Chongjie Zhang. {RODE}: Learning roles to decompose multi-agent tasks. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id=TTUVg6vkNjK.
Sifan Wu, Xuting Duan, Jianshan Zhou, Kaige Qu, Ivan Wang-Hei Ho, and Daxin Tian. Risk-aware multi-task hybrid-attention multi-agent reinforcement learning for decision-making at unsignalized intersections. IEEE Transactions on Vehicular Technology, 2026.
Beyazit Yalcinkaya, Niklas Lauffer, Marcell Vazquez-Chanlatte, and Sanjit Seshia. Compositional automata embeddings for goal-conditioned reinforcement learning. Advances in Neural Information Processing Systems, 37:72933–72963, 2024.
Beyazit Yalcinkaya, Marcell Vazquez-Chanlatte, Ameesh Shah, Hanna Krasowski, and Sanjit A Seshia. Automata-conditioned cooperative multi-agent reinforcement learning. arXiv preprint arXiv:2511.02304, 2025.
Chao Yu, Akash Velu, Eugene Vinitsky, Jiaxuan Gao, Yu Wang, Alexandre Bayen, and Yi Wu. The surprising effectiveness of ppo in cooperative multi-agent games. Advances in neural information processing systems, 35:24611–24624, 2022.
Guobin Zhu, Rui Zhou, Wenkang Ji, Hongyin Zhang, Donglin Wang, and Shiyu Zhao. Multi-task multi-agent reinforcement learning via skill graphs. IEEE Robotics and Automation Letters, 10(9):8650–8657, 2025.
A THEORETICAL ANALYSIS
Soundness and (probabilistic) completeness. We first establish soundness, showing that any path returned by the proposed planner satisfies the global specification.
Theorem 1 (Soundness). Let be a path returned by the proposed sampling-based planner. Then is an accepting path satisfying the global specification , i.e., .
Proof. Let be a path returned by Algorithm 1, constructed from the selected feasible subtask sequences , . By construction, the subtasks in preserve their original order in each , and each subtask in is compatible with its subsequent subtask. Therefore, for all , and consequently, .
Having established that every returned path satisfies the global specification, we next consider whether the planner can find such a path whenever one exists. Specifically, we show probabilistic completeness: if a feasible subtask sequence exists, the probability of finding one converges to one as the number of sampling iterations increases.
Theorem 2 (Probabilistic completeness). Suppose that there exists a feasible subtask sequence that satisfies . Then, the probability that Algorithm 1 finds a feasible subtask sequence converges to one as the number of sampling iterations approaches infinity.
Proof. Let denote the maximum number of distinct tree nodes and the total number of possible subtask combinations across all specifications. Since is finite, both and are finite constants determined by the specifications. Suppose that a node along a feasible path has been added to the tree. By Algorithm 1, at the current iteration, this node is sampled with probability at least , and a particular next subtask combination is sampled with probability . If this combination is compatible, the corresponding successor node is added to the tree. Hence, the probability of making the corresponding successful extension in one iteration is at least . Let denote the number of successful extensions required to reach a terminal node, and let denote the number of successes after iterations. Then as , where the transitions rely on (1) , (2) , and (3) . Therefore, the probability that Algorithm 1 fails to reach a terminal node converges to zero, and hence Algorithm 1 is probabilistically complete.
B EXPERIMENTAL SETTINGS
B.1 ENVIRONMENTS
We extend the Zone environment used in prior work (Jackermeier & Abate, 2025; Guo et al., 2026a;b) to a multi-agent setting. The environment contains colored regions associated with the base atomic propositions blue, green, magenta, yellow. Each colored region appears twice in the environment. For the 10-agent setting, we use a slightly larger environment and increase the radius of the colored regions to accommodate the larger number of agents. For agent i, the corresponding atomic propositions are indexed as , representing agent i reaching the corresponding colored regions, and the overall proposition set is given by . Each agent is modeled as a point robot with continuous acceleration and steering actions. We modify the observation space to include LiDAR measurements of neighboring agents in addition to the colored regions and ego-centric state information from onboard sensors, enabling interactions among multiple agents. The initial positions of all agents and colored regions are randomly sampled at the beginning of each episode. We construct environments with agents to evaluate scalability with respect to the number of agents. The maximum episode length is . Illustrations of the resulting environments with 3, 5, and 10 agents are shown in Figure 5.

Figure 5: Visualizations of the Zone environments with N = 3, 5, and 10 agents, from left to right. The positions of agents and zones are randomly sampled each episode.
B.2 SPECIFICATIONS
Finite- and infinite-horizon tasks. We evaluate the methods on specifications with different types and levels of complexity, as summarized in Table 3. While many more specifications can be constructed, exhaustive evaluation is intractable since the space of possible specifications is infinite. We therefore select a representative set of specifications covering different types and levels of complexity. For each agent, we first define a set of single-agent sa specifications that describe its individual task. We then define inter-agent requirement dep specifications to impose temporal dependencies between agents and count cnt specifications to impose synchronous or asynchronous constraints on the number of agents satisfying a proposition. Based on these specifications, we construct four classes of multi-agent tasks: contains only independent single-agent specifications, additionally includes requirement constraints, includes count constraints, and combines all three types. In comparison, the OOD specifications are structurally more complex, involving longer temporal dependencies and more compositional constraints than those encountered during training.
Scalability experiments. For the scalability experiments with different numbers of agents, we randomly select single-agent specifications from for each agent and construct new dep and cnt specifications according to the number of agents, such that every agent is involved in the inter-agent constraints. We then combine the single-agent, dep, and cnt specifications to form for evaluation. We also retrain the policies for each and evaluate each trained policy with agents. This procedure allows us to evaluate the scalability of the methods as the number of agents and the resulting specification complexity increase.
Ablation study of the search-based method. For the ablation study, we evaluate the three IND global specifications in for the three-agent setting, i.e., , , and . The resulting automata contain an average of states and transitions, while the corresponding individual specifications have an average of states and transitions. We use these specifications to compare the proposed sampling-based method with the search-based method and demonstrate that sampling provides a more practical approach for handling complex global specifications with large automata.
Translation of dep and cnt into LTL formulas. The proposed dep and cnt operators provide compact notation for inter-agent coordination requirements and can be translated into standard LTL formulas. The operator requires to occur before the first occurrence of and can be translated as . The operator requires this prerequisite relation to hold for every non-consecutive occurrence of and can be translated as , where means that holds at the next time step, and weak until is defined as (Baier et al., 2008). For the cnt operators, let denote the set of involved agents, the proposition associated with agent , and the required number of agents. requires at least agents in to satisfy their corresponding simultaneously, and can be translated as the disjunction over all subsets with of . Similarly, requires at least agents to each satisfy their corresponding without requiring simultaneous satisfaction, and can be translated as the disjunction over all such subsets of . Boolean combinations of dep and cnt operators are translated compositionally using standard LTL connectives. Thus, these operators do not extend the expressiveness of LTL, but provide convenient notation for expressing inter-agent dependency and count requirements.
Table 3: Specifications used for evaluation. b, g, m, and y denote blue, green, magenta, and yellow, respectively. sa and ma denote specifications for single-agent and multi-agent behaviors, respectively. Top: finite-horizon specifications with 3 agents, with results in Table 1. Bottom left: finite-horizon specifications with 5 and 10 agents for the scalability study, with results in Figure 3. Bottom right: infinite-horizon specifications with 3 agents, with results in Table 5.
| Specification types | IND | OOD | ||||
|---|---|---|---|---|---|---|
| sa | ||||||
| sa | ||||||
| sa | ||||||
| sa | ||||||
| sa | ||||||
| sa | ||||||
| sa | ||||||
| sa | ||||||
| Finite- | sa | |||||
| horizon (3 agents) | dep | |||||
| dep | ||||||
| dep | ||||||
| cnt | Sync | Sync | ||||
| cnt | Sync | Async | ||||
| cnt | Sync | Sync | ||||
| ma | ||||||
| ma | ||||||
| ma | ||||||
| ma | ||||||
| Finite-horizon (5 agents) | dep | sa | ||||
| dep | sa | |||||
| dep | sa | |||||
| cnt | Async | sa | ||||
| cnt | Sync | sa | ||||
| cnt | Sync | sa | ||||
| ma | sa | |||||
| sa | ||||||
| Finite-horizon (10 agents) | dep | sa | ||||
| dep | dep | |||||
| dep | dep | |||||
| dep | dep | |||||
| dep | cnt | |||||
| cnt | cnt | |||||
| cnt | Async | cnt | ||||
| cnt | Async | ma | ||||
| cnt | Async | ma | ||||
| ma | ma | |||||
| ma | ma | |||||
C IMPLEMENTATION DETAILS
We use the official codebase of the baseline ACC-MARL . The low-level policy used in our framework is adapted from GenZ-LTL by extending it to the multi-agent setting, while we implement the proposed high-level sampling-based planner. For a fair comparison, all methods use the same network architectures: the actor and critic are fully connected networks with three hidden layers of size [64, 64, 64], and the value function network has two hidden layers of size [64, 64]. We retain the original state/observation preprocessing of each method. All methods use the Adam optimizer with a learning rate of and are trained for 15M environment interactions. The discount factor is set to for ZoneEnv. Additional hyperparameter details are provided in the code included in the supplementary materials. All methods are trained on a 16-core AMD CPU and an NVIDIA GeForce RTX 4090 GPU, with our model taking approximately 6 hours to train.
Training and evaluation. For each agent , we construct a feasible reach-avoid subtask set by considering every assignment as a candidate reach condition . For each candidate, assignments that conflict with are discarded, and all combinations of the remaining assignments are enumerated to construct the avoid condition . This yields the subtask set . During training, a reach-avoid subtask is uniformly sampled from the corresponding for each agent. We define a binary reward when the current true propositions, obtained according to , satisfy the reach condition of , and otherwise. Similarly, we define a binary cost when the current true propositions satisfy the avoid condition of or agent collides with another agent, and otherwise. If any , the episode is terminated immediately, since the corresponding specification can no longer be satisfied. Otherwise, whenever , a new subtask is re-sampled for agent . We train GenZ-LTL using the rewards/costs collected during interactions, and the policy and critics are shared across agents because the agents are homogeneous in the Zone environment. The 5 seeds used for training and evaluation are [1, 11, 22, 33, 44]. During evaluation, the agent and zone positions are randomly sampled for each episode, while the same sampled configurations are used across different methods under each seed for fair comparison.
Specification satisfaction evaluation. For each rollout, we evaluate its trace against every specification component , . For finite-horizon tasks, a trajectory is considered successful only if all specification components are satisfied, whereas it is considered a violation if any component is violated. For infinite-horizon tasks, violation is determined in the same way. For each non-violating trajectory, we count the visits to accepting states for every specification component and take the minimum of these counts as the number of accepting-state visits reported in Table 5.
Product automaton. We use the Spot library to construct an automaton for each specification component and the corresponding product automaton for the global specification . We then record the number of states in the resulting global automaton. For the specifications in Section 5.2, we perform this analysis for with and report the mean and standard deviation of the automaton-state counts in Table 2. For , the complete product automata could not be constructed within tractable computational limits (1 hour limit), as each global specification contains 12 component specifications, including 10 individual-agent specifications together with one dep and one cnt specification with . We therefore report the largest observed state number as a lower bound, denoted by > num in Table 2.
Details of the sampling-based planner. For each , , let denote the set of feasible subtask sequences, where is the number of feasible subtask sequences for . Each is a sequence , where denotes a reach-avoid subtask. We assume without loss of generality that each reach condition and avoid condition is expressed in disjunctive normal form (DNF) (Rosen & Krithivasan, 1999), where each conjunctive clause is represented by the set of atomic propositions it contains; for example, is represented as . Algorithm 2 extends a sampled node by finding compatible next subtasks. We first identify the expandable components such that, for each
https://github.com/rad-dfa/acc-marl
https://github.com/BU-DEPEND-Lab/GenZ-LTL
, none of its subtask sequences has reached its end, and then sample a nonempty subset . Now we explain the main loop of Algorithm 2 (line 5). For each , if no subtask sequence has been selected, we uniformly sample , retrieve its first subtask, and update the corresponding tuple to . Otherwise, given the tuple stored in , we retrieve the next subtask and update the corresponding tuple to .
We then check whether the resulting node is valid by verifying the compatibility of the selected subtasks based on their reach and avoid conditions. For each component whose current subtask is , one conjunctive clause is sampled from and denoted by . Thus for since no new reach condition is considered in the current extension. The centralized planner then constructs the joint reach condition . To construct the joint avoid condition, we consider every component . For , we use the avoid condition of the newly retrieved subtask. For , given its stored tuple , if , we uniformly sample a sequence and use the avoid condition of its first subtask; otherwise, we use the avoid condition of the current subtask . Let denote the resulting avoid condition for component . Since each is represented in DNF as a set of conjunctive clauses, with each clause itself represented as a set of atomic propositions, the joint avoid condition is also a set of such clauses and is defined as . The joint reach and avoid conditions are incompatible if any conjunctive clause satisfies , since satisfying the reach condition would necessarily violate the avoid condition. Otherwise, propositions already contained in are removed from each avoid clause, yielding the final avoid condition . For example, if and , the conditions are compatible and reduce to and . In contrast, if and , they are incompatible because . This compatibility check depends only on the Boolean structure of the reach and avoid conditions.
Replanning and value-guided sampling. During execution, we evaluate the current active propositions and use them to update the automaton state of each specification component. If none of the automaton states changes, the agents continue following the current plan. Whenever the automaton state of at least one component changes, we recompute the feasible reach-avoid subtask sequences from the updated automaton states and invoke the planner again to generate a new plan from the current specification progress. For infinite-horizon specifications, we construct each candidate subtask sequence from its finite prefix followed by repetitions of its cyclic suffix, and apply the same planning and replanning procedure to these finite sequences. On the other hand, at test time, learned value functions can in principle be used to guide subtask selection, e.g., by choosing the candidate subtask with the largest value at the current state s. However, evaluating a multi-step plan also requires estimating the values of subsequent subtasks at future states that have not yet been observed. One possible approach is to train an additional model to predict a future state and then evaluate for the next subtask . However, the planning horizon can be long, and prediction errors can accumulate over multiple subtasks, making accurate future-state estimates difficult to obtain. Therefore, value-function-based lookahead becomes challenging for long-horizon task allocation considered in our setting. Moreover, under partial observability, optimizing the planned subtask sequence is challenging, and value-guided sampling does not offer an obvious advantage. We leave a systematic investigation of this direction to future work.
D ADDITIONAL RESULTS
Performance on simple specifications. We additionally evaluate our method and ACC-MARL on simple specifications consisting of reach-only tasks, i.e., , and reach-avoid tasks, i.e., , where and . The results are shown in Table 4. Note that for reach-only specifications, violations arise solely from inter-agent collisions. ACC-MARL achieves substantially higher success rates on these simple specifications than on the more complex specifications considered in the main experiments, suggesting that its performance degradation is mainly due to the increased specification complexity. In contrast, our method maintains consistently high success rates and low violation rates across both simple and complex specifications.
Table 4: Evaluation results on simple specifications: success rate , violation rate , and average number of steps . ↑: higher is better; ↓: lower is better. Each value is averaged over 5 seeds, with 100 trajectories per seed.
| Method | Specifications | |||
|---|---|---|---|---|
| ACC-MARL | Reach-Only | 0.77±0.08 | 0.19±0.07 | 261.27±39.58 |
| Reach-Avoid | 0.60±0.09 | 0.37±0.08 | 226.06±38.71 | |
| Ours | Reach-Only | 0.97±0.02 | 0.02±0.02 | 139.92±14.16 |
| Reach-Avoid | 0.98±0.02 | 0.01±0.01 | 148.40±15.47 |
Infinite-horizon tasks. We also evaluate infinite-horizon tasks, i.e., specifications whose satisfaction requires infinite-length trajectories. We focus on specifications involving GF , which induce continual navigation and inter-agent interactions, rather than FG , where agents remain in specific regions after reaching them. ACC-MARL is the only existing baseline applicable to our setting, but it is excluded from this evaluation because DFAs cannot represent infinite-horizon specifications. We therefore report the performance of our method without baseline comparison, providing a reference for future evaluation when suitable baselines become available. The evaluated specifications are listed in Table 3, with results reported in Table 5. We report the violation rate and the average number of visits to accepting states among non-violating trajectories, . Our method naturally extends to this setting, as the same sampling-based planning procedure can be repeatedly applied to the subtask sequences obtained from each specification. The learned policy is conditioned only on the current subtask and can therefore be directly reused throughout infinite-horizon execution. Our method can obtain low violation rates and frequent visits to accepting states across all evaluated specifications, although decreases and increases slightly as dependency and count requirements are introduced due to the increased coordination difficulty.
Table 5: Evaluation results of infinite-horizon tasks: violation rate and average number of visits to accepting states on infinite-horizon tasks listed in Table 3. ↑: higher is better; ↓: lower is better. Each value is averaged over 5 seeds, with 100 trajectories per seed.
| Method | Metrics | Average | ||||
|---|---|---|---|---|---|---|
| Ours | 10.71±1.86 | 5.98±0.87 | 10.48±1.72 | 5.55±0.84 | 8.18±2.80 | |
| 0.05±0.03 | 0.15±0.03 | 0.05±0.02 | 0.16±0.04 | 0.10±0.06 |

Figure 6: Performance as the complexity of inter-agent coordination specifications increases. The top row varies the number of dependency operators in , while the bottom row varies the number of count operators in . We report the success rate , violation rate , average number of steps to satisfy a specification, and planning time . Solid lines show the mean, and shaded regions indicate one standard deviation.
Coordination-specification complexity. We also evaluate how performance changes as the complexity of the inter-agent coordination specifications increases in the 3-agent setting. To isolate the effects of and , each agent is assigned a simple individual task of the form , while the coordination-specification complexity is varied separately. For dependency requirements, we construct as a conjunction of Req clauses and increase , introducing more inter-agent dependency relations. Similarly, for count requirements, we construct as a conjunction of Sync and Async clauses and increase , introducing more count requirements. Although dependency and count requirements can be combined within the same global specification, we vary them separately here to isolate the effect of each type of coordination complexity. As shown in Figure 6, increasing either type of specification complexity generally decreases the success rate and increases the violation rate and the number of steps required to satisfy the specification, as agents must satisfy a larger number of inter-agent coordination requirements. Meanwhile, the planning time remains tractable as the number of coordination operators increases, since the sampling-based planner operates directly on subtask sequences without explicitly constructing the product automaton.
E QUALITATIVE RESULTS
We conduct a qualitative analysis of our method using specification , with the visualization of the trajectories shown in Figure 7 and the planning process of the high-level planner in Figure 8. In natural language, the specifications mean that is required to avoid the magenta region until reaching either the blue or yellow region, followed by reaching the green region; must avoid the blue and yellow regions until reaching the green region, followed by the magenta region; and must reach the magenta region and avoid the yellow region until reaching either the blue or green region. The dep specification requires to reach the magenta region before reaches the green region, to reach the blue region before reaches the magenta region, and to reach the green region before reaches the magenta region. The cnt specification requires that at least two agents must reach the magenta region simultaneously, and both and must reach the yellow region, without requiring simultaneous visits.

(a)
{}

(b)
{yellow }

(c)
{yellow , green }

(d)
{yellow , green , blue }

(e)
{yellow , magenta , blue }

(f)
{magenta , magenta }

(g)
{green , magenta , magenta }

(h)
{green , magenta , yellow }
Figure 7: Visualization of the trajectory of specification . For each subplot, denotes the timestep, and the set denotes the propositions that are true at the current timestep.
At the beginning of execution, the planner assigns (i.e., reach and avoid or ), , and . After reaches yellow at , its individual task permits progression toward green, but remains avoided until the prerequisite is satisfied; meanwhile, and continue their current subtasks. At , reaches green, after which remains avoided until reaches blue, as required by

(a)
(b)
(c)
(d)
(e)
(f)
(g)
Figure 8: Visualization of the planning process of the high-level sampling-based planner for specification . Each subplot shows the planning state at timestep . Yellow blocks denote the selected subtask sequence, while gray blocks denote sampled nodes that are not part of the selected sequence.
the corresponding dep constraint. Once agent₂ reaches blue at t = 198, the planner updates the subtasks to and , while agent₀ continues to avoid green. After agent₁ first reaches magenta at t = 289, the prerequisite for green₀ is satisfied, and the planner assigns while retaining magenta₁ and magenta₂ as targets to satisfy the synchronous count requirement. At t = 349, agent₁ and agent₂ reach magenta simultaneously, after which the remaining subtasks are and . Finally, agent₀ reaches green at t = 358 and agent₂ reaches yellow at t = 471, and the specifications are satisfied.