2025-10-21 · 专家 · 计算机视觉 · 机器学习

Agentic Reinforcement Learning for Search is Unsafe

本文揭示了强化学习训练的搜索模型在安全性方面的脆弱性,并提出了通过攻击触发有害搜索和回答的问题。

更新于 2025-10-27。作者:Yushi Yang、Shreyansh Padarha、Andrew Lee、Adam Mahdi。

中文摘要

代理强化学习(RL)训练大型语言模型在推理过程中自主调用工具,其中搜索是最常见的应用。这些模型在多步骤推理任务上表现出色,但它们的安全性特性并不清楚。在本研究中,我们表明,RL训练的搜索模型继承了指令调整中的拒绝特性,并且经常通过将有害请求转化为安全查询来规避有害请求。然而,这种安全性是脆弱的。两种简单的攻击,一种迫使模型以搜索开始响应(搜索攻击),另一种鼓励模型重复搜索(多搜索攻击),引发了有害搜索和答案的连锁反应。在两种模型家族(Qwen、Llama)的本地和网页搜索中,这些攻击将拒绝率降低了高达60.0%,将答案安全性降低了82.5%,将搜索查询安全性降低了82.4%。攻击成功是通过触发模型在生成继承的拒绝标记之前生成有害的、与请求镜像的搜索查询。这揭示了当前RL训练的核心弱点:它奖励有效查询的持续生成,而没有考虑到它们的危害性。因此,RL搜索模型存在用户可以轻易利用的漏洞,这使得开发注重安全的代理RL管道以优化安全搜索变得迫在眉睫。

英文摘要

Agentic reinforcement learning (RL) trains large language models to autonomously call tools during reasoning, with search as the most common application. These models excel at multi-step reasoning tasks, but their safety properties are not well understood. In this study, we show that RL-trained search models inherit refusal from instruction tuning and often deflect harmful requests by turning them into safe queries. However, this safety is fragile. Two simple attacks, one that forces the model to begin response with search (Search attack), another that encourages models to repeatedly search (Multi-search attack), trigger cascades of harmful searches and answers. Across two model families (Qwen, Llama) with both local and web search, these attacks lower refusal rates by up to 60.0%, answer safety by 82.5%, and search-query safety by 82.4%. The attacks succeed by triggering models to generate harmful, request-mirroring search queries before they can generate the inherited refusal tokens. This exposes a core weakness of current RL training: it rewards continued generation of effective queries without accounting for their harmfulness. As a result, RL search models have vulnerabilities that users can easily exploit, making it urgent to develop safety-aware agentic RL pipelines optimising for safe search.

解读

一句话总结

本文揭示了强化学习训练的搜索模型在安全性方面的脆弱性,并提出了通过攻击触发有害搜索和回答的问题。

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

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

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

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

来源