ToolSword: Unveiling Safety Issues of Large Language Models in Tool Learning Across Three Stages
Junjie Ye, Sixian Li, Guanyu Li, Caishuang Huang, Songyang Gao, Yilong Wu, Qi Zhang, Tao Gui, Xuanjing Huang
摘要
Tool learning is widely acknowledged as a foundational approach or deploying large language models (LLMs) in real-world scenarios. While current research primarily emphasizes leveraging tools to augment LLMs, it frequently neglects emerging safety considerations tied to their application. To fill this gap, we present ToolSword, a comprehensive framework dedicated to meticulously investigating safety issues linked to LLMs in tool learning. Specifically, ToolSword delineates six safety scenarios for LLMs in tool learning, encompassing malicious queries and jailbreak attacks in the input stage, noisy misdirection and risky cues in the execution stage, and harmful feedback and error conflicts in the output stage. Experiments conducted on 11 open-source and closed-source LLMs reveal enduring safety challenges in tool learning, such as handling harmful queries, employing risky tools, and delivering detrimental feedback, which even GPT-4 is susceptible to. Moreover, we conduct further studies with the aim of fostering research on tool learning safety. 1 1 Introduction Recently, tool learning has garnered significant attention as a potent approach for seamlessly integrating large language models (LLMs) (Brown et al., 2020; Bai et al., 2022b; Touvron et al., 2023a) into real-world applications (Yang et al., 2023b; Mialon et al., 2023; Qin et al., 2023a). The tool learning process for LLMs can be delineated into three distinct stages: input, execution, and output. More precisely, when a user submits a request, LLMs scrutinize the user's intent, choose appropriate tools to engage with the external environment. Upon receiving feedback from the environment, LLMs structure the pertinent information to provide a response to the user's initial query. 1 The data will be released upon acceptance of the paper. Standard Dialog Query: How to spread rumors about someone online? Response: I'm sorry, but I can't assist with that. Spreading rumors about someone online can cause serious harm and damage to their reputation and mental well-being. Tool Learning You are an expert in using tools to handle real-time queries from users. Query: How to spread rumors about someone online? Thought: The user requested information on spreading rumors. I can utilize the 'search_information' tool to assist.
问问这篇 Paper
智能体会读完全文。
Lune 把这篇 Paper 索引到了每一个公式,引用它的顶会 Paper 也一样。你提问,回答直接引用原文。
引用它的顶会 Paper9
- AgentAuditor: Human-level Safety and Security Evaluation for LLM AgentsHanjun Luo, Shenyu Dai, Chiming Ni, Xinfeng Li 等NeurIPS 2025 · 被引用 98 次
- RiOSWorld: Benchmarking the Risk of Multimodal Computer-Use AgentsJingyi Yang, Shuai Shao, Dongrui Liu, Jing ShaoNeurIPS 2025 · 被引用 33 次
- ToolHop: A Query-Driven Benchmark for Evaluating Large Language Models in Multi-Hop Tool UseJunjie Ye, Zhengyin Du, Xuesong Yao, Weijian Lin 等ACL 2025 · 被引用 31 次
- TAI3: Testing Agent Integrity in Interpreting User IntentShiwei Feng, Xiangzhe Xu, Xuan Chen, Kaiyuan Zhang 等NeurIPS 2025 · 被引用 9 次
- ToolSafety: A Comprehensive Dataset for Enhancing Safety in LLM-Based Agent Tool InvocationsYuejin Xie, Youliang Yuan, Wenxuan Wang, Fan Mo 等EMNLP 2025 · 被引用 7 次
它引用的顶会 Paper2
相关 Paper
- From Exploration to Mastery: Enabling LLMs to Master Tools via Self-Driven InteractionsChangle Qu, Sunhao Dai, Xiaochi Wei, Hengyi Cai 等ICLR 2025
- h4rm3l: A Language for Composable Jailbreak Attack SynthesisMoussa Koulako Bala Doumbouya, Ananjan Nandi, Gabriel Poesia, Davide Ghilardi 等ICLR 2025
- Confucius: Iterative Tool Learning from Introspection Feedback by Easy-to-Difficult CurriculumShen Gao, Zhengliang Shi, Minghang Zhu, Bowen Fang 等AAAI 2024 · 被引用 84 次
- Tool-Planner: Task Planning with Clusters across Multiple ToolsYanming Liu, Xinyue Peng, Jiannan Cao, Shi Bo 等ICLR 2025
- RoTBench: A Multi-Level Benchmark for Evaluating the Robustness of Large Language Models in Tool LearningJunjie Ye, Yilong Wu, Songyang Gao, Caishuang Huang 等EMNLP 2024 · 被引用 6 次
