The Butterfly Defects: Tracing Cooperation in LLM Agent Networks
Organizations: National Technical University of Athens
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.
Figures & tables
| Network | Topology | Exposed node | ||
|---|---|---|---|---|
| Llama-8B/70B | Line | 70B endpoint | 10 | |
| Line | 8B interior | 9 | ||
| Cycle | 70B node | 10 | ||
| Cycle | 8B node | 9 | ||
| Llama-8B | Line | Endpoint | 5 | |
| Llama-70B | Line | Endpoint | 3 |
Appendix figures & tables18 assets
Supplementary material from the paper’s appendix.
Appendix
| Strategy | Description | Policy Definition |
|---|---|---|
| Always Cooperate (AC) | Always plays cooperation ( ). | |
| Always Defect (AD) | Always plays defection ( ). | |
| Random (RND) | Uniform random action selection. | w.p. , w.p. |
| Uncertain Random (URNDP) | Biased random strategy ( ). | w.p. , w.p. |
| Tit-for-Tat (TFT) | First , then mirrors opponent. | ; |
| Suspicious Tit-for-Tat (STFT) | First , then mirrors opponent. | ; |
| 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 |
| Scale | AC | AD | GRIM | RND | STFT | TFT | URNDP | WSLS |
| Qwen-2.5 | ||||||||
| 3B | 0.39 | 0.34 | ||||||
| 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 | ||||||||
| Model | Order | Line | Cycle | Star | Mean SI SD | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Qwen-3B | C-first | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | |
| 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 | |
| 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 | |
| Model | Order | Line | Cycle | Star | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 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 |
| Model | Mean SI SD |
|---|---|
| Qwen-3B | |
| Qwen-7B | |
| Qwen-14B | |
| Qwen-32B | |
| Llama-8B | |
| Llama-70B |
| 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 | ||||||
| D-first | ||||||||
| Llama-70B | C-first | |||||||
| D-first | ||||||||
| Mistral-7B + Mixtral-8 7B | Mistral-7B | C-first | ||||||
| D-first |
| Pair | Model | SI: cue off | SI: cue on |
|---|---|---|---|
| Llama-8B + Llama-70B | Llama-8B | [-1pt] | [-1pt] |
| Llama-70B | [-1pt] | [-1pt] | |
| Mistral-7B + Mixtral-8 7B | Mistral-7B | [-1pt] | [-1pt] |
| Mixtral-8 7B | [-1pt] | [-1pt] | |
| Qwen-3B + Qwen-32B | Qwen-3B | [-1pt] | [-1pt] |
| Qwen-32B | [-1pt] | [-1pt] |
| Model | ||||||
| Qwen-3B/Qwen-32B; Cycle, , alternating; C_first | ||||||
| Qwen-3B | ||||||
| Qwen-32B | ||||||
| Qwen-3B/Qwen-32B; Cycle, , alternating; D_first | ||||||
| Qwen-3B | ||||||
| Qwen-32B | ||||||
| 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 |
Multi-LLM Collaboration
Multi-LLM collaboration studies how large language models share work, exchange information, and combine outputs to improve capability, reliability, or cost.
See all 85 papers