← All IntelClip / AI Agents
The trapdoor experiment: dreaming corrects bad memories
From Claude for Long-Horizon Tasks — Lance Martin, Anthropic · ≈14:06
Recording publisher: AI Engineer
“Five out of five replicates with raw memory store fell down this trap. With the dreaming, this error is corrected, and it's able to properly localize itself and not fall fall down this trap.”
AI Engineer
“in band, while Claude is writing to memory, it can make mistakes. And those mistakes get stuck in memory unless you have an offline process to kind of correct them.”
AI Engineer
“this is a very practical example of how dreaming can kind of work out of band on your memory store to fix corrections. Because what it does is it looks at your memory store and it looks at all your prior traces or sessions and kind of can find and correct errors.”
AI Engineer
What’s in it
- A clean controlled result — no-memory stalls, raw memory reproducibly backtracks on a bad localization memory, and offline consolidation fixes the error and advances the level.
Clip transcript
that I've used dreaming for. So, this is again Pokémon. And this is I played a lot of games of Pokémon with Claude to find this. So, this was a very hard one lesson, so I hope you appreciate it. Okay, here's the point. So, basically what happened is Claude wrote an incorrect memory, okay? And what happened is this incorrect memory was related to the location of The details don't necessarily matter. Uh the point is that this incorrect memory causes Claude to mislocalize itself or Pokémon to mislocalize itself, and it falls through this trapdoor, okay? That's the key point. So, it writes this incorrect memory. This incorrect memory causes it to mislocalize in the game, and it falls down this trap. This is very consistent. So, I saw this in five replicates. Five out of five replicates with raw memory store fell down this trap. With the dreaming, this error is corrected, and it's able to properly localize itself and not fall fall down this trap. And I'll show you kind of a fun visualization of this. This is looking at kind of memory traces or basically traces of game progress. So, going upwards on the Y axis is improvement. That's like moving to the next level. Going down is backtracking. So, what's interesting here, the no memory baseline, which is that gray bar, kind of doesn't make much progress at all. It just kind of like is stuck. It's like a particularly hard level, okay? The memory, which is the orange, actually keeps falling down this trapdoor and falls back. So, it backtracks. The dreaming traces though consistently kind of fix this error in its memory and proceed to the next level. So, this is a very practical example of how dreaming can kind of work out of band on your memory store to fix corrections. Because what it does is it looks at your memory store and it looks at all your prior traces or sessions and kind of can find and correct errors. That's the key point and that's why the dreaming process can be very helpful because in band, while Claude is writing to memory, it can make mistakes. And those mistakes get stuck in memory unless you have an offline process to kind of correct them. That's the key
Recommended reads


