SafeKey: Amplifying Aha-Moment Insights in Safety ReasoningSafeKey: Amplifying Aha-Moment Insights for Safety Reasoning
The researchers propose SafeKey, a safety fine-tuning method for large reasoning models that trains models to activate safety reasoning at key sentences, thereby improving generalization to unseen jailbreak prompts. The authors find that SFT-aligned reasoning models struggle to generalize to unseen jailbreak prompts, and that key sentences appearing after the model understands the query can predict whether the subsequent response will be safe. SafeKey enhances the internal safety representation before key sentences via a dual-path safety head and uses Query-Mask Modeling to improve the model's attention to query understanding. On multiple safety benchmarks, the method reduces the average harmfulness rate by 9.6% while maintaining general capabilities.