Skip to content

GuardAgent: Safeguarding LLM agents via a knowledge-enabled reasoning guard agentGuardAgent: Safeguard LLM Agents by a Guard Agent via Knowledge-Enabled Reasoning

arXiv· arXiv:2406.09187· Zhen Xiang, Linzhi Zheng, Yanjie Li, Junyuan Hong, Qinbin Li, Han Xie, Jiawei Zhang, Zidi Xiong, Chulin Xie, Carl Yang, Dawn Song, Bo Li·Indexed by this site · 24 days ago· Originally publishedDefenses
AI summary

The researchers propose GuardAgent, which the authors describe as the first guardrail agent that protects LLM agents by dynamically checking whether the target agent's actions satisfy safety guardrail requests. Its process has two steps: first analyze the safety guardrail request to generate a task plan, then map the plan to executable guardrail code, deterministically following the safety request through code execution; both steps use an LLM as the reasoning component, assisted by retrieving contextual examples from a memory module that stores historical task experience. The paper also proposes two new benchmarks, EICU-AC to evaluate access control for medical agents and Mind2Web-SC to evaluate safety policies for web agents; GuardAgent achieves guardrail accuracy of over 98% and 83% on the two benchmarks, respectively. Project page: https://guardagent.github.io/

Read originalarxiv.org