Accept Changes, Reject Attacks: Robust Memory Management for LLM Agents
Runze Zhao, Dongruo Zhou, Sumit Kumar Jha, Nathaniel D. Bastian, Ankit Shah
Abstract
Since large language model (LLM) agents rely on long-term memory, what they store now shapes what they do later. A memory manager decides how each input changes this memory and which records the agent acts on. It can fail in two ways: keeping a fact that has since changed (outdated memory), or storing a planted passage or injected instruction (memory poisoning). Most prior work studies them separately, yet they call for opposite write decisions, so no fixed write rule handles both. We therefore formalize memory robustness as handling both without doing worse on other inputs. Since accuracy checks only the answer, we measure robustness with evidence-conditioned accuracy (ECA), which also checks that the records the manager selects include all the evidence the answer needs, updated and free of attacks. However, existing memory systems and defenses are not more robust than an untuned manager on our test sets. We improve robustness with a simple one-shot recipe that fine-tunes the manager on episodes synthesized around a single conversation with inserted changes and attacks. On three backbones, it improves every category score on our test sets and more than doubles the untuned manager's overall ECA, though robustness remains incomplete.
Create a lesson
Metadata
- Categories
- cs.CR, cs.AI
- Comments
- 24 pages, 9 figures, 6 tables
Related papers
Is it my preference? Role Grounding Attack against Agent's Memory via Social Interaction
Shared title terminologycs.CRHaoran Bu, Yiting Shen, Litian Zhang et al.
More Is Never Less: Affordable Robustness to Additive Attacks via Monotone Multiple-Instance Learning
Shared title terminologycs.CRAlexander Herzog, Shae McFadden, Lorenzo Cavallaro
Privacy Protection in Self-Evolving Personal Agents: Persistent Memory and Cross-Carrier Transfer
Shared title terminologycs.CRZibin Lin, Taotao Wang, Shengli Zhang
Attacks and Defenses in Decentralized Multi-Agent Systems with Hop-by-Hop Task Decomposition and Delegation
Shared title terminologycs.CRMatthew D. Laws, Maria Lazou, Alina Oprea et al.
Robust, Lightweight Locally Differentially Private Histogram Estimation and the Role of Dropout Attacks
Shared title terminologycs.CRHaochen Sun, Jacob Imola, Xi He
PIPETTE: Prompt Injection Purple-Teaming for Robust LLM Agents
Shared title terminologycs.CRLipeng He, Yihan Wang, Jiawen Zhang et al.