Skip to content

SafeKey: Amplifying Aha-Moment Insights in Safety ReasoningSafeKey: Amplifying Aha-Moment Insights for Safety Reasoning

arXiv· arXiv:2505.16186· Kaiwen Zhou, Xuandong Zhao, Gaowen Liu, Jayanth Srinivasa, Aosong Feng, Dawn Song, Xin Eric Wang·Indexed by this site · 21 days ago· Originally publishedDefenses
AI summary

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.

Read originalarxiv.org