mlsanityData to 14 Oct 2026

ALRPHFS: Adversarially Learned Risk Patterns with Hierarchical Fast & Slow Reasoning for Robust Agent Defense

arXiv 2505.19260 ↗First posted 25 May 2025cs.CRcited by 5

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

  1. 2025ShieldAgent: Shielding Agents via Verifiable Safety Policy Reasoning26 Mar
  2. 2025AGrail: A Lifelong Agent Guardrail with Effective and Adaptive Safety Detection17 Feb
  3. 2024Agent-SafetyBench: Evaluating the Safety of LLM Agents19 Dec
  4. 2024Agent Security Bench (ASB): Formalizing and Benchmarking Attacks and Defenses in LLM-based Agents3 Oct
  5. 2024EIA: Environmental Injection Attack on Generalist Web Agents for Privacy Leakage17 Sep
  6. 2024The Emerged Security and Privacy of LLM Agent: A Survey with Case Studies28 Jul
  7. 2024AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Bases17 Jul
  8. 2024BadAgent: Inserting and Activating Backdoor Attacks in LLM Agents5 Jun
  9. 2024Watch Out for Your Agents! Investigating Backdoor Threats to LLM-Based Agents17 Feb
  10. 2024TrustAgent: Towards Safe and Trustworthy LLM-based Agents2 Feb
  11. 2023Identifying the Risks of LM Agents with an LM-Emulated Sandbox25 Sep

Other references · 10

  1. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  2. 2023A Survey on Large Language Model based Autonomous Agentscited by 2,242
  3. 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 2,006
  4. 2024GPT-4V(ision) is a Generalist Web Agent, if Groundedcited by 563
  5. 2024TravelPlanner: A Benchmark for Real-World Planning with Language Agentscited by 392
  6. 2024Certifiably Robust RAG against Retrieval Corruptioncited by 151
  7. 2023GIFD: A Generative Gradient Inversion Method with Feature Domain Optimizationcited by 45
  8. 2024Middleware for LLMs: Tools Are Instrumental for Language Agents in Complex Environmentscited by 39
  9. 2025Your Language Model Can Secretly Write Like Humans: Contrastive Paraphrase Attacks on LLM-Generated Text Detectorscited by 10
  10. 2025Beyond Surface-Level Patterns: An Essence-Driven Defense Framework Against Jailbreak Attacks in LLMscited by 9

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 4.

5 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026SafeHarbor: Defining Precise Decision Boundaries via Hierarchical Memory-Augmented Guardrail for LLM Agent Safety
  2. 2026Dual-Adversarial Safety Alignment: Cultivating Intrinsic Threat Comprehension in LRMs
  3. 2026Yuvion LLM: An Adversarially-Aware Large Language Model for Content And AI Safety
  4. 2024Defending Against Unforeseen Failure Modes with Latent Adversarial Training
  5. 2025AegisLLM: Scaling Agentic Systems for Self-Reflective Defense in LLM Security
  6. 2025Adversarial Attack-Defense Co-Evolution for LLM Safety Alignment via Tree-Group Dual-Aware Search and Optimization
  7. 2025Breaking Agent Backbones: Evaluating the Security of Backbone LLMs in AI Agents
  8. 2026Safety Context Injection: Inference-Time Safety Alignment via Static Filtering and Agentic Analysis