arXiv:2609.06586cs.MASep 2026

Manuscript Offprint

arXiv:2609.06586

Certifying cooperation: a novel approach to cooperative multi-agent task generation

Yannick Molinghen, Hugo Charels, Tom Lenaerts

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

Abstract

A shared reward gives agents a common objective, but leaves open when, how and even whether they must cooperate to succeed. We address these questions in the Laser Learning Environment, a multi-agent path-finding environment where cooperation materializes as one agent blocking a laser to let a teammate pass safely. We represent these interactions through temporal cooperation graphs whose timed edges connect helpers to beneficiaries, define six cooperation profiles as overlapping graph predicates, and prove that every cooperative trajectory satisfies at least one. By encoding the environment dynamics and profile predicates as propositional formulae, we distinguish tasks that admit a profile in some winning trajectory from those that require it in every winning trajectory within a specified horizon. Used as filters, these queries turn a random layout sampler into a generator of tasks with certified cooperation requirements. Experiments with five multi-agent reinforcement learning algorithms show that training diversity improves joint success on unseen tasks when cooperation-free solutions exist. When cooperation is required, greater diversity improves individual-agent exits, but joint success remains near zero. Across five profile-certified pools, final exit rates averaged over algorithms separate the pools into four statistically distinguishable levels but this ordering primarily reflects partial completion: policies collect rewards for individual exits but rarely exhibit the profile required for joint success. Our framework exposes this gap between rewarded partial completion and realized cooperation by certifying what cooperation successful completion requires and using temporal cooperation graphs to reveal what policies exhibit.

Keywords: Cooperative MARL, Compilation-based MAPF, Task generation.

1 Introduction

Cooperative multi-agent reinforcement learning [MARL, 1] studies problems in which multiple agents pursue a common objective and are expected to cooperate to achieve it. This joint objective is typically formalized through a reward signal shared by all agents [2–4], as in benchmarks such as the StarCraft Multi-Agent Challenge [SMAC, 5], the multi-agent particle environments [6], and Overcooked [7]. While this convenient optimization objective aligns the agents' incentives, it fails to specify why, when, how, and even whether agents should cooperate to complete the task [8]. Even in those benchmarks, agents may follow independent paths [9], divide work without helping [10], or rely on only part of the team [11]. Shared reward thus expresses a joint goal, not a cooperation requirement.

If a shared reward function does not demand cooperation, one may still hope that a high task return, i.e. the sum of rewards, implies it. This is not the case either. In SMAC, de Witt et al. [12] show that algorithms performing no joint reasoning about teammates can match and even outperform joint-value methods that do. Ellis et al. [13] push this observation further: in many SMAC scenarios, a policy that observes neither allies nor enemies and conditions on the time step alone still achieves non-trivial win rates. A high return need not even indicate cooperation with anyone else: in Overcooked, self-play and population-based agents score well against copies of themselves yet degrade against a human proxy model, and to a lesser extent against real people [7]. Return can even move against behavioural measures of cooperation: in Overcooked, Knott et al. [14] report training changes that improve responses to partner behaviour while leaving return unchanged or reduced. Return therefore conflates competent individual play, convention-following with oneself, and genuine reliance on a teammate. Separating these requires looking into the agents' behaviour by inspecting their joint trajectory.

Even when cooperation is observed in a joint trajectory, cooperative MARL has a limited vocabulary to describe the interdependencies between agents. Zhang et al. [15] formalize Required Cooperation (RC) through minimum-agent solvability, establishing how many execution agents a planning task needs, but not who helps whom or how help is organized over time. Singh et al. [16] distinguish richer patterns of interdependence, but their semi-formal definitions presuppose a task decomposition and offer no procedure to determine which pattern occurred within a joint trajectory. Building on the RC versus non-RC distinction, Biswas et al. [17] measure realized cooperation in Overcooked through constructive interdependence (CI), and show that similar returns can conceal substantially different CI values on a layout where cooperation is optional, while reward and CI align closely on a layout where it is required. Their comparison relies on each layout's RC status being known in advance, which they determine manually from the hand-designed two-agent layouts, limiting the approach to fixed instances. No existing taxonomy describes temporal and directed dependencies between agents, leaving open how well MARL methods perform according to the cooperation structure required by a task, let alone how robust they are to unseen tasks with identical cooperation structures.

Answering this latter question requires diverse task pools with certified cooperation structures. Reinforcement learning overfits small pools of training instances [18].

Yet, MARL work has mostly varied teammates, populations, team compositions, or starting configurations [13, 19–21] rather than cooperation structure, partly because proving solvability is hard in the multi-agent setting. Among cooperative MARL task generators that vary the task itself, POGEMA checks independently that a path exists for each agent [22], and Overcooked generators certify only that a layout is solvable: MEAL checks that each agent can perform a cook-deliver cycle on its own [23], and others that some joint solution exists [24, 25]. Such pools therefore mix tasks that require cooperation with tasks that merely permit it, and offer no control over the shape of the cooperation they require. An exception is the forced-cooperation setting of level-based foraging [26] that hardwires a whole-team simultaneous-pickup constraint rather than deciding anything about the generated instance.

These observations have led us to five questions. RQ1: How can the cooperation realized in a joint trajectory be represented and structured into distinct profiles? RQ2: Can we certify that a task requires cooperation or a specific cooperation profile in every winning trajectory? RQ3: How does requiring cooperation rather than merely admitting it affect the transfer of a learned policy to unseen task instances? RQ4: Do layouts certified for different cooperation profiles differ in learning difficulty? RQ5: Is a reward-aligned metric that credits partial completion a valid proxy for cooperative competence on a task that requires cooperation?

We answer these questions through the Laser Learning Environment [LLE, 27], a grid world in which agents must collect gems then reach exit tiles, and where lasers enforce cooperation: a laser kills any agent that enters its beam unless it has the same colour, in which case it blocks the beam and opens the path to teammates. Laser blocking constitutes a zero-incentive dynamic: the cooperative action is necessary for task completion but yields no direct reward [28]. Throughout this paper, cooperation denotes such trajectory-level assistance: one agent acts in a way that enables another to continue toward task completion. Cooperation is thus an observable property rather than inferred from reward, intention, communication, or visual judgment. To reason about this form of cooperation formally, we model LLE as a bounded-horizon multi-agent path finding (MAPF) problem (Section 3), the foundation on which our contributions build.

Our first methodological contribution (Section 4, RQ1) compiles a trajectory into a temporal cooperation graph 1^{1}, whose vertices are agents and whose directed, time-stamped edges run from helpers to beneficiaries. We structure cooperation into six profiles (asymmetric, sequential, divergent, convergent, interdependent, and fully coupled cooperation) defined as predicates on this graph, and prove they cover every cooperative trajectory. Our second contribution (Section 5, RQ2) lifts these predicates from trajectories to tasks. We compile bounded-horizon LLE dynamics to a polynomial-size propositional formula and encode the cooperation profile predicates on top of it. The resulting queries distinguish whether a layout admits a profile in some winning trajectory from whether it requires that profile in every winning trajectory within the horizon. Used as filters, these queries turn any random layout sampler into a generator of task pools that share a certified cooperation profile rather than mere visual resemblance.

1^{1}The implementation is available at github.com/yamoling/lle.

Our experiments 2^{2} with five state-of-the-art MARL algorithms (Section 6, RQ3–RQ5) show why this distinction matters. On unseen layouts that admit cooperation-free solutions, increasing the training pool from 1 to 500 layouts raises the mean exit rate from 0.308 to 0.810, while joint success rate reaches up to 0.788. On pools certified to require cooperation, however, mean exit rate reaches only 0.294 and joint success rate at most 0.004, indicating that agents transfer partial progress far more readily than reliable cooperative completion. Across the canonical profile-certified pools, the divergent pool has both the lowest final exit rate and the smallest learning gain. In comparison, the convergent pool has the largest mean learning gain. Even at the end of training, at most 1.88% of trajectories realize the profile required by their pool. Task success necessarily realizes that profile, yet occurs only 332 times in 15 750 000 evaluations across all checkpoints and both pools. These results extend the distinction between task reward and realized cooperation studied by Biswas et al. [17] to generated pools with formally certified cooperation requirements. They show that requiring cooperation for complete task success does not make a metric that credits partial completion a reliable indicator of cooperative competence. Our certificates establish what successful trajectories must exhibit, while trajectory analysis reveals how rarely learned policies realize those requirements.

References (53)