2026-01-16 · 专家 · 机器学习

ToolSafe: Enhancing Tool Invocation Safety of LLM-based agents via Proactive Step-level Guardrail and Feedback

该论文提出了一个名为TS-Guard的主动式安全防护模型,用于增强基于LLM的智能代理的工具调用安全性,通过多任务强化学习和反馈驱动推理框架,显著降低了有害工具调用的风险,同时提升了良性任务的完成率。

更新于 2026-01-17。作者:Yutao Mou、Zhangchi Xue、Lijun Li、Peiyang Liu、Shikun Zhang、Wei Ye、Jing Shao。

中文摘要

虽然基于LLM的智能体可以通过调用外部工具与环境交互,但它们扩展的功能也放大了安全风险。实时监控智能体在执行前对工具的调用行为,并在不安全执行之前主动干预,对于智能体的部署至关重要,但这一点仍然没有得到充分探索。在这项工作中,我们首先构建了TS-Bench,这是一个用于LLM智能体步级工具调用安全性检测的新颖基准。然后,我们利用多任务强化学习开发了一个名为TS-Guard的护栏模型。该模型通过推理交互历史,在执行前主动检测不安全的工具调用行为。它评估请求的有害性和动作攻击相关性,产生可解释且具有普遍性的安全判断和反馈。此外,我们引入了TS-Flow,这是一个针对LLM智能体的护栏反馈驱动的推理框架,它将ReAct风格智能体的有害工具调用减少了65%,在提示注入攻击下,良性行为完成率提高了大约10%。

英文摘要

While LLM-based agents can interact with environments via invoking external tools, their expanded capabilities also amplify security risks. Monitoring step-level tool invocation behaviors in real time and proactively intervening before unsafe execution is critical for agent deployment, yet remains under-explored. In this work, we first construct TS-Bench, a novel benchmark for step-level tool invocation safety detection in LLM agents. We then develop a guardrail model, TS-Guard, using multi-task reinforcement learning. The model proactively detects unsafe tool invocation actions before execution by reasoning over the interaction history. It assesses request harmfulness and action-attack correlations, producing interpretable and generalizable safety judgments and feedback. Furthermore, we introduce TS-Flow, a guardrail-feedback-driven reasoning framework for LLM agents, which reduces harmful tool invocations of ReAct-style agents by 65 percent on average and improves benign task completion by approximately 10 percent under prompt injection attacks.

解读

一句话总结

该论文提出了一个名为TS-Guard的主动式安全防护模型,用于增强基于LLM的智能代理的工具调用安全性,通过多任务强化学习和反馈驱动推理框架,显著降低了有害工具调用的风险,同时提升了良性任务的完成率。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源