在自毁之前检查自己:选择性退出提升LLM智能体安全性
Check Yourself Before You Wreck Yourself: Selectively Quitting Improves LLM Agent Safety
AI总结:
提出让LLM智能体在不确定时主动退出,通过ToolEmu框架在12个模型上评估,发现该方法在几乎不降低有用性的情况下显著提升安全性。
摘要:
随着大语言模型(LLM)智能体在具有现实后果的复杂环境中越来越频繁地运作,其安全性变得至关重要。虽然不确定性量化在单轮任务中已有充分研究,但具有现实工具访问权限的多轮智能体场景带来了独特的挑战,其中不确定性和模糊性会叠加,导致超出传统文本生成失败的严重或灾难性风险。我们提出将“退出”作为一种简单而有效的行为机制,使LLM智能体能够识别并退出其缺乏信心的情境。利用ToolEmu框架,我们对12个最先进的LLM的退出行为进行了系统评估。我们的结果展示了一种非常有利的安全-有用性权衡:通过明确指令提示退出的智能体在0-3的评分尺度上平均提高了+0.39的安全性(专有模型为+0.64),同时有用性仅平均下降了-0.03,可忽略不计。我们的分析表明,简单地添加明确的退出指令是一种非常有效的安全机制,可以立即部署在现有的智能体系统中,并将退出确立为高风险应用中自主智能体的有效第一道防线。
英文摘要:
As Large Language Model (LLM) agents increasingly operate in complex environments with real-world consequences, their safety becomes critical. While uncertainty quantification is well-studied for single-turn tasks, multi-turn agentic scenarios with real-world tool access present unique challenges where uncertainties and ambiguities compound, leading to severe or catastrophic risks beyond traditional text generation failures. We propose using "quitting" as a simple yet effective behavioral mechanism for LLM agents to recognize and withdraw from situations where they lack confidence. Leveraging the ToolEmu framework, we conduct a systematic evaluation of quitting behavior across 12 state-of-the-art LLMs. Our results demonstrate a highly favorable safety-helpfulness trade-off: agents prompted to quit with explicit instructions improve safety by an average of +0.39 on a 0-3 scale across all models (+0.64 for proprietary models), while maintaining a negligible average decrease of -0.03 in helpfulness. Our analysis demonstrates that simply adding explicit quit instructions proves to be a highly effective safety mechanism that can immediately be deployed in existing agent systems, and establishes quitting as an effective first-line defense mechanism for autonomous agents in high-stakes applications.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。