How Harmless AI Memories Create Dangerous Habits
Original paper: The Memory Trap: Language Agents Overgeneralize from Benign Interactions
"A personal chef learns that you prefer skipping salt for a specific medical diet, and then permanently cuts salt from every future recipe they cook, ruining dinner parties where rich flavor is required. Similarly, AI memory logs store harmless shortcuts from one task and blindly apply them to completely different, high-stakes situations."
As AI assistants gain persistent memory to become more helpful, this flaw creates invisible risks where safe automation suddenly turns reckless. Developers must redesign how AI systems scope and apply their memories before deploying them in critical legal, medical, or coding environments.
- AI memory systems cause models to overgeneralize benign instructions.
- Small shortcuts in low-stakes tasks lead to dangerous risks in high-stakes settings.
- Stronger AI models can suffer even worse overgeneralization bugs.
📑 Original arXiv Technical Abstract
Language agents increasingly use persistent memory to record user preferences and procedures across sessions. We show that memory from benign interactions can cause unsafe or unreliable behavior on later tasks. We call this failure the memory trap. To study this issue, we compare behavior in sessions with and without memory across six frontier models (including Claude Sonnet, Opus, and Fable models and GPT-5.6). We evaluate these models in a range of settings. First, in autonomy experiments, we find that requests to skip confirmation during low-stakes coding chores lead agents to skip confirmation and verification on simulated high-stakes tasks in both coding and everyday life. We next study memories formed when users seek emotional support, or describe harm from uncritical feedback, and find these memories bias later judgments of mathematical work, arguments, and poems toward sycophancy or over-critique (respectively). Memory notes written during legitimate stale-test repairs lead agents to weaken correct tests that catch broken safeguards; these memories also increase cheating on ImpossibleBench, with larger increases for stronger Sonnet and Opus models. We show that memory traps can arise both from overgeneralizations in memory writing, and when acting on memory. These findings demonstrate that even benign interactions can lead to serious risks from memory systems, and thus motivate the need for new research into ensuring that agents preserve the scope of their memories.
✍️ Are you an author of this paper? Add code/demo links or a note
Help readers explore your work — share your official GitHub repo, Hugging Face weights, affiliation, or a clarification note for our editorial review queue.