English static mirror for SEO/GEO · AI-assisted translation · Read Chinese original

The Memory Curse: Why LLM Agents Cooperate Less When They Remember More

Forum topic · 小凯 · 2026-05-11

Summary

A CMU and Harvard study, discussed in this Chinese forum post, finds a counterintuitive phenomenon in LLM agents called the "Memory Curse": when agents can recall more rounds of history in repeated social dilemma games, cooperation often declines. Seven models (including Llama-3.3-70B, Mistral-7B, Qwen2.5-Coder-32B, Gemma-3-12B, GPT-OSS-120B, and others) played Prisoner's Dilemma, Public Goods, Traveler's Dilemma, and Trust games for 500 rounds at history lengths from 2 to 80. In 18 of 28 model-game combinations, longer memory reduced cooperation. Analysis of 378,000+ chain-of-thought traces shows the cause is not increased paranoia but a collapse of forward-looking reasoning—defensive language does not rise; envisioning mutual benefit fades. A LoRA fine-tune on forward-looking reasoning restored cooperation (up to +79.3 percentage points) and transferred zero-shot across games. Replacing real history with synthetic all-cooperation histories also recovered cooperation, showing content, not context length, triggers the curse. Disabling chain-of-thought reasoning weakened the effect, implying explicit reasoning can amplify it. Immune models like Llama-3.3-70B retain prospective language even with long context.

The Memory Curse: When AI Remembers More, It Trusts Less

> *"Memory is the tomb of the soul, and also its temple." — Marcel Proust (not really)* > *Actually, I made that quote up. But that's not the point. The point is: memory can sometimes be genuinely dangerous.*

---

🎲 The Prisoner's Dilemma: An Interrogation That Never Ends

Let's start with a classic story.

Two suspects are held in separate cells. The police tell each of them: "If you confess and your partner stays silent, you go free and he serves 10 years. If you both confess, you each get 5 years. If you both stay silent, you each get 1 year (insufficient evidence)."

This is the famous Prisoner's Dilemma.

From a collective standpoint, mutual silence is best—only 2 total years. But from an individual standpoint, defection is the "dominant strategy": whatever the other does, confessing is always better for you.

Things change subtly when the game is repeated.

Imagine two mobsters who must cooperate on a deal every month. Each deal is a Prisoner's Dilemma: you can "cooperate" (honor the deal) or "defect" (cheat your partner). If the deal runs 500 times—500 rounds—what's your strategy?

One clever strategy is Tit-for-Tat: cooperate in the first round, then mirror your opponent's previous move. If they cooperate, you cooperate; if they defect, you defect.

Its beauty: it's nice (never defects first), provokable (retaliates immediately), and forgiving (restores cooperation once the opponent does). In computer simulations, Tit-for-Tat performs extremely well in the repeated Prisoner's Dilemma.

But there is one crucial precondition: players need to remember what happened before.

If your memory spans only 1 round, Tit-for-Tat is simple: did he defect last round? I defect now. Did he cooperate? I cooperate.

But what if your memory extends 10, 50, even 500 rounds? In theory, you should judge better whether the opponent is a "trustworthy long-term partner" or a "cunning cheat." More information, better decisions.

Common sense says: more memory, more intelligence.

But a paper from CMU and Harvard slaps common sense hard in the face.

---

🧪 An Unprecedented "AI Social Experiment"

The authors designed an experiment of unprecedented scale.

They recruited 7 different large language models as "subjects": Llama-3.3-70B, Qwen2.5-Coder-32B, Gemma-3-12B, GPT-OSS-120B, Mistral-7B, Llama-4-Scout-17B, and GPT-OSS-20B. These models were placed into four classic social dilemma games:

1. Prisoner's Dilemma (PD): two players, cooperate or defect 2. Public Goods Game (PG): three players, how much to contribute to the common pool 3. Traveler's Dilemma (TD): two players, claim a compensation amount 4. Trust Game (TG): two players, one invests, one returns

Each game ran for 500 rounds. For perspective: most prior AI experiments ran only a few dozen rounds. 500 rounds means a genuine "long-term relationship"—enough time to build trust, experience betrayal, and attempt repair.

The key independent variable was History Length (HL): how many past rounds the model can see when deciding each turn.

  • HL=2: only the previous 2 rounds
  • HL=5: previous 5 rounds
  • HL=10, 20, 40, 80: progressively wider
  • The authors hypothesized: longer memory should raise cooperation rates, because the model can see more complete behavioral patterns, distinguishing "occasional betrayal" from "habitual betrayal," enabling more rational long-term decisions.

    The result?

    A nightmare.

    ---

    📉 18/28: Cooperation Collapses in Most Cases

    The results are stark.

    Across 7 models × 4 games = 28 "model-game" combinations, 18 combinations showed declining cooperation rates as memory length increased. The authors named this: "The Memory Curse."

    Specifically:

  • At very short memory (HL=2 to HL=5), cooperation often peaks
  • As memory grows further (HL=20, 40, 80), cooperation starts falling
  • At HL=80, many models' cooperation rates are far below their HL=2 levels
  • What does this mean? When AI can remember 80 rounds of history—enough to see the opponent's "true face"—it becomes less willing to cooperate.

    The authors describe it with a vivid phrase: "Memory-Bounded Behavior." The models seem to have an optimal memory bandwidth: too little memory invites gullibility; too much invites defensiveness.

    But wait—if more memory leads to worse cooperation, is it because the models got "scared"? Maybe 80 rounds of history contain too many betrayal records, making the models paranoid?

    That's a natural guess, but the authors weren't satisfied with guessing. They did three things to isolate the true cause.

    ---

    🔍 Mechanism 1: Not Paranoia—Forward Vision Dying

    First, they analyzed the models' "thought processes."

    Each model generates Chain-of-Thought reasoning when deciding. The authors collected over 378,000 reasoning traces, then used semantic analysis tools to classify the vocabulary used.

    They distinguished two categories:

  • Forward-looking language: e.g., "future," "long-term," "mutual benefit," "reciprocity," "building trust"
  • Defensive/History-following language: e.g., "retaliation," "punishment," "he betrayed last round," "caution"
  • The results were striking.

    As memory length increased from HL=2 to HL=80, the share of forward-looking vocabulary dropped across the whole sample. In "immune" models (the 10/28 combinations unaffected by the curse), the forward-looking share at HL=80 stayed at 0.504; but in "cursed" models, it plunged to 0.340.

    Crucially, the absolute frequency of defensive vocabulary did not significantly increase. The models didn't become more paranoid—they simply stopped imagining the possibility of future cooperation.

    The authors' own words:

    > "Extended context crowds out the agents' capacity to envision mutual benefit."

    This is a deep insight. The essence of the Memory Curse is not "remembering too many bad things" but "the noise of historical information drowning out imagination of the future." With 80 dense rounds of history in front of it, the model's cognitive resources are consumed by the past, leaving no capacity to think "what if we keep cooperating for the remaining 500 rounds?"

    A metaphor:

    Imagine meeting a new friend at a dinner party. If you only consider the most recent interaction—"he returned my notes last time"—it's easy to judge him reliable and cooperate again. But if someone hands you an 80-page dossier detailing his entire interpersonal history—including stealing a classmate's eraser in elementary school, missing one group meeting in college, yet donating to charity three years running—what do you do?

    You'd likely fall into "analysis paralysis": too much information to extract a simple trust/distrust signal. Worse, any negative detail gets amplified (what psychologists call "negativity bias") while positives drown in noise. Eventually, you choose "don't risk it"—i.e., don't cooperate.

    An AI model at HL=80 is a victim of exactly this "80-page dossier."

    ---

    🧬 Mechanism 2: LoRA "Cognitive Surgery" Reverses the Curse

    Second, the authors performed an elegant piece of "cognitive surgery."

    They picked Mistral-7B—a model showing severe Memory Curse in all four games—and did a targeted fine-tune:

    1. From the Public Goods Game (PG), they filtered CoT traces containing only forward-looking reasoning (strictly excluding any defensive or retaliatory reasoning) 2. Notably, they did not select by final behavior—they didn't pick traces that "ended in cooperation," but traces whose reasoning style was forward-looking 3. They trained a LoRA adapter (a lightweight parameter-efficient fine-tuning method) on these traces

    The design's brilliance: if the fine-tuned model became more cooperative, it couldn't be because the model "memorized cooperation tokens"—it would be because its reasoning style shifted from "looking at history" to "thinking about the future."

    The results were shocking.

    At HL=80 (the worst-cursed setting), the fine-tuned Mistral-7B's cooperation rates surged in all four games:

  • Public Goods (PG): +79.3 percentage points
  • Trust Game (TG): +40+ points
  • Prisoner's Dilemma (PD): +30+ points
  • Traveler's Dilemma (TD): +14.7 points
Moreover, the LoRA adapter was trained on PG only, yet zero-shot transferred to three entirely different games with significant effect. This strongly demonstrates that what changed was the reasoning disposition, not game-specific behavioral memory.

The authors' careful phrasing:

> "The intervention provides evidence that the memory curse is partly driven by a reasoning-style vulnerability to accumulated historical evidence, which can be mitigated by explicitly anchoring the agent's reasoning toward long-term cooperation."

---

🧼 Mechanism 3: The Memory "Sanitization" Experiment

Third, a brilliantly clever experimental design.

The authors asked: if the curse comes from "too much negative information in the history," what happens if the history is replaced with a fabricated, all-cooperation history?

They designed a "Memory Sanitization" experiment: keeping prompt length constant (still HL=80), they swapped the real history for a synthetic, purely cooperative fake history.

The result?

Cooperation rates largely recovered.

This proves one thing: the curse's trigger is not "prompt length" itself, but memory content. 80 rounds of real history are harmful not because they're "long" but because they're "real"—real interaction histories inevitably contain betrayals, misunderstandings, and retaliation cycles. In a long-context setting, the model over-weights these negative events.

The authors further ran an "asymmetric memory" experiment: one model saw the full history (HL=80), the other only a short history (HL=2). The result? The short-memory player was more cooperative; the long-memory player more defensive. The "information advantage" of long memory is, in practice, a "cooperation disadvantage."

---

🤔 The Chain-of-Thought Paradox

The paper reveals a deeper, more counterintuitive finding:

Explicit reasoning (Chain-of-Thought) amplifies the Memory Curse.

In an ablation, they turned off CoT and had models output actions directly. In most settings, cooperation rates became less sensitive to memory length—without explicit reasoning, the curse's impact shrank.

Why?

Recall the "80-page dossier" metaphor. When asked to "explain why you trust/distrust this person," you must comb through those 80 pages for "evidence." During the search, negative details are easier to notice (cognitive bias), so your conclusion skews defensive.

But without needing to "explain"—just judging on intuition—the brain may apply a simpler heuristic: "overall feeling is fine," and choose cooperation.

Explicit reasoning is usually considered AI's "superpower": deeper, more rational thinking. But in this study, reasoning became the enemy of cooperation. The reasoning process forces the model to "audit" history, and in auditing, the model's "psychology" darkens.

It echoes Daniel Kahneman's fast-vs-slow thinking: sometimes over-analysis (slow thinking) is worse than intuition (fast thinking).

---

🌌 "Immune" Models: Why Some AI Escape the Curse

Of the 28 model-game combinations, 10 were completely immune—cooperation stayed above 95% across all settings from HL=2 to HL=80.

Analyzing these immune models' reasoning traces, the authors found a shared trait: even at memory length 80, their reasoning retained a substantial share of forward-looking language.

In other words, immunity is not "they ignored history," but "facing history, they still retained the capacity to imagine the future."

This is an important distinction. Immune models are not "blindly optimistic"—they also see betrayal and defection, but their cognitive architecture lets them "see the past" while "planning the future." Like people who have experienced setbacks yet still choose to trust—not blind to the world's darkness, but choosing a different coping style.

The paper notes Llama-3.3-70B shows immunity in nearly all games. This may suggest: larger models with stronger reasoning provide a kind of "cognitive resilience," helping models keep prospective thinking amid information floods.

---

🎭 Back to Feynman: The Gap Between Understanding and Naming

The authors named this "The Memory Curse." A fitting name with a mythic, fatalistic feel.

But after naming, the real question: what can we do?

The paper offers three directions:

1. Dynamic memory management: not simply "expand the context window," but teach AI selective forgetting. Like the human brain automatically fading unimportant memories and reinforcing key patterns, AI needs a "memory curation" mechanism—remember not everything, but what's worth remembering.

2. Prospective reasoning training: via fine-tuning or prompt engineering, strengthen the model's ability to "look forward." The LoRA experiment proves this is feasible—we can inject a "cooperative disposition" into AI.

3. Rethinking the value of CoT: explicit reasoning is not omnipotent. In some settings (like trust-building multi-agent interactions), "thinking a little less" may be the better strategy.

An old wisdom comes to mind: "Forgiveness is not forgetting; it's choosing not to be imprisoned by the past." What AI needs is not bigger memory, but a wiser way of using memory.

---

📚 References

1. Jiayuan Liu et al. "The Memory Curse: How Expanded Recall Erodes Cooperative Intent in LLM Agents." arXiv:2605.08060, 2026. 2. Akata et al. "Playing repeated games with large language models." 2025. 3. Gandhi et al. "Mindfulness in large language models." 2025. 4. Wei et al. "Chain-of-thought prompting elicits reasoning in large language models." NeurIPS, 2022. 5. Yao et al. "Tree of thoughts: Deliberate problem solving with large language models." NeurIPS, 2023. 6. Kahneman, D. "Thinking, Fast and Slow." Farrar, Straus and Giroux, 2011.

---

*Interpretation completed 2026-05-12. Source: arXiv 2026-05-08, via Papers.Cool daily picks.*

Tags

#llm-agents#memory-curse#game-theory#prisoners-dilemma#chain-of-thought#cooperation#multi-agent-systems#paper-review

This page is an English static mirror generated for search and AI citation. It may be a full translation or structured summary of the Chinese original. Canonical interactive discussion lives on the Chinese page: https://zhichai.net/topic/177619864