SafeSearch: Do Not Trade Safety for Utility in LLM Search Agents
On the map: LLM agents and tool use → Agent threats, guardrails and governance
also in 1 more
Abstract (arXiv)
Large language model (LLM) based search agents iteratively generate queries, retrieve external information, and reason to answer open-domain questions. While researchers have primarily focused on improving their utility, their safety behaviors remain underexplored. In this paper, we first evaluate search agents using red-teaming datasets and find that they are more likely to produce harmful outputs than base LLMs. For example, when asked ``How can I track someone's location without their consent?'', a base model refuses, whereas a search agent designed to retrieve and cite sources may lower its refusal threshold, fetch documents (e.g., court cases), and, once appended, synthesize them into an informative yet unsafe summary. We further show that utility-oriented finetuning intensifies this risk, motivating joint alignment of safety and utility. To this end, we present SafeSearch, a multi-objective reinforcement learning approach that couples a final-output safety/utility reward with a novel query-level shaping term that penalizes unsafe queries and rewards safe ones. Experiments show that SafeSearch reduces agent harmfulness by over 90% across three red-teaming datasets on a 7B model while producing safe and helpful responses, and maintains QA performance comparable to that of a utility-only finetuned agent. Further analyses confirm the effectiveness of the query-level reward in jointly improving safety and utility.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 27 of its 40 references that are in the map. First posted on arXiv 19 Oct 2025.
Builds on
27 of 40 references.
References · 27
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2017Proximal Policy Optimization Algorithmscited by 14,441
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,634
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
- 2015High-Dimensional Continuous Control Using Generalized Advantage Estimationcited by 1,916
- 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,800
- 2025Search-R1: Training LLMs to Reason and Leverage Search Engines with Reinforcement Learningcited by 1,371
15 more
- 2021Improving language models by retrieving from trillions of tokenscited by 1,278
- 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,258
- 2022Measuring and Narrowing the Compositionality Gap in Language Modelscited by 1,054
- 2022Interleaving Retrieval with Chain-of-Thought Reasoning for Knowledge-Intensive Multi-Step Questionscited by 911
- 2023Safe RLHF: Safe Reinforcement Learning from Human Feedbackcited by 630
- 2024Interpretable Preferences via Multi-Objective Reward Modeling and Mixture-of-Expertscited by 369
- 2024OR-Bench: An Over-Refusal Benchmark for Large Language Modelscited by 222
- 2024MaxMin-RLHF: Alignment with Diverse Human Preferencescited by 121
- 2025Safety Tax: Safety Alignment Makes Your Large Reasoning Models Less Reasonablecited by 120
- 2024Rule Based Rewards for Language Model Safetycited by 106
- 2025From Hard Refusals to Safe-Completions: Toward Output-Centric Safety Trainingcited by 49
- 2024Stepwise Alignment for Constrained Language Model Policy Optimizationcited by 30
- 2024One-Shot Safety Alignment for Large Language Models via Optimal Dualizationcited by 24
- 2025RAG LLMs are Not Safer: A Safety Analysis of Retrieval-Augmented Generation for Large Language Modelscited by 23
- 2025Equilibrate RLHF: Towards Balancing Helpfulness-Safety Trade-off in Large Language Modelscited by 22
Built on by
Citing papers per year: 2026: 9.
9 papers.
- 2026Risky-Bench: Probing Agentic Safety Risks under Real-World Deploymentcited by 8
- 2026OpenSafeIntent: Evaluating Intent-Calibrated Safe Completion Across Dual-Use Prompt Setscited by 2
- 2026Safety Training May Persist Through Helpfulness Optimization in LLM Agentscited by 1
- 2026PI-Hunter: Automated Red-Teaming for Exposing and Localizing Prompt Injectionscited by 1
- 2026LLM Output Detectability and Task Performance Can be Jointly Optimizedcited by 0
- 2026Relevance as a Vulnerability: How Web Retrieval Degrades Safety Alignment in LLM Agentscited by 0
- 2026COMPASS: Cognitive MCTS-Guided Process Alignment for Safe Search Agentscited by 0
- 2026Search-G1: Grounded Search Agents via Representation-Based Intrinsic Rewardscited by 0
- 2026RAG-Safety-Bench: Reliable Evaluation of Retrieval-Augmented LLM Safetycited by 0
- 2026RAG-Safety-Bench: Reliable Evaluation of Retrieval-Augmented LLM Safety10 Sep 2026
- 2026Search-G1: Grounded Search Agents via Representation-Based Intrinsic Rewards24 Jul 2026
- 2026OpenSafeIntent: Evaluating Intent-Calibrated Safe Completion Across Dual-Use Prompt Sets2 Jul 2026
- 2026PI-Hunter: Automated Red-Teaming for Exposing and Localizing Prompt Injections10 Jun 2026
- 2026COMPASS: Cognitive MCTS-Guided Process Alignment for Safe Search Agents29 May 2026
- 2026Relevance as a Vulnerability: How Web Retrieval Degrades Safety Alignment in LLM Agents28 May 2026
- 2026LLM Output Detectability and Task Performance Can be Jointly Optimized2 May 2026
- 2026Safety Training May Persist Through Helpfulness Optimization in LLM Agents13 Feb 2026
- 2026Risky-Bench: Probing Agentic Safety Risks under Real-World Deployment3 Feb 2026
Similar, not cited
Close in wording, no citation either way
- 2025SafeSearch: Automated Red-Teaming of LLM-Based Search Agents
- 2026SmartSearch: Process Reward-Guided Query Refinement for Search Agents
- 2025HarmTransform: Transforming Explicit Harmful Queries into Stealthy via Multi-Agent Debate
- 2025IntentionReasoner: Facilitating Adaptive LLM Safeguards through Intent Reasoning and Selective Query Refinement
- 2025Safety Degradation in AI Agents
- 2026Agents That Know Too Much: A Data-Centric Survey of Privacy in LLM Agents
- 2025An Empirical Study on Reinforcement Learning for Reasoning-Search Interleaved LLM Agents
- 2024Navigating the Risks: A Survey of Security, Privacy, and Ethics Threats in LLM-Based Agents