Accept Changes, Reject Attacks: Robust Memory Management for LLM Agents
On the map: LLM agents and tool use → Agent memory systems
Abstract (arXiv)
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.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Agent memory systems, one of 16 directions in LLM agents and tool use. Builds on 36 of its 57 references that are in the map. Submitted 29 Oct 2026.
Builds on
36 of 57 references.
Closest ancestors · 8
Same direction, newest first
- 2026PACMI: Provenance-Aware Cascading Memory Invalidation for Long-Term LLM Agents5 Oct
- 2026Supersede: Diagnosing and Training the Memory-Update Gap in LLM Agents25 Jun
- 2026STALE: Can LLM Agents Know When Their Memories Are No Longer Valid?7 May
- 2025Evaluating Memory in LLM Agents via Incremental Multi-Turn Interactions7 Jul
- 2025A-MEM: Agentic Memory for LLM Agents17 Feb
- 2025Zep: A Temporal Knowledge Graph Architecture for Agent Memory20 Jan
- 2024Towards Lifelong Dialogue Agents via Timeline-based Memory Management16 Jun
- 2024Evaluating Very Long-Term Conversational Memory of LLM Agents27 Feb
Other references · 28
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 10,542
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,559
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,828
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,655
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,638
- 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,560
- 2021Unsupervised Dense Information Retrieval with Contrastive Learningcited by 1,272
- 2023LIMA: Less Is More for Alignmentcited by 1,138
- 2018Robustness May Be at Odds with Accuracycited by 908
- 2024LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memorycited by 876
- 2023In-Context Retrieval-Augmented Language Modelscited by 717
- 2024The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructionscited by 568
16 more
- 2025LIMO: Less is More for Reasoningcited by 520
- 2024AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Basescited by 488
- 2019Learning the Difference that Makes a Difference with Counterfactually-Augmented Datacited by 478
- 2024StruQ: Defending Against Prompt Injection with Structured Queriescited by 433
- 2023Adaptive Chameleon or Stubborn Sloth: Revealing the Behavior of Large Language Models in Knowledge Conflictscited by 410
- 2023Principle-Driven Self-Alignment of Language Models from Scratch with Minimal Human Supervisioncited by 327
- 2025Reinforcement Learning for Reasoning in Large Language Models with One Training Examplecited by 323
- 2024Knowledge Conflicts for LLMs: A Surveycited by 320
- 2024SecAlign: Defending Against Prompt Injection with Preference Optimizationcited by 251
- 2025Memory Injection Attacks on LLM Agents via Query-Only Interactioncited by 169
- 2022Re2G: Retrieve, Rerank, Generatecited by 108
- 2025Beyond a Million Tokens: Benchmarking and Enhancing Long-Term Memory in LLMscited by 77
- 2024LLM2LLM: Boosting LLMs with Novel Iterative Data Enhancementcited by 76
- 2025A-MemGuard: A Proactive Defense Framework for LLM-Based Agent Memorycited by 74
- 2026MemSecBench: Tracking Agent Memory Poisoning from Persistence to Consequence and Repaircited by 9
- 2026The Price of Safety: Benign-Case Utility and Token Overhead of Memory-Poisoning Defenses in LLM Agentscited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026MemEvoBench: Benchmarking Safety Risks from Memory Misevolution in LLM Agents
- 2025LLMs Cannot Reliably Judge (Yet?): A Comprehensive Assessment on the Robustness of LLM-as-a-Judge
- 2026From Attack Success to Attack Severity: Counterfactual Memory Attacks on LLM Agents
- 2026Weighted Memory Tree: Remembering What Matters for Long-Horizon LLM Agents
- 2023Evaluating the Instruction-Following Robustness of Large Language Models to Prompt Injection
- 2025Robustness via Referencing: Defending against Prompt Injection Attacks by Referencing the Executed Instruction
- 2026ConsistencyGate: Preventing Memory Contamination in LLM Agents via Self-Consistency Admission Control
- 2026When Does Belief-Based Agent Memory Help? Reliability-Conditional Updating and Provenance-Capped Poisoning Defense