IntentionReasoner: Adaptive LLM guardrails via intention reasoning and selective query rewritingIntentionReasoner: Facilitating Adaptive LLM Safeguards through Intent Reasoning and Selective Query Refinement
AI summary
IntentionReasoner is an LLM safety guardrail mechanism driven by a dedicated guard model that neutralizes potentially harmful intent in borderline queries through intention reasoning, multi-level safety classification, and query rewriting. It is supervised fine-tuned on approximately 163,000 queries annotated with intention reasoning, safety labels, and rewritten versions, then optimized with multi-reward reinforcement learning that combines rule-based heuristics and reward model signals. Across multiple safeguard benchmarks, generation quality evaluations, and jailbreak attack scenarios, the mechanism improves safety while reducing the over-refusal rate.