Agentic reinforcement learning for search is unsafe
Yushi YangShreyansh PadarhaAndrew LeeAdam Mahdi
Yushi Yang
Shreyansh Padarha
Andrew Lee
Adam Mahdi
+4
This paper shows that 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. 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 the two most widely used model families, multiple scales, popular RL algorithms, and both local and web search, these attacks reduce refusal rates by up to 60%, answer safety by 82.5%, and search-query safety by 82.4%. These attacks succeed by triggering harmful, request-mirroring search queries before inherited refusal tokens, exposing a core weakness in RL training that rewards effective queries without accounting for harmfulness.

OpenReview ·
· September 19, 2025