---
title: 'TERIM: Curriculum-Induced Compositional Specialists for Auditable Cooperative Multi-Agent Reinforcement Learning'
authors: ['Kanat Ozgen']
date: 2026-12-02
categories: ['cs.MA', 'cs.AI', 'cs.LG']
tags: ['multi_agent', 'ai_methodology', 'system_design']
source_id: '2612.00471'
source_url: 'https://arxiv.org/abs/2612.00471'
description: 'We study whether cooperative multi-agent reinforcement learning (MARL) policies can be decomposed into named, reusable compositional primitives, and whether such a decomposition can be made...'
keywords: ['cs.MA', 'cs.AI', 'cs.LG', 'TERIM', 'Curriculum-Induced', 'Compositional']
canonical: 'https://dailyreading.cc/records/arxiv_2612.00471'
---
## TERIM: Curriculum-Induced Compositional Specialists for Auditable Cooperative Multi-Agent Reinforcement Learning
## Kanat Ozgen 1
## Abstract
We study whether cooperative multi-agent reinforcement learning (MARL) policies can be decomposed into named, reusable compositional primitives, and whether such a decomposition can be made interpretable at deployment. We introduce TERIM, a multi-head cooperative MARL architecture in which K = 4 specialist policy decoders are bootstrapped through a rewardshaped curriculum and then dynamically composed by a hierarchical selector, with the active head recorded at each timestep. Each specialist is named by construction, the composition trace is discrete and human-readable, and the trained policy is structurally amenable to inspection by a general-purpose language model. On SMACv2 Protoss 5v5, the full model had a higher mean win rate than the no-curriculum and shared-decoder variants in a 12-condition ablation suite, with substantial variation across seeds. A MAPPO baseline trained with the same interaction budget reaches 0.463 ± 0.057 versus 0.433 ± 0.074 for TERIM, under the same interaction budget. The three-seed comparison does not establish performance equivalence or a reliable difference. Forced-head behavioral diagnostics indicate that the learned specialists retain spatial and targeting signatures partially aligned with their intended behaviors. An LLM-mediated case study illustrates how the recorded routing decisions can be inspected alongside actions and positions in ten episodes from one checkpoint. Code and seedlevel results for the ablation study are available at .
#### *Preprint. December 2, 2026.*
## 1. Introduction
Cooperative multi-agent reinforcement learning has demonstrated strong performance on competitive benchmarks, but in many settings of practical interest aggregate win rate is not the only quantity that matters. In multi-robot coordination, human-AI teaming, and scenarios where operators inspect system behavior after deployment, it can be useful to know which named behavioral primitive each agent is currently executing, how that primitive was selected, and whether the team-level composition is consistent with the tactical situation. This is a question about *compositional structure*: the team policy is treated not as a monolithic mapping from observations to actions but as a dynamic composition of reusable named components.
The dominant paradigm in cooperative MARL, parameter sharing with a single shared policy, provides limited direct structure for this kind of compositional inspection. When all agents execute the same network with different inputs, there is no inspectable variable that distinguishes one agent's behavior from another. Latent role methods such as ROMA [Wang et al.,](#page-9-0) [2020](#page-9-0) and RODE [Wang et al.,](#page-9-1) [2021](#page-9-1) introduce role embeddings or action subsets, but the resulting "components" are discovered from data without committing to a fixed semantic vocabulary. An operator cannot ask "which named strategy is agent 3 currently executing?" and receive a meaningful answer.
We argue that for many applications, the named primitives *should* be specified ex ante. A UAV swarm might require reconnaissance, suppression, escort, and relay modes; a robot team might require loading, transport, unloading, and inspection roles. The compositional question is then how to install a named vocabulary into a multi-head policy reliably, how to dynamically compose those primitives at runtime, and how to make the composition itself inspectable.
We present TERIM as an empirical vehicle for these questions. TERIM maintains K specialist policy decoders, each bootstrapped through a dedicated reward-shaped curriculum stage that installs a distinct behavioral prior. After this compositional warmup, all heads compete in joint training, where a two-stage hierarchical selector proposes a teamlevel primitive and individual agents may deviate to adapt
1Department of Computer Science, Tufts University, Medford, MA, USA. Correspondence to: Kanat Ozgen .

*Figure 1.* The TERIM per-step composition trace rendered live during a SMACv2 Protoss 5v5 episode. Each agent token is annotated with the named compositional primitive currently active for that agent (here, three agents executing GUARD and two executing CHASE); the right sidebar reports the team-level distribution at the same timestep. The trace is discrete and human-readable by construction, which is the property exercised by the LLM-mediated audit in Section [4.5.](#page-5-0)
to local circumstances. The active primitive for each agent at each timestep is logged as a discrete tuple, producing a structured trace of the team's compositional behavior (Figure [1\)](#page-1-0).
Contributions. The contribution of this paper is empirical rather than algorithmic. We do not claim that TERIM sets a new state of the art; in our interaction-matched comparison, it has a final mean win rate of 0.433 versus 0.463 for MAPPO. We use TERIM as a testbed to study:
- 1. Compositional architecture and curriculum. A multihead MARL architecture with reward-shaped curriculum is proposed and a 12-condition multi-seed ablation suite examines associations between compositional design choices and observed outcomes.
- 2. Behavioral diagnostics. A simple forced-head protocol tests whether the learned specialists retain spatial and targeting signatures consistent with their reward shapings, with partial alignment across the measured proxies after joint training.
- 3. Auditable composition. The discrete composition trace is documented, situated as a structural-accountability signal, and shown to be amenable to qualitative inspection by a general-purpose language model. The case study illustrates how an analyst can use the trace to identify individual routing decisions for further investigation.
## 2. Related Work
Compositionality in cooperative MARL. The centralized-training, decentralized-execution (CTDE) paradigm underlies most modern cooperative MARL, with
value-decomposition methods such as VDN [Sunehag](#page-8-0) [et al.,](#page-8-0) [2018](#page-8-0), QMIX [Rashid et al.,](#page-8-1) [2018](#page-8-1), QTRAN [Son](#page-8-2) [et al.,](#page-8-2) [2019](#page-8-2), and on-policy actor-critic variants including COMA [Foerster et al.,](#page-8-3) [2018](#page-8-3), MADDPG [Lowe et al.,](#page-8-4) [2017](#page-8-4), and MAPPO [Yu et al.,](#page-9-2) [2022](#page-9-2). Within this literature, a line of work attempts to recover compositional behavioral structure on top of a shared backbone: ROMA [Wang et al.,](#page-9-0) [2020](#page-9-0) learns continuous role embeddings via specialization and identifiability regularizers, RODE [Wang et al.,](#page-9-1) [2021](#page-9-1) grounds roles in action-effect clustering, and LDSA [Yang et al.,](#page-9-3) [2022](#page-9-3) and ALMA [Iqbal et al.,](#page-8-5) [2022](#page-8-5) push further on dynamic skill assignment and factored task decompositions. These methods produce decompositions that are *discovered* but *latent*: there is no fixed semantic vocabulary the operator can query at runtime. Other compositional tools include zero-shot coordination [Hu](#page-8-6) [et al.,](#page-8-6) [2020](#page-8-6), ad-hoc teamwork [Stone et al.,](#page-8-7) [2010](#page-8-7), and human-AI coordination [Carroll et al.,](#page-7-0) [2019](#page-7-0), all of which highlight that unconstrained shared policies do not naturally produce reusable compositional behavior.
Modular and dynamic architectures. The architectural backbone of TERIM, a discrete gating mechanism selecting among K independent expert modules, has antecedents in hierarchical RL (the options framework [Sutton et al.,](#page-8-8) [1999;](#page-8-8) [Bacon et al.,](#page-7-1) [2017](#page-7-1), FeUdal Networks [Vezhnevets et al.,](#page-8-9) [2017](#page-8-9), HiRO [Nachum et al.,](#page-8-10) [2018](#page-8-10)) and in the mixtureof-experts (MoE) literature [Jacobs et al.,](#page-8-11) [1991;](#page-8-11) [Shazeer](#page-8-12) [et al.,](#page-8-12) [2017;](#page-8-12) [Fedus et al.,](#page-8-13) [2022](#page-8-13). Hierarchical RL typically discovers options from environment reward, with the option "names" remaining arbitrary indices. MoE gating optimizes performance and capacity utilization but identifies router collapse as a central failure mode, addressed via auxiliary load-balancing losses. Modular neural architectures [An](#page-7-2)[dreas et al.,](#page-7-2) [2016;](#page-7-2) [Lake et al.,](#page-8-14) [2017](#page-8-14) are compositional by design but are typically applied outside RL. TERIM differs from each: the compositional vocabulary is fixed by domain semantics rather than discovered, the routing decision is designed to be inspectable rather than purely performanceoptimal, and curriculum-separated warmup (absent from standard MoE training) is the mechanism intended to ground the named primitives before competition opens.
## Interpretability and accountability of composed policies. Doshi-Velez and Kim [Doshi-Velez & Kim,](#page-7-3) [2017](#page-7-3) distinguish intrinsic interpretability from post-hoc explanation. Saliency maps for Atari agents [Greydanus et al.,](#page-8-15) [2018](#page-8-15), reward decomposition [Juozapaitis et al.,](#page-8-16) [2019](#page-8-16), programmatic [Verma et al.,](#page-8-17) [2018](#page-8-17) and decision-tree [Bastani et al.,](#page-7-4) [2018](#page-7-4) extractions all sit on this spectrum. Heuillet et al. [Heuil](#page-8-18)[let et al.,](#page-8-18) [2021](#page-8-18) survey the field and note that multi-agent explainability is comparatively underexplored. In parallel, language models are increasingly used as post-hoc analysts of agent behavior [Wang et al.,](#page-8-19) [2023;](#page-8-19) [Park et al.,](#page-8-20) [2023;](#page-8-20) [Xi](#page-9-4)
et al., 2023); this is straightforward when the underlying agent already produces a discrete, human-readable trace. TERIM's named composition makes this inspection possible without an additional decoding step, and we exercise it in Section 4.5.
# 3. TERIM: Compositional Specialist Architecture
#### **3.1. Setup**
We model cooperative learning as a Dec-POMDP with global state $s_t$ , per-agent observations $o_t^i$ , per-agent actions $a_t^i$ , and shared team reward $r_t$ . We extend the standard formulation with an explicit compositional layer indexed by a finite set $Z = \{1, \ldots, K\}$ of named primitives. At each routing decision the team selector samples a team-level primitive
$$z_t^{\text{team}} \sim \pi_{\text{sel}}(z \mid \{h_t^j\}_j; \theta_{\text{sel}}),$$
(1)
each agent then either executes the team primitive or deviates,
$$z_t^i \sim \pi_{\text{dev}}(z \mid h_t^i, z_t^{\text{team}}; \theta_{\text{dev}}),$$
(2)
where $\pi_{\text{dev}}$ is biased toward $z_t^{\text{team}}$ by a learned persistence bias $\beta$ , and the agent finally executes the specialist policy indexed by its primitive, $a_t^i \sim \pi_{z_t^i}(a \mid h_t^i; \theta_{z_t^i})$ . The discrete tuple $(z_t^{\text{team}}, \{z_t^i\}_i)$ logged at every step is the *composition trace*.
#### 3.2. Architecture
TERIM consists of four components (Figure 2). A shared GRU encoder maps per-agent observations to hidden states $h_t^i \in \mathbb{R}^d$ using a chunk-based recurrent training scheme (L=10). K=4 independent specialist policy decoders $\{\pi_k\}_{k=1}^K$ map $h_t^i$ to action logits over |A| actions; the four named primitives are FOCUS FIRE, KITE, CHASE, and GUARD. A two-stage hierarchical selector first composes a team-level primitive from the concatenation of all agent hidden states, then applies a per-agent deviation mechanism with learned persistence bias $\beta$ (initialized to 2.0). A centralized critic aggregates encoded agent states into a value estimate via flatten-based pooling (used only at training time). All anti-collapse and curriculum mechanisms below are themselves ablated in Section 4.2.
#### 3.3. Compositional Curriculum
Training proceeds in two phases. In each warmup stage $W_k$ $(k \in Z)$ , the selector is locked to primitive k and all agents execute $\pi_k$ under the augmented reward $\tilde{r}_t = r_t + \lambda \, r_k(s_t, a_t)$ , where $r_k$ is a hand-designed shaping that encodes the named primitive: $r_{\text{FF}}$ rewards attacking the lowest-HP enemy and persisting on the same target, $r_{\text{K}}$ rewards engagement at range with a proximity penalty, $r_{\text{C}}$
rewards reducing distance to the nearest enemy, and $r_{\rm G}$ rewards proximity to the lowest-HP ally (full intent descriptions in Section B). The warmup stages are *compositional priors*: each parameter slice is initialized to behave as the named primitive before any composition is attempted.
In the *joint* phase $P_5$ , the selector is unlocked, all heads compete for usage. In the compact full model, head-specific reward shaping remains active throughout joint training: the team receives the average shaping bonus across living agents, scaled by 0.2. In both no-curriculum conditions, all 8M budgeted steps are joint training with shaping disabled. These contrasts therefore change both warmup and the reward used in joint training. The training implementation includes a generalized Jensen-Shannon diversity term $\mathcal{L}_{\text{div}} = -\alpha \frac{1}{K} \sum_{k} D_{\text{KL}}(\pi_k \| \bar{\pi}) \text{ with } \bar{\pi} = \frac{1}{K} \sum_{k} \pi_k \text{ is }$ added to the minimized loss. Here $\pi_k$ is the softmax of the unmasked action logits of head k. The term is evaluated at the last timestep of each recurrent training chunk and averaged across agents and batch elements. Its negative sign rewards divergence when $\alpha > 0$ . The JS weight rises logistically toward 0.1, reaching 0.05 at 2M global steps, near the transition to joint routing. This schedule gives heads time to learn their named shaping objectives before increasing the incentive for their action distributions to stay distinct. The continuing shaping bonus supplies the behavior-specific signal during joint adaptation. Two anti-collapse interventions further support stable composition: an annealed $\varepsilon$ -greedy intervention on the team selector $(0.15 \rightarrow 0.03)$ and a starvation floor that boosts heads whose recent usage falls below 5%.
#### 3.4. Forced-Head Diagnostic Protocol
After training, we evaluate each specialist in isolation by locking all agents to a single primitive k for an entire episode (200 episodes per primitive per seed). The resulting forcedhead win rate, same-target percentage, mean distance to the nearest enemy, and mean distance to the lowest-HP ally test whether the named primitives still exhibit the intended behavioral semantics after joint training.
#### 4. Experiments
#### **4.1. Setup**
All experiments use SMACv2 Protoss scenarios with randomized unit compositions and starting positions; primary evaluation is protoss\_5\_vs\_5. Base hyperparameters follow Yu et al. (2022). The compact ablation variant uses hidden dimension d=64, 16 parallel environments, 256-step rollouts, minibatch size 4096, and 8M total environment steps. The interaction-matched MAPPO baseline (Section 4.3) uses the same environment-step budget. The curated d=256 case study used for Table 3 and the LLM audit

Figure 2. TERIM architecture (single-agent slice; the encoder, deviation head, and specialist decoders are evaluated per agent and share parameters across agents). The shared GRU encodes observation $o_t^i$ into hidden state $h_t^i$ . The team selector composes a team-level primitive $z_t^{\rm team}$ from the joint hiddens (blue "bus" arrow indicates aggregation across agents). The per-agent deviation head conditions on $h_t^i$ and $z_t^{\rm team}$ and is biased toward the team decision by persistence bias $\beta$ . The chosen primitive $z_t^i$ routes the agent to one of K=4 specialist decoders. The shaded *Composition Trace* box marks the discrete tuple logged at every step (dashed arrows). The red callout indicates that each specialist decoder is bootstrapped through a dedicated reward-shaped warmup before joint composition opens.
(Section 4.5) trains for 10M steps. All ablation and baseline cells are averaged over three seeds (42, 123, 456) for both training and forced-head evaluation. Full hyperparameters are in Section A.
#### 4.2. Compositional Decomposition: Ablation Suite
Table 1 reports the full 12-condition ablation suite, including single-component ablations and combined or alternative configurations. The run labels containing no-js denote removal of the diversity term defined in Section 3.3. Figure 3 visualizes the same data sorted by mean win rate. The most important observation is that most single-mechanism differences are small relative to seed noise: the cluster at the bottom of the chart (no-curriculum-no-js, fixed-beta, shared-decoder) has lower observed means than the TERIM full configuration. We therefore describe results in the language of *associations* rather than confirmed causal differences.
Curriculum and task performance. Removing warmup and shaping (no-curriculum) drops mean WR by ~6 percentage points; removing both curriculum and the diversity regularizer (no-curriculum-no-js) yields the lowest mean WR in the suite (0.343). With the diversity term removed, forced-head Kite WR was 0.322, compared with 0.403 for the full model. This comparison measures standalone task performance. The same contrast gives team WRs of 0.397 without JS and 0.433 with scheduled JS. It tests the scheduled term as a whole. Isolating the schedule would require an active constant-weight control, and testing forgetting would require behavioral measurements before and after joint training.
#### Shaping content matters for composition semantics.
identical—shaping (mean WR 0.437) reaches similar aggregate WR to full (0.433) and to random—shaping (0.397), although the three-seed comparison cannot isolate the contribution of the warmup schedule. However, the *semantic content* of the shapings is what makes the composition interpretable: with identical shapings the four slot labels are arbitrary, so an operator cannot meaningfully ask which primitive an agent is executing. Compositional structure and compositional semantics are dissociable axes.
Forced-head WR ordering is consistent with intended **priors.** The forced-head columns of Table 1 show the TERIM full cross-seed mean ordering FocusFire ≥ Kite > Chase $\approx$ Guard. Per-seed orderings vary in the lower positions across the three seeds, reflecting the seed-level noise discussed throughout, but FocusFire is the strongest forcedhead specialist on every seed. That the most-defensive primitive is among the weakest as a single-primitive policy is expected and does not indicate failed training: a purely defensive primitive that never commits to attacking will lose against an active opponent. The ordering supports the interpretation that the heads differ in standalone task performance; this does not establish behavioral distinctness. The identical-shaping forced-head columns are not interpretable in this sense; their win rates do not establish whether the heads converge to the same underlying behavior.
Composition mechanisms and observed usage. Removing the starvation floor (no-starvation) is associated with reduced effective head usage (3.78 vs 3.93) and higher max-head share (36.6% vs 31.0%), indicating concentrated routing. The observed deviation rate was
*Table 1.* Ablation suite on SMACv2 Protoss 5v5 (d = 64), three seeds (42, 123, 456) for both training and forced-head evaluation. WR is the final rolling-100 win rate, mean ± sample std across seeds; MaxHd is the fraction of per-agent assignments at scheduled routing decisions allocated to the most-used head; EffHds is the effective number of active heads (e H where H is head-usage entropy); Dev is per-agent deviation rate. MaxHd, EffHds, and Dev average the final ten logged cumulative joint-phase summaries per seed, then average across seeds. Forced-head WR columns lock all agents to one primitive for an entire episode (200 episodes per head per seed). Bold marks the highest observed mean in the WR and forced-head WR columns; identical-shaping is excluded from the per-head bold candidates because its slot labels are arbitrary by construction (all four warmups use the FocusFire shaping). Dev is descriptive and not bolded.
| Ablation | WR (mean ± std) MaxHd EffHds | | | Dev | FF | Kite | | Chase Guard |
|------------------------------------------------------------------|-------------------------------------------------|-------------------------|----------------------|-----|-------------------------------------------------------------|------|-------------------------|-------------------------|
| full | 0.433 ± 0.074 | 0.310 | 3.93 | | 0.647 0.440 0.403 | | 0.377 | 0.355 |
| Curriculum axis
no-curriculum
no-js
no-curriculum-no-js | 0.373 ± 0.045
0.397 ± 0.050
0.343 ± 0.031 | 0.282
0.318
0.275 | 3.97
3.90
3.98 | | 0.638 0.378 0.332
0.637 0.447 0.322
0.621 0.327 0.362 | | 0.337
0.365
0.322 | 0.372
0.343
0.368 |
| Shaping content axis
identical-shaping
random-shaping | 0.437 ± 0.074
0.397 ± 0.091 | 0.313
0.296 | 3.94
3.95 | | 0.638 0.417 0.485
0.648 0.450 0.463 | | 0.453
0.375 | 0.437
0.403 |
| Anti-collapse axis
no-starvation
no-eps-greedy | 0.370 ± 0.017
0.427 ± 0.021 | 0.366
0.307 | 3.78
3.93 | | 0.651 0.495 0.380
0.503 0.500 0.432 | | 0.370
0.462 | 0.382
0.442 |
| Selector and decoder axis
no-selector
shared-decoder | 0.433 ± 0.070
0.363 ± 0.114 | 0.358
0.308 | 3.80
3.92 | | 0.677 0.457 0.408
0.643 0.392 0.375 | | 0.413
0.405 | 0.423
0.395 |
| Deviation axis
fixed-beta
no-deviation | 0.350 ± 0.053
0.440 ± 0.030 | 0.331
0.452 | 3.85
3.53 | | 0.628 0.428 0.350
0.000 0.520 0.458 | | 0.362
0.440 | 0.385
0.482 |
0.503 for no-eps-greedy and 0.647 for full. The no-selector condition reached the same rounded mean WR as full (0.433), with MaxHd 35.8% and EffHds 3.80. These usage metrics describe final per-agent head assignments. In no-selector, the base team proposal is sampled uniformly from the allowed heads. The learned agentlevel deviation stage remains active. Exploration and starvation overrides can replace the proposal and assign the chosen head to every agent. Uniform base proposals therefore allow nonuniform final assignments.
Independent decoders versus shared decoder. Tying all four primitive slots to a single shared MLP (shared-decoder) reduces mean WR to 0.363 with the largest seed envelope (σ = 0.114). The mean gap to full (0.070) is comparable in magnitude to either condition's std, and should not be over-interpreted from three seeds, but it is the direction one would expect if independent decoders are required to host distinct compositional primitives.
Deviation mechanism: descriptive results. Removing per-agent deviation entirely (no-deviation) yields the highest mean WR in the suite (0.440), the highest forcedhead WR for two of four primitives (excluding identicalshaping), and the most concentrated head usage (MaxHd 45.2%, EffHds 3.53). The trade-off is the loss of per-agent compositional granularity in the trace. Fixing β rather than
learning it (fixed-beta) yields the lowest mean WR among single-mechanism ablations (0.350). The comparison measures outcomes after training each configuration. It leaves open whether a particular deviation helped or hurt the team.
#### 4.3. Interaction-Matched MAPPO Comparison
To establish what compositional decomposition costs in mean WR, we compare to an interaction-matched MAPPO baseline at a matched environment-step budget (16 envs, 256-step rollouts, 8M steps, three seeds), implementing the main MAPPO ingredients in our SMACv2 wrapper (full description in Section [C](#page-11-0). The archived MAPPO wrapper disables the SMACv2 last-action observation feature, while the TERIM wrapper enables it. At the last logged rolling-100 measurement for each seed, MAPPO reached 0.480, 0.400, and 0.510 (seeds 42, 123, and 456), giving 0.463 ± 0.057 (mean and sample standard deviation). TERIM reached 0.433 ± 0.074. The observed difference of 0.030 includes differences in observation settings and training objectives. Learning curves for both methods (with the warmup stages visible in the TERIM panel) are shown in Section [D.](#page-11-1) We do not establish that MAPPO is significantly better at this sample size; the present comparison does not establish equivalence or a reliable performance difference relative to the shared-policy baseline.

*Figure 3.* Ablation sweep on SMACv2 Protoss 5v5, sorted by mean final win rate. Bars show mean over three seeds; horizontal whiskers show one sample standard deviation. The TERIM full configuration and the interaction-matched MAPPO baseline are highlighted with a black border; the dotted vertical line marks the TERIM full mean. Most pairwise differences are small relative to the seed envelope.
## 4.4. Behavioral Diagnostics of Specialists
For the compact model, the same-target statistic is the fraction of attacks directed at the modal target, pooled over steps with at least two attackers. The weakest-ally proxy uses the minimum health-plus-shield entry, including fallen allies. The evaluator sums distances from the other agents to that entry and divides by the agent count accumulated for the nearest-enemy statistic. It is therefore a proxy for spatial arrangement and does not directly measure protection of a living teammate. Head-specific environment seeds also mean that the forced-head evaluations use different scenario draws.
A central question for any compositional architecture is whether the named primitives retain their intended semantics after joint composition. Figure [4](#page-6-1) shows multi-seed forcedhead behavioral signatures on the TERIM full configuration at d = 64. The win-rate panel exhibits the FocusFireleading ordering discussed above; the same-target panel shows FocusFire as the primitive with the highest target concentration; the distance panels indicate that Chase maintains the smallest distance to the nearest enemy among the active-engagement primitives (FocusFire, Kite, Chase) and that Guard maintains the smallest distance to the weakest ally. All four diagnostics carry seed-level noise comparable
to the cross-head spread, so we treat these as suggestive multi-seed evidence of partial alignment after training with continued shaping.
Table [3](#page-6-0) reports the corresponding diagnostics on a curated single-seed d = 256 run. FocusFire had the highest sametarget fraction (0.734). Chase was closest to the nearest enemy among FocusFire, Kite, and Chase, although Guard was closer overall (4.32 versus 4.49 for Chase). The weakestally distance ordering also differed from the multi-seed result: FocusFire was closest (4.32), followed by Guard (4.56). Thus the Guard proximity result from the compact model did not recur in this checkpoint. CHASE achieves a forced-head WR of 0.590 on this curated model, with a team-selector usage proportion of approximately 0.27. These quantities measure different properties and do not establish underuse.
#### 4.5. Illustrative LLM Analysis of Composition Traces
Because the composition trace is discrete and humanreadable by construction, it can be ingested directly by a general-purpose language model with no additional decoding step. We demonstrate this on ten test-mode episodes (5 won, 5 lost) of the curated d = 256 model. Each episode trace (per-step team primitive, per-agent primitive, devi-
*Table 2.* Same-wrapper MAPPO baseline comparison on SMACv2 Protoss 5v5 at matched environment-step budgets. Both methods use 16 parallel environments, 256-step rollouts, and 8M total environment steps over three seeds (42, 123, 456). The published Ellis et al. result is included only as a literature reference because it uses a different high-epoch optimization regime.
| Method | ${\sf Hidden}\ d$ | Params | Steps | Epochs/upd. | Heads | Trace | Win Rate |
|---------------------------------------------------------------------|-------------------|------------|-------|-------------|-------|--------------|-------------------|
| Literature reference
MAPPO (Ellis et al., 2023) | 64 | ~24K | 10M | 20+20 | 1 | × | $\sim 0.65$ |
| Same-wrapper, matched environment-step budgets, 3 seeds (this work) | | | | | | | |
| MAPPO baseline | 64 | $\sim$ 24K | 8M | 5+5 | 1 | × | $0.463 \pm 0.057$ |
| TERIM full | 64 | 141K | 8M | 5 | 4 | $\checkmark$ | $0.433 \pm 0.074$ |
Forced-head behavioral signatures (TERIM full, d = 64, 3 seeds, 200 episodes/head)

Figure 4. Forced-head behavioral signatures on the TERIM full configuration (d = 64, 3 seeds, 200 episodes per primitive per seed). Bars show cross-seed mean and one sample standard deviation. Within each panel, the primitive whose reward shaping encodes that diagnostic is outlined. The proxy orderings provide partial evidence of alignment with the intended compositional priors; they do not establish behavioral semantics.
Table 3. Forced-head behavioral diagnostics on a curated single-seed TERIM d=256 model after 10M steps (200 episodes per primitive, all five agents locked to one specialist). Single seed; not a primary multi-seed result.
| Head | Forced WR | Same-target % | $d_{\rm enemy}$ | $d_{\rm ally}$ |
|------------|-----------|---------------|-----------------|----------------|
| FOCUS FIRE | 0.515 | 0.734 | 4.61 | 4.32 |
| KITE | 0.465 | 0.684 | 4.54 | 4.62 |
| CHASE | 0.590 | 0.695 | 4.49 | 4.86 |
| Guard | 0.475 | 0.666 | 4.32 | 4.56 |
ation flags, actions, agent and enemy HP, positions, and minimum distance to any live enemy) is submitted as a single JSON document to a frontier-class language model (here Anthropic's claude-opus-4-5) with a fixed system prompt that names the four primitives, summarizes their reward semantics, and instructs the analyst to (i) assess team-strategy transitions for tactical plausibility, (ii) diagnose failure modes in lost episodes, and (iv) explicitly issue a no-pattern verdict if the trace shows no meaningful structure. The full system prompt and pipeline are in Section G. Per-episode wall-clock latency averages 43 seconds and the total cost for ten episodes is single-digit US dollars, placing
the pipeline well within the budget of post-hoc inspection.
#### Qualitative observations on switching and deviation.
Across all ten episodes the analyst characterizes teamstrategy transitions in the inspected traces as frequent and weakly correlated with observable tactical state, and peragent deviation as high (typically 3–5 of 5 agents deviating per timestep) and tactically unmotivated. Representative phrasings include "per-agent deviations actively sabotage team coordination" (Episode 5, lost) and "strategy switching is too frequent to be tactically meaningful" (Episode 1, lost). The analyst was given an explicit no-pattern verdict option but did not exercise it; in every episode it identified some local structure while consistently characterizing the trace-level structure as noisy.
**Scope of the audit.** The analyst flagged frequent deviations as potentially disruptive in the ten episodes inspected. The compact-model ablation addresses a different question: after training with deviation disabled, mean WR was 0.440, compared with 0.433 for the full model across three seeds. Neither comparison estimates what would have happened if an agent had followed the team choice at a specific flagged
timestep.
## 5. Discussion
Compositional separation as a design principle. The four locked warmup stages give each decoder an explicit training objective before the selector opens. In the compact ablation, removing both curriculum and diversity regularization yielded the lowest mean WR (0.343) while retaining 3.98 effective heads out of four, compared with 3.93 for the full model. Routing remained broadly distributed in both conditions. The usage counts describe how often slots were selected. Assessing what each slot learned requires separate behavioral diagnostics.
What the composition trace provides and what it does not. The trace records, at every step, the named primitive proposed by the team selector and the named primitive actually executed by each agent. The variables are categorical and human-readable, so an operator can ask "which primitive is agent 3 currently executing?" and receive a categorical routing label, and a downstream tool (such as the LLM analyst above) can produce episode-level summaries. The trace does *not* explain why the selector chose a particular primitive in a particular state, nor does it certify that a primitive labeled KITE is in fact kiting; that question is the subject of the forced-head diagnostics in Section [4.4.](#page-5-2) The trace provides *structural accountability*, not full mechanistic interpretability of the underlying neural composition.
Limitations. Three seeds at a sample standard deviation of ∼ 0.07 cannot distinguish single-condition contrasts of a few percentage points from seed noise; we describe results as associations. The forced-head case study at d = 256 is single-seed. The LLM audit uses ten episodes, one model, and one prompt, without a blinded or alternativerepresentation control; the resulting tactical judgments remain hypotheses. The effect of individual deviations on team outcomes was not measured.
Cross-scale transferability of the compositional decomposition. A compositional architecture should ideally produce primitives that generalize beyond the training distribution. As a preliminary single-seed observation (Appendix F, Table 5), MHSA-encoder variants appeared to adapt better after transfer to 10v10 under continued training, compared to the GRU-encoder variant. Because these runs were exploratory and not part of the controlled multi-seed suite, we treat this as suggestive rather than conclusive. These observations do not isolate the effects of encoder or critic architecture. Multi-seed validation of this transfer signal at multiple team sizes is left to future work.
## 6. Conclusion
We presented TERIM as an empirical testbed for studying curriculum-induced compositional decomposition of cooperative MARL policies into named, dynamically composed specialist primitives. In the regime studied, TERIM reaches mean win rate within the seed envelope of an interactionmatched MAPPO baseline (0.433±0.074 vs 0.463±0.057 over three seeds), under a matched interaction budget. These results do not establish performance equivalence. Forcedhead diagnostics indicate that the learned primitives exhibit spatial and targeting signatures partially aligned with their intended behaviors. An illustrative LLM-mediated audit illustrates episode-level inspection of team and per-agent routing decisions. The current results also expose limitations: the utility of learned routing remains unresolved, and the larger-model behavioral case study and LLM audit remain single-seed. We see TERIM as a useful empirical step toward auditable compositional cooperative policies, with stronger performance claims and broader generalization left to future work.
## Impact Statement
This paper presents work whose goal is to advance the field of machine learning. There are many potential societal consequences of our work, none which we feel must be specifically highlighted here. Beyond the standard considerations, we note that auditable compositional architectures of the kind studied in this paper are intended to support, rather than replace, human oversight of multi-agent autonomous systems; the discrete composition trace is an inspection aid and does not itself certify safe behavior.
## References
Andreas, J., Rohrbach, M., Darrell, T., and Klein, D. Neural module networks. In *Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR)*, 2016.
Bacon, P.-L., Harb, J., and Precup, D. The option-critic architecture. In *Proceedings of the 31st AAAI Conference on Artificial Intelligence*, 2017.
Bastani, O., Pu, Y., and Solar-Lezama, A. Verifiable reinforcement learning via policy extraction. In *Advances in Neural Information Processing Systems (NeurIPS)*, 2018.
Carroll, M., Shah, R., Ho, M. K., Griffiths, T. L., Seshia, S. A., Abbeel, P., and Dragan, A. On the utility of learning about humans for human-AI coordination. In *Advances in Neural Information Processing Systems (NeurIPS)*, 2019.
Doshi-Velez, F. and Kim, B. Towards a rigorous sci-
- ence of interpretable machine learning. *arXiv preprint arXiv:1702.08608*, 2017.
- Ellis, B., Cook, J., Moalla, S., Samvelyan, M., Sun, M., Mahajan, A., Foerster, J., and Whiteson, S. SMACv2: An improved benchmark for cooperative multi-agent reinforcement learning. In *Advances in Neural Information Processing Systems (NeurIPS)*, 2023.
- Fedus, W., Zoph, B., and Shazeer, N. Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity. *Journal of Machine Learning Research*, 23(120):1–39, 2022.
- Foerster, J. N., Farquhar, G., Afouras, T., Nardelli, N., and Whiteson, S. Counterfactual multi-agent policy gradients. In *Proceedings of the 32nd AAAI Conference on Artificial Intelligence*, 2018.
- Greydanus, S., Koul, A., Dodge, J., and Fern, A. Visualizing and understanding Atari agents. In *Proceedings of the 35th International Conference on Machine Learning (ICML)*, 2018.
- Heuillet, A., Couthouis, F., and D´ıaz-Rodr´ıguez, N. Explainability in deep reinforcement learning. *Knowledge-Based Systems*, 214:106685, 2021.
- Hu, H., Lerer, A., Peysakhovich, A., and Foerster, J. "Otherplay" for zero-shot coordination. In *Proceedings of the 37th International Conference on Machine Learning (ICML)*, 2020.
- Iqbal, S., Costales, R., and Sha, F. ALMA: Hierarchical learning for composite multi-agent tasks. In *Advances in Neural Information Processing Systems (NeurIPS)*, 2022.
- Jacobs, R. A., Jordan, M. I., Nowlan, S. J., and Hinton, G. E. Adaptive mixtures of local experts. *Neural Computation*, 3(1):79–87, 1991.
- Juozapaitis, Z., Koul, A., Fern, A., Erwig, M., and Doshi-Velez, F. Explainable reinforcement learning via reward decomposition. In *IJCAI Workshop on Explainable Artificial Intelligence (XAI)*, 2019.
- Lake, B. M., Ullman, T. D., Tenenbaum, J. B., and Gershman, S. J. Building machines that learn and think like people. *Behavioral and Brain Sciences*, 40:e253, 2017.
- Lowe, R., Wu, Y., Tamar, A., Harb, J., Abbeel, P., and Mordatch, I. Multi-agent actor-critic for mixed cooperativecompetitive environments. In *Advances in Neural Information Processing Systems (NeurIPS)*, 2017.
- Nachum, O., Gu, S., Lee, H., and Levine, S. Data-efficient hierarchical reinforcement learning. In *Advances in Neural Information Processing Systems (NeurIPS)*, 2018.
- Park, J. S., O'Brien, J. C., Cai, C. J., Morris, M. R., Liang, P., and Bernstein, M. S. Generative agents: Interactive simulacra of human behavior. In *Proceedings of the 36th Annual ACM Symposium on User Interface Software and Technology (UIST)*, 2023.
- Rashid, T., Samvelyan, M., de Witt, C. S., Farquhar, G., Foerster, J., and Whiteson, S. QMIX: Monotonic value function factorisation for deep multi-agent reinforcement learning. In *Proceedings of the 35th International Conference on Machine Learning (ICML)*, 2018.
- Shazeer, N., Mirhoseini, A., Maziarz, K., Davis, A., Le, Q., Hinton, G., and Dean, J. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. In *International Conference on Learning Representations (ICLR)*, 2017.
- Son, K., Kim, D., Kang, W. J., Hostallero, D. E., and Yi, Y. QTRAN: Learning to factorize with transformation for cooperative multi-agent reinforcement learning. In *Proceedings of the 36th International Conference on Machine Learning (ICML)*, 2019.
- Stone, P., Kaminka, G. A., Kraus, S., and Rosenschein, J. S. Ad hoc autonomous agent teams: Collaboration without pre-coordination. In *Proceedings of the 24th AAAI Conference on Artificial Intelligence*, 2010.
- Sunehag, P., Lever, G., Gruslys, A., Czarnecki, W. M., Zambaldi, V., Jaderberg, M., Lanctot, M., Sonnerat, N., Leibo, J. Z., Tuyls, K., and Graepel, T. Value-decomposition networks for cooperative multi-agent learning based on team reward. In *Proceedings of the 17th International Conference on Autonomous Agents and Multiagent Systems (AAMAS)*, 2018.
- Sutton, R. S., Precup, D., and Singh, S. Between MDPs and semi-MDPs: A framework for temporal abstraction in reinforcement learning. *Artificial Intelligence*, 112(1-2): 181–211, 1999.
- Verma, A., Murali, V., Singh, R., Kohli, P., and Chaudhuri, S. Programmatically interpretable reinforcement learning. In *Proceedings of the 35th International Conference on Machine Learning (ICML)*, 2018.
- Vezhnevets, A. S., Osindero, S., Schaul, T., Heess, N., Jaderberg, M., Silver, D., and Kavukcuoglu, K. FeUdal networks for hierarchical reinforcement learning. In *Proceedings of the 34th International Conference on Machine Learning (ICML)*, 2017.
- Wang, G., Xie, Y., Jiang, Y., Mandlekar, A., Xiao, C., Zhu, Y., Fan, L., and Anandkumar, A. Voyager: An openended embodied agent with large language models. *arXiv preprint arXiv:2305.16291*, 2023.
- Wang, T., Dong, H., Lesser, V., and Zhang, C. ROMA: Multi-agent reinforcement learning with emergent roles. In *Proceedings of the 37th International Conference on Machine Learning (ICML)*, 2020.
- Wang, T., Gupta, T., Mahajan, A., Peng, B., Whiteson, S., and Zhang, C. RODE: Learning roles to decompose multiagent tasks. In *International Conference on Learning Representations (ICLR)*, 2021.
- Xi, Z., Chen, W., Guo, X., He, W., Ding, Y., Hong, B., Zhang, M., Wang, J., Jin, S., Zhou, E., et al. The rise and potential of large language model based agents: A survey. *arXiv preprint arXiv:2309.07864*, 2023.
- Yang, M., Zhao, J., Hu, X., Zhou, W., Zhu, J., and Li, H. LDSA: Learning dynamic subtask assignment in cooperative multi-agent reinforcement learning. In *Advances in Neural Information Processing Systems (NeurIPS)*, 2022.
- Yu, C., Velu, A., Vinitsky, E., Gao, J., Wang, Y., Bayen, A., and Wu, Y. The surprising effectiveness of PPO in cooperative multi-agent games. In *Advances in Neural Information Processing Systems (NeurIPS)*, 2022.
## A. Hyperparameters
Table [4](#page-10-2) lists the hyperparameters used for the compact TERIM variant (d = 64, ablation suite). The curated single-seed d = 256 case study uses the same training schedule with 10M total environment steps.
*Table 4.* Hyperparameters for the compact TERIM variant (d = 64, ablation suite). The curated d = 256 case study uses the same training schedule with 10M total environment steps.
| Parameter | Value | |
|-------------------------------|--------------------------------------------------|--|
| PPO | | |
| Learning rate | 5 × 10−4 | |
| LR schedule | Linear decay within each stage | |
| Clip ϵ | 0.2 | |
| PPO epochs | 5 | |
| GAE λ | 0.95 | |
| Discount γ | 0.99 | |
| Loss | | |
| Value loss coef | 0.5 | |
| Entropy coef | 0.01 | |
| Selector loss coef | 0.5 | |
| Generalized JS diversity coef | 0.1 (max) | |
| Compute (compact, d = 64) | | |
| Parallel envs | 16 | |
| Rollout length | 256 | |
| Minibatch size | 4096 | |
| Gradient clip | 10.0 | |
| GRU chunk length | 10 | |
| Architecture | | |
| GRU hidden dim (d) | 64 (ablation), 256 (curated case study) | |
| Specialist heads K | 4 | |
| Persistence bias β | 2.0 (learned) | |
| Compositional horizon | 30 steps | |
| Anti-collapse | | |
| ε-greedy selector | 0.15 → 0.03 (annealed) | |
| Starvation floor | 5% minimum usage | |
| Curriculum | | |
| Warmup stages | 4 (W1
through W4) | |
| Steps per warmup | 5 × 105 | |
| Joint training steps | ∼ 6 × 106
(ablation) | |
| Total steps | ∼ 8 × 106
(ablation), ∼ 10 × 106
(curated) | |
| Shaping coefficient λ | 0.2 | |
| Scenario | protoss 5 vs 5 | |
| | | |
## B. Reward-Shaping Functions
Each compositional primitive is bootstrapped by a dedicated shaping function rk added to the team reward during warmup with fixed coefficient λ = 0.2. The compact full run also applies these bonuses during joint training.
The four shaping functions below describe the behavioral intent each warmup stage installs; the implementation realizes this intent through piecewise thresholds (full source available with the code release).
FOCUS FIRE. Bonus for selecting the lowest-HP enemy as target and persisting on the same target across consecutive timesteps, encouraging multiple agents to converge on a single weak target.
KITE. Bonus for engaging an enemy (selecting an attack target) while maintaining or increasing distance to the nearest enemy, with a small penalty for proximity below an attack-range threshold.
CHASE. Bonus for reducing distance to the nearest live enemy, combined with a small bonus for engaging that enemy.
**GUARD.** Bonus for proximity to the lowest-HP ally, with an additional bonus when an attack target is also proximate to that ally (interpretable as area defense around a wounded teammate).
#### C. Interaction-Matched MAPPO Implementation
The interaction-matched MAPPO baseline reimplements the shared-parameter GRU actor and centralized GRU critic of Ellis et al. (2023) with the following components, using the lower-epoch interaction-matched regime described in the experiments section.
- Actor. Linear( $o_i \mid \text{agent\_id}$ ) $\rightarrow \text{ReLU} \rightarrow \text{GRUCell}(64) \rightarrow \text{Linear}(|A|)$ . Orthogonal init, final layer init gain 0.01, action distribution masked with available actions before softmax.
- Critic. Linear( $[s \mid o_i \mid agent\_id]$ ) $\rightarrow ReLU \rightarrow GRUCell(64) \rightarrow PopArt(1)$ . Per-agent value estimates aggregated by alive-mean for the joint advantage.
- Optimizers. Separate Adam for actor (lr $5 \times 10^{-4}$ ) and critic (lr $10^{-3}$ ), $\epsilon = 10^{-5}$ , $\gamma = 0.99$ , $\lambda_{\rm GAE} = 0.99$ .
- **PPO.** Clip $\epsilon = 0.2$ , ratio capped at $\exp(16)$ , masked entropy coefficient $10^{-3}$ , joint log-probabilities summed over alive agents.
- Normalizations. Running observation normalization (alive-masked), batch advantage normalization, PopArt value normalization with $\beta = 0.99999$ .
- Schedule. Linear actor LR decay over total steps; fresh actor and critic hidden states reset per episode.
- Observation construction. MAPPO appends an agent identifier to its input. The wrapper sets obs\_last\_action=False for MAPPO and True for the compact TERIM suite.
- **Compute.** 16 parallel envs, 256-step rollouts, 5 actor + 5 critic epochs per update; 8M environment steps over three seeds (42, 123, 456).
## **D.** Learning Curves
Figure 5 shows rolling-100 win rate over training for the full TERIM ablation and the interaction-matched MAPPO baseline. The shaded vertical regions in the TERIM panel mark the four reward-shaped warmup stages ( $W_1$ through $W_4$ ); joint composition ( $P_5$ ) begins at approximately 2M steps.

Figure 5. Rolling-100 win rate over training for the full TERIM ablation (left) and the interaction-matched MAPPO-style baseline (right), at matched environment-step budgets (16 envs, 256-step rollouts, 8M steps, 3 seeds). Light lines are individual seeds; the bold line is the cross-seed mean and the shaded band is the seed envelope.
#### E. Head-Usage Distribution and Collapse Axis
Figure 6 provides two complementary views of the compositional structure across the ablation suite: per-condition strategy proportions (left) and a scatter of max-head share against effective number of active heads, colored by win rate (right).

Figure 6. Compositional structure across the ablation suite. Left: stacked bar chart of strategy usage proportions ( $s_0$ =FOCUS FIRE, $s_1$ =KITE, $s_2$ =CHASE, $s_3$ =GUARD) at the end of joint training, averaged over the three seeds and ordered by mean final win rate. Right: collapse axis plotting max-head share against effective number of active heads, colored by mean final win rate; the dashed lines mark the uniform-usage point. Numbered points correspond to (1) no-curriculum-no-js, (2) fixed-beta, (3) shared-decoder, (4) no-starvation, (5) no-curriculum, (6) random-shaping, (7) no-js, (8) no-eps-greedy, (9) full, (10) no-selector, (11) identical-shaping, (12) no-deviation.
## F. Architectural Snapshots and Collapse Taxonomy
Table 5 summarizes single-seed architectural variants explored during development. The GRU + flatten configuration is the base used for the multi-seed ablation suite. Two further variants (GRU + mean pool, MHSA + mean pool) collapsed during joint training and are summarized below.
Table 5. Development architectural snapshots (single-seed, d=256). GRU + flatten is the base used for the ablation suite. The MHSA variants reach a substantially higher 10v10 transfer/adaptation win rate than the GRU + flatten variant despite a lower training scenario score, but these exploratory runs do not isolate encoder or critic effects.
| Variant | Encoder | Critic | 5v5 WR | 10v10 WR |
|---------|---------|---------|--------|----------|
| V1 | MHSA | Flatten | 30% | 25% |
| V2 | MHSA | Flatten | 33% | 19% |
| V3 | GRU | Flatten | 52% | 11% |
**Lazy collapse (V2).** In V2, head $S_3$ receives more than 74% of agent-step assignments by the end of joint training.
Winner collapse (V5: MHSA + mean pool). In V5, assignments concentrated on a single head (> 70% usage) within 1M joint-training steps.
**Stable co-existence (V3).** When each head is bootstrapped through a semantically distinct warmup with sustained motor commitment (temporal Chase, proximity-sensitive Guard), all four heads maintain non-trivial usage: Focus Fire 28%, Chase 26%, Guard 26%, Kite 20%. These development runs differed in several design choices, so they cannot isolate the contribution of curriculum separation to the observed usage patterns.
Observed instability under high-epoch PPO. Attempts to train TERIM under the high-epoch PPO regime used by the published MAPPO reference were unstable in our implementation: the policy diverged within ∼ 250K joint-training steps with selector logits drifting toward near-uniform usage and several specialist heads eventually producing NaN gradients in the actor softmax. This is reported only as an implementation observation; a complete analysis would require KL divergence, selector entropy, gradient norm, and head-usage trajectories across multiple seeds.
## G. LLM-Mediated Audit Pipeline
This appendix documents the prompt design and pipeline used in the illustrative LLM-mediated trace analysis of Section [4.5.](#page-5-0)
Pipeline overview. A trace generator (audit trace.py) loads the curated d = 256 TERIM checkpoint, runs N testmode episodes on protoss 5 vs 5 with seeds disjoint from training, and records a per-step JSON trace. A second script (llm audit.py) submits each episode trace to a frontier-class language model (here Anthropic's claude-opus-4-5) with a fixed system prompt and a templated user message, saving each response with token-usage metadata.
Per-step trace schema. Each timestep entry contains: the timestep index t; the team primitive name; the per-agent primitive assignments; per-agent deviation flags; the chosen action per agent (mapped to a human-readable label); per-agent absolute and percentage health; per-agent two-dimensional positions; the count of agents and enemies still alive; the total enemy health remaining; and the minimum Euclidean distance from any agent to any live enemy.
System prompt. The system prompt is reproduced verbatim below.
You are a tactical analyst examining the audit trace of a multi-agent reinforcement learning policy in StarCraft II Multi-Agent Challenge v2 (SMACv2), Protoss 5 versus 5.
The policy is a hierarchical multi-head architecture (TERIM). At each timestep: . A team selector chooses one of four named strategies: FocusFire, Kite, Chase, Guard.
. Each of the five agents either follows the team strategy or deviates to one of the other three.
The four strategies have explicit semantics from training-time reward shaping:
- . FocusFire: coordinate fire on a single target (high same-target percentage).
- . Kite: damage at range, maintain distance from nearest enemy.
- . Chase: pursue and reduce distance to nearest enemy.
- . Guard: stay near the lowest-HP ally; defensive posture.
The trace records, per timestep, the team strategy, each agent's strategy, deviation flags, the actions taken, agent HP percentages, agent positions, enemy counts, and minimum distance to any enemy.
Your job: identify whether the audit trail reveals tactically meaningful patterns. Specifically:
- 1. Team strategy transitions. When the team selector switches strategy, can the switch be plausibly explained by tactical conditions visible in the trace (HP drops, enemy proximity, ally deaths)? Or does it look unmotivated?
- 2. Per-agent deviations. When an individual agent deviates from the team strategy, is the deviation tactically sensible (for example, a wounded agent switches to Guard while the team is in Chase)? Or does it look noisy?
- 3. Failure mode (lost episodes only). If the episode was lost, can the failure be diagnosed from the trace?
- 4. No-pattern verdict. If the trace shows no meaningful structure, transitions are random, deviations are uncorrelated with state, say so explicitly. Do not invent patterns.
Be specific: cite timesteps and agent indices. Quote exact values from the trace where they support your claim. Keep the analysis to roughly 200 to 400 words.
Decoding parameters and cost. We use claude-opus-4-5 with max tokens = 1500 and other generation parameters at their API defaults. A single API exchange is performed per episode; we do not perform multi-turn follow-up.
#### Curriculum-Induced Compositional Specialists for Cooperative MARL
Per-episode input length ranged from 19,420 to 31,844 tokens, output completions from 676 to 849 tokens, wall-clock latency from 18 to 58 seconds. The full ten-episode pass uses on the order of 250,000 input tokens and 7,500 output tokens, at total cost on the order of single-digit US dollars at current rates.