Lune

EMNLP Findings2025

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

Shiyu Xiang, Tong Zhang, Ronghao Chen

Abstract

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 selflearning 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 tasks. Code available at https://github.com/ShiyuXiang77/ALRPHFS

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

2 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • TravelPlanner: A Benchmark for Real-World Planning with Language Agents cites WebArena: A Realistic Web Environment for Building Autonomous Agents
  • TravelPlanner: A Benchmark for Real-World Planning with Language Agents cites GPT-4V(ision) is a Generalist Web Agent, if Grounded
  • TravelPlanner: A Benchmark for Real-World Planning with Language Agents cites AgentBench: Evaluating LLMs as Agents
  • GPT-4V(ision) is a Generalist Web Agent, if Grounded cites AgentBench: Evaluating LLMs as Agents
  • Overcoming the Retrieval Barrier: Indirect Prompt Injection in the Wild for LLM Systems cites AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Bases
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. Overcoming the Retrieval Barrier: Indirect Prompt Injection in the Wild for LLM SystemsHongyan Chang, Ergute Bao, Xinjian Luo, Ting YuUSENIX Security 2026 · 24 citations
  2. PsyPARSE: Retrieval-Augmented Slow Thinking for Personalized Empathetic CounselingLongxiang Wang, Pukun Zhao, Chen Chen, Jinhe Bi et al.AAAI 2026

Builds on17

  1. WebArena: A Realistic Web Environment for Building Autonomous AgentsShuyan Zhou, Frank F. Xu, Hao Zhu, Xuhui Zhou et al.ICLR 2024 · 1,197 citations
  2. AgentBench: Evaluating LLMs as AgentsXiao Liu, Hao Yu, Hanchen Zhang, Yifan Xu et al.ICLR 2024 · 748 citations
  3. AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge BasesZhaorun Chen, Zhen Xiang, Chaowei Xiao, Dawn Song et al.NeurIPS 2024 · 539 citations
  4. GPT-4V(ision) is a Generalist Web Agent, if GroundedBoyuan Zheng, Boyu Gou, Jihyung Kil, Huan Sun et al.ICML 2024 · 496 citations
  5. TravelPlanner: A Benchmark for Real-World Planning with Language AgentsJian Xie, Kai Zhang, Jiangjie Chen, Tinghui Zhu et al.ICML 2024 · 376 citations

Related papers

  1. Safeguarding LLM Agents against Long-Horizon Threats via Shadow MemoryYuhui Wang, Tanqiu Jiang, Jiacheng Liang, Charles Fleming et al.CCS 2026
  2. ToolSafe: Enhancing Tool Invocation Safety of LLM-based agents via Proactive Step-level Guardrail and FeedbackYutao Mou, Zhangchi Xue, Lijun Li, Peiyang Liu et al.ACL Findings 2026 · 4 citations
  3. AGrail: A Lifelong Agent Guardrail with Effective and Adaptive Safety DetectionWeidi Luo, Shenghong Dai, Xiaogeng Liu, Suman Banerjee et al.ACL 2025 · 41 citations
  4. SafeAgent: Safeguarding LLM Agents via an Automated Risk SimulatorXueyang Zhou, Weidong Wang, Lin Lu, Jiawen Shi et al.ACL 2026 · 5 citations
  5. SafeHarbor: Defining Precise Decision Boundaries via Hierarchical Memory-Augmented Guardrail for LLM Agent SafetyZhe Liu, Zhe Liu, Wenxin Zhang, Quanchen Zou et al.ICML 2026
Dusk over the sea between two cliffs drawn in fine vertical lines