betaFeedback

WorksComputer Science

SLICR: Strategy Logic-Guided Multi-Agent Reinforcement Learning

Abstract

Specification-guided reinforcement learning (RL) translates formal specifications of desired behavior of agents into shaped rewards. This paper introduces SLICR, a significant paradigm shift that advances the state of the art to specification-guided RL in adversarial settings under partial observability. We employ Strategy Logic (SL), which allows explicit quantification over agents' strategies and uses the linear temporal logic (LTL) to specify the agents' objectives and constraints. This enables reasoning not only about how agents should act to satisfy a specification, but also about how they should respond to the strategies and behaviors of other agents. We evaluate SLICR on three popular benchmarks: Predator-Prey, Google Research Football, and our home-grown extension of SMAC-HARD, demonstrating its effectiveness, scalability, and ability to adapt to diverse adversarial strategies.

Introduction

Specification-guided reinforcement learning has recently gained significant attention by using desired agent behaviors expressed in formal languages to guide the learning process [2]. Formal specification provides rigorous syntax and semantics for reasoning about sequences of events and states over time. Recently, approaches such as [11] (Rafieioskouei et al. 2026) have demonstrated that formal specifications not only provide precise objectives for multiple agents, but also improve learning performance. However, existing specification-guided multi-agent RL (MARL) approaches [6, 18, 15] typically assume that other agents follow stationary strategies. More specifically, these approaches have two main limitations: (1) they learn a single strategy (i.e., policy) for a fixed task or game, without explicitly adapting to the strategies of other agents; and (2) adversarial formulations often focus on rational equilibrium behavior, such as Nash equilibria [12], without considering arbitrary or irrational opponent strategies. These limitations severely limit the ability of agents to respond to a changing collection of adversarial strategies.

In this paper, we introduce SLICR (Strategy Logic-Informed Control through Reinforcement Learning), advancing the state of the art in specification-guided model-free MARL to adversarial settings under partial observability and non-stationary adversarial behavior. We employ the highly expressive strategy logic (SL) [20], which enables explicit quantification over multiple agents’ strategies, along with the linear temporal logic (LTL) to specify the agents’ objectives and constraints. This enables reasoning not only about how agents should act to satisfy a specification, but also about how they should respond to the strategies of other agents without making any assumptions about them. Consider the partially observable Voyage scenario shown in Figure 1. The agents, ship (🚢) and pirate (🏴‍☠️), observe only their own locations and can move between adjacent cells, except between bb and ee or hh and ee. The SL formula ∃y∀x(ship,y)(pirate,x).(□¬Inter⁡(pirate)∧◊x(ship))\exists y\forall x(\mathit{ship},y)(\mathit{pirate},x).(\square\neg\operatorname{Inter}(\mathit{pirate})\land\Diamond x(\mathit{ship})) states that there exists a strategy for ship such that, for every strategy of pirate, ship eventually reaches hh and always avoids interception. This formula cannot be satisfied because pirate can wait at dd or ff, depending on the route chosen by ship. By contrast, ∀x.∃y(pirate,x)(ship,y).φ\forall x.\exists y(\mathit{pirate},x)(\mathit{ship},y).\varphi stipulates that for every strategy of pirate, there exists a strategy for ship to satisfy the objective. Thus, SL can express adversarial interactions by capturing dependencies between agents’ strategies and specifying how agents should respond to one another.

Voyage Scenario

Figure 1. Voyage Scenario.

Contributions. We (1) formulate the strategy synthesis problem for a multi-agent system as a learning problem, where the goal is to maximize the probability of satisfying an SL specification under partial observability (§ 4); (2) solve this problem (see Figure 2) by (i) transforming the temporal satisfaction problem into a robustness optimization problem, (ii) identifying irrational strategies assigned to universally quantified strategy variables and preventing them from misleading learning through a shielding mechanism, (iii) new opponent modeling based on a novel encoder-decoder technique, (iv) following the centralized training with decentralized execution (CTDE) paradigm to learn decentralized response functions under partial observation (§ 5), and (3) evaluate SLICR on three MARL benchmarks: Predator-Prey ([19]), Google Research Football (GRF) ([14]), and a home-grown extension of SMAC-HARD ([5]), using MARL algorithms to construct diverse opponent strategies. Our evaluation demonstrates the effectiveness of SLICR, with improvements of up to 90% over opponent-modeling baseline, and scalability to complex environments such as GRF and SMAC-HARD (§ 6).

Figure 2. Overview of SLICR. Solid lines apply during training and evaluation; dashed lines apply only during training.

We provide proofs, implementation and benchmark details, and additional results in App. § 10.

Related Work

Specification-Guided MARL. Specification-guided MARL has been extensively studied [6, 18, 11, 15, 12]. Hammond et al. [9] learn a joint policy that maximizes a weighted sum of the satisfaction probabilities of multiple LTL specifications. Bozkurt et al. [4] instead consider a turn-based stochastic game and learn a controller policy that maximizes the probability of satisfying an LTL specification against a worst-case adversary. Unlike these settings, our framework uses SL under partial observability to express richer strategic relationships. In (Rafieioskouei et al., 2026), the authors use encoder-decoder models to reason about the dependencies represented by Skolem functions. Their encoder-decoder models reconstruct the states of universally quantified trace variables to guide cooperative MARL. In contrast, we use encoder-decoder models to reason over strategies of other agents for SL-guided adversarial MARL. We believe the work most closely related to SLICR is [8], which studies RL in fully observable settings for strategic specifications expressed in probabilistic ATL (PATL), an extension of ATL ([1]). Unlike SLICR, their approach supports only a single outermost strategic quantifier without alternation.

Opponent Modeling. In SLICR, we reason about the strategies (behavior) of other agents, connecting our approach to opponent modeling. Rabinowitz et al. (2018) uses character and mental-state embeddings to represent agents’ long-term and transient behavior, relational forward models to predict future actions or returns from global states (Tachet et al., 2019), and hierarchical sequential variational autoencoders to infer beliefs over other agents’ strategies (Zintgraf et al., 2021). Policy representations can also be learned from observation-action trajectories, although representing unseen agents requires access to several of their previous trajectories ([7]). In (Yu et al., 2024), opponents’ subgoals are inferred as embeddings of future states from historical trajectories under full observability and used to condition the learning agent’s policy. Extending opponent modeling to partially observable settings, (Papoudakis et al., 2021a) reconstructs other agents’ actions and observations from the controlled agent’s local history, while [21] additionally models future states and returns and aggregates the resulting embeddings. In contrast, our learning is further guided by a specification and protected by a shield that excludes experiences associated with irrational strategies.

Preliminaries

Let Δ(X)≜{p:X→[0,1]∣∑x∈Xp(x)=1}\Delta(X) \triangleq\{p : X \to[0,1] \mid\sum_{x\in X} p(x)=1\} denote the probability simplex over a set XX, and let μ(X)\mu(X) denote the uniform distribution, We abbreviate a tuple ⟨x1,…,xn⟩\langle x_1,\ldots,x_n\rangle as ⟨xi⟩i∈{1,…,n}\langle x_i\rangle_{i\in\{1,\ldots,n\}}.

Partially Observable Stochastic Games

We model the environment as an nn-agent partially observable stochastic game (POSG) [10]. A POSG is defined as a tuple G≜⟨S,S0,Ag,A,P,O,⟨Ωαi⟩i∈{1,…,n},AP,L⟩G \triangleq\langle S,S_0,Ag,A,P,O,\langle\Omega_{\alpha^i}\rangle_{i\in\{1,\ldots,n\}},AP,L\rangle, where SS is the set of environment states, and S0S_0 is the initial-state distribution. Ag≜{α1,…,αn}Ag \triangleq\{\alpha^1,\ldots,\alpha^n\} is a finite set of nn agents. We assume each agent αi\alpha^i has the same action space AA and we define A≜{a=⟨a1,…,an⟩∣ai∈A}\mathcal{A} \triangleq\{a=\langle a_1,\ldots,a_n\rangle\mid a_i\in A\} as the joint action space. The transition function P:S×A→Δ(S)P:S\times\mathcal{A}\to\Delta(S), where P(s′∣s,a)P(s'\mid s,a) denotes the probability of transitioning from s∈Ss\in S to s′∈Ss'\in S under the joint action a∈Aa\in\mathcal{A}. In a POSG, agents do not have direct access to the full environment state. Instead, they receive a partial observation determined probabilistically by the state and the joint action. For simplicity, we assume each agent αi\alpha^i has the same observation space OO. For each agent αi\alpha^i, the observation function Ωαi:S×A→Δ(O)\Omega_{\alpha^i}:S\times\mathcal{A}\to\Delta(O), where Ωαi(oi∣s,a)\Omega_{\alpha^i}(o_i\mid s,a) denotes the probability that αi\alpha^i receives oi∈Oo_i\in O in state s∈Ss\in S under the joint action a∈Aa\in\mathcal{A}. Lastly, APAP denotes a finite set of atomic propositions, and L:S→2APL:S\to2^{AP} is a labeling function.

Example. The POSG for the Voyage scenario in Figure 1 is defined as follows. The environment is a 3×33\times3 grid world with cells labeled a,b,…,ia,b,\ldots,i. Ag={ship⁡(🚢),pirate⁡(🏴‍☠️)}Ag=\{\operatorname{ship}(\text{🚢}),\operatorname{pirate}(\text{🏴‍☠️})\}. Each state is of the form (pos⁡ship,pos⁡pirate)(\operatorname{pos}_{\mathrm{ship}},\operatorname{pos}_{\mathrm{pirate}}), for the position of ship and pirate, respectively, where pos⁡ship,pos⁡pirate∈{a,b,…,i}\operatorname{pos}_{\mathrm{ship}},\operatorname{pos}_{\mathrm{pirate}}\in\{a,b,\ldots,i\}. Let (b,e)(b,e) be the initial state. Both agents can move to adjacent cells using actions A={U,D,R,L,S}\mathcal{A}=\{U,D,R,L,S\}, except between bb and ee or hh and ee. Each agent can only observe its own current position and not the position of the other agent (i.e., O={a,b,…,i}O=\{a,b,\ldots,i\}). For example, in state s=(b,e)s=(b,e), the observations of ship and pirate are bb and ee, respectively.

A history for an agent αi∈Ag\alpha^i\in Ag is an observation-action sequence hαi≜oi0→ai0oi1→ai1⋯h_{\alpha^i}\triangleq o_{i0}\xrightarrow{a_{i0}}o_{i1}\xrightarrow{a_{i1}}\cdots, where for all j≥0j\ge0, oij∈Oo_{ij}\in O and aij∈Aa_{ij}\in\mathcal{A}. A sub-history hαi[ℓ:k]h_{\alpha^i}^{[\ell:k]} is a finite segment oiℓ→aiℓ⋯→aik−1oiko_{i\ell}\xrightarrow{a_{i\ell}}\cdots\xrightarrow{a_{i_{k-1}}}o_{ik}, for 0≤ℓ<k<∣hαi∣0\le\ell<k<|h_{\alpha^i}|. We denote the set of all finite histories by H∗\mathcal{H}^*. A strategy π:H∗→Δ(A)\pi:\mathcal{H}^*\to\Delta(\mathcal{A}), where π(a∣h)\pi(a\mid h) denotes the probability of choosing an action a∈Aa\in\mathcal{A} after a finite history h∈H∗h\in\mathcal{H}^*. We denote the set of all strategies in GG by Π\Pi. A path in a POSG is a sequence of environment states ζ≜s0→a0s1→a1⋯\zeta\triangleq s_0\xrightarrow{a_0}s_1\xrightarrow{a_1}\cdots, where sj∈Ss_j\in S and aj∈Aa_j\in\mathcal{A} for all $j\ge 0, and a sub-path ζ[ℓ:k]\zeta_{[\ell:k]} is a finite segment sℓ→aℓ⋯→ak−1sks_\ell\xrightarrow{a_\ell}\cdots\xrightarrow{a_{k-1}}s_k, for 0≤ℓ<k<∣ζ∣0\le\ell<k<|\zeta|. The trace tt of a path ζ\zeta is a sequence of labels Tr⁡(ζ)≜t(0)t(1)⋯\operatorname{Tr}(\zeta)\triangleq t(0)t(1)\cdots, such that t(j)=L(sj)t(j)=L(s_j) for all $j\ge 0, and the trace of a sub-path, Tr⁡(ζ[ℓ:k])\operatorname{Tr}(\zeta_{[\ell:k]}), is defined similarly. Notice that, we only consider valid paths and sub-paths, where P(s′∣s,a)>0P(s'\mid s,a)>0 for all transitions. We write Z∗\mathcal{Z}^* to denote the set of all finite paths, and Traces⁡(Z∗)\operatorname{Traces}(\mathcal{Z}^*) to denote the set of all finite traces. Furthermore, our setting is episodic, and each episode (a finite sequence of interactions from an initial state to termination) terminates after TT steps, where T∈Z>0T\in\mathbb{Z}_{>0}.

Strategic Logic (SL)

Syntax. SL [20] is a temporal logic that allows explicit quantification over the strategies of agents. SL syntax is as follows:

φ::=∃x.φ∣∀x.φ∣(α,x).φ∣ψ\varphi::= \exists x.\varphi\mid\forall x.\varphi\mid(\alpha,x).\varphi\mid\psi
ψ::=p∣¬ψ∣ψ∨ψ∣◯ψ∣ψUψ∣ψTψ\psi::= p \mid\neg\psi\mid\psi\vee\psi\mid\mathop{\bigcirc}\psi\mid\psi\mathbin{\mathcal{U}}\psi\mid\psi\mathbin{\mathcal{T}}\psi

where p∈APp\in AP is an atomic proposition, α∈Ag\alpha\in Ag is an agent, and xx is a strategy variable. We read ∃x\exists x as “there exists a strategy assigned to xx”, and ∀x\forall x as “for all strategies assigned to xx”. An agent binding (α,x)(\alpha,x) binds an agent α\alpha to the strategy associated with variable xx. We write Vars⁡(φ)\operatorname{Vars}(\varphi) for the set of all strategy variables appearing in φ\varphi. The grammar of the inner sub-formula ψ\psi yields a standard LTL formula with the Boolean connectives ¬\neg and ∨\vee, as well as the temporal operators ◯\bigcirc (“next”), U\mathcal{U} (“until”), and T\mathcal{T} (“then”). Other Boolean and temporal operators are defined as syntactic sugar: true⁡≜p∨¬p\operatorname{true}\triangleq p\vee\neg p, false⁡≜¬true⁡\operatorname{false}\triangleq\neg\operatorname{true}, ψ1→ψ2≜¬ψ1∨ψ2\psi_1\to\psi_2\triangleq\neg\psi_1\vee\psi_2, ◊ψ≜true⁡Uψ\Diamond\psi\triangleq\operatorname{true}\mathbin{\mathcal{U}}\psi, □ψ≜¬◊¬ψ\Box\psi\triangleq\neg\Diamond\neg\psi, ψ1Wψ2≜(ψ1Uψ2)∨□ψ1\psi_1\mathcal{W}\psi_2\triangleq(\psi_1\mathcal{U}\psi_2)\vee\Box\psi_1, and ψ1TWψ2≜(ψ1Tψ2)∨(◊ψ1)\psi_1\mathcal{T}_{\mathcal{W}}\psi_2\triangleq(\psi_1\mathcal{T}\psi_2)\vee(\Diamond\psi_1) where ◊,□,UW\Diamond,\Box,\mathcal{U}_{\mathcal{W}}, and TW\mathcal{T}_{\mathcal{W}} denote ‘eventually’, ‘always’, ‘weak until’, and ‘weak then’, respectively. We say a formula φ\varphi is agent-closed if every agent α∈Ag\alpha\in Ag occurring in the formula is bound to some variable x∈Vars(φ)x \in Vars(\varphi), and is variable-closed if every variable x∈Vars(φ)x \in Vars(\varphi) is quantified. A formula that is both variable-closed and agent-closed is called a sentence.

Semantics. Let φ≜Q1x1…Qnxn  (α1,x1)…(αn,xn).ψ\varphi\triangleq Q_1x_1 \ldots Q_nx_n\;(\alpha^1,x_1)\ldots(\alpha^n,x_n).\psi be an SL sentence, where each Qi∈{∀,∃}Q_i \in\{\forall,\exists\} and ψ\psi is the inner LTL formula. The original semantics of SL in Mogavero et al. [20] is defined over deterministic concurrent games. Since we model RL environments by POSGs, we present the semantics of SL in two steps. The first step is concerned with the semantics of strategy quantifiers. The second step is related to the semantics of the inner LTL formula ψ\psi for (sampled) paths from a POSG:

— An assignment is a partial mapping X:Ag∪Vars(φ)⇀Π\mathcal{X}: Ag \cup Vars(\varphi) \rightharpoonup\Pi that maps each agent and strategy variable in its domain to a strategy. Given an assignment X\mathcal{X}, a strategy variable xix_i, an agent αi\alpha^i, and a strategy π∈Π\pi\in\Pi, we write X[xi↦π]\mathcal{X}[x_i \mapsto\pi] for the assignment that agrees with X\mathcal{X} except that xix_i is mapped to strategy π\pi. Similarly, X[αi↦π]\mathcal{X}[\alpha^i \mapsto\pi] denotes the assignment that agrees with X\mathcal{X} except that αi\alpha^i is mapped to π\pi. We also write X[xi,αi↦π]≜X[xi↦π][αi↦π]\mathcal{X}[x_i,\alpha^i \mapsto\pi] \triangleq\mathcal{X}[x_i \mapsto\pi][\alpha^i \mapsto\pi]. An assignment X\mathcal{X} is complete if it assigns a strategy to every agent and every variable. We use Xc\mathcal{X}_c to denote the set of all complete assignments and X∅\mathcal{X}_{\emptyset} for the empty assignment. The satisfaction relation is defined over a model configuration (G,Π,X,i)(G,\Pi,\mathcal{X},i) and φ\varphi, where i∈Z≥0i \in\mathbb{Z}_{\geq0} indicates the evaluation position.

(G,Π,X,0)⊨∃x.φiff there exists π in Π st. (G,Π,X[x↦π],0)⊨φ,(G,Π,X,0)⊨∀x.φiff for all π in Π st. (G,Π,X[x↦π],0)⊨φ,(G,Π,X,0)⊨(α,x).φiff (G,Π,X[α↦X(x)],0)⊨φ.\begin{aligned} (G,\Pi,\mathcal{X},0) &\models\exists x.\varphi&&\text{iff there exists }\pi\text{ in }\Pi\text{ st. }(G,\Pi,\mathcal{X}[x\mapsto\pi],0)\models\varphi,\\ (G,\Pi,\mathcal{X},0) &\models\forall x.\varphi&&\text{iff for all }\pi\text{ in }\Pi\text{ st. }(G,\Pi,\mathcal{X}[x\mapsto\pi],0)\models\varphi,\\ (G,\Pi,\mathcal{X},0) &\models(\alpha,x).\varphi&&\text{iff }(G,\Pi,\mathcal{X}[\alpha\mapsto\mathcal{X}(x)],0)\models\varphi. \end{aligned}

— Now, for each complete assignment X∈Xc\mathcal{X}\in\mathcal{X}_c, let GXG_{\mathcal{X}} denote the distribution over finite paths induced by the strategies assigned to the agents by X\mathcal{X}. Observe that a complete assignment induces a set of paths in GG, while the semantics of SL should be in terms of an individual induced path for each X\mathcal{X}. Let ζ∼GX\zeta\sim G_{\mathcal{X}} denote a sampled path ζ\zeta from GXG_{\mathcal{X}}. Next, we define the semantics of the inner-LTL formula for (Tr⁡(ζ∼GX),0)⊨ψ(\operatorname{Tr}(\zeta\sim G_{\mathcal{X}}),0)\models\psi:

(Tr⁡(ζ),i)⊨piff p∈Tr⁡(ζ)(i),(Tr⁡(ζ),i)⊨¬ψiff (Tr⁡(ζ),i)⊭ψ,(Tr⁡(ζ),i)⊨ψ1∨ψ2iff (Tr⁡(ζ),i)⊨ψ1 or (Tr⁡(ζ),i)⊨ψ2,(Tr⁡(ζ),i)⊨Xψiff i+1<∣Tr⁡(ζ)∣ and (Tr⁡(ζ),i+1)⊨ψ,(Tr⁡(ζ),i)⊨ψ1Uψ2iff ∃i′≥i with i′<∣Tr⁡(ζ)∣ such that (Tr⁡(ζ),i′)⊨ψ2and ∀i′′∈[i,i′],  (Tr⁡(ζ),i′′)⊨ψ1,(Tr⁡(ζ),i)⊨ψ1Tψ2iff ∃i′≥i with i′<∣Tr⁡(ζ)∣ such that (Tr⁡(ζ),i′)⊨ψ2and ∃i′′∈[i,i′),  (Tr⁡(ζ),i′′)⊨ψ1.\begin{aligned} (\operatorname{Tr}(\zeta),i)&\models p &&\text{iff }p\in\operatorname{Tr}(\zeta)(i),\\ (\operatorname{Tr}(\zeta),i)&\models\neg\psi&&\text{iff }(\operatorname{Tr}(\zeta),i)\not\models\psi,\\ (\operatorname{Tr}(\zeta),i)&\models\psi_1\lor\psi_2 &&\text{iff }(\operatorname{Tr}(\zeta),i)\models\psi_1\text{ or }(\operatorname{Tr}(\zeta),i)\models\psi_2,\\ (\operatorname{Tr}(\zeta),i)&\models\mathsf{X}\psi&&\text{iff }i+1<|\operatorname{Tr}(\zeta)|\text{ and }(\operatorname{Tr}(\zeta),i+1)\models\psi,\\ (\operatorname{Tr}(\zeta),i)&\models\psi_1\mathbin{\mathsf{U}}\psi_2 &&\text{iff }\exists i'\geq i\text{ with }i'<|\operatorname{Tr}(\zeta)|\text{ such that }(\operatorname{Tr}(\zeta),i')\models\psi_2\\ &&&\text{and }\forall i''\in[i,i'],\;(\operatorname{Tr}(\zeta),i'')\models\psi_1,\\ (\operatorname{Tr}(\zeta),i)&\models\psi_1\mathbin{\mathsf{T}}\psi_2 &&\text{iff }\exists i'\geq i\text{ with }i'<|\operatorname{Tr}(\zeta)|\text{ such that }(\operatorname{Tr}(\zeta),i')\models\psi_2\\ &&&\text{and }\exists i''\in[i,i'),\;(\operatorname{Tr}(\zeta),i'')\models\psi_1. \end{aligned}

Roughly speaking, given the above semantics, our goal in this paper is to learn functions that map each existentially quantified strategy variable to a strategy in response to the choice of universally quantified strategy variables such that the probability of satisfaction of an SL specification in POSG is maximized. We will formally state this optimization problem in the next section.

Problem Statement

Let φ=Q1x1…Qnxn  (α1,x1)…(αn,xn).ψ\varphi= Q_1x_1\ldots Q_nx_n\;(\alpha^1,x_1)\ldots(\alpha^n,x_n).\psi be an SL sentence, where each Qi∈{∃,∀}Q_i\in\{\exists,\forall\} for 1≤i≤n1\leq i\leq n. Intuitively, our objective is to identify a tuple of best-response functions that select a strategy witness for each Qi=∃Q_i=\exists, such that the probability of induced paths satisfying ψ\psi is maximized. We focus on SL formulas with at most one quantifier alternation (i.e., ∀∗∃∗\forall^*\exists^* and ∃∗∀∗\exists^*\forall^*), which capture two mostly common objectives in adversarial RL: learning a response strategy for each opponent strategy and learning a single strategy for the controlled agents that works against all opponent strategies, respectively. These objectives are relevant to games involving two players or two opposing teams, such as Markov soccer Littman [17], Kuhn poker Kuhn [13], Predator–Prey, GRF, and SMAC. In addition, the existence of a Nash equilibrium can be expressed in SL using only one quantifier alternation Beutner & Finkbeiner [3].

We define Q∃≜{i∣Qi=∃}\mathbb{Q}^{\exists}\triangleq\{i\mid Q_i=\exists\} and Q∀≜{j∣Qj=∀}\mathbb{Q}^{\forall}\triangleq\{j\mid Q_j=\forall\} as the sets of indices of existentially and universally quantified strategy variables, respectively. Let Pre⁡≜{j∈Q∀∣j<min⁡(Q∃)}\operatorname{Pre}\triangleq\{j\in\mathbb{Q}^{\forall}\mid j<\min(\mathbb{Q}^{\exists})\} denote the set of indices of universal quantifiers preceding the first existentially quantified variable. Given a complete strategy assignment X\mathcal{X}, we define a strategy context Ξ≜⟨X(xj)⟩j∈Pre\Xi\triangleq\langle\mathcal{X}(x_j)\rangle_{j\in\mathrm{Pre}} as a tuple of strategies assigned to all the preceding universally quantified variables.

We now introduce our key objective. For each i∈Q∃i\in\mathbb{Q}^{\exists}, we define a response function RSxi:Π∣Pre∣→Π\mathrm{RS}_{x_i}:\Pi^{|\mathrm{Pre}|}\to\Pi, which maps the strategy context Ξ∈Π∣Pre∣\Xi\in\Pi^{|\mathrm{Pre}|} to a concrete strategy π∈Π\pi\in\Pi. Whenever φ\varphi is of the form ∃∗∀∗\exists^{*}\forall^{*}, then function RSxi\mathrm{RS}_{x_i} becomes a constant function for all i∈Q∃i\in\mathbb{Q}^{\exists}, because Pre={}\mathrm{Pre}=\{\} and Ξ=⟨⟩\Xi=\langle\rangle. Finally, among all possible response functions, we denote the best response function by BR\mathrm{BR}; i.e., the one that gives optimal probability of satisfying φ\varphi.

Problem Statement

Given a POSG G\mathcal{G} and SL sentence φ=Q1x1…Qnxn  (α1,x1)…(αn,xn).ψ\varphi=Q_1x_1\ldots Q_nx_n\;(\alpha^1,x_1)\ldots(\alpha^n,x_n).\psi with at most one quantifier alternation our goal is to identify the tuple of best-response functions ⟨BRxi⟩i∈Q∃\langle\mathrm{BR}_{x_i}\rangle_{i\in\mathbb{Q}^{\exists}} for all existentially quantified strategy variables ⟨xi⟩i∈Q∃\langle x_i\rangle_{i\in\mathbb{Q}^{\exists}} such that:

⟨BRxi⟩i∈Q∃∈arg⁡max⁡⟨RSxi⟩i∈Q∃  PX∼μ(Xc)[(G,Π,X[xi,αi↦RSxi(Ξ)],0)⊨ψ](1)\langle\mathrm{BR}_{x_i}\rangle_{i\in\mathbb{Q}^{\exists}}\in\underset{\langle\mathrm{RS}_{x_i}\rangle_{i\in\mathbb{Q}^{\exists}}}{\arg\max}\;\underset{\mathcal{X}\sim\mu(\mathcal{X}_{c})}{\mathbb{P}}\left[\left(\mathcal{G},\Pi,\mathcal{X}[x_i,\alpha^i\mapsto\mathrm{RS}_{x_i}(\Xi)],0\right)\models\psi\right] \tag*{(1)}

where PX∼μ(Xc)\underset{\mathcal{X}\sim\mu(\mathcal{X}_{c})}{\mathbb{P}} denotes the probability of satisfying ψ\psi when X\mathcal{X} is sampled uniformly from Xc\mathcal{X}_{c}.

Example. Consider the POSG in Figure 1 and the SL formula φexp\varphi_{\mathrm{exp}} defined below.

φexp=∀x.∃y.  (pirate,x)(ship,y).  □(posship≠pospirate)∧◊(posship=h)\varphi_{\mathrm{exp}}=\forall x.\exists y.\;(\mathrm{pirate},x)(\mathrm{ship},y).\;\Box(\mathrm{pos}_{\mathrm{ship}}\ne\mathrm{pos}_{\mathrm{pirate}})\land\Diamond(\mathrm{pos}_{\mathrm{ship}}=h)

Suppose that the strategy space is as follows (where ∗* denotes an arbitrary history prefix):

Π={π1={(e,R),(∗f,D),(∗c,L),(∗b,L)},π3={(b,L),(∗a,U),(∗d,U),(∗g,R),(e,S)},π2={(e,L),(∗d,S),(∗a,R),(∗b,R)},π4={(b,R),(∗c,U),(∗f,U),(∗i,L),(e,S)}}\Pi=\left\{\begin{aligned} \pi_1&=\{(e,R),(*f,D),(*c,L),(*b,L)\},\quad\pi_3=\{(b,L),(*a,U),(*d,U),(*g,R),(e,S)\},\\ \pi_2&=\{(e,L),(*d,S),(*a,R),(*b,R)\},\quad\pi_4=\{(b,R),(*c,U),(*f,U),(*i,L),(e,S)\} \end{aligned}\right\}

Consider a response function RSy1={(⟨π1⟩,π3),(⟨π2⟩,π3),(⟨π3⟩,π4),(⟨π4⟩,π3)}\mathrm{RS}^{1}_{y}=\{(\langle\pi_1\rangle,\pi_3),(\langle\pi_2\rangle,\pi_3),(\langle\pi_3\rangle,\pi_4),(\langle\pi_4\rangle,\pi_3)\}. Essentially, (⟨π1⟩,π3)(\langle\pi_1\rangle,\pi_3) means that when the pirate (i.e., xx) is mapped to the π1\pi_1, then RSy1\mathrm{RS}^{1}_{y} maps ship ∃\exists-quantified variable yy to π3\pi_3 (i.e., as the response strategy of ship against to pirate). The probability of satisfying the inner-LTL formula ψexp\psi_{\mathrm{exp}} using RSy1\mathrm{RS}^{1}_{y} is computed by considering the following four cases, each corresponding to a complete assignment: Case 1. For (⟨π1⟩,π3)(\langle\pi_1\rangle,\pi_3), a path sampled from the distribution associated with this assignment is (e,b)→R,L(f,a)→D,U(c,d)→L,U(b,g)→L,R(a,h)(e,b)\xrightarrow{R,L}(f,a)\xrightarrow{D,U}(c,d)\xrightarrow{L,U}(b,g)\xrightarrow{L,R}(a,h), which satisfies the inner-LTL formula (i.e., ⊨ψexp\models\psi_{\mathrm{exp}}). Case 2. For (⟨π2⟩,π3)(\langle\pi_2\rangle,\pi_3), a path sampled from the distribution associated with this assignment is (e,b)→L,L(d,a)→S,U(d,d)→S,U(d,g)→S,R(d,h)(e,b)\xrightarrow{L,L}(d,a)\xrightarrow{S,U}(d,d)\xrightarrow{S,U}(d,g)\xrightarrow{S,R}(d,h), which does not satisfy the inner-LTL formula (i.e., ⊭ψexp\not\models\psi_{\mathrm{exp}}, because ship is intercepted at cell dd). Case 3. Similarly, for (⟨π3⟩,π4)(\langle\pi_3\rangle,\pi_4), the induced path satisfies the inner-LTL formula. Case 4. Similarly, for (⟨π4⟩,π3)(\langle\pi_4\rangle,\pi_3), the induced path also satisfies the inner-LTL formula. Hence, the probability of satisfying the SL formula φexp\varphi_{\mathrm{exp}} using RSy1\mathrm{RS}^{1}_{y} is 0.750.75.

However, suppose that in the next iteration we identify another response function RSy2={(⟨π1⟩,π3),(⟨π2⟩,π4),(⟨π3⟩,π4),(⟨π4⟩,π3)}\mathrm{RS}^{2}_{y}=\{(\langle\pi_1\rangle,\pi_3),(\langle\pi_2\rangle,\pi_4),(\langle\pi_3\rangle,\pi_4),(\langle\pi_4\rangle,\pi_3)\}. When the strategy context is ⟨π2⟩\langle\pi_2\rangle, RSy2\mathrm{RS}^{2}_{y} returns π4\pi_4 for ship, and the induced path satisfies the inner-LTL formula. All remaining I/O in RSy2\mathrm{RS}^{2}_{y} satisfy φ\varphi with the same analysis as RSy1\mathrm{RS}^{1}_{y}. Therefore, the probability of satisfying φexp\varphi_{\mathrm{exp}} using RSy2\mathrm{RS}^{2}_{y} increases to 11 (as it remedies Case 2 which RSy1\mathrm{RS}^{1}_{y} fails). Hence, RSy2\mathrm{RS}^{2}_{y} is returned as the best-response function.

Algorithmic Details of SLICR

In this section, we describe the algorithmic details of SLICR (see Figure 2). We first identify the challenges involved in solving the problem formulated in § 4, and then present the components of SLICR designed to address each challenge.

Challenges and Overview of SLICR. First, recall that our objective in § 4 is to find best-response functions that satisfy an SL specification under its binary semantics. We transform this temporal satisfaction problem into a robustness optimization problem using the quantitative semantics (§ 5.1). Second, universally quantified strategy variables may be assigned irrational strategies, resulting in noisy strategy contexts that can mislead the learning agents and degrade their performance. Therefore, SLICR identifies these strategies and prevents the corresponding experiences from affecting the learning process through a shielding mechanism (§ 5.2). Third, agents bound by existentially quantified strategy variables must respond to a wide range of strategies assigned to agents bound by preceding universally quantified variables. Thus, each response function takes as input a strategy context, which is a tuple of strategies. Since each strategy is itself a function, this tuple cannot be directly provided as input to a learnable response function. SLICR infers an embedding of the strategy context from the limited observations available to the agent (§ 5.3).

Quantitative Semantics of Inner-LTL Formulas

To obtain an optimization objective for SL satisfaction, we equip the inner-LTL formula with quantitative semantics ([16]. Given a complete assignment X∈Xc\mathcal{X} \in\mathcal{X}_{c} and those selected by RS for agents bound to existentially quantified variables, we sample a path with length TT from the POSG GG and quantitatively evaluate the inner-LTL formula ψ\psi over this path. Let R\mathbb{R} denote the set of real numbers, Ψ\Psi the set of all LTL formulas, and f:2AP→Rf : 2^{\mathrm{AP}} \to\mathbb{R} a valuation function that assigns a real value to each set of atomic propositions. For a state s∈Ss \in S in GG, quantitative semantics are defined by predicates of the form fL(L(s))f^{\mathsf{L}}(L(s)) (see App. § 12 for full semantics). The robustness function ρ:Traces⁡(Z∗)×Ψ→R\rho: \operatorname{Traces}(\mathcal{Z}^{*}) \times\Psi\to\mathbb{R} assigns a real-valued robustness value to each finite trace and LTL formula, bounded below by ρmin⁡\rho_{\min} and above by ρmax⁡\rho_{\max}. Formally, given an inner-LTL formula ψ\psi and a POSG GG, we reformulate the problem statement introduced in § 4 as follows:

⟨BRxi⟩i∈Q∃∈[arg⁡max⁡⟨RSxi⟩i∈Q∃ PX∼μ(Xc)(ρ(Tr⁡((ζ[0:T]∼GX[xi,αi↦RSxi(Ξ)]),ψ)→⋆ρmax⁡)]i∈Q∃(2)\langle\mathrm{BR}_{x_i}\rangle_{i\in Q_{\exists}} \in[\underset{\langle\mathrm{RS}_{x_i}\rangle_{i\in Q_{\exists}}}{\arg\max}\ \underset{\mathcal{X}\sim\mu(\mathcal{X}_c)}{\mathbb{P}}(\rho(\operatorname{Tr}((\zeta_{[0:T]} \sim G_{\mathcal{X}}[x_i,\alpha_i\mapsto\mathrm{RS}_{x_i}(\Xi)]),\psi)\mathrel{\overset{\star}{\to}}\rho_{\max})]_{i\in Q_{\exists}} \tag*{(2)}

where →⋆\mathrel{\overset{\star}{\to}} denotes convergence. That is, the tuple of best-response functions ⟨BRxi⟩i∈Q∃\left\langle\mathrm{BR}_{x_i}\right\rangle_{i\in Q_{\exists}} maximizes the probability that the robustness of a path sampled from GG under the complete assignment X\mathcal{X} converges to ρmax⁡\rho_{\max}, thereby optimizing the satisfiability of the inner-LTL formula ψ\psi.

Lemma 5.1 Under the order-preservation assumption, any tuple of best-response functions ⟨BRxi⟩i∈Q∃\left\langle\mathrm{BR}_{x_i}\right\rangle_{i\in Q_{\exists}} that maximizes Eq. (2) also solves the optimization problem stated in § 4.

Shielding from Noisy Strategies

Since universally quantified variables may be assigned any strategy from Π\Pi, the resulting strategy contexts may contain irrational strategies that hinder the learning of ⟨RSxi⟩i∈Q∃\left\langle\mathrm{RS}_{x_i}\right\rangle_{i\in Q_{\exists}}. We define an irrational strategy as an observation-independent strategy that selects actions uniformly at random. To mitigate this issue, before the main learning phase, we train a shield O:H∗→{△,✓}\mathcal{O} : \mathcal{H}^{*} \to\{\triangle,\checkmark\} that classifies the strategy context from the history of an agent bound to an existentially quantified variable as either rational (✓\checkmark) or irrational (△\triangle). Though not a function, we use the inverse of O\mathcal{O} to denote the set of observation histories associated with rational strategies; i.e., O−1(✓)\mathcal{O}^{-1}(\checkmark). Formally, O\mathcal{O} is trained on mm-step histories h[0:m]αi∈H∗h^{\alpha_i}_{[0:m]} \in\mathcal{H}^{*}, for each i∈Q∃i \in Q_{\exists}, collected under rational and irrational strategies assigned to universally quantified variables. Experiences labeled △\triangle are excluded from training, while those labeled ✓\checkmark are included. During the main learning phase, the shield is used only for inference. Further details on shield are provided in Appendix § 13.§ 1.

Learning Best-Response Functions

We now address the optimization problem in Eq. (2). Our learning framework follows the Centralized Training with Decentralized Execution (CTDE) paradigm (Oliehoek et al. (2016)). Conceptually, during centralized training, agents bound to existentially quantified variables have access to observations and actions of agents bound to preceding universally quantified variables. During execution, each agent has access only to its local information.

Robustness Values as Reward Signals. To solve Eq. (2), we derive reward signals that guide the learning of response functions. Given a X∈Xc\mathcal{X} \in\mathcal{X}_{c}, the reward for each αi\alpha_i, where i∈Q∃i \in Q_{\exists}, at step kk is computed as ρ(Tr⁡(ζ[0:k+1],ψ))\rho\left(\operatorname{Tr}\left(\zeta_{[0:k+1]},\psi\right)\right). Given a discount factor γ∈[0,1)\gamma\in[0,1), ⟨BRxi⟩i∈Q∃\left\langle\mathrm{BR}_{x_i}\right\rangle_{i\in Q_{\exists}} are response functions that maximize the expected cumulative discounted robustness:

⟨BRxi⟩i∈Q∃∈[arg⁡max⁡⟨RSxi⟩i∈Q∃ Eζ∼GX[xi,αi↦RSxi(Ξ)]X∼μ(Xc)[∑k=0T−1γkρ(Tr⁡(ζ[0:k+1],ψ))]]i∈Q∃(3)\left\langle\mathrm{BR}_{x_i}\right\rangle_{i\in Q_{\exists}} \in\left[\underset{\left\langle\mathrm{RS}_{x_i}\right\rangle_{i\in Q_{\exists}}}{\arg\max}\ \underset{\zeta\sim G_{\mathcal{X}}\left[x_i,\alpha_i\mapsto\mathrm{RS}_{x_i}(\Xi)\right]}{\mathbb{E}}_{\mathcal{X}\sim\mu(\mathcal{X}_c)}\left[\sum_{k=0}^{T-1}\gamma^{k}\rho\left(\operatorname{Tr}\left(\zeta_{[0:k+1]},\psi\right)\right)\right]\right]_{i\in Q_{\exists}} \tag*{(3)}

Lemma 5.2 If the objective in Eq. (3) strictly preserves the ordering induced by Eq. (2) over well-typed response-function tuples, then every maximizer of Eq. (3) also maximizes Eq. (2).

Note that, in this setting, reward signals are derived from the inner-LTL formula, so all existentially quantified agents receive the same reward. However, more generally, a POSG may assign distinct rewards to individual agents. We can capture this setting by decomposing ψ\psi into agent-specific subformulas, ψ=⋀i∈Q∃ψi\psi= \bigwedge_{i\in\mathbb{Q}^{\exists}}\psi_i, where each ψi\psi_i represents an objective or constraint associated with an agent αi\alpha^i. The reward for agent αi\alpha^i at step kk is then individually computed as ρ(Tr⁡((ζ∼GX)[0:k+1]),ψi)\rho(\operatorname{Tr}((\zeta\sim G_{\mathcal{X}})_{[0:k+1]}),\psi_i). For simplicity, we present the remainder of our algorithm using a single full inner-LTL formula ψ\psi.

Representing Strategy Context. As shown in Eq. (3), for each i∈Q∃i\in\mathbb{Q}^{\exists}, the response function RSxi\mathrm{RS}_{x_i} takes Ξ\Xi as an input. This raises two difficulties. First, Ξ∈Π∣Pre∣\Xi\in\Pi^{|\mathrm{Pre}|} is a ∣Pre∣|\mathrm{Pre}|-tuple of strategies, each of which is itself a function. Therefore, providing this tuple as input to a learnable response function requires a suitable finite-dimensional representation. Second, due to the partial observability of the POSG, each agent αi\alpha^i, where i∈Q∃i\in\mathbb{Q}^{\exists}, must infer this representation from its local history hαi∈H∗h_{\alpha^i}\in\mathcal{H}^*. We associate the strategy-context space Π∣Pre∣\Pi^{|\mathrm{Pre}|} with a latent context space Λ⊆Rd\Lambda\subseteq\mathbb{R}^d, where d∈Z>0d\in\mathbb{Z}_{>0} denotes the dimension of the latent context embedding. Let λ∈Λ\lambda\in\Lambda denote a latent embedding. We call λ\lambda an information-preserving latent context embedding of Ξ\Xi (denoted λΞ\lambda_{\Xi}), if it represents Ξ\Xi without information loss, meaning that Ξ\Xi can be uniquely recovered from λ\lambda.

We are inspired by the agent-modeling approach proposed in Papoudakis et al., 2021a, which uses an encoder-decoder architecture to learn embeddings of other agents from the controlled agent’s local information under partial observability. We define encoder Ew:H∗→ΛE_w:\mathcal{H}^*\to\Lambda, parameterized by ww, that maps the history hαi∈H∗h_{\alpha^i}\in\mathcal{H}^* of any agent αi\alpha^i, where i∈Q∃i\in\mathbb{Q}^{\exists}, to a latent embedding λ∈Λ\lambda\in\Lambda. Next, we define two decoders: an action-reconstruction decoder DwaA:Λ→Δ(A)∣Pre∣D_{w_a}^{A}:\Lambda\to\Delta(\mathcal{A})^{|\mathrm{Pre}|}, and an observation-reconstruction DwoO:Λ→O∣Pre∣D_{w_o}^{O}:\Lambda\to\mathcal{O}^{|\mathrm{Pre}|}, parameterized by waw_a and wow_o, respectively. These decoders map a latent embedding λ∈Λ\lambda\in\Lambda to the reconstructed actions and observations of agents bound to the preceding universally quantified variables, respectively. In addition, we use the latent embedding to predict their actions over the next LL-steps. This prediction encourages the latent embedding to capture information about their future behavior. Formally, we define a future-action predictor Fwf:Λ→Δ(A)∣Pre∣×LF_{w_f}:\Lambda\to\Delta(\mathcal{A})^{|\mathrm{Pre}|\times L}, parameterized by wfw_f, where L∈Z>0L\in\mathbb{Z}_{>0} denotes the prediction window. Further details on computing the latent embedding are provided in Sec. D.2.

Learning Response Functions. Recall that, as defined in § 3 and § 4, each complete assignment X∈Xc\mathcal{X}\in\mathcal{X}_{c} induces a distribution GXG_{\mathcal{X}} over finite paths, from which a path ζ∼GX\zeta\sim G_{\mathcal{X}} is sampled. For each i∈Q∃i\in\mathbb{Q}^{\exists}, we seek a RSxi\mathrm{RS}_{x_i} that maximizes the objective in Eq. (3). Given a Ξ\Xi, the RSxi(Ξ)\mathrm{RS}_{x_i}(\Xi) returns a strategy for variable xix_i and agent αi\alpha^i, where each strategy is a mapping π:H∗→Δ(A)\pi:\mathcal{H}^*\to\Delta(\mathcal{A}). Hence, assigning a strategy π\pi alone does not determine its action distribution during sampling, as π\pi depends on the history observed by αi\alpha^i. As described earlier, we use the latent embedding λΞ\lambda_{\Xi} to represent the strategy context Ξ\Xi. To explicitly represent how the assigned strategies generate actions during learning, we define its equivalent action-level response function RSxia:Λ×H∗→Δ(A)\mathrm{RS}_{x_i}^{a}:\Lambda\times\mathcal{H}^*\to\Delta(\mathcal{A}), which maps a latent embedding and a history to a distribution over the actions.

Now, let ⟨ai⟩i∈I\langle a_i\rangle_{i\in I} and ⟨aj⟩j∈J\langle a_j\rangle_{j\in J} be two action tuples, where I∪J={1,…,n}I\cup J=\{1,\ldots,n\} and I∩J=∅I\cap J=\varnothing. To combine these tuples while preserving the order according to their indices, we use the operator ⊕\oplus, which returns a single tuple ordered by index. Given a complete assignment X∈Xc\mathcal{X}\in\mathcal{X}_c and a tuple of action-level response functions ⟨RSxia⟩i∈Q∃\langle\mathrm{RS}_{x_i}^{a}\rangle_{i\in\mathbb{Q}^{\exists}}, a joint action aa at step kk is defined as:

ak=⟨aik∼RSxia(⋅∣Ew(hα[0:k]i)Ξ∣σ−1(✓),hα[0:k]i)⟩i∈Q∃⊕⟨X(xj)(⋅∣hα[0:k]j)⟩j∈Q∀.a_k=\left\langle a_{i_k}\sim\mathrm{RS}_{x_i}^{a}\left(\cdot\mid E_w(h_{\alpha^i_{[0:k]}})\Xi\mathbin{\vert}_{\sigma^{-1}(\checkmark)},h_{\alpha^i_{[0:k]}}\right)\right\rangle_{i\in\mathbb{Q}^{\exists}}\oplus\left\langle\mathcal{X}(x_j)\left(\cdot\mid h_{\alpha^j_{[0:k]}}\right)\right\rangle_{j\in\mathbb{Q}^{\forall}}.

Notice that we are restricting the inputs of EwE_w and RSxia\mathrm{RS}_{x_i}^{a} by observation histories that yield a rational strategy by the ⋄\diamond during training (and not execution). For simplicity, we write it as

ak∼⟨RSxia(⋅∣λΞ,hα[0:k]i)⟩i∈Q∃⊕⟨X(xj)(⋅∣hα[0:k]j)⟩j∈Q∀,a_k\sim\left\langle\mathrm{RS}_{x_i}^{a}\left(\cdot\mid\lambda_{\Xi},h_{\alpha^i_{[0:k]}}\right)\right\rangle_{i\in\mathbb{Q}^{\exists}}\oplus\left\langle\mathcal{X}(x_j)\left(\cdot\mid h_{\alpha^j_{[0:k]}}\right)\right\rangle_{j\in\mathbb{Q}^{\forall}},

where λΞ=Ew(hα[0:k]i)Ξ∣σ−1(✓)\lambda_{\Xi}=E_w(h_{\alpha^i_{[0:k]}})\Xi\mathbin{\vert}_{\sigma^{-1}(\checkmark)}. Accordingly, the next state is computed as sk+1∼P(⋅∣sk,ak)s_{k+1}\sim\mathcal{P}(\cdot\mid s_k,a_k), where s0∼S0s_0\sim S_0. We now update the learning objective introduced in Eq. (3) to identify the action-level best-response functions, formally:

⟨BRxia⟩i∈Q∃∈[arg max⁡⟨RSxia⟩i∈Q∃ EX∼μ(X)s0∼S0[∑k=0T−1γkρ(Tr⁡(s0→a0⋯→aksk+1),ψ)]]i∈Q∃(4)\left\langle\mathrm{BR}_{x_i}^{a}\right\rangle_{i\in\mathbb{Q}^{\exists}}\in\left[\underset{\left\langle\mathrm{RS}_{x_i}^{a}\right\rangle_{i\in\mathbb{Q}^{\exists}}}{\operatorname{arg\,max}}\ \underset{\mathcal{X}\sim\mu(\mathcal{X})}{\mathbb{E}}_{s_0\sim S_0}\left[\sum_{k=0}^{T-1}\gamma^k\rho\left(\operatorname{Tr}\left(s_0\xrightarrow{a_0}\cdots\xrightarrow{a_k}s_{k+1}\right),\psi\right)\right]\right]_{i\in\mathbb{Q}^{\exists}} \tag*{(4)}

Theorem 5.3 Given a POSG GG and an SL sentence φ\varphi, suppose that λΞ\lambda_{\Xi} is an information-preserving latent embedding of each Ξ\Xi and that the action-level response functions can represent every well-typed response function. Then any ⟨BRxia⟩i∈Q∃\langle\mathrm{BR}_{x_i}^{a} \rangle_{i\in\mathbb{Q}^{\exists}} that maximizes the expected cumulative discounted robustness induces a ⟨BRxi⟩i∈Q∃\langle\mathrm{BR}_{x_i} \rangle_{i\in\mathbb{Q}^{\exists}} that maximizes the objective in Eq. (3). By Lemma 5.2, this tuple also optimizes Eq. (2), and hence, by Lemma 5.1, optimizes the probability of satisfying φ\varphi in GG as defined in § 4.

Experiments and Results

Our experiments target the maximization problem in Eq. (4). Its connection to the objective in Eq. (1) is established theoretically through Theorem 5.3 and Lemmas 5.2 and 5.1, with the resulting guarantees conditional on their stated assumptions.

Implementation Pipeline. We first construct Π\Pi using off-the-shelf MARL algorithms, including IPPO and MAPPO (Yu et al., 2022), VDN (Sunehag et al., 2017), QMIX (Rashid et al., 2018), and QTRAN (Son et al., 2019), together with irrational strategies that select actions uniformly at random. Let ΠTrain\Pi^{\mathrm{Train}} and ΠTest\Pi^{\mathrm{Test}} denote the strategy sets used during training and evaluation, respectively. We evaluate performance in two settings: (1) Seen, where ΠTrain=ΠTest\Pi^{\mathrm{Train}} = \Pi^{\mathrm{Test}}, and (2) Unseen, where ΠTrain∩ΠTest=∅\Pi^{\mathrm{Train}} \cap\Pi^{\mathrm{Test}} = \varnothing. During training phase, we use the quantitative semantics (§ 5.1) to compute robustness-based rewards from the SL formula. For each i∈Q∃i \in\mathbb{Q}^{\exists}, we then train the response function using hαih_{\alpha_i} and λ\lambda with A2C, PPO (Schulman et al., 2017) or IPPO, while the pretrained Π^\hat{\Pi} excludes experiences associated with irrational strategies. We report results over ten independent runs with different random seeds. Further experimental and implementation details are provided in Sec. D.

Benchmarks. We evaluate SLICR on three benchmarks. (1) Predator and Prey (PP) [19]. We use the implementation provided by (Papoudakis et al., 2021a). PP consists of one existentially quantified prey that must be captured by exactly one of three universally quantified predators. We adopt the strategy sets from (Papoudakis et al., 2021b) and develop novel, diverse IPPO, MAPPO, and irrational predator strategies. (2) Google Research Football (GRF) [14]. We evaluate two scenarios. First, in “Run to Score” (R2S), a player (bound to an existentially quantified variable) starts at the midfield and must score against a goalkeeper while five opposing players (bound to universally quantified variables) are chasing from behind. Second, in “Run to Score with two Defenders” (R2S-2DEF), inspired by [21], two of the opposing players are positioned between the existentially quantified player and the goal, while the remaining three are chasing from behind. Third, in “Run to Score with four Defenders” (R2S-4DEF), where four of the opposing players are positioned between the existentially quantified player and the goal, while the one remaining is chasing from behind. To construct a diverse strategy set, we train IPPO, MAPPO, and built-in AI opponent teams with different tactical behaviors. (3) SMAC-HARD [5]. We evaluated our extension with pretrained MARL opponent populations on three maps: 3m, 2s3z, and 3s5z_vs_3z. The objective of the existentially quantified agents is to eliminate all universally quantified agents. To construct a diverse strategies set, we use VDN, QMIX, QTRAN, and built-in AI opponents. Further details on the environment settings, SL formulas, and opponent strategies are provided in App. § 14.

Experimental Organization. We assess SLICR along four dimensions: (1) Comparing SLICR with LIAM (Papoudakis et al., 2021a), an opponent-modeling baseline for partially observable environments. (2) Comparing the ∀∗∃∗\forall^{*}\exists^{*} and ∃∗∀∗\exists^{*}\forall^{*} fragments of the target SL formulas in terms of effectiveness and parameter efficiency. (3) Comparing SLICR and LIAM in the presence of irrational strategies. (4) Investigating how the inner-LTL formula guides and improves learning.

(1) SLICR vs. LIAM. Since SLICR represents strategy context as a latent embedding, we compare it with LIAM, an opponent-modeling method for partially observable settings. Both methods use A2C on PP and PPO on GRF and SMAC-HARD. In PP (see Figure 6), SLICR achieves up to ↑400\uparrow400 and ↑200\uparrow200 more single-predator collisions than LIAM over 100 evaluation episodes in the Seen and Unseen settings, respectively.

Figure 6. Learning Curve (PP)

On the more complex GRF benchmark, SLICR significantly outperforms LIAM. In R2S (see Figure 3a), SLICR surpasses LIAM after 2M training steps and ultimately scores ↑30\uparrow30 and ↑20\uparrow20 more goals over 100 evaluation episodes in the Seen and Unseen settings, respectively. Similarly, in the R2S-DEF scenario (see Figure 3b), SLICR outperforms LIAM, scoring up to ↑30\uparrow30 and ↑35\uparrow35 more goals in the Seen and Unseen settings, respectively. In addition, in the harder R2S-4DEF scenario (see Figure 3c), SLICR outperforms LIAM, scoring up to ↑10\uparrow10 more goals in the Seen and Unseen settings.

Learning curves for SLICR and LIAM across GRF and SMAC-HARD benchmarks

Figure 3. Learning curves for SLICR and LIAM, showing the median and 25th–75th percentiles.

The superiority of SLICR extends to the SMAC-HARD as well. On 3m (see Figure 3d), SLICR achieves up to ↑25%\uparrow25\% and ↑15%\uparrow15\% higher win rates than LIAM in the Seen and Unseen settings, respectively. In the Seen setting, SLICR reaches ≈100%\approx100\% win rate after 400K steps, whereas LIAM does not within the 500K-step training budget. On 2s3z (see Figure 3e), SLICR reaches ≈95%\approx95\% win rate after 400K steps, outperforming LIAM by up to ↑30%\uparrow30\% and ↑20%\uparrow20\% in the Seen and Unseen settings, respectively. The performance of SLICR is particularly substantial on 3s_vs_3z (see Figure 3f). In the Seen setting, SLICR reaches a 100% win rate after ≈700\approx700K steps, while LIAM reaches only ≈40%\approx40\% within the 1M-step training, yielding a gain of ↑60%\uparrow60\%. In the Unseen setting, SLICR achieves ≈90%\approx90\% win rate, whereas LIAM rarely wins, yielding a gain up to ↑90%\uparrow90\%.

We also investigate decentralized learning of action-level best responses in SMAC-HARD using IPPO, since it is the only benchmark with multiple controlled agents (agents bound to existentially quantified variables). On the 3m map (see Figure 3g), we observe that in the Seen setting, SLICR converges to a 100% win rate after ≈400\approx400K training steps, while LIAM achieves ≈80%\approx80\% after 400K training steps. On the 2s3z map (see Figure 3h), SLICR performs slightly better than LIAM in both the Seen and Unseen settings. On 3s_vs_3z (see Figure 3i), similar to the PPO setting, SLICR performs substantially better in both the Seen and Unseen settings. In the Seen setting, SLICR achieves a 100% win rate after ≈700\approx700K steps, while LIAM reaches only ≈60%\approx60\% within the 1M-step training budget, yielding a gain of ↑40%\uparrow40\% points. In the Unseen setting, SLICR achieves a win rate of ≈80%\approx80\%, whereas LIAM achieves ≈10%\approx10\%, yielding a gain of up to ↑70%\uparrow70\% points. Further results are in App. § 15.§ 1.

(2) SLICR ∀∗∃∗\forall^{*}\exists^{*} vs. ∃∗∀∗\exists^{*}\forall^{*}. These two SL fragments induce different learning pipelines. Under ∀∗∃∗\forall^{*}\exists^{*}, each response function is conditioned on the agent’s history and latent embedding (i.e. strategy context) of the preceding universal agents’ strategies, whereas under ∃∗∀∗\exists^{*}\forall^{*}, it uses only the local information. Consequently, the former is more parameter-intensive, as quantified across benchmarks in Table 1. This is expected because solving the ∀∗∃∗\forall^{*}\exists^{*} problem is generally harder; however, it yields adaptive strategies. However, SLICR (∀∗∃∗\forall^{*}\exists^{*}) outperforms SLICR (∃∗∀∗\exists^{*}\forall^{*}) by up to ↑526\uparrow526 and ↑380\uparrow380 in the Seen and Unseen settings, respectively. This improvement is particularly substantial in the GRF scenarios. In R2S, SLICR (∀∗∃∗\forall^{*}\exists^{*}) achieves approximately ×4\times4 and ×3\times3 scores in the Seen and Unseen settings, respectively. Similarly, in R2S-DEF, it achieves approximately ×1.5\times1.5 and ×4\times4 scores, respectively. In contrast, in the SMAC-HARD scenarios, (∀∗∃∗\forall^{*}\exists^{*}) and (∃∗∀∗\exists^{*}\forall^{*}) perform similarly, although (∀∗∃∗\forall^{*}\exists^{*}) performs slightly better in 4/6 cases. This suggests that the heavier (∀∗∃∗\forall^{*}\exists^{*}) pipeline is not necessary for all cases, and (∃∗∀∗\exists^{*}\forall^{*}) can be sufficient. Additional analysis is provided in App. § 15.§ 2.

SLICRPP (# Single-Collision)R2S (# Goal)R2S-DEF (# Goal)3m (WR%)2s3z (WR%)3s_vs_3z (WR%)
#PrmsSU#PrmsSU#PrmsSU#PrmsSU#PrmsSU#PrmsSU
(∀∗∃∗)(\forall^{*}\exists^{*})250K27652749630K4737630K4044636K9989748K9898645K10086
(∃∗∀∗)(\exists^{*}\forall^{*})111K22392369334K1214334K2412445K9687496K9892451K9887

Table 1. Median performance of SLICR across SL fragments using the same inner-LTL specification and training budget. S, U, and WR denote Seen, Unseen, and win rate, respectively.

(3) SLICR vs. LIAM Under Irrational Strategies Figure 4 shows how the shield ◊\lozenge protects SLICR when ΠTrain\Pi_{\mathrm{Train}} contains irrational strategies. Across settings containing 20%, 30%, 40%, or 50% irrational strategies, SLICR (solid lines) achieves up to ↑300\uparrow300 more single-predator collisions than LIAM (corresponding dashed lines). A shield ablation study is provided in App. § 15.§ 3.

Figure 4. Irrational strategies(PP).

(4) Inner-LTL vs. Shaped Reward. Figure 5 compares inner-LTL guidance with shaped rewards. On GRF R2S-DEF (left), guidance from φR2S−DEF\varphi_{\mathrm{R2S-DEF}} enables SLICR to achieve up to ↑15\uparrow15 and ↑20\uparrow20 more goals in the Seen (blue line) and Unseen (orange line) settings, respectively. On 3s_vs_3z (right), guidance from φSMAC\varphi_{\mathrm{SMAC}} improves the win rate by up to ↑30%\uparrow30\% in Seen and ↑35%\uparrow35\% in Unseen. In Seen, both variants eventually approach a 100% win rate, resulting in similar behavior at the end of training, while Unseen gain persists throughout. Additional ablations are provided in App. § 15.§ 4.

Figure 5. Effect of inner-LTL on R2S-DEF (left), 3s_vs_3z (right).

Conclusion

SLICR is a specification-guided MARL framework for partially observable adversarial settings. By employing Strategic Logic, SLICR explicitly reasons about agents’ strategies and their responses to adversaries. Our evaluation on Predator-Prey, Google Research Football, and SMAC-HARD demonstrates that SLICR is effective, scalable, and adaptable across adversarial strategies, improving opponent-modeling baselines by up to 90%.

Limitations. SLICR is limited to SL fragments with at most one quantifier alternation, which we believe are sufficient to express many adversarial RL problems. Also, its theoretical guarantees rely on information-preserving latent embedding, which may be hard to achieve under partial observability. The information-preserving latent embedding condition directly concerns the opponent-strategy information available to SLICR in practice. The remaining assumptions are not prerequisites for executing SLICR, whose practical objective is to learn action-level best-response functions that maximize Eq. (4). These assumptions support the theoretical guarantees connecting this optimization objective to the maximization of satisfaction probability in Eq. (1) of § 4.

AI Use Statement

In this work, we used generative AI tools to implement methods and assist in the writing of proofs. We have not used generative AI tools to help develop theoretical models or conceptual frameworks, formulate mathematical claims, provide critical ingredients for proving mathematical claims, propose or refine hypotheses, design or provide feedback on research methodology or experiments, interpret results, generate synthetic data sets, assist with translation, or lean and reformat dataset, support qualitative and thematic data analysis are not applicable to this work. Additionally, we used generative AI tools for brainstorming and to propose a title or keywords for a research paper. We reviewed all AI-assisted work. We used LLMs to assist with parts of the experimental implementation, and all generated code was tested and verified for correctness. We also used LLMs to review our proofs, provide feedback on their clarity, and edit and polish the manuscript. We take full responsibility for the final content of this work, including all text, claims, code, and artifacts produced with the assistance of generative AI.

Reproducibility Statement

We provide the algorithmic details in § 5, complemented by the experimental setup in § 6. Complete implementation details and hyperparameters are provided in Sec. D, while benchmark configurations are described in Sec. E.

Appendix Outline

  • Appendix B: Proofs

    • B.1: Proof of Lemma 5.1

    • B.2: Proof of Lemma 5.2

    • B.3: Proof of Theorem 5.3

  • Appendix C: Full Quantitative Semantics of Inner-LTL Formulas

  • Appendix D: Experimental Setup and Implementation Details

    • D.1: Details on the Shield

    • D.2: Encoder, Decoders, and Future-Action Prediction

    • D.3: Training the Action-Level Response Functions

  • Appendix E: Benchmark Details

    • E.1: Predator-Prey (PP)

    • E.2: Google Research Football (GRF)

    • E.3: SMAC-HARD

  • Appendix F: Additional Experimental Results

    • F.1: SLICR vs. LIAM

    • F.2: SLICR ∀∗∃∗\forall^*\exists^* vs. ∃∗∀∗\exists^*\forall^*

    • F.3: Shield Ablation Study

    • F.4: Inner-LTL vs. Shaped Reward

  • Appendix G: Computational Resources

Proofs

Proof of Lemma 5.1

Under the order-preservation assumption, any tuple of best-response functions ⟨BRxi⟩i∈Q∃\langle\mathrm{BR}_{x_i}\rangle_{i\in\mathbb{Q}_{\exists}} that maximizes Eq. (2) also solves the optimization problem stated in § 4.

Proof 1. We assume that the convergence objective is order-preserving with respect to satisfaction, meaning that a tuple of response functions with a higher probability of convergence to the maximum robustness value cannot have a lower probability of satisfying the specification. We now begin the proof by let, B=⟨BRxi⟩i∈Q∃\mathcal{B}=\langle\mathrm{BR}_{x_i}\rangle_{i\in\mathbb{Q}_{\exists}} be a tuple of best-response functions that maximizes Eq. (2), and let Tr⁡(ζXB)\operatorname{Tr}(\zeta_{\mathcal{X}}^{\mathcal{B}}) denote a trace sampled under a complete assignment X\mathcal{X} updated by a tuple B\mathcal{B}.

Since ρmax⁡\rho_{\max} is the greatest positive robustness value, convergence to ρmax⁡\rho_{\max} implies positive robustness. By the soundness of the quantitative semantics Li et al. [16], positive robustness implies satisfaction. Therefore,

ρ(Tr⁡(ζXB),ψ)→∗ρmax⁡⟹ρ(Tr⁡(ζXB),ψ)>0⟹Tr⁡(ζXB)⊨ψ.\rho(\operatorname{Tr}(\zeta_{\mathcal{X}}^{\mathcal{B}}),\psi)\mathrel{\stackrel{*}{\to}}\rho_{\max}\quad\Longrightarrow\quad\rho(\operatorname{Tr}(\zeta_{\mathcal{X}}^{\mathcal{B}}),\psi)>0\quad\Longrightarrow\quad\operatorname{Tr}(\zeta_{\mathcal{X}}^{\mathcal{B}})\models\psi.

Thus, convergence to ρmax⁡\rho_{\max} guarantees satisfaction of ψ\psi. By the order-preservation assumption, a tuple with a higher probability of convergence cannot have a lower probability of satisfaction. Since B\mathcal{B} maximizes the probability of convergence in Eq. (2), it also maximizes the probability of satisfying ψ\psi. Hence, maximizing this satisfaction probability is exactly the optimization problem stated in § 4. Therefore, B\mathcal{B} also solves the original optimization problem.

Proof of Lemma 5.2

If the objective in Eq. (3) strictly preserves the ordering induced by Eq. (2) over well-typed response-function tuples, then every maximizer of Eq. (3) also maximizes Eq. (2). Proof 2 Let B\mathcal{B} denote the set of well-typed response-function tuples, and let J2,J3:B→RJ_2, J_3 : \mathcal{B} \to\mathbb{R} denote the objectives in Eq. (2) and Eq. (3), respectively. By assumption, J3J_3 strictly preserves the ordering induced by J2J_2; that is, for any B,B′∈B\mathbf{B}, \mathbf{B}' \in\mathcal{B}, we have:

J2(B)>J2(B′)⟹J3(B)>J3(B′).J_2(\mathbf{B}) > J_2(\mathbf{B}') \quad\Longrightarrow\quad J_3(\mathbf{B}) > J_3(\mathbf{B}').

Let B∗∈arg⁡max⁡B∈BJ3(B)\mathbf{B}^{*} \in\arg\max_{\mathbf{B}\in\mathcal{B}} J_3(\mathbf{B}). Suppose, for contradiction, that B∗\mathbf{B}^{*} does not maximize J2J_2. Then there exists some B^∈B\widehat{\mathbf{B}} \in\mathcal{B} such that:

J2(B^)>J2(B∗).J_2(\widehat{\mathbf{B}}) > J_2(\mathbf{B}^{*}).

By strict order preservation, this implies:

J3(B^)>J3(B∗),J_3(\widehat{\mathbf{B}}) > J_3(\mathbf{B}^{*}),

which contradicts the assumption that B∗\mathbf{B}^{*} maximizes J3J_3. Therefore,

arg⁡max⁡B∈BJ3(B)⊆arg⁡max⁡B∈BJ2(B);\arg\max_{\mathbf{B}\in\mathcal{B}} J_3(\mathbf{B}) \subseteq\arg\max_{\mathbf{B}\in\mathcal{B}} J_2(\mathbf{B});

hence, every maximizer of Eq. (3) also maximizes Eq. (2).

Proof of Theorem 5.3

Given a POSG GG and an SL sentence φ\varphi, suppose that λΞ\lambda_{\Xi} is an information-preserving latent embedding of each Ξ\Xi and that the action-level response functions can represent every well-typed response function. Then any ⟨BRxia⟩i∈Q∃\langle\mathrm{BR}^{a}_{x_i}\rangle_{i\in Q_{\exists}} that maximizes the expected cumulative discounted robustness induces a ⟨BRxi⟩i∈Q∃\langle\mathrm{BR}^{x_i}\rangle_{i\in Q_{\exists}} that maximizes the objective in Eq. (3). By Lemma 5.2, this tuple also optimizes Eq. (2), and hence, by Lemma 5.1, optimizes the probability of satisfying φ\varphi in GG as defined in § 4.

Proof 3 Let us write:

Ba=⟨BRxia⟩i∈Q∃\mathcal{B}^{a} = \langle\mathrm{BR}^{a}_{x_i}\rangle_{i\in Q_{\exists}}

as a tuple of action-level best-response functions maximizing the expected cumulative discounted robustness value. Since λΞ\lambda_{\Xi} is information-preserving for every strategy context Ξ\Xi, the latent representation retains all information required by a well-typed best-response function. Hence, for every BRxia\mathrm{BR}^{a}_{x_i} in the optimal tuple Ba\mathcal{B}^{a}, there exists an induced best-response function BRxi\mathrm{BR}_{x_i} on the original strategy context, such that:

BRxi(Ξ)(h)=BRxia(λΞ,h),\mathrm{BR}_{x_i}(\Xi)(h) = \mathrm{BR}^{a}_{x_i}(\lambda_{\Xi}, h),

and the two functions induce the same action choices given the same history hh, and therefore the same distribution over trajectories. Consequently, for every complete assignment X∈XcX \in\mathcal{X}_{c}, the trajectory distribution induced by Ba\mathcal{B}^{a} in the latent representation coincides with that induced by the corresponding best-response function tuple:

B=⟨BRxi⟩i∈Q∃\mathcal{B} = \langle\mathrm{BR}_{x_i}\rangle_{i\in Q_{\exists}}

in the original representation. In particular, their expected cumulative discounted robustness values are equal:

Ja(Ba)=J3(B),J_a(\mathcal{B}^{a}) = J_3(\mathcal{B}),

where JaJ_a denotes the action-level objective defined immediately before Theorem 5.3 and J3J_3 denotes the objective in Eq. (3).

Because the embedding is information-preserving and the action-level response functions can represent every well-typed response function, every well-typed response tuple has an equivalent action-level tuple that induces the same trajectory distribution and objective value. Therefore, if Ba\mathcal{B}^{a} maximizes JaJ_a, the induced tuple B\mathcal{B} maximizes J3J_3; otherwise, a well-typed tuple with a strictly larger value of J3J_3 would induce a latent-level response tuple with a strictly larger value of JaJ_a, contradicting the optimality of Ba\mathcal{B}^{a}.

Thus,

B∈arg⁡max⁡B∈BJ3.\mathcal{B} \in\arg\max_{\mathcal{B}\in\mathcal{B}} J_3.

By Lemma 5.2, every maximizer of Eq. (3) also maximizes the objective in Eq. (2). Hence,

B∈arg⁡max⁡B∈BJ2.\mathcal{B} \in\arg\max_{\mathcal{B}\in\mathbb{B}} J_2.

Finally, by Lemma 5.1, every maximizer of Eq. (2) solves the optimization problem of § 4 (i.e., it maximizes the probability of satisfying the SL sentence ψ\psi in GG). Therefore, any tuple of optimal latent-level best-response functions Ba\mathcal{B}^{a} induces a tuple B\mathcal{B} that solves the original satisfaction-probability optimization problem formalized in Eq. (1).

Full Quantitative Semantics of Inner-LTL formulas

Below, we present the full quantitative semantics of the inner-LTL formulas of SL, adapted from Li et al. [16].

ρ(Tr⁡(ζ[ℓ:k]),true)=ρmax⁡ρ(Tr⁡(ζ[ℓ:k]),f(L(sℓ)))=f(L(sℓ))ρ(Tr⁡(ζ[ℓ:k]),¬ψ)=−ρ(Tr⁡(ζ[ℓ:k]),ψ)ρ(Tr⁡(ζ[ℓ:k]),Oψ)=ρ(Tr⁡(ζ[ℓ+1:k]),ψ) if (k>ℓ).ρ(Tr⁡(ζ[ℓ:k]),□ψ)=min⁡i∈[ℓ,k)ρ(Tr⁡(ζ[i:k]),ψ)ρ(Tr⁡(ζ[ℓ:k]),◊ψ)=max⁡i∈[ℓ,k)ρ(Tr⁡(ζ[i:k]),ψ)ρ(Tr⁡(ζ[ℓ:k]),ψ1∧ψ2)=min⁡(ρ(Tr⁡(ζ[ℓ:k]),ψ1),ρ(Tr⁡(ζ[ℓ:k]),ψ2))ρ(Tr⁡(ζ[ℓ:k]),ψ1∨ψ2)=max⁡(ρ(Tr⁡(ζ[ℓ:k]),ψ1),ρ(Tr⁡(ζ[ℓ:k]),ψ2))ρ(Tr⁡(ζ[ℓ:k]),ψ1Uψ2)=max⁡i∈[ℓ,k)(min⁡(ρ(Tr⁡(ζ[i:k]),ψ2),min⁡j∈[ℓ,i)ρ(Tr⁡(ζ[j:i]),ψ1)))ρ(Tr⁡(ζ[ℓ:k]),ψ1Tψ2)=max⁡i∈[ℓ,k)(min⁡(ρ(Tr⁡(ζ[i:k]),ψ2),max⁡j∈[ℓ,i)ρ(Tr⁡(ζ[j:i]),ψ1)))\begin{aligned} \rho(\operatorname{Tr}(\zeta_{[\ell:k]}),\mathrm{true}) &= \rho_{\max} \\ \rho(\operatorname{Tr}(\zeta_{[\ell:k]}), f(L(s_{\ell}))) &= f(L(s_{\ell})) \\ \rho(\operatorname{Tr}(\zeta_{[\ell:k]}),\neg\psi) &= -\rho(\operatorname{Tr}(\zeta_{[\ell:k]}),\psi) \\ \rho(\operatorname{Tr}(\zeta_{[\ell:k]}),\mathop{\mathrm{O}}\psi) &= \rho(\operatorname{Tr}(\zeta_{[\ell+1:k]}),\psi)\ \text{if }(k>\ell). \\ \rho(\operatorname{Tr}(\zeta_{[\ell:k]}),\Box\psi) &= \min_{i\in[\ell,k)}\rho(\operatorname{Tr}(\zeta_{[i:k]}),\psi) \\ \rho(\operatorname{Tr}(\zeta_{[\ell:k]}),\Diamond\psi) &= \max_{i\in[\ell,k)}\rho(\operatorname{Tr}(\zeta_{[i:k]}),\psi) \\ \rho(\operatorname{Tr}(\zeta_{[\ell:k]}),\psi_1\land\psi_2) &= \min\left(\rho(\operatorname{Tr}(\zeta_{[\ell:k]}),\psi_1),\rho(\operatorname{Tr}(\zeta_{[\ell:k]}),\psi_2)\right) \\ \rho(\operatorname{Tr}(\zeta_{[\ell:k]}),\psi_1\lor\psi_2) &= \max\left(\rho(\operatorname{Tr}(\zeta_{[\ell:k]}),\psi_1),\rho(\operatorname{Tr}(\zeta_{[\ell:k]}),\psi_2)\right) \\ \rho(\operatorname{Tr}(\zeta_{[\ell:k]}),\psi_1\mathbin{\mathrm{U}}\psi_2) &= \max_{i\in[\ell,k)}\left(\min\left(\rho(\operatorname{Tr}(\zeta_{[i:k]}),\psi_2),\min_{j\in[\ell,i)}\rho(\operatorname{Tr}(\zeta_{[j:i]}),\psi_1)\right)\right) \\ \rho(\operatorname{Tr}(\zeta_{[\ell:k]}),\psi_1\mathbin{\mathrm{T}}\psi_2) &= \max_{i\in[\ell,k)}\left(\min\left(\rho(\operatorname{Tr}(\zeta_{[i:k]}),\psi_2),\max_{j\in[\ell,i)}\rho(\operatorname{Tr}(\zeta_{[j:i]}),\psi_1)\right)\right) \end{aligned}

Experimental Setup and Implementation Details

In this section, we describe the implementation details, architectures, hyperparameters, and loss functions of the models used in our experiments.

Details on Shield

We train a recurrent binary classifier to distinguish rational predator (agent bound to universally quantified variable) compositions from irrational tasks. At each time step, the classifier receives the prey’s (agent bound to existentially quantified variable) current observation concatenated with its five previous actions. The previous action vector is zero at the beginning of each interaction sequence. The architecture consists of a single-layer LSTM with 128 hidden units, followed by a fully connected layer with 64 units, a ReLU activation, and a scalar output layer. The recurrent hidden and cell states are reset independently for each interaction sequence.

Data are collected using a uniform-random prey strategy across m=20m=20 training tasks, comprising of ten rational and ten irrational tasks. For each task, we collect 1,000 training interaction sequences and 200 independent calibration interaction sequences, each lasting 20 steps. Ten interaction sequences from the same task form a training bundle. Their final-step logits are averaged before applying a sigmoid to obtain the bundle’s classification score. The classifier is trained using standard class-weighted binary cross-entropy; the balanced dataset gives equal weights to both classes. Interaction sequence are randomly regrouped within each task at every epoch, and the resulting bundles are shuffled. Training runs for 100 epochs using Adam with a learning rate of 0.001, minibatches of 64 bundles, and gradient-norm clipping at 1.0.

Shield in Deployment. During deployment (main training phase), each collected trajectory receives the stored classification of its opponent task. Experience classified as random is excluded from the actor, critic, and opponent-model losses, while the remaining losses are averaged over retained experience; if none remains in a batch, we skip the update.

Details on Encoder, Decoders and Future-Action Prediction

Encoder (EE). SLICR uses a recurrent encoder to summarize the action-observation history of each agent bound to an existentially quantified variable into a latent context representation. At each time step, the encoder receives the agent’s current local observation concatenated with its previous one-hot-encoded action. The encoder consists of a single-layer LSTM with 128 hidden units, followed by a fully connected layer with 128 units and a ReLU activation. A final linear layer produces a 32-dimensional (d=32d = 32) embedding without an output activation.

Training uses five-step sequences with truncated backpropagation through time, storing the exact recurrent states at each sequence’s start for replay. The encoder is optimized using Adam with a fixed learning rate of 0.0007 and gradient-norm clipping at 0.5.

Action-Reconstruction Decoder (DAD_A). The action-reconstruction decoder predicts the current action of each agent bound to a preceding universally quantified variable from the encoder’s latent context embedding (λ∈Λ⊆R32\lambda\in\Lambda\subseteq\mathbb{R}^{32}). It uses a shared feed-forward network with two fully connected hidden layers of 128 units, each followed by a ReLU activation. Separate linear outputs produce action logits for each agent bound to a preceding universally quantified variable, and a softmax converts these logits into categorical action probabilities. This decoder is trained jointly with the encoder using Adam with a learning rate of 0.0007 and gradient-norm clipping at 0.5.

Observation-Reconstruction Decoder (DOD_O). The observation-reconstruction decoder predicts the agents bound to a preceding universally quantified variable observations from the encoder’s latent context embedding (λ∈Λ⊆R32\lambda\in\Lambda\subseteq\mathbb{R}^{32}). It consists of two fully connected hidden layers with 128 units each, followed by ReLU activations, and a final linear layer that outputs the reconstructed observation vector without an output activation. This branch has separate parameters from the action-reconstruction branch. It is trained jointly with the encoder using Adam with a learning rate of 0.0007 and gradient-norm clipping at 0.5.

Future-Action Predictor (FF). The future-action predictor estimates each agent bound to a preceding universally quantified variable action distribution over the next 5 steps from the encoder’s latent embedding. It consists of two fully connected hidden layers with 128 units each and ReLU activations, followed by a linear output layer. The output is organized by prediction horizon and an agent bound to a preceding universally quantified variable, with a softmax producing a categorical action for each combination. The predictor is trained jointly with the encoder using Adam with a learning rate of 0.0007 and gradient-norm clipping at 0.5.

Training. We jointly train the encoder (EE), observation-reconstruction decoder (DOD_O), action-reconstruction decoder (DAD_A), and future-action predictor (FF) using samples collected. Samples are divided into five-step sequences, and the encoder is replayed from its stored hidden and cell states. Its latent embedding at each step is shared by all three prediction branches. Observation reconstruction (DOwoD_{O_{wo}}) uses a standard squared-error loss. We sum the squared differences between predicted and recorded observation features, multiply by 0.5, and average over retained steps and environments. Action reconstruction (DAwaD_{A_{wa}}) uses standard categorical cross-entropy against the opponents’ recorded actions. The losses are summed across opponents and averaged over retained steps and environments. Future-action predictor (FwfF_{wf}) uses standard categorical cross-entropy against recorded future actions. The loss is averaged over steps, environments, agents bound to a preceding universally quantified variables, and the five prediction horizons. Targets beyond the available rollout or across episode boundaries are excluded.

The combined loss for learning the latent context embedding is calculated as follows:

Lλ=LDO+LDA+0.1LF\mathcal{L}_{\lambda} = \mathcal{L}_{D_O} + \mathcal{L}_{D_A} + 0.1\mathcal{L}_{F}

Gradients from all three terms update the shared encoder, while each prediction branch is updated through its own term. We use a shared Adam optimizer with a learning rate of 0.0007, clipping gradient norms to 0.5 separately for the encoder, decoders, and future-action predictor. Backpropagation is truncated at five-step boundaries, while recurrent states carry information across sequences.

Information-preserving latent context embedding Let w∗w^{\ast} denote the encoder parameters obtained by minimizing the combined loss Lλ\mathcal{L}_{\lambda}. The resulting embedding is λ^=Ew∗(hαio)\hat{\lambda}=E_{w^{\ast}}(h_{\alpha_i}^{o}). By jointly reconstructing current actions and observations and predicting future actions, the encoder is encouraged to preserve the information needed to approximate λ\lambda. However, because the encoder has access only to the agent’s local action-observation history, different strategy contexts may be observationally indistinguishable. Therefore, the learned embedding may only approximate the information-preserving latent context embedding.

Details on Training the Action-level Response Functions

Predator-Prey. SLICR uses A2C algorithm with a single-layer LSTM containing 128 hidden units. The LSTM processes the current observation and previous one-hot action. Its output is concatenated with the current observation and corrected 32-dimensional latent embedding, producing a 174-dimensional input to the actor and critic. Each network contains two independent fully connected hidden layers with 128 units and ReLU activations. The actor produces a categorical distribution over five actions, while the critic produces a scalar value estimate.

GRF. SLICR uses a recurrent PPO algorithm with a 128-unit LSTM. The current observation, 32-dimensional latent embedding, and history output form a 275-dimensional input to the actor and critic. Each network contains three independent fully connected hidden layers with 256 units and ReLU activations. The actor produces a categorical distribution over 19 actions, and the critic produces a scalar value estimate. PPO performs five optimization epochs per rollout update, using a clipping threshold of 0.2 for both the probability ratio and value prediction.

SMAC-HARD. SLICR uses a 128-unit policy LSTM and separate actor and critic networks, each with three 256-unit ReLU hidden layers. Each controlled unit receives its own local observation, previous action, and locally computed latent embedding. Under PPO, response-function parameters are shared across controlled units. Under IPPO, each unit has independent policy LSTM, actor, critic, and future-action-adapter parameters, with its own Adam optimizer; the auxiliary encoder and prediction heads remain shared. In both cases, recurrent hidden and cell states are maintained separately for each unit. Observation and action dimensions depend on the map. Unavailable actions are masked before constructing the categorical action distribution. Both PPO and IPPO use five optimization epochs and clipping thresholds of 0.2 for the probability ratio and value updates.

Training. Across all three benchmarks, the actor and critic share a policy LSTM, which remains separate from EE. Training uses five-step recurrent sequences for A2C and PPO, and 20-step sequences for IPPO. Hidden and cell states are carried across sequences and reset at episode boundaries. The response function’s learning rate remains constant for the first 30% of training and then decreases linearly to one-tenth of its initial value. For both PPO and IPPO, behavior log probabilities, behavior value estimates, and advantages are fixed before optimization begins; recurrent chunks are shuffled between epochs while timestep order within each chunk is preserved. For IPPO, advantages are normalized separately for each controlled unit, and each unit’s policy parameters are updated using an independent Adam optimizer with gradient-norm clipping applied separately per unit. Details on the hyperparameters for training the response functions appear in Table 2.

Table 2: Hyperparameters of the response function of SLICR. Learning rates refer to the actor–critic optimizer.

HyperparameterPPGRFSMAC-HARDSMAC-HARD (IPPO)
AlgorithmA2CPPOPPOIPPO
LSTM layers1111
LSTM hidden units128128128128
Hidden layers per actor/critic2333
Units per hidden layer128256256256
Hidden activationReLUReLUReLUReLU
Opponent embedding dimension32323232
OptimizerAdamAdamAdamAdam
Initial learning rate3×10−43 \times10^{-4}3×10−43 \times10^{-4}7×10−47 \times10^{-4}3×10−43 \times10^{-4}
Final learning rate3×10−53 \times10^{-5}3×10−53 \times10^{-5}7×10−57 \times10^{-5}3×10−53 \times10^{-5}
Learning-rate decay start30%30%30%30%
Learning-rate decay scheduleLinearLinearLinearLinear
Maximum gradient norm0.50.510.010.0
Recurrent sequence length55520
Discount factor γ\gamma0.990.990.990.99
GAE parameter λ\lambda0.950.950.950.95
Entropy coefficient0.010.010.010.01
PPO optimization epochs–555
PPO probability-ratio clipping–0.20.20.2
PPO value clipping–0.20.20.2

Table 2.

Benchmark Details

Predator and Prey

Environment. We used (Papoudakis et al., 2021a) implementation of predator and prey. The predator–prey environment is a two-dimensional arena containing one prey, three predators, and two stationary obstacles. All agents choose among five discrete actions: {Stay,left,right,Up,Down}\{\mathit{Stay},\mathit{left},\mathit{right},\mathit{Up},\mathit{Down}\}. Episodes terminate after 50 steps. The prey has partial observation. It observes its own position and velocity, together with the relative positions of obstacles and predators within visible range.

SL Formula. We used the reward used in Papoudakis et al. (2021a) for the guiding the LIAM for the baseline. For SLICR we use φpp\varphi_{\mathrm{pp}} as the SL formula in our experiments:

φpp≔∀x1 ∀x2 ∀x3 ∃x4 (pred_1,x1)(pred_2,x2)(pred_3,x3)(prey,x4).\varphi_{\mathrm{pp}} \coloneqq\forall x_{1}\ \forall x_{2}\ \forall x_{3}\ \exists x_{4}\ (\mathrm{pred\_1},x_{1})(\mathrm{pred\_2},x_{2})(\mathrm{pred\_3},x_{3})(\mathrm{prey},x_{4}).
□◊Exact_One⁡(pos_pred_1⁡,pos_pred_2⁡,pos_pred_3⁡,pos_prey⁡)∧¬Two&More_Eq⁡(pos_pred_1⁡,pos_pred_2⁡,pos_pred_3⁡,pos_prey⁡)∧¬Out_of_Boundary⁡(pos_prey⁡)\begin{aligned} &\square\Diamond\operatorname{Exact\_One}(\operatorname{pos\_pred\_1},\operatorname{pos\_pred\_2},\operatorname{pos\_pred\_3},\operatorname{pos\_prey}) \mathbin{\land}\\ &\neg\operatorname{Two\&More\_Eq}(\operatorname{pos\_pred\_1},\operatorname{pos\_pred\_2},\operatorname{pos\_pred\_3},\operatorname{pos\_prey}) \mathbin{\land}\\ &\neg\operatorname{Out\_of\_Boundary}(\operatorname{pos\_prey}) \end{aligned}

Although □◊\square\Diamond conventionally expresses a Büchi recurrence condition over infinite traces, under our finite-prefix evaluation it checks whether Exact_One holds at the final step of each prefix. Because we evaluate the robustness of every prefix throughout an episode, this condition rewards repeated occurrences of contact with exactly one predator.

Learning set of Strategies. We have two sets of strategies. The first set adopted from Papoudakis et al. (2021a) contains four heuristic strategies: pursuing the prey, following a randomly selected predator, approaching the nearest other agent, and moving toward the largest absolute relative-coordinate displacement among other agents. It also includes three pretrained IA2C (Papoudakis et al. (2021b)) strategies, three pretrained MADDPG (Lowe et al. [19]), and observation-independent strategies (irrational strategies) that sample uniformly from the five available actions. Opponent tasks are formed by assigning a strategy to each of the three predator slots (Simulating the job of complete assignment X∈Xc\mathcal{X} \in\mathcal{X}_{c}).

Second, we construct a learned set of strategies with four training styles: direct, intercept, flank, and spread. Direct strategies use the environment reward without additional shaping. Intercept strategies are encouraged to approach the prey’s projected position using its current velocity, flank strategies are encouraged to approach from different directions, and spread strategies are encouraged to maintain greater separation between predators. These behaviors are encouraged through reward shaping with a coefficient of 0.05 rather than prescribed action rules. The set of strategies comprises IPPO training strategies with direct, intercept, and flank styles, plus held-out strategies covering new instances, the unseen spread style, and MAPPO (Yu et al. (2022)) opponents. Check more details on the opponent strategy sets in Table 3.

Table 3: Training and evaluation strategy sets in Predator–Prey. Each team contains three predators. D: direct pursuit; I: interception; F: flanking; S: spreading. Tactic counts denote distinct individual strategies.

SettingSeenUnseen
Novel StrategyΠTrain\Pi^{\mathrm{Train}}: Sampled from 30 IPPO 12 D + 9 I + 9 F ΠTest\Pi^{\mathrm{Test}}: 30 fixed teams from IPPOΠTrain\Pi^{\mathrm{Train}}: Sampled from 30 IPPO 12 D + 9 I + 9 F ΠTest\Pi^{\mathrm{Test}}: 21 IPPO + 12 MAPPO
Inspired by LIAMΠTrain\Pi^{\mathrm{Train}}: 4 heuristic + 3 IA2C + 3 MADDPG ΠTest\Pi^{\mathrm{Test}}: 4 heuristic + 3 IA2C + 3 MADDPGΠTrain\Pi^{\mathrm{Train}}: 4 heuristic + 3 IA2C + 3 MADDPG ΠTest\Pi^{\mathrm{Test}}: New Composition from the Training set

Table 3.

Google Research Football (GRF)

Environment. We use two scenarios in Google Research Football ([14]): Academy Run to Score (R2S) with Keeper and a modified version of this scenario (R2S-DEF) and (R2S-4DEF). In both, the agent controls an attacker who starts near midfield with the ball and attempts to score against five defenders and a goalkeeper. In (R2S), all five defenders initially approach from behind the attacker. In (R2S-DEF), two defenders start between the attacker and the goal, while the remaining three approach from behind. and In (R2S-4DEF), four defenders start between the attacker and the goal, while the one remaining approach from behind. We cap episodes at 200 steps in both scenarios, with earlier termination following a goal, the ball leaving play, or a change in possession.

Both scenarios use 19 discrete actions, including movement, passing, shooting, sprinting, dribbling, and tackling. Observations use the 115-dimensional embedding, containing player positions and movement directions, ball information, possession, the active player, and the game mode. In the partially observed setting, opponent positions and movement directions are available within a Euclidean distance of 0.6 in normalized coordinates; otherwise, these values are replaced with -5.

SL Formula. We use the default reward used in ([14]) for the guiding the LIAM for the baseline. For SLICR we use φR2S\varphi_{\mathrm{R2S}} and φR2S−DEF\varphi_{\mathrm{R2S-DEF}} (for R2S-DEF and R2S-4DEF) as the SL formula in our experiments:

φR2S≜∀x1…∀x6∃x7  (def1,x1)(def2,x2)…(def5,x5)(keeper,x6)(atk,x7).\varphi_{\mathrm{R2S}} \triangleq\forall x_{1}\ldots\forall x_{6}\exists x_{7}\;(\mathrm{def}_{1},x_{1})(\mathrm{def}_{2},x_{2})\ldots(\mathrm{def}_{5},x_{5})(\mathrm{keeper},x_{6})(\mathrm{atk},x_{7}).
(Reach_check_1⁡(pos_atk)TWReach_check_2⁡(pos_atk)TW…TW(\operatorname{Reach\_check\_1}(\mathrm{pos\_atk})\mathcal{T}_{W}\operatorname{Reach\_check\_2}(\mathrm{pos\_atk})\mathcal{T}_{W}\ldots\mathcal{T}_{W}
Reach_check_10⁡(pos_atk)TWShot_on_Target⁡(atk)TWScore⁡(atk))\operatorname{Reach\_check\_10}(\mathrm{pos\_atk})\mathcal{T}_{W}\operatorname{Shot\_on\_Target}(\mathrm{atk})\mathcal{T}_{W}\operatorname{Score}(\mathrm{atk}))
∧□¬Terminate⁡(atk)∧□(⋀i=15¬Score⁡(defi))\land\Box\neg\operatorname{Terminate}(\mathrm{atk})\land\Box\left(\bigwedge_{i=1}^{5}\neg\operatorname{Score}(\mathrm{def}_{i})\right)
φR2S-DEF≜∀x1…∀x6∃x7  (def1,x1)(def2,x2)…(def5,x5)(keeper,x6)(atk,x7).\varphi_{\mathrm{R2S\text{-}DEF}} \triangleq\forall x_{1}\ldots\forall x_{6}\exists x_{7}\;(\mathrm{def}_{1},x_{1})(\mathrm{def}_{2},x_{2})\ldots(\mathrm{def}_{5},x_{5})(\mathrm{keeper},x_{6})(\mathrm{atk},x_{7}).
(Reach_check_1⁡(pos_atk)TWReach_check_2⁡(pos_atk)TW…TW(\operatorname{Reach\_check\_1}(\mathrm{pos\_atk})\mathcal{T}_{W}\operatorname{Reach\_check\_2}(\mathrm{pos\_atk})\mathcal{T}_{W}\ldots\mathcal{T}_{W}
Reach_check_10⁡(pos_atk)TWShot_on_Target⁡(atk)TWScore⁡(atk))\operatorname{Reach\_check\_10}(\mathrm{pos\_atk})\mathcal{T}_{W}\operatorname{Shot\_on\_Target}(\mathrm{atk})\mathcal{T}_{W}\operatorname{Score}(\mathrm{atk}))
∧□(⋀i=15¬Ball_Pos⁡(defi))∧□(⋀i=15¬Score⁡(defi))\land\Box\left(\bigwedge_{i=1}^{5}\neg\operatorname{Ball\_Pos}(\mathrm{def}_{i})\right)\land\Box\left(\bigwedge_{i=1}^{5}\neg\operatorname{Score}(\mathrm{def}_{i})\right)

Learning set of Strategies. We construct separate strategy sets for the R2S, R2S-DEF, R2S-4DEF GRF scenarios by pretraining six-player teams against the built-in football AI. Each team contains five outfield players and a goalkeeper, with separate strategies for each player. Every strategy uses a feed-forward network with two 64-unit ReLU hidden layers, mapping a 115-dimensional observation to a categorical distribution over 19 actions. Teams train for one million environment steps with independent random seeds. IPPO uses a separate critic for each player, whereas MAPPO ((Yu et al., 2022)) uses a shared centralized critic during training.

All six players receive the same terminal reward: +1+1 for gaining possession, −1-1 for conceding a goal, and 00 for other episode endings. We add a small behavioral reward at each step, weighted by 0.0010.001, to encourage different defensive styles. Low-block rewards favor positions near the penalty area and designated defensive locations. Medium-block rewards favor a defensive band farther from goal and discourage retreating into the penalty area. Pressing rewards encourage the three closest outfield players to approach the ball. Zonal rewards encourage players to follow assigned defensive regions that shift with the ball, together with a smaller incentive to apply pressure. For each scenario, the strategy set consists of IPPO teams exhibiting low-block, medium-block, and pressing tactics. Independently trained MAPPO teams (Yu et al., 2022), exhibiting low-block, medium-block, pressing, and zonal tactics, are reserved for evaluation. The exact opponent-strategy settings used in our experiments are shown in Table 4.

MapsSeenUnseen
R2SΠTrain\Pi^{\mathrm{Train}}: 4 LB + 3 MB + 3 PR (IPPO). ΠTest\Pi^{\mathrm{Test}}: Same as training.ΠTrain\Pi^{\mathrm{Train}}: 4 LB + 3 MB + 3 PR (IPPO). ΠTest\Pi^{\mathrm{Test}}: 3 LB + 2 MB + 2 PR + 3 ZN (MAPPO).
R2S-DEFΠTrain\Pi^{\mathrm{Train}}: 4 LB + 3 MB + 3 PR (IPPO). ΠTest\Pi^{\mathrm{Test}}: Same as training.ΠTrain\Pi^{\mathrm{Train}}: 4 LB + 3 MB + 3 PR (IPPO). ΠTest\Pi^{\mathrm{Test}}: 3 LB + 2 MB + 2 PR + 3 ZN (MAPPO).
R2S-4DEFΠTrain\Pi^{\mathrm{Train}}: 2 LB + 1 MB + 2 PR (IPPO), 2 AI-0.6 + 3 AI-0.7. ΠTest\Pi^{\mathrm{Test}}: Same as training.ΠTrain\Pi^{\mathrm{Train}}: 2 LB + 1 MB + 2 PR (IPPO), 2 AI-0.6 + 3 AI-0.7. ΠTest\Pi^{\mathrm{Test}}: 2 LB + 1 MB + 1 PR + 1 ZN (MAPPO), 4 AI-0.8 + 1 AI-0.10.

Table 4. Strategy sets in GRF. LB: low block; MB: medium block; PR: pressing; ZN: zonal. AId_d denotes a built-in AI task at difficulty dd. Seen evaluation uses the training teams. Repeated AI tasks at the same difficulty use separate random streams; difficulty 0.7 is familiar in unseen R2S-4DEF evaluation.

SMAC-HARD

Environment. We use SMAC-HARD [5], an extension of the StarCraft Multi-Agent Challenge (SMAC) (Samvelyan et al., 2019). Whereas standard SMAC uses the built-in StarCraft II AI for the opposing team, SMAC-HARD provides multiplayer maps and an interface for externally controlled enemy strategies. It also introduces extensions for fog of war, unit abilities, terrain, and visibility. These features are inherited from SMAC-HARD. We extend SMAC-HARD by integrating PyMARL to train enemy-team strategies and deploy their frozen checkpoints as opponent populations. Our implementation supports learned, scripted, and built-in-AI opponents, with explicit task IDs defining controlled training and seen/unseen evaluation splits. We expose opponent action labels and physical features for auxiliary supervision while preserving the allied agents’ original observations. We synchronize all participating clients so that each environment transition advances exactly eight frames. Each episode starts with fresh, living teams, and simulation step and reset failures raise errors rather than being recorded as battle losses. Games are restarted between episodes when needed to avoid the simulation time limit, while preserving training progress. Evaluation preserves the training random-number states and performs no parameter updates. In our experiments, we use the 3s_vs_3z map, where the first team contains three Stalkers opposing three Zealots, the 3m map, where each team contains three Marines, and the 2s3z, where each team contains two Stalkers and three Zealots. Agents receive local SMAC observations and select available movement, stop, and targeted attack actions. The first-team agents are bound to existentially quantified variables, while the second-team agents are bound to universally quantified variables.

SL Formula. We use the shaped reward introduced in [5] (Samvelyan et al. 2019) for the guiding LIAM for the baseline. For SLICR we use φSMAC\varphi_{\mathrm{SMAC}} as the SL formula in our experiments:

φSMAC≔∀x1…xl∃y1…ym (ene1,x1)…(enel,xl)(ally1,y1)…(allym,ym)[Diff⁡(Diff⁡(Sum⁡(Health_ene_1,…,Health_ene_l),Sum⁡(Health_prev_ene_1,…,Health_prev_ene_l)),Diff⁡(Sum⁡(health_ally_1,…,health_ally_m),Sum⁡(health_prev_ally_1,…,health_prev_ally_m))]UWEliminate⁡(ene_1,…,ene_l) UW Victory⁡(ally_1,…,ally_m)\varphi_{\mathrm{SMAC}} \coloneqq\forall x_1 \ldots x_l \exists y_1 \ldots y_m \, (\mathrm{ene}_1,x_1)\ldots(\mathrm{ene}_l,x_l)(\mathrm{ally}_1,y_1)\ldots(\mathrm{ally}_m,y_m) [ \begin{aligned} &\operatorname{Diff}(\operatorname{Diff}(\operatorname{Sum}(\mathrm{Health\_ene\_1},\ldots,\mathrm{Health\_ene\_l}),\\ &\qquad\operatorname{Sum}(\mathrm{Health\_prev\_ene\_1},\ldots,\mathrm{Health\_prev\_ene\_l})),\\ &\operatorname{Diff}(\operatorname{Sum}(\mathrm{health\_ally\_1},\ldots,\mathrm{health\_ally\_m}),\\ &\qquad\operatorname{Sum}(\mathrm{health\_prev\_ally\_1},\ldots,\mathrm{health\_prev\_ally\_m})) \end{aligned} ]_{U_W} \operatorname{Eliminate}(\mathrm{ene\_1},\ldots,\mathrm{ene\_l})\ U_W\ \operatorname{Victory}(\mathrm{ally\_1},\ldots,\mathrm{ally\_m})

Learning set of Strategies. We extend SMAC-HARD with an explicit opponent-task interface. Each task selects a complete enemy team at the beginning of an episode, and that team remains active throughout the battle. The interface supports scripted strategies, pretrained PyMARL (Samvelyan et al., 2019) teams, and native StarCraft II AI at different difficulty levels (i.e. 8, 9, 10). We additionally integrate PyMARL with the enemy side, enabling teams trained using VDN, QMIX, and QTRAN to be deployed as fixed opponents. The exact opponent-strategy settings used in our experiments are shown in Table 5.

MapsSeenUnseen
3mΠTrain\Pi^{\mathrm{Train}}: 2×\times VDN + 3×\times QMIX, ΠTest\Pi^{\mathrm{Test}}: 2×\times VDN + 3×\times QMIXΠTrain\Pi^{\mathrm{Train}}: 2×\times VDN + 3×\times QMIX, ΠTest\Pi^{\mathrm{Test}}: 5×\times QTRAN
2s3zΠTrain\Pi^{\mathrm{Train}}: 2×\times VDN + 3×\times AI-8, ΠTest\Pi^{\mathrm{Test}}: 2×\times VDN + 3×\times AI-8ΠTrain\Pi^{\mathrm{Train}}: 2×\times VDN + 3×\times AI-8, ΠTest\Pi^{\mathrm{Test}}: 2×\times QMIX + 3×\times AI-10
3s_vs_3zΠTrain\Pi^{\mathrm{Train}}: 3×\times VDN + 2×\times QMIX, ΠTest\Pi^{\mathrm{Test}}: 3×\times VDN + 2×\times QMIXΠTrain\Pi^{\mathrm{Train}}: 3×\times VDN + 2×\times QMIX, ΠTest\Pi^{\mathrm{Test}}: 5×\times QTRAN

Table 5. Strategy set setting in SMAC-HARD.

Additional Experimental Results

SLICR vs. LIAM

Figure 7 compares SLICR and LIAM on PP using a new population of opponent strategies constructed with IPPO and MAPPO. In the Seen setting, SLICR (green line) performs similarly to LIAM (blue line) during most of the training process. However, during the final training steps, SLICR achieves up to ↑200 more single predator-prey collisions. In the Unseen setting, the advantage is more substantial, with SLICR (red line) achieving up to ↑500 more single predator-prey collisions than LIAM (orange line) during the final training steps.

Figure 7. Learning curves for SLICR and LIAM on PP with updated population set of strategies for opponents, showing the median number of single-collision of prey and predator and the 25th–75th percentiles.

We also report the number of eliminated agents bound to universally quantified variables in Figure 8 and existentially quantified variables in Figure 9. As shown in Figure 8c in 3s_vs_3z map, SLICR (green line) eliminates all agents bound to universally quantified variables in the Seen setting. In the Unseen setting, SLICR (red line) eliminates nearly all such agents, whereas LIAM (orange line) eliminates only approximately half of them. Similarly, on the 3s_vs_3z map (see Figure 9c), SLICR (green line) preserves two agents bound to existentially quantified variables in the Seen setting. In the Unseen setting, SLICR (red line) preserves approximately two agents, whereas LIAM (orange line) loses nearly all of them.

Learning curves for SLICR and LIAM on SMAC-HARD

Figure 8. Learning curves for SLICR and LIAM on SMAC-HARD, showing the median number of eliminated opponents (universally quantified) and the 25th–75th percentiles.

Learning curves for SLICR and LIAM on SMAC-HARD

Figure 9. Learning curves for SLICR and LIAM on SMAC-HARD, showing the median number of eliminated Allied Agents (existentially quantified) and the 25th–75th percentiles.

SLICR ∀∗∃∗\forall^{*}\exists^{*} vs. ∃∗∀∗\exists^{*}\forall^{*}

As shown in Table 1, on PP, GRF R2S, and GRF R2S-DEF, SLICR (∀∗∃∗\forall^{*}\exists^{*}) (blue line), (orange line) performs significantly better than SLICR (∃∗∀∗\exists^{*}\forall^{*}) (green line), (red line) in both the Seen and Unseen settings. Although Table 1 shows that SLICR (∀∗∃∗\forall^{*}\exists^{*}) and SLICR (∃∗∀∗\exists^{*}\forall^{*}) achieve similar overall performance on the SMAC-HARD scenarios, their learning curves reveal important differences. As shown in Figs. 10d to 10f, SLICR (∀∗∃∗\forall^{*}\exists^{*}) (blue line), (orange line) converges faster and achieves better results than SLICR (∃∗∀∗\exists^{*}\forall^{*}) (green line), (red line) on the 3m map in both the Seen and Unseen settings.

Ablation Study of the Shield

In addition to the experiments comparing SLICR with LIAM in the presence of irrational strategies, we conduct an ablation study comparing SLICR with SLICR without the shield ∅\varnothing, as shown in Figure 11. The results show that the shield improves the performance of SLICR across all considered proportions of irrational strategies. In particular, when 50% of the strategies are irrational (blue line), the shield enables SLICR to achieve up to ↑250\uparrow250 more single-predator collisions, with an average gain of approximately ↑100\uparrow100. When the strategy set contains 40% (orange line) or 30% (green line) irrational strategies, the performance gains are smaller but still reach up to ↑150\uparrow150 additional single-predator collisions. Finally, when 20% of the strategies are irrational (red line), the shield continues to provide a positive average performance gain over SLICR without the shield.

Figure 11. Performance gains from the shield under different proportions of irrational strategies.

Figure 10. Learning curves for SLICR ∀∗∃∗\forall^{*}\exists^{*} vs. ∃∗∀∗\exists^{*}\forall^{*}, showing the median and 25th–75th percentiles.

Inner-LTL vs. Shaped Reward.

In addition to GRF R2S-DEF, where we investigate the effect of inner-LTL guidance. In Figure 12, we conduct the same analysis on the GRF R2S scenario. In the Seen setting (blue line), inner-LTL of formula φR2S\varphi_{\mathrm{R2S}} guidance achieves up to ↑10\uparrow10 more goals than the shaped reward. However, in the Unseen setting (orange line), the shaped reward performs better during most of training, with inner-LTL guidance outperforming it only between 2M and 2.5M training steps. We conduct similar experiments on the SMAC-HARD benchmarks. On the 3m map (see Figure 13), inner-LTL guidance achieves up to a ↑18%\uparrow18\% higher win rate early in training in the Seen setting (blue line). However, the gain becomes negligible once both SLICR and SLICR without inner-LTL guidance reach nearly 100% win rates. Similarly, on the 2s3z map (see Figure 14), inner-LTL guidance achieves gains of up to ↑25%\uparrow25\% and ↑20%\uparrow20\% early in training in the Seen (blue line) and Unseen (orange line) settings, respectively. After approximately 200K training steps, both variants reach nearly 100% win rates, and their performance becomes similar.

Figure 12. Gain from inner-LTL guidance over shaped rewards on GRF R2S.

Figure 13. Gain from inner-LTL guidance over shaped rewards on 3m.

Figure 14. Gain from inner-LTL guidance over shaped rewards on SMAC-HARD 2s3z.

Computational Resources

The experimental platform consisted of two AMD EPYC 7742 processors with 128 physical cores and 256 threads, approximately 1 TiB of RAM, and three NVIDIA RTX PRO 6000 Blackwell Max-Q Workstation Edition GPUs with 96 GB of memory each.

References

  1. [1]Rajeev Alur, Thomas A. Henzinger, and Orna Kupferman. Alternating-time temporal logic. J. ACM, 49(5):672–713, September 2002. ISSN 0004-5411. doi: 10.1145/585265.585270. URL https://doi.org/10.1145/585265.585270.
  2. [2]Rajeev Alur, Suguman Bansal, Osbert Bastani, and Kishor Jothimurugan. Specification-guided reinforcement learning. Commun. ACM, 69(2):80–87, January 2026. ISSN 0001-0782. doi: 10.1145/3744706. URL https://doi.org/10.1145/3744706.
  3. [3]Raven Beutner and Bernd Finkbeiner. Hyper strategy logic. In Proceedings of the 23rd International Conference on Autonomous Agents and Multiagent Systems, AAMAS ’24, pp. 189–197, Richland, SC, 2024. International Foundation for Autonomous Agents and Multiagent Systems. ISBN 9798400704864.arxiv.org/abs/2403.13741
  4. [4]Alper Kamil Bozkurt, Yu Wang, Michael M. Zavlanos, and Miroslav Pajic. Learning optimal strategies for temporal tasks in stochastic games. IEEE Transactions on Automatic Control, 69(11):7387–7402, 2024. doi: 10.1109/TAC.2024.3390848.DOI
  5. [5]Yue Deng, Yan Yu, Weiyu Ma, Zirui Wang, Wenhui Zhu, Jian Zhao, and Yin Zhang. Smac-hard: Enabling mixed opponent strategy script and self-play on smac, 2024. URL https://arxiv.org/abs/2412.17707.
  6. [6]Ingy Elsayed-Aly and Lu Feng. Logic-based reward shaping for multi-agent reinforcement learning, 2022. URL https://arxiv.org/abs/2206.08881.
  7. [7]Aditya Grover, Maruan Al-Shedivat, Jayesh Gupta, Yuri Burda, and Harrison Edwards. Learning policy representations in multiagent systems. In Jennifer Dy and Andreas Krause (eds.), Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 1802–1811. PMLR, 10–15 Jul 2018. URL https://proceedings.mlr.press/v80/grover18a.html.arxiv.org/abs/1806.06464
  8. [8]Ernst Moritz Hahn, Mateo Perez, Sven Schewe, Fabio Somenzi, Ashutosh Trivedi, and Dominik Wojtczak. Multi-agent reinforcement learning for alternating-time logic. In Ulle Endriss, Francisco S. Melo, Kerstin Bach, Alberto José Bugarín Diz, Jose Maria Alonso-Moral, Senén Barro, and Fredrik Heintz (eds.), ECAI 2024 - 27th European Conference on Artificial Intelligence, 19-24 October 2024, Santiago de Compostela, Spain - Including 13th Conference on Prestigious Applications of Intelligent Systems (PAIS 2024), volume 392 of Frontiers in Artificial Intelligence and Applications, pp. 1680–1687. IOS Press, 2024. doi: 10.3233/FAIA240676. URL https://doi.org/10.3233/FAIA240676.
  9. [9]Lewis Hammond, Alessandro Abate, Julian Gutierrez, and Michael Wooldridge. Multi-agent reinforcement learning with temporal logic specifications, 2021. URL https://arxiv.org/abs/2102.00582.
  10. [10]Eric A. Hansen, Daniel S. Bernstein, and Shlomo Zilberstein. Dynamic programming for partially observable stochastic games. In Deborah L. McGuinness and George Ferguson (eds.), Proceedings of the Nineteenth National Conference on Artificial Intelligence, Sixteenth Conference on Innovative Applications of Artificial Intelligence, July 25-29, 2004, San Jose, California, USA, pp. 709–715. AAAI Press / The MIT Press, 2004. URL http://www.aaai.org/Library/AAAI/2004/aaai04-112.php.
  11. [11]Tzu-Han Hsu, Arshia Rafieisoukei, and Borzoo Bonakdarpour. Hyprl: Reinforcement learning of control policies for hyperproperties. In D. Belgarve, C. Zhang, H. Lin, R. Pascanu, P. Koniusz, M. Ghassemi, and N. Chen (eds.), Advances in Neural Information Processing Systems, volume 38, Main Conference, pp. 52298–52329. Curran Associates, Inc., 2025. doi: 10.52202/085713-1743. URL https://proceedings.neurips.cc/paper_files/paper/2025/file/4b58601df13de0fab6498b6d01f13c3-Paper-Conference.pdf.DOI
  12. [12]Kishor Jothimurugan, Suguman Bansal, Osbert Bastani, and Rajeev Alur. Specification-guided learning of Nash equilibria with high social welfare. In International Conference on Computer Aided Verification, pp. 343–363. Springer, 2022.arxiv.org/abs/2206.03348
  13. [13]Harold W Kuhn. A simplified two-person poker. Contributions to Theory of Games, 1(24): 97–103, 2016.
  14. [14]Karol Kurach, Anton Raichuk, Piotr Stanczyk, Michal Zajac, Olivier Bachem, Lasse Espeholt, Carlos Riquelme, Damien Vincent, Marcin Michalski, Olivier Bousquet, and Sylvain Gelly. Google research football: A novel reinforcement learning environment. In The Thirty-Fourth AAAI Conference on Artificial Intelligence, AAAI 2020, The Thirty-Second Innovative Applications of Artificial Intelligence Conference, IAAI 2020, The Tenth AAAI Symposium on Educational Advances in Artificial Intelligence, EAAI 2020, New York, NY, USA, February 7-12, 2020, pp. 4501–4510. AAAI Press, 2020. doi: 10.1609/AAAI.V34I04.5878. URL https://doi.org/10.1609/aaai.v34i04.5878.
  15. [15]Borja G. León and Francesco Belardinelli. Extended markov games to learn multiple tasks in multi-agent reinforcement learning, 2020. URL https://arxiv.org/abs/2002.06000.
  16. [16]Xiao Li, Cristian-Ioan Vasile, and Calin Belta. Reinforcement learning with temporal logic rewards. In 2017 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 3834–3839. IEEE, 2017.arxiv.org/abs/1612.03471
  17. [17]Michael L. Littman. Markov games as a framework for multi-agent reinforcement learning. In Proceedings of the Eleventh International Conference on International Conference on Machine Learning, ICML’94, pp. 157–163, San Francisco, CA, USA, 1994. Morgan Kaufmann Publishers Inc. ISBN 1558603352.DOI
  18. [18]Chanjuan Liu, Jinmiao Cong, Bingcai Chen, Yaochu Jin, and Enqiang Zhu. Guiding multi-agent multi-task reinforcement learning by a hierarchical framework with logical reward shaping, 2024. URL https://arxiv.org/abs/2411.01184.
  19. [19]Ryan Lowe, YI WU, Aviv Tamar, Jean Harb, OpenAI Pieter Abbeel, and Igor Mordatch. Multi-agent actor-critic for mixed cooperative-competitive environments. In I. Guyon, U. Von Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems, volume 30. Curran Associates, Inc., 2017. URL https://proceedings.neurips.cc/paper_files/paper/2017/file/68a9750337a418a86fe06c1991a1d64c-Paper.pdf.arxiv.org/abs/1706.02275
  20. [20]Fabio Mogavero, Aniello Murano, Giuseppe Perelli, and Moshe Y. Vardi. Reasoning about strategies: On the model-checking problem. ACM Trans. Comput. Logic, 15(4), November 2014. ISSN 1529-3785. doi: 10.1145/2631917. URL https://doi.org/10.1145/2631917.
  21. [21]Mateusz Odrowaz-Sypniewski, Jasmine Bayrooti, Ajay Shankar, and Amanda Prorok. Generalized intention modeling in multi-agent reinforcement learning, 2026. URL https://arxiv.org/abs/2605.31318.

Paper details

vlnc:W_npnrvhux
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

generative AI tools, LLMs

View statement
Looking for related papers…
Contents