arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.23071cs.CL
收藏

检索开始前:大语言模型智能体中的安全性与工具使用决策

Before Retrieval Begins: Safety and Tool-Use Decisions in LLM Agents

National University of Singapore(新加坡国立大学)

Aditya Nawal, Manit Baser, Mohan Gurusamy

AI总结:

该研究针对大语言模型智能体的工具使用前置决策,发现中和请求操作组件对有害请求允许率影响最大,书面拒绝训练可减少不安全工具调用,主张直接评估监督工具允许而非以文本拒绝为代理。

摘要:

大语言模型越来越多地作为调用外部工具的智能体发挥作用,但大多数工具安全研究仅考察工具调用之后的情况,而是否调用工具这一前置决策在很大程度上未被研究,且会影响下游安全性。在7个开放权重模型中,在被允许的有害请求之后,未加权的模型平均伤害率为74.5%。为确定支配该决策的因素,我们对输入请求应用了因子干预;在我们生成的构造中,中和请求操作组件产生了最大的允许对比(19个百分点)。从该对比估计的线性方向影响了7个模型中4个的保留允许情况;部分模型对操作中和请求的影响表明,这并非特定于操作的机制。随后我们测试书面拒绝是否在行为和表征上与同一决策耦合:书面拒绝伴随33.6%的被允许有害调用。纯文本拒绝训练可减少保留良性工具使用的模型的不安全允许情况,表明响应级安全训练可迁移至调用决策。这些结果共同确立了书面拒绝与工具允许之间部分的、依赖于模型的关系,它们推动了对工具允许的直接评估与监督,而非将文本拒绝作为其代理。

英文摘要:

Large language models increasingly act as agents that call external tools, yet most tool-safety research examines only what follows a tool call. The prior decision of whether to call the tool remains largely unexamined and can influence downstream safety. Across the seven open-weight models, the unweighted model-average harm rate after admitted harmful requests is 74.5%. To identify what governs this decision, we apply a factorial intervention to the input request. Within our generated construction, neutralizing the requested-operation component produces the largest admission contrast (19 pp). A linear direction estimated from this contrast influences held-out admission in four of seven models; effects on operation-neutralized requests in some models show that it is not an operation-specific mechanism. We then test whether written refusal is behaviorally and representationally coupled to the same decision. Written refusal accompanies 33.6% of admitted harmful calls. Plain-text refusal training reduces unsafe admission in models that retain benign tool use, showing that response-level safety training can transfer to the call decision. Together, these results establish a partial, model-dependent relation between written refusal and tool admission. They motivate direct evaluation and supervision of tool admission rather than treating text refusal as its proxy.

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

↑