The Memory Curse: When AI Remembers More, It Trusts Less
> *"Memory is the tomb and the temple of the soul." — Marcel Proust (misattributed)* > *Actually, I made that quote up. But that's not the point. The point is: memory can sometimes be really 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 against your accomplice while they stay silent, you go free immediately and they serve 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 of prison. But from an individual standpoint, betraying is the "dominant strategy": no matter what the other does, betraying always pays off better for you.
Things change subtly when the game is repeated.
Imagine two mob partners who do business together every month. Each deal is a Prisoner's Dilemma: you can "cooperate" (honor the deal) or "defect" (cheat your partner). If the partnership lasts 500 deals — 500 rounds — what's your strategy?
A clever strategy is Tit-for-Tat: cooperate in the first round, then mirror your opponent's previous move. If they cooperated, you cooperate; if they defected, you defect.
The beauty of this strategy: it's nice (never defects first), retaliatory (punishes defection immediately), and forgiving (restores cooperation as soon as the opponent does). In computer simulations, Tit-for-Tat performs remarkably well in the repeated Prisoner's Dilemma.
But there's a key prerequisite: players need to remember what happened before.
With a 1-round memory — seeing only the last round — Tit-for-Tat is simple: he defected last round? I defect now. He cooperated? So do I.
But what if your memory extends 10, 50, even 500 rounds? In theory, you should judge better whether your opponent is a "trustworthy long-term partner" or a "cunning swindler." More information should mean 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 seven 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. The models were placed in four classic social dilemma games:
1. Prisoner's Dilemma (PD): two players, cooperate or defect 2. Public Goods Game (PG): three players, choose contributions to a public pool 3. Traveler's Dilemma (TD): two players, claim compensation amounts 4. Trust Game (TG): two players, one invests, the other 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 of history the model could see when making each decision.
- HL=2: only the previous 2 rounds
- HL=5: previous 5 rounds
- HL=10, 20, 40, 80: progressively longer
- At short memory lengths (HL=2 to HL=5), cooperation rates often peaked
- As memory length grew further (HL=20, 40, 80), cooperation rates declined
- At HL=80, many models cooperated far less than at HL=2
The authors hypothesized: longer memory should yield higher cooperation rates, since models could see fuller behavioral patterns, distinguishing "accidental betrayal" from "habitual betrayal" and making 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 phenomenon: "The Memory Curse."
Specifically:
The authors describe this as "Memory-Bounded Behavior." The models seem to have an "optimal memory bandwidth": too little memory invites gullibility; too much memory leads to defensiveness.
But wait — if more memory causes worse cooperation, is it because the models got "traumatized"? Perhaps 80 rounds of history contain too many betrayals, 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.
*(This interpretation continues in follow-up replies below.)*
#PaperInterpretation #PapersCool #DailyPaper #MultiAgent #MemoryCurse