Manuscript Offprint
arXiv:2610.32726The Butterfly Defects: Tracing Cooperation in LLM Agent Networks
Abstract
As large language models (LLMs) increasingly operate as interconnected agents, a fundamental question emerges: does individual cooperation translate into collective cooperation? We investigate this question through the Iterated Prisoner's Dilemma (IPD), moving from dyadic interactions to homogeneous and heterogeneous networks of open-weight LLMs. Our findings reveal that cooperation is highly sensitive to model composition and seemingly minor linguistic changes. Models that cooperate with identical peers can shift toward defection in mixed populations. A simple uncertainty cue can increase or decrease cooperation, redistribute costs, and affect unexposed agents several hops away. Even reversing action-label order can dramatically alter behavior, with uncertainty framing sometimes amplifying this sensitivity. Together, these findings challenge the notion of cooperation as a stable model-level property, revealing how strategic behavior depends on interaction partners, network positions, and the language used to frame decisions.
1 Introduction
As LLMs move from isolated tasks to interacting agents, a central question arises: what determines whether cooperation emerges, persists, or breaks down? In multi-agent environments, strategic behavior depends not only on individual capabilities but also on how rational agents adapt to one another under conflicting incentives. Game-theoretic social dilemmas, particularly the Iterated Prisoner's Dilemma (IPD), provide a controlled framework for stressing cooperation and strategic adaptation over repeated interactions (Fontana et al., 2025; Akata et al., 2025). However, dyadic settings capture only part of this challenge: in decentralized networks, local decisions become interdependent, potentially shaping collective outcomes.
One may intuitively expect cooperative agents to form a cooperative network, yet this need not hold.

Figure 1: Overview. (a) Action broadcast to neighbors. (b) Topology types with homogeneous or heterogeneous model composition. (c) Uncertainty intervention types (illustrated on homogeneous graphs).
Network topology shapes who interacts with whom and the structural roles agents occupy, while heterogeneous populations bring distinct strategic tendencies into contact (Han et al., 2025; Qiu, 2025). These factors become particularly consequential in our setting, where each agent selects one action shared across neighbors, coupling simultaneous interactions. An agent that cooperates against fixed opponents or identical peers may behave differently in a heterogeneous network. Understanding such shifts requires considering graph structure, model composition, and structural roles jointly.
Yet graph structure is only part of the story: LLM agents’ strategies are also mediated by language. Contextual framing can shift behavior even when game incentives remain fixed (Lorè and Heydari, 2024; Kořínek and Štekerová, 2026), while seemingly innocuous changes in response-option order can alter model choices (Zheng et al., 2024; Wei et al., 2024). In repeated interactions, such sen-situities may extend beyond the directly exposed agent, as its actions become part of its neighbors' action histories, potentially influencing subsequent decisions. Thus, a linguistic cue that does not relate to game structure may nevertheless reshape cooperation throughout the network, with consequences for both individual and collective welfare.
These observations raise a critical question: when a single agent is influenced by a linguistic cue, how far can the consequences reach?
Prior work has examined networked cooperation and linguistic sensitivity, but how localized cues interact with model composition, structural roles, and action-label order—and affect unexposed agents and collective welfare—remains unclear. To investigate this, we introduce a controlled networked IPD framework (Figure 1), systematically varying topology, network size, model composition, and global or local exposure to uncertainty cues. We additionally examine whether strategic behaviors remain stable under semantically equivalent changes in action-label ordering in the prompt.
Our findings reveal three interconnected instability forms. Cooperation sustained among identical agents can deteriorate in heterogeneous networks; a cue delivered to a single agent can alter behavior several hops away or redistribute costs without changing unexposed agents' cooperation; and reversing action-label order can dramatically change cooperation, sometimes only after uncertainty framing is introduced. Together, these findings suggest that networked cooperation depends not merely on the agents involved, but also on whom they interact with and how the game is presented.
We first establish baseline behavior by pairing LLM agents with fixed-policy opponents and placing them in homogeneous networks. Building on these baselines, we investigate three novel research questions, evaluating cooperation rates combined with resulting individual and social costs:
• RQ1: Heterogeneous networks. When a smaller and a larger model from the same family share a network, does either shift from its homogeneous baseline?
• RQ2: Uncertainty cues. (a) How does a cue questioning neighbor predictability affect cooperation and costs under global exposure? (b) Under local exposure, do behavioral changes extend to agents without the cue?
• RQ3: Label order. How much does swapping the order of C and D action labels in the instruction change behavior? Is the bias consistent in direction?
Networked Cooperation among LLM Agents. Network topology influences the evolution of cooperation (Ohtsuki et al., 2006), motivating its study in LLM populations. Han et al. (2025) found that static network structures do not reliably stabilize cooperation, while Qiu (2025) examined how connectivity and personality assignments influence cooperation, allowing agents to select actions separately for each neighbor. de Arruda et al. (2026) identified discrepancies between aggregate cooperation and individual decision rules relative to human behavior, whereas de Curtò and de Zarzà (2026) investigated topology-dependent cooperation and externally imposed defection shocks. Related studies show that communication topology affects collective performance (Li et al., 2024) and information propagation (Shen et al., 2025). Building on these findings, we examine model composition, structural roles, and localized interventions in repeated networks where agents broadcast a single action to all neighbors.
Linguistic Sensitivity and Behavioral Propagation. LLM strategic decisions are influenced not only by game incentives but also by contextual framing (Lorè and Heydari, 2024; Kořínek and Štekerová, 2026). Sensitivity to option ordering and response labels (Zheng et al., 2024; Wei et al., 2024) further raises concerns about behavioral stability under semantically equivalent prompts. Ye et al. (2026) demonstrate that minor changes in simulation design can substantially alter cooperation, emphasizing the need for robustness audits. While linguistic sensitivity and information propagation have been investigated separately, we examine their interaction in networked IPD, assessing whether behavioral effects of uncertainty cues extend beyond exposed agents, affect individual and collective costs, and depend on action-label ordering.
3 Method
3.1 Game-Theoretic Environment
We study repeated pairwise Prisoner's Dilemma interactions between agents connected through an undirected graph , where denotes the set of agents and the neighborhood of agent i. At each round t, every agent i selects a single action:
where denotes cooperation and denotes defection. Crucially, is node-level, not edge-specific: it is broadcast to all neighbors (Fig. 1(a)). This constraint ensures that the network game does not decompose into independent pairwise games.
The pairwise stage game is defined by a cost function , giving the years in prison assigned to agent i when interacting with agent j (lower is better), with the following cost matrix:
\begin{array}{c|ccc}{{{a_{i}\backslash a_{j}}}}&{{{C}}}&{{{D}}} \\{{{\hline C}}}&{{{(1,1)}}}&{{{(3,0)}}} \\{{{D}}}&{{{(0,3)}}}&{{{(2,2)}}} \\\end{array} \tag{2}where each entry reports the costs of agents i and j, respectively. For either action of the opponent,
so defection strictly dominates cooperation in the one-shot game. Consequently, mutual defection is the unique Nash equilibrium of each pairwise game, and the all-defect action profile is the unique Nash equilibrium of the induced network game.
Although the one-shot game incentives are fixed, decisions are coupled over time through local interaction histories. At round , agent observes its own and its neighbors’ actions from at most the previous ten rounds:
where . A possibly stochastic policy maps interaction histories to probability distributions over actions:
Eqs. 6 and 7 define the individual cumulative cost of agent i and the network-level social cost over T rounds, respectively.
Individual optimality, though, is distinct from social efficiency. Consider a single round of the three-node example in Fig. 1(a): mutual cooperation gives agent i a cost of and a social cost of . If i instead broadcasts D while both neighbors cooperate, its individual cost falls to , but the social cost rises to . Reducing individual cost can thus increase collective cost. More generally, Pareto-dominates and minimizes the joint cost on an edge, so the all-cooperate profile minimizes despite not corresponding to a Nash equilibrium of the one-shot game. This tension between individual rationality and social efficiency defines the Prisoner's Dilemma (Banerjee and Sen, 2007), and it allows us to examine whether LLM agents tend toward individually defensive outcomes, socially efficient cooperation, or unstable intermediate behaviors as a function of interaction history, network structure, model composition, uncertainty cues, and prompt formulation.
3.2 Agent Design
We consider two types of agents: adaptive LLM agents, the focus of this work, and fixed-policy baselines, deterministic and stochastic strategies used as controlled reference opponents in dyadic experiments (App. B, Table 2).
Each LLM agent i is instantiated from a pre-trained language model and prompted with the game rules, the outcome costs, and its serialized local history at round . It is asked to select the action leading to the best long-term strategic outcome; the prompt does not instruct it to minimize its own cumulative cost, maximize social welfare, cooperate, or defect, so strategic tendencies emerge from the model's interpretation of the game rather than from the instructions. The model is queried once per round and must return a single action , broadcast to its neighbors. Outputs other than C or D are marked invalid and excluded from evaluation. Full prompts are in App. D.
3.3 Network Topologies
Since strategic outcomes depend on graph constraints (Vaknin and Meisels, 2025) and cooperation is shaped by the underlying interaction graph (Ohtsuki et al., 2006), we restrict our analysis to three canonical topologies (Fig. 1(b)). These canonical graphs capture distinct connectivity patterns and offer interpretable structural roles. This allows systematic comparisons of behavior across topology, network size, and model assignments, without assuming that observed differences can be attributed to any single structural factor. Specifically, evaluated topologies are: (i) Line ( ): a path with endpoints of degree 1 and internal nodes of degree 2. It isolates the asymmetry between boundary and internal positions; (ii) Cycle ( ): a closed ring where every node has degree 2. All roles are structurally equivalent, providing a symmetric reference; (iii) Star ( ): a hub of degree connected to leaves of degree 1. It isolates centrality and concentrates influence at the hub.
3.4 Experimental Conditions
Dyadic reference policies. We first evaluate each LLM agent against fixed-policy opponents (App. B, Table 2) covering unconditional cooperation (Always Cooperate, AC) or defection (Always Defect, AD), stochastic play (Random, RND), and history-dependent adaptation (Tit-For-Tat, TFT). These interpretable reference behaviors expose each model's default tendencies before moving to LLM-only networks.
Network size and model composition. In networks, we vary the number of agents to test whether behavioral patterns remain stable, attenuate, or propagate as the network grows. We also vary model composition (Fig. 1b): homogeneous networks instantiate every node from the same model, while heterogeneous networks pair a small and a large model from the same family, alternating along lines and cycles and placed at the hub or the leaves of stars, in both directions. Network sizes and model pairings are given in Sec. 4.
Uncertainty cue. We examine how agents respond to a textual cue questioning the predictability of their neighbors' strategies. We append the following sentence to the prompt:
“The other players’ strategy is not as predictable as you think, and it is defined from an unknown distribution.”
Payoffs, rules, topology, and generation settings remain unchanged, and no external randomization is introduced: only the agent's textual information about neighbor predictability is modified. Our intervention therefore tests behavioral sensitivity to uncertainty-related framing rather than directly measuring agents' uncertainty or introducing additional stochasticity into the environment.
We compare a baseline condition, in which the cue is omitted, with two exposure conditions (Fig. 1c). Under global exposure, every agent receives the cue. Under local exposure, exactly one designated agent receives it, while the others receive the original prompt and are not informed of the intervention. Varying the exposed agent's model and structural role allows us to examine whether behavioral changes remain confined to that agent or extend to unexposed agents. All other prompt components and experimental parameters are held fixed across the three conditions.
3.5 Evaluation
Our primary behavioral measure is the Cooperation Rate of agent i, computed over rounds in which the agent produces a valid action:
For homogeneous networks, we additionally report network-level cooperation by averaging across nodes. For heterogeneous networks, we report cooperation separately for the small- and large-model node groups. When positional roles are relevant, i.e. hubs and leaves in star graphs, we also retain role-specific .
Cooperation rate describes agents’ action preferences, while Average Cost (social and individual) measures the resulting strategic outcomes. Since invalid actions do not define valid game outcomes, we compute costs only over jointly evaluable rounds. Let
with . We report the mean social cost per node and jointly evaluable round:
Here, , and individual costs use the same jointly evaluable rounds. Lower costs indicate better welfare, although they also reflect network connectivity. Cooperation rates are undefined when an agent produces no valid actions, and costs when ; these values are reported as unavailable. Estimates based on fewer than T rounds have reduced coverage.
Our default prompt lists cooperation before defection ( ). Unless otherwise stated, the results preceding Sec. 5.5 refer to this ordering. To evaluate sensitivity to label-ordering, we define the Sensitivity Index (SI). We introduce a semantically equivalent prompt variant that lists defection first ( ), holding all other prompt components and experimental conditions fixed. For each configuration and seed s, SI is the absolute difference in cooperation rate between the two variants (Eq. 10), averaged over matched seeds (Eq. 11).
Here, S denotes the set of matched experimental seeds, controlling for stochastic variation. SI ranges from 0 to 1; higher values indicate greater sensitivity in cooperation rates. In network experiments, cooperation rates are averaged over the evaluated node group before computing SI. Thus, SI captures aggregate cooperation shifts rather than individual policy changes: opposing node-level responses may cancel, and identical cooperation rates need not imply identical action trajectories. A configuration denotes a model–opponent pair in dyadic experiments or a combination of topology, network size, model composition, uncertainty condition, and evaluated node group in networks.
4 Experimental Setup
Models. We evaluate open-weight instruction-tuned LLMs from three families: Qwen2.5-Instruct, LLaMA-3.1-Instruct, and Mistral-Instruct (identifiers in App. C).
Network Configurations. Line graphs use , while cycle and star graphs use . Homogeneous networks are built for each of the eight models. Heterogeneous networks use four within-family small–large pairs: Qwen2.5-3B and Qwen2.5-7B, each with Qwen2.5-32B; Llama-3.1-8B with Llama-3.1-70B; and Mistral-7B with Mixtral-8×7B. Every configuration is run under both and and under the baseline, global, and local uncertainty conditions.
Runs. Each configuration is repeated with three seeds. Since decoding is greedy ( ), runs with deterministic opponents typically yield identical trajectories, so repetitions mainly confirm reproducibility. Dyadic experiments against stochastic opponents (RND, URNDP) use ten seeds to cover variation in sampled actions. Each interaction lasts rounds, and agents are exposed at most the ten most recent rounds in their prompt. The game horizon is not disclosed, which avoids end-game effects from a known final round.
5 Results and Analysis
5.1 Dyadic behavior
Dyadic behavior varies across models, ranging from largely opponent-invariant dispositions to strong opponent dependence, with no monotonic relationship between model scale and cooperation. Fig. 2 reports cooperation rates against AC, AD, RND, and TFT. For example, Qwen-14B's cooperation is 1.00 against AC and TFT but only 0.01 against AD, illustrating strong opponent dependence. In contrast, Llama-70B predominantly defects against all four opponents, illustrating a largely opponent-invariant disposition. Scale is not monotonically associated with cooperation: Qwen's cooperation against AC rises from 0.01 at 3B to 1.00 at 7B and 14B, then falls to 0.04 at 32B. Corresponding individual average costs are reported in Fig. 7 in the appendix. Results for the remaining four policies are provided in App. E. In the following subsections, we examine whether these observed tendencies persist when opponents are themselves LLM agents and interactions are coupled through a shared action across neighbors.
5.2 Homogeneous networks
Dyadic behavior need not carry over to interactions among LLM agents: some models exhibit substantial behavioral differences between dyadic fixed-policy interactions and homogeneous LLM networks. Homogeneous networks reveal an additional layer of complexity: beyond model identity, cooperation also depends on graph structure and network size. Some models exhibit little variation across topologies and network sizes: Qwen-3B consistently defects, whereas Qwen-14B and Mixtral

Figure 2: Dyadic cooperation against fixed opponents under and prompts. Cells report means across seeds; non-zero sample standard deviations appear below.
remain nearly fully cooperative in configurations with available estimates.
Still others respond in a structure-specific way: Increasing N from 4 to 20 reduces Llama-70B's cooperation from 0.96 to 0.05 in cycles but increases it from 0.51 to 0.91 in stars (App. F, Table 5). Corresponding social costs are reported in Table 6. If cooperation already varies with structure and size when all agents are identical, a natural next question is whether it remains stable when models of different sizes interact.
5.3 Heterogeneous networks.
RQ1: Yes, heterogeneous interaction can shift the cooperation of both the smaller and the larger model away from their homogeneous baselines, with the magnitude and direction depending on the pairing and network configuration.
This shift is exemplified by pronounced asymmetry exhibited in the Qwen-3B/32B pairing. Fig. 3 compares each model's CoopRate with its homogeneous reference. Qwen-3B remains predominantly defecting, while Qwen-32B loses much of the cooperation it exhibited among identical peers. The per-round cumulative CoopRate trajectories in Fig. 4 show how this departure unfolds: Qwen-32B initially cooperates, as in its homogeneous baseline, but its cumulative cooperation subsequently falls toward Qwen-3B's near-zero level, diverging from its homogeneous reference. Thus, heterogeneous interaction can disproportionately disrupt one model's cooperative behavior while leaving the other's unchanged. Cycle and star trajectories in App. G.
Other pairings exhibit smaller or differently directed shifts. In larger lines and cycles, pairing Qwen-32B with Qwen-7B reduces its cooperation less strongly than pairing it with Qwen-3B, while Qwen-7B becomes more cooperative than in its homogeneous reference.
As for role-specific observations, in heterogeneous stars (Fig. 3 bottom row), behavior also depends on which model occupies the hub. For example, the Llama-8B/70B pairing illustrates strong dependence on hub assignment: an 8B hub remains nearly fully cooperative with 70B leaves, whereas mean cooperation across the N - 1 8B leaves decreases with a 70B hub.
5.4 Uncertainty cues.
RQ2(a): Global exposure alters cooperation non-uniformly and redistributes costs: social cost can fall while individual cooperators pay more.
Global cue exposure in homogeneous networks. Fig. 5 shows that global cue exposure does not uniformly promote or suppress cooperation. Several models retain their baseline behavior, while others respond in ways that depend on network size and topology. Qwen-7B generally becomes more cooperative, particularly in larger networks, whereas Llama-8B becomes less cooperative across configurations. Llama-70B illustrates how network structure can reverse the response: cooperation increases in larger lines and cycles but decreases in stars. Thus, the same cue can leave behavior unchanged, reinforce cooperation, or weaken it. We hypothesize that models differ in reading uncertainty as a risk warranting defection or as a reason to build trust. Corresponding social-cost changes are reported in App. H.1, Fig. 12.
Global cue exposure in heterogeneous networks. Global uncertainty cues can change the collective welfare while redistributing individual costs (App. H.2, Table 8). Social cost decreases in both Qwen pairings, but increases slightly in Llama-8B/70B, where models exhibit similar cooperation shifts. In Qwen-3B/32B networks, increased Qwen-32B cooperation benefits Qwen-3B and reduces social cost while increasing Qwen-32B's own cost. This redistribution follows from the dilemma itself: unreciprocated cooperation lowers both partner's and social cost at the cooperator's expense.
Network position also shapes who benefits: in a 20-node Qwen-7B/32B star, increased leaf cooperation (0.259 to 0.842) reduces the 32B hub's individual cost (46.76 → 25.00), despite little change in the hub's cooperation. Leaf costs, however, rise (Table 10(a)). Since the hub interacts with every leaf, it accumulates this benefit across its edges,

Figure 3: Cooperation shifts from homogeneous to heterogeneous graphs without the uncertainty cue (). Lines connect matched settings; star baselines match hub/leaf roles. Values are averaged equally across seeds.

Figure 4: Cumulative cooperation per round for selected Qwen configurations (cue-off).
whereas each leaf bears the cost of its single interaction. The cue can also pull cooperation back toward the homogeneous baseline (Table 10(b)).
RQ2(b): When only one agent receives the cue, behavioral changes can extend to unexposed peers.
Local cue exposure. Single-agent exposure can change the cooperation of unexposed agents (behavioral spillovers) or their costs (outcome spillovers), depending on the configuration (App. I, Fig. 13). The two need not co-occur: in Qwen-3B/32B cycles, exposing Qwen-32B increases its cooperation by 0.4 without changing unexposed cooperation. Yet unexposed individual costs fall by 0.265, the exposed agent's cost rises by 0.8, and social cost per node falls by 0.107 (Table 11). As under global exposure, unreciprocated cooperation benefits others at the cooperator's expense.
| Network | Topology | Exposed node | d | ΔC(d) |
|---|---|---|---|---|
| Llama-8B/70B | Line | 70B endpoint | 10 | +0.010 |
| Line | 8B interior | 9 | +0.015 | |
| Cycle | 70B node | 10 | -0.020 | |
| Cycle | 8B node | 9 | -0.015 | |
| Llama-8B | Line | Endpoint | 5 | -0.010 |
| Llama-70B | Line | Endpoint | 3 | +0.010 |
| Qwen-7B | Line | Interior node | 3 | +0.065 |
Table 1: Farthest observed nonzero CoopRate() in selected networks under local cue exposure. is shortest-path distance from the exposed node; averages changes from matched cue-off configurations.
The exposed agent's role and model shape both magnitude and direction of the response. In Llama-8B/70B stars, exposing the 70B hub raises unexposed CoopRate by 0.411 (vs 0.009 for an 8B leaf); with roles reversed, exposing the 8B hub lowers it by 0.108 (vs 0.022 for a 70B leaf). Hub exposure thus produces larger shifts, in a direction
Line
| Qwen-3B | +0.00 | +0.00 | +0.00 | +0.00 |
|---|---|---|---|---|
| Qwen-7B | +0.00 | +0.01 | +0.59 | +0.61 |
| Qwen-14B | +0.00 | +0.00 | +0.00 | +0.00 |
| Qwen-32B | +0.00 | +0.00 | +0.00 | +0.00 |
| Llama-8B | -0.34 | -0.22 | -0.22 | -0.15 |
| Llama-70B | +0.10 | -0.06 | +0.67 | +0.74 |
| Mistral-7B | +0.00 | +0.00 | +0.00 | +0.00 |
| Mixtral-8x7B | +0.00 | +0.00 | +0.00 | +0.00 |
| N=3 | N=4 | N=10 | N=20 |
Cycle
| Qwen-3B | +0.00 | +0.00 | +0.00 |
|---|---|---|---|
| Qwen-7B | +0.30 | +0.69 | +0.61 |
| Qwen-14B | +0.00 | +0.00 | +0.00 |
| Qwen-32B | +0.00 | +0.00 | +0.00 |
| Llama-8B | -0.83 | -0.24 | -0.10 |
| Llama-70B | -0.07 | +0.47 | +0.81 |
| Mistral-7B | +0.00 | +0.00 | +0.00 |
| Mixtral-8x7B | +0.00 | +0.00 | +0.00 |
| N=4 | N=10 | N=20 |
Star
| Qwen-3B | +0.00 | +0.00 | +0.00 |
|---|---|---|---|
| Qwen-7B | +0.02 | +0.48 | +0.60 |
| Qwen-14B | +0.00 | +0.00 | +0.00 |
| Qwen-32B | +0.00 | +0.00 | +0.00 |
| Llama-8B | -0.35 | -0.24 | -0.19 |
| Llama-70B | -0.07 | -0.34 | -0.37 |
| Mistral-7B | +0.00 | +0.00 | +0.00 |
| Mixtral-8x7B | +0.00 | +0.00 | +0.00 |
| N=4 | N=10 | N=20 |
-0.75 -0.50 -0.25 0.00 0.25 0.50 0.75 Change in cooperation rate
Figure 5: Global cue shifts on homogeneous cooperation under : (cue on – off), computed per matched seed and averaged across seeds
set by the hub's model. (Table 11).
Localized effects can also reach distant agents. At N = 20, exposing one 70B agent in Llama-8B/70B networks changes cooperation ten hops away (increase in lines, decrease in cycles, where ten hops is the farthest node). Homogeneous reach is shorter: five hops for Llama-8B and three for Llama-70B (endpoint exposure), and three for Qwen-7B (interior exposure) (Table 1). Notably, the same Llama-70B exposure travels farther in a mixed line than among identical peers. Reach and direction of localized exposure depend on model composition, topology, and exposure location.
5.5 Label order
RQ3: Label reversal can dramatically alter cooperation without a consistent positional preference.
Choosing a single action-label order can leave its influence on behavior unexamined. By supplementing our default prompt with the semantically equivalent , we reveal cooperation shifts that would remain hidden under a single formulation.
Models differ in which position they favor. Under , Mixtral's cooperation against AD rises from 0.00 to 1.00, favoring the second-listed action, whereas Llama-8B favors the first-listed action, cooperating more under . Sensitivity also depends on the setting: Mixtral is maximally sensitive against AD and STFT (SI = 1.00) but insensitive in homogeneous networks (Tables 4 and 5).
Label order also qualifies structural and composition effects. Qwen-7B's decline in cooperation with network growth appears only under ; under it remains high. Conversely, Qwen-32B's cooperation in 20-node stars collapses from 1.00 to 0.02 when switching to (Table 5). The heterogeneity effect from RQ1 is likewise order-dependent: in larger Qwen-7B/32B lines and cycles, Qwen-7B exceeds its homogeneous cooperation only under , as both settings are fully cooperative under (Fig. 11; App. G).
Finally, label order changes the cue's effects. Qwen-14B is almost insensitive to order without the cue (SI = 0.001) but becomes almost fully sensitive under global exposure (SI = 0.990) (Table 7). In heterogeneous networks, the cue can either amplify or attenuate order sensitivity: Qwen-32B's mean SI increases with Qwen-3B, whereas Qwen-7B's decreases when paired with Qwen-32B (Table 9). Under local exposure, the same intervention even reverses its consequences: exposing the 70B hub in Llama-8B/70B stars raises mean unexposed cooperation by 0.411 and lowers social cost by 0.458 under , but lowers cooperation by 0.144 and raises social cost by 0.228 under (Table 11). Label order can thus alter both behavior and welfare, so conclusions about LLM cooperation should be checked across prompt formulations.
6 Conclusion
We studied cooperation among LLM agents in the Iterated Prisoner's Dilemma, from dyadic play to homogeneous and heterogeneous networks. Cooperation proved fragile: it shifted with population composition and network position, a single uncertainty cue caused shifts to distant unexposed agents and redistributed costs, and even reversing the action-label order changed outcomes. Cooperative agents do not guarantee a cooperative network, so multi-agent LLM systems should be evaluated across the populations, structures, and prompt formulations in which they will be deployed.
Limitations
Our findings concern the evaluated models and a controlled networked IPD protocol. We consider three canonical topologies, networks of up to 20 agents, and selected within-family model pairings. Each agent broadcasts one action to all neighbors, without communication or neighbor-specific decisions. Interactions last 100 rounds with a ten-round history window. These choices enable controlled comparisons but limit generalization to larger, more diverse, or differently structured multi-agent environments.
We operationalize uncertainty-related framing through one textual cue about neighbor predictability, without measuring subjective uncertainty or changing environmental stochasticity. Label-order reversal tests one form of prompt sensitivity rather than robustness to prompting more broadly. Greedy decoding and repeated seeds primarily assess reproducibility in deterministic settings. Finally, metrics exclude invalid outputs and therefore characterize behavior conditional on valid actions; cost estimates based on few jointly valid rounds provide limited evidence about outcomes over the full interaction.
Ethical Considerations
Although this study involves no human participants or real-world decision-making, its findings could inform attempts to manipulate the behavior of deployed LLM agent networks. Such applications warrant appropriate safeguards and independent robustness evaluation. Additionally, experiments involving large language models incur computational and environmental costs, which were not quantified in this study.
References
Elif Akata, Lion Schulz, Julian Coda-Forno, Seong Joon Oh, Matthias Bethge, and Eric Schulz. 2025. Playing repeated games with large language models. Nature Human Behaviour, 9(7):1380–1390.
Dipyaman Banerjee and Sandip Sen. 2007. Reaching pareto-optimality in prisoner's dilemma using conditional joint action learning. Autonomous Agents and Multi-Agent Systems, 15(1):91–108.
Henrique Ferraz de Arruda, Carlos Gracia-Lázaro, Alberto Aleta, and Yamir Moreno. 2026. Collective cooperation without individual fidelity in LLM agents. Preprint, arXiv:2606.30454.
Joachim de Curtò and Irene de Zarzà. 2026. Theory-grounded LLM societies for emergent coordination. IEEE Access, 14:95468–95497.
Nicoló Fontana, Francesco Pierri, and {Luca Maria} Aiello. 2025. Nicer than humans: How do large language models behave in the prisoner's dilemma? In Proceedings of the International AAAI Conference on Web and Social Media, volume 19, pages 522–535, United States. AAAI Press. 19th International AAAI Conference on Web and Social Media, ICWSM; Conference date: 23-06-2025 Through 26-06-2025.
Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Alex Vaughan, Amy Yang, Angela Fan, Anirudh Goyal, Anthony Hartshorn, Aobo Yang, Archi Mitra, Archie Sravankumar, Artem Korenev, Arthur Hinsvark, and 542 others. 2024. The llama 3 herd of models. Preprint, arXiv:2407.21783.
Jin Han, Balaraju Battu, Ivan Romić, Iyad Rahwan, and Petter Holme. 2025. Static network structure cannot stabilize cooperation among large language model agents. PLOS ONE, 20(5):e0320094.
Albert Q. Jiang, Alexandre Sablayrolles, Antoine Roux, Arthur Mensch, Blanche Savary, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Emma Bou Hanna, Florian Bressand, Gianna Lengyel, Guillaume Bour, Guillaume Lample, Lélio Renard Lavaud, Lucile Saulnier, Marie-Anne Lachaux, Pierre Stock, Sandeep Subramanian, Sophia Yang, and 7 others. 2024. Mixtral of experts. Preprint, arXiv:2401.04088.
Milan Kořínek and Kamila Štekerová. 2026. Words matter: How prompt framing shapes strategic behaviour in large language models. Journal of Cases on Information Technology, 28(1):1–28.
Yunxuan Li, Yibing Du, Jiageng Zhang, Le Hou, Peter Grabowski, Yeqing Li, and Eugene Ie. 2024. Improving multi-agent debate with sparse communication topology. In Findings of the Association for Computational Linguistics: EMNLP 2024, pages 7281–7294, Miami, Florida, USA. Association for Computational Linguistics.
Nunzio Lorè and Babak Heydari. 2024. Strategic behavior of large language models and the role of game structure versus contextual framing. Scientific Reports, 14(1):18490.
Hisashi Ohtsuki, Christoph Hauert, Erez Lieberman, and Martin A. Nowak. 2006. A simple rule for the evolution of cooperation on graphs and social networks. Nature, 441(7092):502–505.
Saptarshi Pal, Abhishek Mallela, Lenz Pracher, Chiyu Wei, Feng Fu, Santiago Schnell, and Martin A. Nowak. 2026. Large language models instantiate evolutionarily robust strategies of cooperation. PNAS Nexus, 5(6):pgag210.
Xuan Qiu. 2025. NetworkGames: Simulating cooperation in network games with personality-driven LLM agents. Preprint, arXiv:2511.21783.
Qwen, :, An Yang, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chengyuan Li, Dayiheng Liu, Fei Huang, Haoran Wei, Huan Lin, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Yang, Jiaxi Yang, Jingren Zhou, and 25 others. 2025. Qwen2.5 technical report. Preprint, arXiv:2412.15115.
Xu Shen, Yixin Liu, Yiwei Dai, Yili Wang, Rui Miao, Yue Tan, Shirui Pan, and Xin Wang. 2025. Understanding the information propagation effects of communication topologies in LLM-based multi-agent systems. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 12347–12361. Association for Computational Linguistics.
Y. Vaknin and Meisels. 2025. Solving multi-agent games on networks. Autonomous Agents and Multi-Agent Systems.
Sheng-Lun Wei, Cheng-Kuang Wu, Hen-Hsen Huang, and Hsin-Hsi Chen. 2024. Unveiling selection biases: Exploring order and token sensitivity in large language models. In Findings of the Association for Computational Linguistics: ACL 2024, pages 5598–5621. Association for Computational Linguistics.
Richard Willis, Yali Du, and Joel Z. Leibo. 2025. Will systems of LLM agents lead to cooperation: An investigation into a social dilemma. In Proceedings of the 24th International Conference on Autonomous Agents and Multiagent Systems, pages 2786–2788.
Jinyi Ye, Lei Cao, Ding Chen, and Emilio Ferrara. 2026. Stop drawing scientific claims from llm social simulations without robustness audits. Preprint, arXiv:2605.18890.
Chujie Zheng, Hao Zhou, Fandong Meng, Jie Zhou, and Minlie Huang. 2024. Large language models are not robust multiple choice selectors. In International Conference on Learning Representations.
A Background in Prisoners' Dilemma
Figure 6 illustrates the stage game, its repeated interactions, and the extension to networks.
Cost convention. The four Prisoner’s Dilemma outcomes are conventionally termed temptation (defect against cooperation), reward (mutual cooperation), punishment (mutual defection), and the sucker’s outcome (cooperate against defection). Denoting their costs by , , , and , respectively, we have
The ordering is reversed relative to the conventional payoff formulation because lower costs are preferable. The total cost per edge is under mutual cooperation, under asymmetric play, and under mutual defection.
Network externalities. Let denote the degree of agent . If agent switches from to in round , holding all other agents’ actions fixed, its immediate cost decreases by , while each neighbor’s cost increases by 2. Thus, the changes in the round- contributions to individual and social cost are
Defection therefore creates a negative externality: it benefits the deviating agent at the immediate expense of its neighbors and collective welfare. The magnitude of this effect scales with node degree, linking individual incentives to structural roles.
Repeated-game considerations. These immediate incentives need not determine behavior over repeated interactions. An agent’s current action becomes part of its neighbors’ observed histories, potentially triggering reciprocity, retaliation, or other strategic responses in subsequent rounds. In a finitely repeated Prisoner’s Dilemma with a commonly known horizon and fully rational cost-minimizing agents, backward induction predicts defection in every round. This serves only as a theoretical reference here: LLM agents are not told the horizon or instructed to solve for an equilibrium. Their strategies are instead examined empirically through their responses to interaction histories.
B Fixed Strategies
Table 2 defines the fixed-policy opponents used in the dyadic experiments. Memoryless policies provide reference responses to unconditional cooperation, defection, and stochastic behavior, while history-dependent policies test interactions involving reciprocity, retaliation, and outcome-dependent switching. These opponents follow predefined rules throughout the game, allowing the LLM's response to be examined against a controlled interaction partner.
C Model Identifiers
Our experiments consider the following model families: Qwen 2.5 (Qwen et al., 2025), LLaMa 3.1

Figure 6: A detailed overview of the Iterated Prisoner's Dilemma (IPD) game setting. The pairwise stage game defines the costs of cooperation and defection. Agents repeatedly select actions based on recent interaction histories. In networked IPD, each agent broadcasts a single action to all neighbors, coupling individual decisions and collective outcomes.
| Strategy | Description | Policy Definition |
|---|---|---|
| Always Cooperate (AC) | Always plays cooperation (C). | |
| Always Defect (AD) | Always plays defection (D). | |
| Random (RND) | Uniform random action selection. | |
| Uncertain Random (URNDP) | Biased random strategy (). | |
| Tit-for-Tat (TFT) | First C, then mirrors opponent. | |
| Suspicious Tit-for-Tat (STFT) | First D, then mirrors opponent. | |
| Grim Trigger (GRIM) | Permanent D after first opponent defection. | |
| Win-Stay, Lose-Shift (WSLS) | Repeats action if previous cost is favorable, otherwise switches. | else |
Table 2: Strategies used as fixed opponent policies. Baseline strategies include memoryless deterministic policies, Stochastic introduce controlled randomness, and History-dependent strategies condition actions on prior interactions.
| Family | Model Identifier |
|---|---|
| Qwen2.5 | Qwen/Qwen2.5-3B-Instruct |
| Qwen2.5 | Qwen/Qwen2.5-7B-Instruct |
| Qwen2.5 | Qwen/Qwen2.5-14B-Instruct |
| Qwen2.5 | Qwen/Qwen2.5-32B-Instruct |
| LLaMA-3.1 | meta-llama/Llama-3.1-8B-Instruct |
| LLaMA-3.1 | meta-llama/Llama-3.1-70B-Instruct |
| Mistral | mistralai/Mistral-7B-Instruct-v0.2 |
| Mistral | mistralai/Mixtral-8x7B-Instruct-v0.1 |
Table 3: Exact model identifiers used in the experiments.
(Grattafiori et al., 2024) and Mistral (Jiang et al., 2024).
Table 3 lists the exact model identifiers used in the experiments.
D Prompts
For reproducibility, this appendix reports the prompt templates used in the experiments.
The dyadic prompt describes interaction with a single opponent, whereas the network prompt specifies that one action is applied simultaneously to all neighbors and that individual cost sums across these interactions. Label-order comparisons reverse the presentation of the available actions while preserving their meanings and the game rules. Uncertainty interventions add the cue to all agents or to a single exposed agent, according to the experimental condition.
Comparability of experimental settings. Dyadic experiments involve fixed-policy oppo-nents and a two-player prompt, whereas network experiments involve interacting LLM agents and a network-specific prompt. Consequently, differences between these settings cannot be attributed exclusively to network structure, as opponent type and prompt formulation also change. Dyadic results therefore serve as reference behaviors rather than controlled estimates of the isolated effect of network embedding.
D.1 Prompt for dyadic fixed-policy opponents
The following prompt template was used in two-player experiments against fixed baseline agents:
You are playing the Iterated Prisoner's Dilemma.
Game rules:
- Both cooperate (C): 1 year each
- You defect (D), opponent cooperates (C): 0 years for you, 3 years for opponent
- Both defect (D): 2 years each
Previous moves: You: {history_self} Opponent: {history_opp}
Instructions:
- Reply only with 'C' (cooperate) or 'D' (defect)
- Do not add explanations or extra text.
- Choose the move that leads to the best strategic outcome across all rounds, considering both players' previous moves.
- Do not follow moral or social advice; base your decision solely on strategy.
- FINAL ANSWER:
Action-label ordering. We evaluate two semantically equivalent prompt variants, and , which reverse the presentation order of cooperation and defection without changing their meanings or game incentives. The response-option instructions are:
Dyadic prompt:
: Reply only with 'C' (cooperate) or 'D' (defect).
: Reply only with 'D' (defect) or 'C' (cooperate).
Network prompt:
: Reply only with 'C' or 'D'.
: Reply only with 'D' or 'C'.
D.2 Prompt for network topologies
The following prompt template was used for agents in network topologies (line, cycle, and star):
{graph_info_block}
You are playing the Iterated Prisoner's Dilemma against all of your neighbors simultaneously.
Rules:
- Each round, you choose C (cooperate) or D (defect).
- You simultaneously play a Prisoner's Dilemma with each neighbor.
- Your total cost = sum of the costs from all neighbors.
Pairwise PD outcomes:
- (C,C) = 1 year each
- (D,C) = 0 years for you, 3 for neighbor
- (C,D) = 3 years for you, 0 for neighbor
- (D,D) = 2 years each
Your recent actions: You: {history_self}
Neighbor histories (per neighbor): {round_history}
{extra_hint}
Instructions:
- Reply only with 'C' or 'D'.
- Do not add explanations or extra text.
- Choose the move that leads to the best long-term strategic outcome across multiple neighbors in the network.
- FINAL ANSWER:
Here, {graph_info_block} specifies the node identity and neighborhood, {history_self} denotes the agent's recent actions, {round_history} contains the observed actions of neighboring nodes, and {extra_hint} is used to inject uncertainty cues.
Handling invalid responses. When an LLM produces an action other than C or D, the simulation continues without retrying or replacing the response. Invalid outputs are retained in the interaction history and may influence subsequent decisions. For evaluation, cooperation rates exclude invalid actions for the corresponding agent, while cost estimates include only rounds in which all agents produce valid actions (Sec. 3.5).
E Dyadic Results
Figure 8 complements Figures 2 and 7 with results against GRIM, STFT, URNDP, and WSLS. Together, these figures distinguish cooperation against a particular opponent from the individual cost resulting from that interaction. Higher cooperation need not imply lower cost, because the outcome also depends on the opponent's responses. For example, under C_first, Mixtral's cooperation rate against GRIM is 0.86, yet its average cost is 2.84; under D_first, full cooperation accompanies a
| C-first | D-first | |||||||
|---|---|---|---|---|---|---|---|---|
| Qwen-3B | 0.01 | 2.61 | 1.64 | 0.76 | 3.00 | 1.14 | ||
| Qwen-7B | 1.00 | 2.02 | 1.00 | 1.00 | 2.74 | 1.00 | ||
| Qwen-14B | 1.00 | 2.01 | 1.00 | 1.00 | 2.01 | 1.00 | ||
| Qwen-32B | 0.04 | 2.01 | 1.94 | 0.01 | 2.01 | 1.97 | ||
| Llama-8B | 1.00 | 3.00 | 1.00 | 1.00 | 2.49 | 1.00 | ||
| Llama-70B | 0.01 | 2.01 | 1.97 | 0.00 | 2.00 | 1.98 | ||
| Mistral-7B | 0.00 | 2.00 | 1.98 | 0.01 | 2.06 | 1.97 | ||
| Mixtral-8×7B | 0.81 | 2.00 | 1.02 | 1.00 | 3.00 | 1.00 | ||
| AC | AD | RND | TFT | AC | AD | RND | TFT | |
Figure 7: Individual average cost per round against fixed opponent policies under and prompting. Cells report means across seeds; non-zero sample standard deviations appear below.
| C-first | D-first | |||||||
|---|---|---|---|---|---|---|---|---|
| Qwen-3B | 0.58 | 0.51 | 0.57 | 0.94 | 0.85 | 0.84 | ||
| Qwen-7B | 1.00 | 0.01 | 1.00 | 1.00 | 0.84 | 1.00 | ||
| Qwen-14B | 1.00 | 0.91 | 1.00 | 1.00 | 0.91 | 1.00 | ||
| Qwen-32B | 0.04 | 0.10 | 0.04 | 0.01 | 0.01 | 0.01 | ||
| Llama-8B | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 0.93 | 1.00 | |
| Llama-70B | 0.01 | 0.01 | 0.01 | 0.01 | 0.00 | 0.00 | 0.00 | 0.00 |
| Mistral-7B | 0.00 | 0.00 | 0.00 | 0.00 | 0.01 | 0.12 | 0.01 | |
| Mixtral-8×7B | 0.86 | 0.00 | 0.98 | 1.00 | 1.00 | 1.00 | 1.00 | |
| GRIM | STFT | URNDP | WSLS | GRIM | STFT | URNDP | WSLS | |
(a) Cooperation rate.
| C-first | D-first | |||||||
|---|---|---|---|---|---|---|---|---|
| Qwen-3B | 2.56 | 1.49 | 1.61 | 2.72 | 1.17 | 1.00 | ||
| Qwen-7B | 1.00 | 1.99 | 1.00 | 1.00 | 1.18 | 1.00 | ||
| Qwen-14B | 1.00 | 1.11 | 1.00 | 1.00 | 1.11 | 1.00 | ||
| Qwen-32B | 1.94 | 1.90 | 1.00 | 1.97 | 1.99 | 0.99 | ||
| Llama-8B | 1.00 | 1.02 | 1.00 | 1.00 | 1.09 | 1.00 | ||
| Llama-70B | 1.97 | 1.99 | 0.99 | 1.98 | 2.00 | 1.00 | ||
| Mistral-7B | 1.98 | 2.00 | 1.00 | 1.97 | 1.88 | 0.99 | ||
| Mixtral-8×7B | 2.84 | 2.00 | 1.00 | 1.00 | 1.02 | 1.00 | ||
| GRIM | STFT | URNDP | WSLS | GRIM | STFT | URNDP | WSLS | |
(b) Individual cost per round.
Figure 8: Dyadic cooperation and individual cost against the remaining fixed policies under both label orders. Cells show seed means; nonzero sample SDs appear below.
cost of 1.00. The paired panels therefore capture both behavioral changes and their strategic consequences. Nonzero standard deviations across seeds occur only against stochastic opponents, consistent with variation in their sampled action sequences.
F Homogeneous Results
Tables 5 and 6 provide the homogeneous uncertainty-off baselines for each model, topology, network size, and label order. Table 5 describes cooperation, while Table 6 reports its collective cost consequences. Keeping configurations separate reveals effects concealed by averages across network structures. For example, Qwen-32B remains nearly fully cooperative in lines and cycles under both orders, but its cooperation falls to 0.02 in larger stars under D_first. Llama-70B also exhibits different order effects in larger lines and cycles than in stars.
| Scale | AC | AD | GRIM | RND | STFT | TFT | URNDP | WSLS |
|---|---|---|---|---|---|---|---|---|
| Qwen-2.5 | ||||||||
| 3B | 0.75 | 0.39 | 0.36 | 0.34 | 0.50 | 0.27 | ||
| 7B | 0.00 | 0.72 | 0.00 | 0.83 | 0.00 | 0.00 | ||
| 14B | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | ||
| 32B | 0.03 | 0.00 | 0.03 | 0.09 | 0.03 | 0.03 | ||
| Llama-3.1 | ||||||||
| 8B | 0.00 | 0.51 | 0.00 | 0.07 | 0.00 | 0.00 | ||
| 70B | 0.01 | 0.01 | 0.01 | 0.01 | 0.01 | 0.01 | 0.01 | |
| Mistral | ||||||||
| 7B | 0.01 | 0.06 | 0.01 | 0.12 | 0.01 | 0.01 | ||
| 0.19 | 1.00 | 0.14 | 1.00 | 0.02 | 0.02 | |||
Table 4: Label-order sensitivity by model scale and opponent. Bold marks row maxima (excluding fully tied rows); underlining marks column maxima.
Social cost is normalized by the number of nodes and jointly evaluable rounds, but not by the number of edges. Consequently, cost differences across topologies reflect both strategic behavior and network connectivity. Comparisons within matched topology-size configurations are therefore more informative for isolating behavioral effects. Individual costs also depend on node degree, particularly in star networks. Finally, partial-round estimates characterize only their evaluable rounds and should not be interpreted as full-run outcomes.
G Heterogeneous Results
Figures 9 and 10 extend the trajectory comparison in Fig. 4 to cycles and both star assignments for the Qwen-3B/32B pairing. The homogeneous references show how each model behaves when interacting with agents of its own model, with hub and leaf roles matched in the star comparisons. Qwen-3B remains predominantly defecting, while Qwen-32B's cooperation departs from its homogeneous reference during heterogeneous interaction.
These figures display cumulative cooperation over the first 20 of 100 rounds. Each point summarizes actions from the beginning of the run through the indicated round. A declining curve therefore indicates lower cooperation in later decisions, but does not necessarily imply a gradual, round-by-round behavioral adjustment. The trajectories illustrate how differences between homogeneous and heterogeneous networks emerge during early interactions, while full-run cooperation rates capture their overall magnitude (Fig. 3). The plots alone do not establish whether these differences persist throughout all 100 rounds.
Fig. 11 complements the comparison in
| Model | Order | Line | Cycle | Star | Mean SI ± SD | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| N = 3 | N = 4 | N = 10 | N = 20 | N = 4 | N = 10 | N = 20 | N = 4 | N = 10 | N = 20 | |||
| Qwen-3B | C-first | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.000 ± 0.000 |
| D-first | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | ||
| Qwen-7B | C-first | 1.00 | 1.00 | 0.31 | 0.39 | 0.70 | 0.31 | 0.39 | 0.98 | 0.32 | 0.25 | 0.435 ± 0.320 |
| D-first | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | ||
| Qwen-14B | C-first | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 0.001 ± 0.003 |
| D-first | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 0.99 | 1.00 | ||
| Qwen-32B | C-first | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 0.197 ± 0.413 |
| D-first | 0.99 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 0.02 | 0.02 | ||
| Llama-8B | C-first | 0.99 | 0.99 | 0.96 | 0.94 | 0.99 | 0.93 | 0.92 | 1.00 | 1.00 | 1.00 | 0.651 ± 0.246 |
| D-first | 0.15 | 0.13 | 0.50 | 0.53 | 0.56 | 0.50 | 0.55 | 0.14 | 0.09 | 0.06 | ||
| Llama-70B | C-first | 0.78 | 0.94 | 0.20 | 0.11 | 0.96 | 0.08 | 0.05 | 0.51 | 0.87 | 0.91 | 0.466 ± 0.372 |
| D-first | 0.84 | 0.93 | 0.96 | 0.97 | 0.98 | 0.98 | 0.98 | 0.87 | 0.52 | 0.50 | ||
| Mistral-7B | C-first | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 0.270 ± 0.297 |
| D-first | 0.67 | 1.00 | 0.85 | 0.88 | 1.00 | 0.75 | 0.93 | 0.01 | 0.51 | 0.70 | ||
| Mixtral-8×7B | C-first | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 0.000 ± 0.000 |
| D-first | 1.00 | 1.00 | 1.00 | — | 1.00 | 1.00 | — | 1.00 | 1.00 | 1.00 | ||
Table 5: Cooperation rates in homogeneous networks without the uncertainty cue. Rates are averaged equally over nodes within each network, then across three seeds; seed standard deviations are zero and omitted. Mean SI ± SD reports the mean and sample standard deviation of absolute C-first–D-first cooperation differences across topology–size configurations, weighted equally. Dashes indicate unavailable rates because at least one node has no valid action; configurations missing either ordering are excluded from SI.

Figure 9: Cumulative cooperation in homogeneous and heterogeneous Qwen-3B/32B cycles under without the uncertainty cue.
Fig. 3 by reporting homogeneous-to-heterogeneous cooperation shifts under , without the uncertainty cue. References are matched by model, topology, network size, and seed, as well as hub/leaf role in stars. Together, the two figures show which departures from homogeneous behavior persist or change under label-order reversal.
H Global Cue Exposure
H.1 Homogeneous Networks
Fig. 12 reports the change in social cost when every agent receives the uncertainty cue, relative to matched configurations without the cue, while Table 7 reports the SI for homogeneous networks under the global uncertainty cue exposure.
H.2 Heterogeneous Networks
Table 8 shows that cooperation and welfare effects depend on label order. Under , Qwen-7B/32B cooperation increases in both model groups, while social cost falls by 0.268. However, Qwen-7B's individual cost increases by 0.12, whereas Qwen-32B's decreases by 2.75. In Llama-8B/70B networks, both models become less cooperative under , with social cost increasing by 0.096. Under , their cooperation shifts have opposite signs and social cost decreases by 0.030.
These comparisons show that collective improvements can coexist with unequal individual consequences, and that label order can alter the direction of uncertainty effects. Averaging across configurations can further conceal differences associated with network size, topology, and hub assignment. However, pooled averages may also mask configuration-specific reversals, as illustrated in Table 10.
Table 10 complements these averages with selected configuration-specific comparisons. Panel (a) illustrates cost redistribution between model groups, reversals across network sizes, and effects that disappear under a different label order or hub assignment. Panel (b) compares heterogeneous cooperation with matched uncertainty-off homogeneous references, showing a reduced absolute gap in selected Qwen-32B and Llama-8B configurations.

(a) 32B hub, 3B leaves.

(b) 3B hub, 32B leaves.
Figure 10: Cumulative cooperation in homogeneous and heterogeneous Qwen-3B/32B stars under without the cue. References match hub/leaf roles.

Figure 11: Cooperation shifts from homogeneous to heterogeneous graphs without the uncertainty cue ( ). Lines connect matched settings; star baselines match hub/leaf roles. Values are averaged equally across seeds.
| Model | Order | Line | Cycle | Star | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| N = 3 | N = 4 | N = 10 | N = 20 | N = 4 | N = 10 | N = 20 | N = 4 | N = 10 | N = 20 | ||
| Qwen-3B | C-first | 2.67 | 3.00 | 3.60 | 3.80 | 4.00 | 4.00 | 4.00 | 3.00 | 3.60 | 3.80 |
| D-first | 2.67 | 3.00 | 3.60 | 3.80 | 4.00 | 4.00 | 4.00 | 3.00 | 3.60 | 3.80 | |
| Qwen-7B | C-first | 1.33 | 1.51 | 3.09 | 3.07 | 2.60 | 3.39 | 3.22 | 1.52 | 2.49 | 2.67 |
| D-first | 1.33 | 1.50 | 1.80 | 1.90 | 2.00 | 2.00 | 2.00 | 1.50 | 1.80 | 1.90 | |
| Qwen-14B | C-first | 1.33 | 1.50 | 1.80 | 1.90 | 2.00 | 2.00 | 2.00 | 1.50 | 1.80 | 1.90 |
| D-first | 1.33 | 1.50 | 1.80 | 1.90 | 2.00 | 2.00 | 2.00 | 1.50 | 1.81 | 1.90 | |
| Qwen-32B | C-first | 1.33 | 1.50 | 1.80 | 1.90 | 2.00 | 2.00 | 2.00 | 1.50 | 1.80 | 1.90 |
| D-first | 1.35 | 1.51 | 1.81 | 1.90 | 2.01 | 2.00 | 2.00 | 1.50 | 3.56 | 3.75 | |
| Llama-8B | C-first | 1.35 | 1.51 | 1.87 | 2.02 | 2.03 | 2.14 | 2.16 | 1.50 | 1.81 | 1.91 |
| D-first | 2.45 | 2.78 | 2.68 | 2.79 | 2.89 | 2.99 | 2.91 | 2.79 | 3.50 | 3.73 | |
| Llama-70B | C-first | 1.64 | 1.58 | 3.27 | 3.61 | 2.08 | 3.85 | 3.89 | 2.31 | 1.99 | 2.02 |
| D-first | 1.52 | 1.60 | 1.87 | 1.96 | 2.05 | 2.04 | 2.05 | 1.67 | 2.90 | 3.28 | |
| Mistral-7B | C-first | 1.33 | 1.50 | 1.80 | 1.90 | 2.00 | 2.00 | 2.00 | 1.50 | 1.80 | 1.90 |
| D-first | 1.66 | 1.50 | 2.99 | 2.20 | |||||||
| Mixtral-8×7B | C-first | 1.33 | 1.50 | 1.80 | 1.90 | 2.00 | 2.00 | 2.00 | 1.50 | 1.80 | 1.90 |
| D-first | 1.33 | 1.51 | 1.81 | — | 2.01 | 2.01 | — | 1.50 | 1.80 | 1.90 | |
Table 6: Mean social cost per node and jointly evaluable round, , in homogeneous networks without the uncertainty cue. Entries are averaged across three seeds; zero standard deviations are omitted. indicates estimates based on only one jointly evaluable round per seed (two for Star ); all other available estimates use 100 rounds. Dashes indicate unavailable estimates.
| Model | Mean SI ± SD |
|---|---|
| Qwen-3B | 0.0002 ± 0.0003 |
| Qwen-7B | 0.0450 ± 0.0762 |
| Qwen-14B | 0.9896 ± 0.0046 |
| Qwen-32B | 0.0000 ± 0.0000 |
| Llama-8B | 0.2414 ± 0.2163 |
| Llama-70B | 0.3568 ± 0.1412 |
| Mistral-7B | 0.0641 ± 0.1088 |
| Mixtral-8×7B | 0.0000 ± 0.0000 |
Table 7: Label-order sensitivity in homogeneous networks under global exposure to the uncertainty cue. SI is the absolute cooperation-rate difference between C-first and D-first, computed per matched seed. Entries report the equally weighted mean and sample SD across ten topology-size configuration means, each averaged over three matched seeds.
I Local Cue Exposure
Figure 13 reveals substantial differences in the extent of local intervention effects across model families. Multi-agent responses are particularly prevalent in Llama networks: heterogeneous Llama-8B/70B configurations exhibit exposed-node action responses with partial temporal reach in approximately of observed runs and full reach in another . Other model pairings more frequently exhibit no exposed-node action response, although this does not rule out changes elsewhere. These proportions are descriptive, pooling network structures, sizes, exposure locations, label orders, and seeds.
Interpretation of response categories. Fig. 13 classifies responses according to round-by-round action differences and their temporal reach. Importantly, the “exposed node unchanged” category does not imply that unexposed agents remain unaffected. Consequently, the displayed shares cannot directly establish the overall prevalence of behavioral spillovers, as these may also occur without an exposed-node action response. Counts include three seed repetitions per configuration, which typically yield identical trajectories under greedy decoding. These percentages are therefore descriptive rather than estimates based on independent observations.
Table 11 examines whether the response remains concentrated at the exposed node or extends to the surrounding network, and how its benefits and costs are distributed. The Qwen-3B/32B example shows that unexposed agents can benefit through lower costs without changing their cooperation. Conversely, the Qwen-7B hub example shows that a small mean response at the exposed node can accompany substantial changes elsewhere. Comparing hub and leaf exposures in the same Llama network further illustrates the importance of the exposed node's position and model identity. Collective gains can also coexist with higher individual costs for some agents. These averages summarize tendencies across sizes; the magnitude and direction of effects may differ between individual configurations.
| Pair | Model | Order | Cooperation off → on | Δ coop. | Individual cost off → on | Δ cost | Social cost/node off → on | Δ social |
|---|---|---|---|---|---|---|---|---|
| Llama-8B + Llama-70B | Llama-8B | C-first | 0.698 → 0.588 | -0.110 | 5.34 → 5.41 | +0.07 | 2.442 → 2.538 | +0.096 |
| D-first | 0.283 → 0.491 | +0.208 | 3.86 → 6.17 | +2.31 | 2.811 → 2.781 | -0.030 | ||
| Llama-70B | C-first | 0.560 → 0.524 | -0.036 | 5.13 → 5.18 | +0.05 | 2.442 → 2.538 | +0.096 | |
| D-first | 0.508 → 0.373 | -0.134 | 6.37 → 4.62 | -1.74 | 2.811 → 2.781 | -0.030 | ||
| Mistral-7B + Mixtral-8×7B | Mistral-7B | C-first | 1.000 → 1.000 | 0.000 | 3.55 → 3.55 | 0.00 | 1.764 → 1.764 | 0.000 |
| D-first | 0.790 → 0.973 | +0.182 | 3.44 → 3.83 | +0.40 | 1.942 → 1.744 | -0.198 | ||
| Mixtral-8×7B | C-first | 1.000 → 1.000 | 0.000 | 3.63 → 3.63 | 0.00 | 1.764 → 1.764 | 0.000 | |
| D-first | 1.000 → 1.000 | 0.000 | 6.48 → 4.48 | -2.00 | 1.942 → 1.744 | -0.198 | ||
| Qwen-3B + Qwen-32B | Qwen-3B | C-first | 0.000 → 0.000 | 0.000 | 7.01 → 6.47 | -0.54 | 3.515 → 3.395 | -0.120 |
| D-first | 0.000 → 0.000 | 0.000 | 7.04 → 7.04 | 0.00 | 3.519 → 3.519 | 0.000 | ||
| Qwen-32B | C-first | 0.015 → 0.147 | +0.133 | 7.31 → 7.58 | +0.28 | 3.515 → 3.395 | -0.120 | |
| D-first | 0.010 → 0.010 | 0.000 | 7.30 → 7.30 | 0.00 | 3.519 → 3.519 | 0.000 | ||
| Qwen-7B + Qwen-32B | Qwen-7B | C-first | 0.755 → 0.971 | +0.216 | 3.41 → 3.52 | +0.12 | 2.059 → 1.791 | -0.268 |
| D-first | 1.000 → 1.000 | 0.000 | 3.56 → 3.55 | -0.01 | 1.767 → 1.764 | -0.003 | ||
| Qwen-32B | C-first | 0.933 → 1.000 | +0.067 | 7.15 → 4.40 | -2.75 | 2.059 → 1.791 | -0.268 | |
| D-first | 0.996 → 1.000 | +0.004 | 3.60 → 3.63 | +0.03 | 1.767 → 1.764 | -0.003 |
Table 8: Global uncertainty-cue effects in heterogeneous networks, reported separately by label order. Off/on denote cue absence/presence; denotes on minus off. Model-level metrics average nodes equally within each model group, then matched seeds, followed by equal weighting of configurations. Social cost weights model groups by node count within each run and is reported per node and jointly evaluable round; network values are repeated for both models. Each order uses 13 configurations per pairing, except D-first Mixtral cooperation and Mistral/Mixtral costs, which use 11. marks costs containing two partial-coverage configurations in the off condition. All remaining cost estimates use 100 jointly evaluable rounds per run. Differences use unrounded values.
Computational resources. Experiments were conducted on the Leonardo Booster partition at CINECA. Each compute node provides four NVIDIA A100 GPUs (Ampere architecture), each with 64 GiB of HBM2e memory and NVLink 3.0 connectivity, alongside a 32-core Intel Xeon Platinum 8358 CPU at 2.6 GHz and 512 GB of system memory.
| Pair | Model | SI: cue off | SI: cue on |
|---|---|---|---|
| Llama-8B+ Llama-70B | Llama-8B | 0.435±0.353 | 0.296±0.266 |
| 0.387±0.239 | 0.286±0.227 | ||
| Llama-70B | 0.227±0.321 | 0.030±0.056 | |
| Mistral-7B+ Mixtral-8×7B | Mistral-7B | 0.000±0.001 | 0.000±0.000 |
| Mixtral-8×7B | 0.000±0.001 | 0.000±0.000 | |
| Qwen-3B | 0.000±0.000 | 0.000±0.000 | |
| Qwen-3B+ Qwen-32B | Qwen-32B | 0.005±0.004 | 0.137±0.148 |
| Qwen-7B | 0.245±0.290 | 0.029±0.073 | |
| Qwen-7B+ Qwen-32B | 0.066±0.107 | 0.000±0.000 |
Table 9: Label-order sensitivity in heterogeneous networks without and with the global uncertainty cue. SI is the absolute cooperation-rate difference between C-first and D-first, computed per matched configuration and seed after equally averaging nodes within each model group. Entries report mean ± sample SD across equally weighted configuration means, each averaged over matched seeds. Only configurations with eligible estimates in both cue conditions are included.
(a) Selected configuration-specific effects
| Model | ||||||
|---|---|---|---|---|---|---|
| Qwen-3B/Qwen-32B; Cycle, N = 4, alternating; C_first | ||||||
| Qwen-3B | 0.000 → 0.000 | 0.000 | 3.940 → 2.160 | -1.780 | 3.985 → 3.540 | -0.445 |
| Qwen-32B | 0.015 → 0.460 | +0.445 | 4.030 → 4.920 | +0.890 | ||
| Qwen-3B/Qwen-32B; Cycle, N = 4, alternating; D_first | ||||||
| Qwen-3B | 0.000 → 0.000 | 0.000 | 3.960 → 3.960 | 0.000 | 3.990 → 3.990 | 0.000 |
| Qwen-32B | 0.010 → 0.010 | 0.000 | 4.020 → 4.020 | 0.000 | ||
| Llama-8B/Llama-70B; Cycle, N = 4, alternating; C_first | ||||||
| Llama-8B | 0.910 → 0.175 | -0.735 | 4.200 → 2.910 | -1.290 | 2.685 → 3.465 | +0.780 |
| Llama-70B | 0.405 → 0.360 | -0.045 | 1.170 → 4.020 | +2.850 | ||
| Llama-8B/Llama-70B; Cycle, N = 10, alternating; C_first | ||||||
| Llama-8B | 0.400 → 0.486 | +0.086 | 4.400 → 3.204 | -1.196 | 3.500 → 3.072 | -0.428 |
| Llama-70B | 0.100 → 0.442 | +0.342 | 2.600 → 2.940 | +0.340 | ||
| Qwen-7B/Qwen-32B; Star, N = 20, 32B hub; C_first | ||||||
| Qwen-7B | 0.259 → 0.842 | +0.583 | 0.299 → 0.842 | +0.543 | 2.623 → 2.050 | -0.573 |
| Qwen-32B | 0.980 → 1.000 | +0.020 | 46.760 → 25.000 | -21.760 | ||
| Qwen-7B/Qwen-32B; Star, N = 20, 7B hub; C_first | ||||||
| Qwen-7B | 1.000 → 1.000 | 0.000 | 19.000 → 19.000 | 0.000 | 1.900 → 1.900 | 0.000 |
| Qwen-32B | 1.000 → 1.000 | 0.000 | 1.000 → 1.000 | 0.000 | ||
(b) Movement toward matched homogeneous references
| Model | Heterogeneous configuration | : off on | ||
|---|---|---|---|---|
| Qwen-32B | Qwen-3B/Qwen-32B, cycle, N = 4 | 1.000 | 0.015 0.460 | 0.985 0.540 |
| Llama-8B | Llama-8B/Llama-70B, cycle, N = 10 | 0.932 | 0.400 0.486 | 0.532 0.446 |
Table 10: Selected effects of global exposure to the uncertainty cue in heterogeneous networks. (a) denotes model-group cooperation, mean individual cost, and social cost per node; changes are on minus off. Social cost is shared by the two model rows and uses node-count weighting within each run. (b) Both comparisons use C_first; is the uncertainty-off homogeneous cooperation rate matched by model, topology, size, and label order. A smaller absolute gap indicates movement toward this reference. All entries average three seeds, with no averaging across sizes, compositions, or label orders. All displayed cost estimates use 100 jointly evaluable rounds per run. Seed SDs are zero and omitted; differences are calculated before rounding.
| Network | Topology/composition | Order | Exposed node | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Qwen-3B/32B | Cycle, alternating | C-first | 32B node | 0.400 | 0.000 | 0.000 | 0.800 | -0.265 | -0.107 |
| D-first | 32B node | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | ||
| Llama-8B/70B | Star, 70B hub | C-first | 70B hub | 0.203 | 0.411 | 0.481 | -5.783 | 0.004 | -0.458 |
| D-first | 70B hub | -0.127 | -0.144 | 0.182 | 2.140 | 0.109 | 0.228 | ||
| C-first | 8B leaf | -0.186 | 0.009 | 0.010 | -0.183 | 0.034 | 0.010 | ||
| D-first | 8B leaf | 0.210 | 0.109 | 0.212 | -0.168 | -0.262 | -0.226 | ||
| Llama-8B/70B | Star, 8B hub | C-first | 8B hub | -0.157 | -0.108 | 0.143 | -0.617 | 0.205 | 0.211 |
| D-first | 8B hub | 0.197 | 0.067 | 0.073 | 0.217 | -0.326 | -0.202 | ||
| C-first | 70B leaf | -0.134 | -0.022 | 0.108 | -0.079 | 0.090 | 0.050 | ||
| D-first | 70B leaf | -0.278 | 0.050 | 0.054 | -0.500 | -0.001 | -0.078 | ||
| Qwen-7B | Star, homogeneous | C-first | Hub | 0.010 | 0.269 | 0.274 | -7.183 | 0.249 | -0.257 |
| D-first | Hub | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | ||
| Llama-8B | Cycle, homogeneous | C-first | Cycle node | -0.239 | -0.023 | 0.035 | -0.360 | 0.234 | 0.121 |
| D-first | Cycle node | -0.012 | -0.057 | 0.142 | 0.276 | 0.067 | 0.098 | ||
| Qwen-32B | Star, homogeneous | C-first | Hub | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 |
| D-first | Hub | 0.650 | 0.653 | 0.653 | -9.210 | -0.647 | -1.206 |
Table 11: Selected effects of localized cue exposure relative to matched cue-off controls, averaged equally over . and denote mean cooperation changes for exposed and unexposed nodes; averages absolute node-level cooperation changes before aggregation. and denote mean individual-cost changes, and denotes social-cost change per node. Matched seeds are averaged within exposure locations, locations within roles, and sizes equally. Label orders are reported separately.
| Line | ||||
|---|---|---|---|---|
| Qwen-3B | +0.00 | +0.00 | +0.00 | +0.00 |
| Qwen-7B | +0.00 | +0.00 | -1.19 | -1.17 |
| Qwen-14B | +0.00 | +0.00 | +0.00 | +0.00 |
| Qwen-32B | +0.00 | +0.00 | +0.00 | +0.00 |
| Llama-8B | +0.43 | +0.27 | +0.36 | +0.26 |
| Llama-70B | -0.14 | +0.11 | -1.24 | -1.44 |
| Mistral-7B | +0.00 | +0.00 | +0.00 | +0.00 |
| Mixtral-8x7B | +0.00 | +0.00 | +0.00 | +0.00 |
| N=3 | N=4 | N=10 | N=20 | |
| Cycle | |||
|---|---|---|---|
| Qwen-3B | +0.00 | +0.00 | +0.00 |
| Qwen-7B | -0.60 | -1.39 | -1.21 |
| Qwen-14B | +0.00 | +0.00 | +0.00 |
| Qwen-32B | +0.00 | +0.00 | +0.00 |
| Llama-8B | +1.66 | +0.48 | +0.20 |
| Llama-70B | +0.15 | -0.94 | -1.63 |
| Mistral-7B | +0.00 | +0.00 | +0.00 |
| Mixtral-8x7B | +0.00 | +0.00 | +0.00 |
| N=4 | N=10 | N=20 | |
| Star | |||
|---|---|---|---|
| Qwen-3B | +0.00 | +0.00 | +0.00 |
| Qwen-7B | -0.02 | -0.49 | -0.62 |
| Qwen-14B | +0.00 | +0.00 | +0.00 |
| Qwen-32B | +0.00 | +0.00 | +0.00 |
| Llama-8B | +0.47 | +0.25 | +0.29 |
| Llama-70B | +0.10 | +0.46 | +0.52 |
| Mistral-7B | +0.00 | +0.00 | +0.00 |
| Mixtral-8x7B | +0.00 | +0.00 | +0.00 |
| N=4 | N=10 | N=20 | |

Figure 12: Effect of global uncertainty cue on average social cost in homogeneous networks under , measured as . Blue indicates lower social cost (improved welfare); red indicates higher social cost.
Exposed node unchanged
Only exposed node responds
Exposed + some unexposed respond
All nodes respond
Homogeneous

Heterogeneous

Figure 13: Responses to localized uncertainty relative to matched cue-off runs. Categories distinguish no exposed-node action response and exposed-node responses with zero, partial, or full temporal reach among unexposed nodes. Reach is based on action differences linked through time along network edges, not proof of causal transmission. Bars report observed-run shares pooled across configurations, label orders, and seeds; counts give included runs.