GuardReasoner: Toward reasoning-based LLM guardrailsGuardReasoner: Towards Reasoning-based LLM Safeguards
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/。