arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.01586cs.CLcs.AIcs.LGcs.MA
收藏

TrustAgent:迈向安全且值得信赖的基于 LLM 的智能体

TrustAgent: Towards Safe and Trustworthy LLM-based Agents

Rutgers University(罗格斯大学);University of California, Santa Barbara(加州大学圣巴巴拉分校);NEC Labs America(美国NEC实验室)

Wenyue Hua, Xianjun Yang, Mingyu Jin, Zelong Li, Wei Cheng, Ruixiang Tang, Yongfeng Zhang

AI总结:

本文提出 TrustAgent 框架,通过规划前、规划中和规划后三类安全策略让 LLM 智能体遵守 Agent Constitution,从而在多领域提升安全性与有用性。

摘要:

基于 LLM 的智能体的兴起展现出变革任务规划的巨大潜力,并引起了广泛关注。鉴于这些智能体将被集成到高风险领域,确保其可靠性和安全性至关重要。本文提出了一种基于智能体宪法(Agent Constitution)的智能体框架 TrustAgent,特别关注提升基于 LLM 的智能体的安全性。所提出的框架通过三个策略组件确保严格遵守 Agent Constitution:规划前策略,在计划生成前向模型注入安全知识;规划中策略,在计划生成过程中增强安全性;以及规划后策略,通过规划后检查来确保安全。实验结果表明,所提出框架能够通过识别并缓解规划过程中的潜在危险,在多个领域有效增强 LLM 智能体的安全性。进一步分析表明,该框架不仅提升了安全性,还增强了智能体的有用性。此外,我们强调了 LLM 推理能力在遵守宪法方面的重要性。本文阐明了如何确保基于 LLM 的智能体安全融入以人为本的环境。数据和代码可在 https://github.com/agiresearch/TrustAgent 获取。

英文摘要:

The rise of LLM-based agents shows great potential to revolutionize task planning, capturing significant attention. Given that these agents will be integrated into high-stake domains, ensuring their reliability and safety is crucial. This paper presents an Agent-Constitution-based agent framework, TrustAgent, with a particular focus on improving the LLM-based agent safety. The proposed framework ensures strict adherence to the Agent Constitution through three strategic components: pre-planning strategy which injects safety knowledge to the model before plan generation, in-planning strategy which enhances safety during plan generation, and post-planning strategy which ensures safety by post-planning inspection. Our experimental results demonstrate that the proposed framework can effectively enhance an LLM agent's safety across multiple domains by identifying and mitigating potential dangers during the planning. Further analysis reveals that the framework not only improves safety but also enhances the helpfulness of the agent. Additionally, we highlight the importance of the LLM reasoning ability in adhering to the Constitution. This paper sheds light on how to ensure the safe integration of LLM-based agents into human-centric environments. Data and code are available at https://github.com/agiresearch/TrustAgent.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑