GuardReasoner: Towards Reasoning-based LLM Safeguards
Liu, Yue, Gao, Hongcheng, Zhai, Shengfang, Xia, Jun, Wu, Tianyi, Xue, Zhiwei, Chen, Yulin, Kawaguchi, Kenji, Zhang, Jiaheng, Hooi, Bryan
–arXiv.org Artificial Intelligence
As LLMs increasingly impact safety-critical applications, ensuring their safety using guardrails remains a key challenge. This paper proposes GuardReasoner, a new safeguard for LLMs, by guiding the guard model to learn to reason. Concretely, we first create the GuardReasonerTrain dataset, which consists of 127K samples with 460K detailed reasoning steps. Then, we introduce reasoning SFT to unlock the reasoning capability of guard models. In addition, we present hard sample DPO to further strengthen their reasoning ability. In this manner, GuardReasoner achieves better performance, explainability, and generalizability. Extensive experiments and analyses on 13 benchmarks of 3 guardrail tasks demonstrate its superiority.
arXiv.org Artificial Intelligence
Jan-30-2025
- Genre:
- Research Report (0.40)
- Industry:
- Health & Medicine (0.93)
- Law > Criminal Law (0.46)
- Law Enforcement & Public Safety > Crime Prevention & Enforcement (0.46)
- Technology: