SafeRoute: Adaptive Model Selection for Efficient and Accurate Safety Guardrails in Large Language Models
Abstract
Deploying large language models (LLMs) in real-world applications requires robust safety guard models to detect and block harmful user prompts. While large safety guard models achieve strong performance, their computational cost is substantial. To mitigate this, smaller distilled models are used, but they often underperform on "hard" examples where the larger model provides accurate predictions. We observe that many inputs can be reliably handled by the smaller model, while only a small fraction require the larger model's capacity. Motivated by this, we propose SafeRoute, a binary router that distinguishes hard examples from easy ones. Our method selectively applies the larger safety guard model to the data that the router considers hard, improving efficiency while maintaining accuracy compared to solely using the larger safety guard model. Experimental results on multiple benchmark datasets demonstrate that our adaptive model selection significantly enhances the trade-off between computational cost and safety performance, outperforming relevant baselines.
Community
SafeRoute is a binary router that improves the efficiency of safety guard models by selectively applying a large model only to hard user prompts, reducing computational cost while maintaining safety performance.
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- GuardReasoner: Towards Reasoning-based LLM Safeguards (2025)
- DELMAN: Dynamic Defense Against Large Language Model Jailbreaking with Model Editing (2025)
- STAIR: Improving Safety Alignment with Introspective Reasoning (2025)
- Layer-Level Self-Exposure and Patch: Affirmative Token Mitigation for Jailbreak Attack Defense (2025)
- Peering Behind the Shield: Guardrail Identification in Large Language Models (2025)
- Leveraging Reasoning with Guidelines to Elicit and Utilize Knowledge for Enhancing Safety Alignment (2025)
- Enhancing AI Safety Through the Fusion of Low Rank Adapters (2024)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment:
@librarian-bot
recommend
Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper