arXiv:2610.32726physics.soc-phOct 2026

Manuscript Offprint

arXiv:2610.32726

The Butterfly Defects: Tracing Cooperation in LLM Agent Networks

Maria Sampani, Maria Lymperaiou, Angeliki Dimitriou, Giorgos Filandrianos, Chrysoula Zerva, Giorgos Stamou

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

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?

References (26)