Paper · 2025-01-30
Propose the reasoning-based guardrail model GuardReasoner, using reasoning fine-tuning and preference optimization to improve detection
Outward relations17
Evaluates On§ III Experiments
Why cited
“We use 13 guardrail benchmarks, including 6 prompt harmfulness detection benchmarks (ToxicChat [21], OpenAIModeration [14], AegisSafetyTest [17], SimpleSafetyTests [23], HarmBench [24], WildGuardTest [19]), 5 response harmfulness detection benchmarks (HarmBench, SafeRLHF [25],…”
Cites§ I Introduction
Why cited
“Large Language Models (LLMs) [1, 2, 3, 4, 5, 6, 7] are revolutionizing numerous domains, including chatbots [8], search engines [9], and software engineering [10].”
Cites§ I Introduction
Why cited
“Large Language Models (LLMs) [1, 2, 3, 4, 5, 6, 7] are revolutionizing numerous domains, including chatbots [8], search engines [9], and software engineering [10].”
Cites§ I Introduction
Why cited
“To alleviate this issue, companies have developed guard models, e.g., OpenAI Moderation [14], LLaMA Guard series [15, 5], ShieldGemma [16], Aegis series [17, 18], WildGuard [19], by moderating the input and output of LLMs.”
Cites§ V-A Safety Alignment of LLM
Why cited
“To ensure that AI remains beneficial and safe [36], [37] proposes the 3H standard, focusing on helpfulness, harmlessness, and honesty for alignment, while researchers [38, 39, 40, 41] have proposed alignment techniques [42, 43, 44, 45].”
Cites§ V-A Safety Alignment of LLM
Why cited
“To ensure that AI remains beneficial and safe [36], [37] proposes the 3H standard, focusing on helpfulness, harmlessness, and honesty for alignment, while researchers [38, 39, 40, 41] have proposed alignment techniques [42, 43, 44, 45].”
Cites§ III Experiments
Why cited
“We use 13 guardrail benchmarks, including 6 prompt harmfulness detection benchmarks (ToxicChat [21], OpenAIModeration [14], AegisSafetyTest [17], SimpleSafetyTests [23], HarmBench [24], WildGuardTest [19]), 5 response harmfulness detection benchmarks (HarmBench, SafeRLHF [25],…”
Cites§ V-A Safety Alignment of LLM
Why cited
“To ensure that AI remains beneficial and safe [36], [37] proposes the 3H standard, focusing on helpfulness, harmlessness, and honesty for alignment, while researchers [38, 39, 40, 41] have proposed alignment techniques [42, 43, 44, 45].”
Cites§ V-B Guard Models for LLMs
Why cited
“In addition, guard models have also become a hot topic for multimodel models [73, 74, 75] and agents [76].”
Cites§ I Introduction
Why cited
“However, recent attacks [11, 12, 13] show their susceptibility to malicious manipulation.”
Cites§ I Introduction
Why cited
“However, recent attacks [11, 12, 13] show their susceptibility to malicious manipulation.”
Cites§ V-A Safety Alignment of LLM
Why cited
“To ensure that AI remains beneficial and safe [36], [37] proposes the 3H standard, focusing on helpfulness, harmlessness, and honesty for alignment, while researchers [38, 39, 40, 41] have proposed alignment techniques [42, 43, 44, 45].”
Cites§ V-A Safety Alignment of LLM
Why cited
“Additionally, [50, 51] focus on filtering out unsafe content from pre-training data.”
Cites§ V-B Guard Models for LLMs
Why cited
“1) Traditional guard models adopt statistical techniques such as k-nearest neighbors [58] and Beta regression [59].”
Cites§ V-A Safety Alignment of LLM
Why cited
“Besides, [55, 56] introduce alignment methods that do not require additional fine-tuning, while [57] aims to develop an efficient alignment method.”
Cites§ V-B Guard Models for LLMs
Why cited
“In addition, guard models have also become a hot topic for multimodel models [73, 74, 75] and agents [76].”
Cites§ III-B Performance
Why cited
“Additionally, we change our metric from F1 to AUPRC and directly compare with the results of R2-Guard [29] in Table 2 of its paper. As shown in Table VI, we find that our GuardReasoner achieves better performance.”
Incoming follow-ups39
Cites§ 5 Related Work
Why cited
“More recently, incorporating explicit reasoning capabilities has significantly enhanced guard performance: DuoGuard (Deng et al., 2025) improves safety enforcement through reinforcement learning, while GuardReasoner (Liu et al., 2025) achieves higher classification accuracy by…”
Cites§ VI-A2 Defensive Mechanisms in Deployment
Why cited
“To solve this problem, the first reasoning-based guard model named GuardReasoner [723] is proposed to improve the performance, explainability, and generalization ability via learning to reason.”
Cites§ 2 Related Work
Why cited
“A reasoning-based LLM guardrail model termed GuardReasoner (Liu et al., 2025b) is proposed to improve the performance, explainability, and generalization ability of the guard models.”
Cites§ 5.3 Guard Models for LRMs
Why cited
“In addition, the reasoning-based guard models (Liu et al., 2025b) can better moderate the reasoning process of LRMs via guiding the guard models to deliberatively reason before making moderation decisions.”
Cites§ H.4 Discussions on Defenses for CUAs
Why cited
“However, most existing work targets general-purpose LLMs rather than LLM-based agents, and primarily addresses text-only settings (Liu et al., 2025; Li and Liu, 2024; Yi et al., 2025; Chen et al., 2025b).”
Cites§ IV-A Intervention Stages
Why cited
“Recently, some studies have employed LLM reasoning capabilities to analyze input intent [92, 93, 99] before the safety judgments.”
Cites§ 2.1 Data Curation
Why cited
“Text. Following GuardReasoner [48], we collect and combine the data of WildGuardTrain [25], AegisTrain [19], BeaverTailsTrain [29], and ToxicChatTrain [43]. To balance the ratios of different input modalities, we use 50% of the mixed text data.”
Cites§ Reasoning and Safety.
Why cited
“With a two-stage training process, GuardReasoner [24] designs a guard model that enhances safety by guiding language models to reason explicitly during moderation tasks.”
Cites§ 6 Related Works
Why cited
“The first is Prompt-level defenses Jain et al. (2023); Inan et al. (2023); Cao et al. (2024); Zhang et al. (2025a); Liu et al. (2025a); Liu et al. (2025b), which aim to neutralize malicious intent by rewriting, filtering, or expanding the user’s input prompt.”
Cites
Why cited
“Reasoning-enabled guardrails (Kang and Li, 2024; Liu et al., 2025; Li et al., 2025) have demonstrated improved interpretability, transparency, and steerability.”
Cites
Why cited
“We compare with 1313 baselines across five categories: fine-tuned models (WJ-SFT [22], STAIR [49], Realsafe-r1 [48], and our implementation of OpenAI-Deliberative Alignment [14]), Post-hoc detection (Llama-Guard [13] and GuardReasoner [27]), advanced general LLMs (gpt-4.1-2025…”
Cites§ A.2.1 Jailbreak Defense on LLMs
Why cited
“Tools like LLaMA Guard (Inan et al., 2023), Aegis Guard (Ghosh et al., 2024), WildGuard (Han et al., 2024), and ShieldGemma (Zeng et al., 2024) moderate inputs and outputs, while GuardReasoner (Liu et al., 2025) enhances performance, explainability, and generalization through…”
Cites§ 7. Discussion
Why cited
“Despite these challenges, safety alignment remains achievable (Liu et al., 2025a).”
Cites§ 3.4 Self-explain with Reason Generation
Why cited
“These methods prompt LLMs to evaluate the correctness or safety of their outputs and provide rationales Li et al. (2024b); Liu et al. (2025a); Betley et al. (2025).”
Cites
Why cited
“In response, diverse safeguarding and defense paradigms for LLMs and LRMs are being developed (Zhang et al., 2025; Zhao et al., 2025; Inan et al., 2023; Liu et al., 2025).”
Cites§ 1 Introduction
Why cited
“Most current guardians come in two flavors (as illustrated in Figure 1): (i) classifiers that detect risk and force a refusal template (denoted as “hard gating”) [34, 22]; and (ii) explainable classifiers that add a rationale but still replace the output with a refusal templat…”
Cites§ 3.2 Baseline
Why cited
“For prompt harmfulness detection, we evaluate 12 open-source safeguard models of varying sizes, including LLaMA Guard (7B, 2 8B, 3 8B) (Inan et al. 2023; Dubey et al. 2024), Aegis Guard (Defensive 7B, Permissive 7B, 2.0 8B) (Ghosh et al. 2024; Ghosh et al. 2025), ShieldGemma (…”
Cites§ 2.1. Content Moderation
Why cited
“Meanwhile, jailbreak attacks have made harmful intentions in LLM input and responses more subtle to detect, thus safety guard models which incorporates reasoning capabilities (Liu et al., 2025; Wen et al., 2025) are explored.”
Cites§ 2.2 Related Attacks
Why cited
“Defense methods range from developing reasoning-based guardrail models (Liu et al., 2025a; Liu et al., 2025c) to post-fine-tuning solutions like Panacea (Wang et al., 2025b).”
Cites§ 2 Related work
Why cited
“GuardReasoner further trains safeguards to produce safety rationales through reasoning SFT and hard-sample DPO, targeting query and response moderation [28].”
Cites§ 1 Introduction
Why cited
“Reasoning guardrails such as GuardReasoner (Liu et al., 2025) and ThinkGuard (Wen et al., 2025b) buy accuracy with explicit chains of thought that, in our measurements, run more than an order of magnitude slower, prohibitive for real-time moderation pipelines.”
Cites§ 2.1 Safety of LRMs
Why cited
“Despite numerous defenses being proposed [16, 17, 7, 18, 19, 20, 21, 22], recent research has begun focusing explicitly on the safety of reasoning traces [6].”
Cites§ A.6 Guard Models
Why cited
“At the prompt level, we employ models such as WildGuard Han et al. (2024), QwenGuard Zhao et al. (2025), GuardReasoner Liu et al. (2025b), RSafe Zheng et al. (2025), PromptGuard Inan et al. (2023), Nemotron Sreedhar et al. (2025), Siren Jiao et al. (2026), GuardAdvisor Huang e…”
Cites§ 2.2 Jailbreak Defenses
Why cited
“(6) Output guard screens query-response pairs and blocks harmful conversations, using guard models such as LlamaGuard (Inan et al., 2023) or reasoning models such as GuardReasoner (Liu et al., 2025a). Some input guards such as WildGuard also apply here.”
Cites§ LLM Monitors
Why cited
“One approach deploys an additional LLM trained as a safety classifier to filter inputs and outputs Markov et al. (2022); Han et al. (2024); Padhi et al. (2024); Liu et al. (2025).”
Cites§ 1 Introduction
Why cited
“(1) Input audit: production agent platforms increasingly route incoming queries through LLM-based safety classifiers prior to execution, rejecting inputs that exhibit prompt-injection cues or other adversarial intent (Inan et al., 2023; Liu et al., 2025).”
Cites
Why cited
“Compact models fine-tuned on a single narrow task judge semantics rather than surface form [37, 31, 98, 24, 51], and need no annotation once their training data is synthesized from the policy text alone [54, 78, 16]; their capacity is the ceiling, and accuracy falls once a pol…”
Cites§ 4.3.3 Evaluation
Why cited
“We evaluate three guard models: ShieldAgent-7B (Zhang et al., 2024), Qwen3Guard-Gen-8B (Zhao et al., 2025), and GuardReasoner-8B (Liu et al., 2025b).”
Cites§ 1 Introduction
Why cited
“Existing defenses mainly detect and filter suspicious prompts, suffixes, or generations (Jain et al., 2023; Inan et al., 2023; Meta AI, 2024; Han et al., 2024; Xie et al., 2024; Liu et al., 2025; He et al., 2026), purify generations using internal signals, or strengthen alignm…”
Cites
Why cited
“GuardReasoner [Liu et al., 2025a; Liu et al., 2025b] and YuFeng-XGuard [Lin et al., 2026] generate explicit reasoning before a verdict, adding computation per request.”
Cites§ GuardReasoner-8B.
Why cited
“The second instrument, used for OR-Bench refusal in the deep-dose measurements and for response harmfulness on the harmful prompts, is GuardReasoner-8B (Liu et al., 2025) in one greedy pass, whose refusal field and response-harmfulness field are read.”
Cites§ II-B2 Jailbreak Guardrails
Why cited
“Representative methods such as Llama Guard [18], SelfDefend [20] and GuardReasoner [46] use a separate language model to classify the safety of an incoming request.”
Cites§ 2.1 LLM Safety Governance
Why cited
“Specifically, learning-based guards, such as Llama Guard (Inan et al., 2023; Grattafiori et al., 2024) and WildGuard (Han et al., 2024), learn from curated safety data to assess prompts and responses, with capabilities extending to risk categorization and reasoning-based asses…”
Cites§ 1 Introduction
Why cited
“GuardReasoner generates reasoning before its verdict and reports improved classification (Liu et al., 2025); rationale-based methods also improve classification robustness (Chen et al., 2022; Kavumba et al., 2023; He et al., 2024).”
Cites§ LLM Safety Guardrails.
Why cited
“Recent reasoning-based guardrails generate explicit rationales before issuing final decisions (Liu et al., 2025; Wen et al., 2025), improving interpretability and robustness in complex safety scenarios.”
Cites§ D.1 Operating Constraints and Threat Model
Why cited
“This pre-execution check lifts the principle of policy-based and reasoning-based LLM guardrails (Rebedea et al., 2023; Hua et al., 2024; Liu et al., 2025) from textual outputs to the mobile action space.”
Cites§ 4.5. Model Execution and Response Validation
Why cited
“We classify each model response independently using WildGuard (Han et al., 2024), Qwen3Guard (Zhao et al., 2025), and GuardReasoner (Liu et al., 2025).”
Cites§ III-A What Is Evaluated?
Why cited
“These evaluation outputs cover calls, text volume, expenditure, elapsed time, memory or storage, and computational work [12, 6, 51, 85, 61, 57, 11, 63, 98, 26, 65].”
Cites
Belongs to hyperedges