ALRPHFS: Adversarially Learned Risk Patterns with Hierarchical Fast & Slow Reasoning for Robust Agent Defense
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
LLM Agents are becoming central to intelligent systems. However, their deployment raises serious safety concerns. Existing defenses largely rely on "Safety Checks", which struggle to capture the complex semantic risks posed by harmful user inputs or unsafe agent behaviors - creating a significant semantic gap between safety checks and real-world risks. To bridge this gap, we propose a novel defense framework, ALRPHFS (Adversarially Learned Risk Patterns with Hierarchical Fast & Slow Reasoning). ALRPHFS consists of two core components: (1) an offline adversarial self-learning loop to iteratively refine a generalizable and balanced library of risk patterns, substantially enhancing robustness without retraining the base LLM, and (2) an online hierarchical fast & slow reasoning engine that balances detection effectiveness with computational efficiency. Experimental results demonstrate that our approach achieves superior overall performance compared to existing baselines, achieving a best-in-class average accuracy of 80% and exhibiting strong generalizability across agents and tasks.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 21 of its 82 references that are in the map. First posted on arXiv 25 May 2025.
Builds on
21 of 82 references.
Closest ancestors · 11
Same direction, newest first
- 2025ShieldAgent: Shielding Agents via Verifiable Safety Policy Reasoning26 Mar
- 2025AGrail: A Lifelong Agent Guardrail with Effective and Adaptive Safety Detection17 Feb
- 2024Agent-SafetyBench: Evaluating the Safety of LLM Agents19 Dec
- 2024Agent Security Bench (ASB): Formalizing and Benchmarking Attacks and Defenses in LLM-based Agents3 Oct
- 2024EIA: Environmental Injection Attack on Generalist Web Agents for Privacy Leakage17 Sep
- 2024The Emerged Security and Privacy of LLM Agent: A Survey with Case Studies28 Jul
- 2024AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Bases17 Jul
- 2024BadAgent: Inserting and Activating Backdoor Attacks in LLM Agents5 Jun
- 2024Watch Out for Your Agents! Investigating Backdoor Threats to LLM-Based Agents17 Feb
- 2024TrustAgent: Towards Safe and Trustworthy LLM-based Agents2 Feb
- 2023Identifying the Risks of LM Agents with an LM-Emulated Sandbox25 Sep
Other references · 10
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2023A Survey on Large Language Model based Autonomous Agentscited by 2,242
- 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 2,006
- 2024GPT-4V(ision) is a Generalist Web Agent, if Groundedcited by 563
- 2024TravelPlanner: A Benchmark for Real-World Planning with Language Agentscited by 392
- 2024Certifiably Robust RAG against Retrieval Corruptioncited by 151
- 2023GIFD: A Generative Gradient Inversion Method with Feature Domain Optimizationcited by 45
- 2024Middleware for LLMs: Tools Are Instrumental for Language Agents in Complex Environmentscited by 39
- 2025Your Language Model Can Secretly Write Like Humans: Contrastive Paraphrase Attacks on LLM-Generated Text Detectorscited by 10
- 2025Beyond Surface-Level Patterns: An Essence-Driven Defense Framework Against Jailbreak Attacks in LLMscited by 9
Built on by
Citing papers per year: 2025: 1; 2026: 4.
5 papers.
- 2026Overcoming the Retrieval Barrier: Indirect Prompt Injection in the Wild for LLM Systemscited by 16
- 2026FinVault: Benchmarking Financial Agent Safety in Execution-Grounded Environmentscited by 7
- 2025Pre-training CLIP against Data Poisoning with Optimal Transport-based Matching and Alignmentcited by 3
- 2026ADR: An Agentic Detection System for Enterprise Agentic AI Securitycited by 2
- 2026Spider-Sense: Intrinsic Risk Sensing for Efficient Agent Defense with Hierarchical Adaptive Screeningcited by 1
- 2026ADR: An Agentic Detection System for Enterprise Agentic AI Security17 May 2026
- 2026Spider-Sense: Intrinsic Risk Sensing for Efficient Agent Defense with Hierarchical Adaptive Screening5 Feb 2026
- 2026Overcoming the Retrieval Barrier: Indirect Prompt Injection in the Wild for LLM Systems11 Jan 2026
- 2026FinVault: Benchmarking Financial Agent Safety in Execution-Grounded Environments9 Jan 2026
- 2025Pre-training CLIP against Data Poisoning with Optimal Transport-based Matching and Alignment23 Sep 2025
Similar, not cited
Close in wording, no citation either way
- 2026SafeHarbor: Defining Precise Decision Boundaries via Hierarchical Memory-Augmented Guardrail for LLM Agent Safety
- 2026Dual-Adversarial Safety Alignment: Cultivating Intrinsic Threat Comprehension in LRMs
- 2026Yuvion LLM: An Adversarially-Aware Large Language Model for Content And AI Safety
- 2024Defending Against Unforeseen Failure Modes with Latent Adversarial Training
- 2025AegisLLM: Scaling Agentic Systems for Self-Reflective Defense in LLM Security
- 2025Adversarial Attack-Defense Co-Evolution for LLM Safety Alignment via Tree-Group Dual-Aware Search and Optimization
- 2025Breaking Agent Backbones: Evaluating the Security of Backbone LLMs in AI Agents
- 2026Safety Context Injection: Inference-Time Safety Alignment via Static Filtering and Agentic Analysis