Skip to content

GuardReasoner: Toward reasoning-based LLM guardrailsGuardReasoner: Towards Reasoning-based LLM Safeguards

arXiv· arXiv:2501.18492· Yue Liu, Hongcheng Gao, Shengfang Zhai, Yufei He, Jun Xia, Zhengyu Hu, Yulin Chen, Xihong Yang, Jiaheng Zhang, Stan Z. Li, Hui Xiong, Bryan Hooi·Indexed by this site · 25 days ago· Originally publishedDefenses
AI summary

The paper proposes GuardReasoner, which safeguards LLM safety by guiding guardrail models to learn reasoning. The method has two steps: first, reasoning SFT on the GuardReasonerTrain dataset, which contains 127K samples and 460K detailed reasoning steps, to unlock the reasoning ability of the guardrail model; then further reinforcement with hard-sample DPO. The paper reports that on 13 benchmarks across 3 guardrail tasks, GuardReasoner 8B's average F1 is 5.74% higher than GPT-4o+CoT and 20.84% higher than LLaMA Guard 3 8B. The training data, code, and 1B, 3B, and 8B models have been open-sourced: https://github.com/yueliu1999/GuardReasoner/。

Read originalarxiv.org