Reproduce “SafeToolBench: Pioneering a Prospective Benchmark to Evaluating Tool Utilization Safety in LLMs” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Hongfei Xia, Hongru Wang, Zeming Liu, Qian Yu, Yuhang Guo, Haifeng Wang

Researchers at Beijing Institute of Technology, The Chinese University of Hong Kong, Beihang University, and Baidu developed SafeToolBench, a prospective benchmark, and SafeInstructTool, a framework, to evaluate LLMs' ability to detect potential risks *before* executing external tools. This approach helps prevent irreversible harm, encompassing risks from user instructions, tools, and their interaction, achieving 83% average performance with GPT-4o in identifying risky operations.

Key insights

  • Effective prospective safety evaluation for LLM tool utilization necessitates a multi-faceted approach, analyzing risks from the user's intent, the intrinsic properties of the tools, and their combined interaction.
  • LLMs demonstrate varying capabilities in detecting different risk categories, performing better on explicit 'Property Damage' and 'Bias & Offensiveness' risks compared to more implicit 'Privacy Leak' and 'Physical Injury' scenarios.
  • The 'Joint Instruction-Tool Perspective' represents a primary bottleneck for current LLMs, indicating difficulties in complex reasoning to identify risks arising from the interaction between an instruction and a specific tool.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.