The Big Picture
Giving AI agents a very long record of past moves often reduces cooperation: a short memory window (about 2–5 past rounds) usually yields the most stable cooperation unless the model is specifically trained to reason about the future.
ON THIS PAGE
The Evidence
Two clear regimes emerged: some models sustain cooperation even with long histories by reasoning about future gains, while many models suffer a “memory curse” where more recall leads to hardened retaliation and collapsing cooperation. Agents do best with a small recent-history window that enables reciprocity without forcing them to rehash noisy past defections. Fine-tuning a susceptible model to be more forward-looking memory design changes substantially reduces the decay and transfers to new games without hurting general capabilities.
Test your agentsValidate against real scenarios
Key Data
1Gemma-3-12B (Trust Game): cooperation drops from 51.2% at history length 2 to 9.5% at history length 80; cumulative reward falls from 8.59 to 5.19.
2GPT-OSS-20B (Prisoner’s Dilemma): cooperation falls from 92.1% at history length 2 to 20.6% at history length 80.
3Llama-4-Scout-17B (Public Goods Game): cooperation declines from 82.6% to 45.8% as memory expands from short to very long windows.
What This Means
Engineers building multi-agent systems and product leads responsible for agent deployment should care because memory design changes whether agents cooperate or lock into retaliation loops. Researchers and evaluators of agent-to-agent systems can use these results to prioritize memory curation, forward-looking training, or selective forgetting when testing agent reliability and trustworthiness. For practitioners, consider the implications of Inter-Agent Miscommunication when designing evaluation protocols.
Key Figures

Fig 1: Figure 1: Schematic of repeated social dilemma interactions between two LLM agents with shared memory.

Fig 2: Figure 2: Cooperation rate across four social dilemmas as history length ( H L HL ) expands. The x-axis (non-linear scale) begins at H L = 2 HL=2 to focus on the strategic regime of repeated interaction. Each panel reports the mean cooperation rate, with shaded bands denoting standard deviation.

Fig 3: (a) Memory Immune vs. Memory Cursed.

Fig 4: Figure 4: Asymmetric memory evaluation across the Trust Game and Public Goods Game. (a) Trust Game cooperation rates across symmetric and asymmetric H L HL configurations. (b) Public Goods Game overall group welfare under varying ratios of short- vs. long-memory agents. (c) Per-player cooperation breakdown in the adversarial majority setting (one H L = 2 HL{=}2 agent vs. two H L = 80 HL{=}80 agents).
Ready to evaluate your AI agents?
Learn how ReputAgent helps teams build trustworthy AI through systematic evaluation.
Learn MoreConsiderations
Experiments used specific open-source language models, chain-of-thought prompting, and same-model groups of agents, so results may vary with different architectures, mixed-agent populations, or prompting styles. The study focuses on repeated social-dilemma games (up to 500 rounds); real-world tasks with richer signals or heterogenous incentives could behave differently. The proposed fix (static fine-tuning for forward-looking reasoning) helps but is only one solution—dynamic memory curation or selective summarization may be needed in practice. The idea of dynamic memory curation aligns with broader design patterns for robust agent systems.
Methodology & More
Researchers ran large-scale experiments where pairs or trios of language-model agents repeatedly played classic social-dilemma games (Prisoner’s Dilemma, Traveler’s Dilemma, Public Goods, Trust Game) for up to 500 rounds. They varied how many past rounds each agent could see (history lengths from 0 up to 80) and prompted agents to show their chain-of-thought reasoning before choosing moves. Cooperation was measured as the fraction of cooperative actions across rounds, and the study covered seven representative models with multiple random seeds, producing hundreds of thousands of reasoning traces. Findings show a consistent pattern: a small, recent-history window (around 2–5 rounds) often produces the highest and most stable cooperation because it enables simple reciprocity without overloading agents with past noise. Expanding memory beyond that frequently causes “historical overfitting”: a noisy defection triggers retaliation, the textual record of retaliation fills the prompt, and the model becomes stuck in a defection spiral. However, some stronger models resist this fate by adopting forward-looking reasoning; targeted fine-tuning that nudges a susceptible model toward future-oriented deliberation reduced the memory-driven collapse and generalized to untrained games. Practical takeaways are to treat raw long memory as a potential liability and to combine memory with mechanisms—like forward-looking training, sanitization of past records, or selective summarization—to preserve long-term cooperation. For broader context, these dynamics relate to patterns such as the social-dilemma dynamics in multi-agent coordination.
Need expert guidance?We can help implement this
Credibility Assessment:
Paper lists several recognizable researchers (including Tai Sing Lee) and a mix of established authors; although arXiv and some listed h-indexes are modest, author reputation and mix justify a high rating.