TrustAgent: Towards Safe and Trustworthy LLM-based Agents

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Hua, Wenyue, Yang, Xianjun, Jin, Mingyu, Li, Zelong, Cheng, Wei, Tang, Ruixiang, Zhang, Yongfeng
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866929526046457856
author Hua, Wenyue
Yang, Xianjun
Jin, Mingyu
Li, Zelong
Cheng, Wei
Tang, Ruixiang
Zhang, Yongfeng
author_facet Hua, Wenyue
Yang, Xianjun
Jin, Mingyu
Li, Zelong
Cheng, Wei
Tang, Ruixiang
Zhang, Yongfeng
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2402_01586
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle TrustAgent: Towards Safe and Trustworthy LLM-based Agents
Hua, Wenyue
Yang, Xianjun
Jin, Mingyu
Li, Zelong
Cheng, Wei
Tang, Ruixiang
Zhang, Yongfeng
Computation and Language
Artificial Intelligence
Machine Learning
Multiagent Systems
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.
title TrustAgent: Towards Safe and Trustworthy LLM-based Agents
topic Computation and Language
Artificial Intelligence
Machine Learning
Multiagent Systems
url https://arxiv.org/abs/2402.01586