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

LLM智能体中的冷启动安全差距

The Cold-Start Safety Gap in LLM Agents

University of California, San Diego(加州大学圣地亚哥分校)

Chung-En Sun, Linbo Liu, Tsui-Wei Weng

AI总结:

研究发现工具调用型LLM智能体在会话开始时最脆弱,随着常规任务执行安全性提升,提出SODA基准并验证预热策略可缩小冷启动安全差距。

摘要:

工具调用型LLM智能体在整个对话过程中是否同样安全?我们发现并非如此:智能体在会话开始时最脆弱,在完成几个常规智能体任务后安全性显著提升——我们将这一现象称为冷启动安全差距。为了系统研究这一问题,我们引入了面向智能体的深度安全基准(SODA),该基准控制智能体在遇到安全威胁之前完成的常规智能体任务数量,最多支持20个前置任务。评估来自4个系列的7个模型,随着前置常规智能体任务数量从零增加到二十,安全性提升9%至52%。表示分析证实,随着更多前置任务的出现,模型隐藏状态逐渐向安全对齐区域移动。通过系统研究前置对话中哪部分最重要,我们发现常规智能体任务本身是安全性的主要驱动因素,而智能体自身的先前响应对安全性影响较小,但对于保持后续效用至关重要。这一结论在开源安全基准(AgentHarm、Agent Safety Bench)和效用基准(BFCL、API-Bank)上的评估中得到进一步支持,证实了在部署前用常规智能体任务预热智能体可以使其更安全并保持全部能力。基于这些发现,我们推荐一种简单的部署策略:让智能体在可能暴露于安全关键请求之前完成几个常规智能体任务,以缩小冷启动安全差距。我们的代码可在https://github.com/Trustworthy-ML-Lab/Agent-Cold-Start-Safety-Gap获取。

英文摘要:

Are tool-calling LLM agents equally safe throughout a conversation? We discover they are not: agents are most vulnerable at the very start of a session and become substantially safer after a few regular agentic tasks -- a phenomenon we term the cold-start safety gap. To study this systematically, we introduce Safety Over Depth for Agents (SODA), a benchmark that controls how many regular agentic tasks the agent completes before encountering a safety threat, supporting up to 20 preceding tasks. Evaluating 7 models from 4 families, safety improves by 9--52% as the number of preceding regular agentic tasks increases from zero to twenty. Representation analysis confirms that model hidden states gradually shift toward a safety-aligned region as more preceding tasks are present. By systematically studying which part of the preceding conversation matters most, we find that the regular agentic tasks themselves are the primary driver of safety, while the agent's own prior responses have less effect on safety but are essential for preserving later utility. This conclusion is further supported by evaluation on open-source safety benchmarks (AgentHarm, Agent Safety Bench) and utility benchmarks (BFCL, API-Bank), confirming that warming up the agent with regular agentic tasks before deployment makes it safer and preserves full capability. Based on these findings, we recommend a simple deployment strategy: having the agent complete a few regular agentic tasks before possible exposure to safety-critical requests mitigates the cold-start safety gap. Our code is available at https://github.com/Trustworthy-ML-Lab/Agent-Cold-Start-Safety-Gap

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

↑