ExpGuard: Guarding Long-Horizon LLM Agents against Corrupted Experience
On the map: LLM agents and tool use → Agent memory systems also fits: Agent threats, guardrails and governance
Abstract (arXiv)
Long-horizon large language model (LLM) agents distill past trajectories into reusable experiences. Misleading or adversarial guidance in source trajectories can corrupt these experiences, allowing harmful instructions to persist across tasks and influence future agent actions. Assessing the risks of potentially corrupted experiences poses three challenges: (1) modeling provenance and execution dependencies before experience reuse, (2) learning task-conditioned risk from trajectory outcomes, and (3) repairing risky experiences at online inference. To address these challenges, we present ExpGuard, a framework for retrieval-triggered experience risk assessment and online repair. Specifically, to tackle challenge (1), ExpGuard integrates experience semantics with provenance and execution dependencies in a task-conditioned heterogeneous graph to predict attack and task-failure risks before experience reuse. To enable task-conditioned risk supervision and tackle challenge (2), we conduct matched counterfactual replays of each original experience and its minimally neutralized counterpart from the same task and environment checkpoint, deriving separate risk labels from differences in attack success and legitimate task completion. To tackle challenge (3) at inference time, ExpGuard repairs candidate experiences flagged as high-risk by the graph-based predictor at retrieval and re-predicts their risks before they enter the agent's active experience context. Extensive experiments demonstrate the effectiveness of ExpGuard in identifying risky experiences and defending agents against experience corruption.
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 61 of its 84 references that are in the map. Submitted 24 Nov 2026, announced 25 Nov 2026.
Builds on
61 of 84 references.
Closest ancestors · 12
Same direction, newest first
- 2026MemForm: Benchmarking Memory Formation Poisoning in LLM Agents10 Oct
- 2026TRUSTMEM: Learning Trustworthy Memory Consolidation for LLM Agents with Long-Term Memory23 Jun
- 2026AdaMEM: Test-Time Adaptive Memory for Language Agents4 Jun
- 2026From Recall to Forgetting: Benchmarking Long-Term Memory for Personalized Agents21 Apr
- 2026AMA-Bench: Evaluating Long-Horizon Memory for Agentic Applications26 Feb
- 2026PlugMem: A Task-Agnostic Plugin Memory Module for LLM Agents6 Feb
- 2026Mem2ActBench: A Benchmark for Evaluating Long-Term Memory Utilization in Task-Oriented Autonomous Agents13 Jan
- 2025MemEvolve: Meta-Evolution of Agent Memory Systems21 Dec
- 2025Remember Me, Refine Me: A Dynamic Procedural Memory Framework for Experience-Driven Agent Evolution11 Dec
- 2025ReasoningBank: Scaling Agent Self-Evolving with Reasoning Memory29 Sep
- 2025Memory-R1: Enhancing Large Language Model Agents to Manage and Utilize Memories via Reinforcement Learning27 Aug
- 2025How Memory Management Impacts LLM Agents: An Empirical Study of Experience-Following Behavior21 May
Other references · 49
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 9,589
- 2017Inductive Representation Learning on Large Graphscited by 6,466
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,789
- 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,483
- 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 2,232
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 2,083
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 2,069
- 2017Modeling Relational Data with Graph Convolutional Networkscited by 1,735
- 2023AgentBench: Evaluating LLMs as Agentscited by 1,401
- 2026DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligencecited by 1,363
- 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,337
- 2023ExpeL: LLM Agents Are Experiential Learnerscited by 1,067
37 more
- 2019Heterogeneous Graph Attention Networkcited by 754
- 2023API-Bank: A Comprehensive Benchmark for Tool-Augmented LLMscited by 646
- 2024InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agentscited by 634
- 2020Heterogeneous Graph Transformercited by 607
- 2024WildGuard: Open One-Stop Moderation Tools for Safety Risks, Jailbreaks, and Refusals of LLMscited by 566
- 2024AppWorld: A Controllable World of Apps and People for Benchmarking Interactive Coding Agentscited by 510
- 2024AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Basescited by 488
- 2024Agent Workflow Memorycited by 482
- 2026Gemma 4 Technical Reportcited by 464
- 2024ToolSandbox: A Stateful, Conversational, Interactive Evaluation Benchmark for LLM Tool Use Capabilitiescited by 354
- 2024PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Modelscited by 300
- 2025Plan-and-Act: Improving Planning of Agents for Long-Horizon Taskscited by 219
- 2025Memory Injection Attacks on LLM Agents via Query-Only Interactioncited by 169
- 2024The Task Shield: Enforcing Task Alignment to Defend Against Indirect Prompt Injection in LLM Agentscited by 128
- 2025AGrail: A Lifelong Agent Guardrail with Effective and Adaptive Safety Detectioncited by 101
- 2026ToolSafe: Enhancing Tool Invocation Safety of LLM-based agents via Proactive Step-level Guardrail and Feedbackcited by 88
- 2025MemoryGraft: Persistent Compromise of LLM Agents via Poisoned Experience Retrievalcited by 82
- 2025A-MemGuard: A Proactive Defense Framework for LLM-Based Agent Memorycited by 74
- 2024CausalGym: Benchmarking causal interpretability methods on linguistic taskscited by 54
- 2026AgentLAB: Benchmarking LLM Agents against Long-Horizon Attackscited by 50
- 2026AttriGuard: Defeating Indirect Prompt Injection in LLM Agents via Causal Attribution of Tool Invocationscited by 46
- 2025Building a Foundational Guardrail for General Agentic Systems via Synthetic Datacited by 42
- 2026Hidden in Memory: Sleeper Memory Poisoning in LLM Agentscited by 35
- 2026CausalFlow: Causal Attribution and Counterfactual Repair for LLM Agent Failurescited by 33
- 2026Causal Agent Replay: Counterfactual Attribution for LLM-Agent Failurescited by 32
- 2026Your Agent, Their Asset: A Real-World Safety Analysis of OpenClawcited by 23
- 2017Practical Whole-System Provenance Capturecited by 21
- 2026LongHorizon-Harness: Advancing Long-Horizon Agents for Real-World Taskscited by 21
- 2026Large Language Model Agents Are Not Always Faithful Self-Evolverscited by 13
- 2026MemMorph: Tool Hijacking in LLM Agents via Memory Poisoningcited by 12
- 2026Ask Only When Needed: Proactive Retrieval from Memory and Skills for Experience-Driven Lifelong Agentscited by 9
- 2026FragFuse: Bypassing Access Control of Large Language Model Agents via Memory-Based Query Fragmentation and Fusioncited by 8
- 2024Counterfactuals As a Means for Evaluating Faithfulness of Attribution Methods in Autoregressive Language Modelscited by 6
- 2018Runtime Analysis of Whole-System Provenancecited by 5
- 2026Membrane: A Self-Evolving Contrastive Safety Memory for LLM Agent Defensecited by 5
- 2026MIND: Lightweight and Effective Memory Injection Defense for LLM Agents via Intent-Aware Information Bottleneckcited by 2
- 2026MAPLE-Guard: Memory-Aware Link Enforcement Against Memory-Link Poisoning in Multi-Agent Systemscited by 2
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026ExpGraph: Model-Agnostic Experience Learning with Graph-Structured Memory for LLM Agents
- 2026MemEvoBench: Benchmarking Safety Risks from Memory Misevolution in LLM Agents
- 2026BLINDSPOT: A Benchmark for Safety and Refusal Calibration in Long-Horizon Tool-Using Agents
- 2026Benign Alone, Harmful Together: Exploiting Experience Composition in Self-Evolving LLM Agents
- 2026LatentTriad: Pre-Action Risk Representations for Malicious Agent Skill Detection
- 2026Remembering More, Risking More: Longitudinal Safety Risks in Memory-Equipped LLM Agents
- 2026OEP: Poisoning Self-Evolving LLM Agents via Locally Correct but Non-Transferable Experiences
- 2026Rollback the World, Keep the Reflection: Rollback-Induced Reflection for Long-Horizon LLM Agents