Manuscript Offprint

arXiv:2610.23085

Rethinking GRPO for Large Reasoning Model Safety Alignment

Jiawei Chen, Yi Zhang, Jiawei Du, Zhonghou Lv, Tairan Chen, Junyuan Shang, Jinchang Hou, Xiao Yang, Yu Tian, Chenfu Bao, Chao Yu, Zhaoxia Yin

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large reasoning models (LRMs) exhibit strong reasoning capabilities but remain vulnerable to unsafe outputs. While Group Relative Policy Optimization (GRPO) is widely used for safety alignment, its group-relative optimization may provide insufficient safety-directed learning signals. In this paper, we identify two failure modes: advantage collapse, where homogeneous rollout groups yield vanishing advantages, and unsafe diversification, where unsafe behaviors persist and become increasingly diverse. Our theoretical analysis reveals that behavioral consistency weakens within-group safety contrasts, while entropy regularization can diversify unsafe responses when relative signals vanish. To address these challenges, we propose Beacon, comprising Safety Signal Recovery (SSR) and Safety-Utility Decoupled Alignment (SUDA). SSR combines advantage-guided trajectory filtering and safe reference supervision to recover effective safety learning signals, while SUDA employs category-aware rewards and benign-only KL anchoring to mitigate over-refusal without compromising safety. Experiments across four Qwen3 and DeepSeek-R1-Distill variants and eight benchmarks show that our framework achieves the best average safety and reasoning performance, reducing average safety error by up to 32.83 percentage points while maintaining low over-refusal.

1 Introduction

Large reasoning models (LRMs; El-Kishky et al., 2025; Guo et al., 2025) have achieved strong performance in mathematics, coding, and other multi-step reasoning tasks. Many of these models generate explicit reasoning traces before a final answer. While this process can improve problem-solving, it also creates opportunities for unsafe content to appear in reasoning traces or final responses (Lee et al., 2026; Chen et al., 2026b). These risks highlight the need for reliable safety mechanisms that prevent harmful behaviors while preserving the reasoning

Figure

(a) Advantage collapse

(b) Unsafe diversification

Figure 1: Two failure modes of vanilla GRPO we revealed in LRM safety alignment. (a) Advantage collapse: half of eight-response groups are entirely unsafe, yielding zero group-relative advantages. (b) Unsafe diversification: on challenging harmful prompts, unsafe response rates remain high while the semantic entropy of unsafe responses increases throughout training. capabilities and usefulness of LRMs across legitimate tasks.

Recent work has applied methods such as PPO (Schulman et al., 2017), DPO (Rafailov et al., 2023), and GRPO (Shao et al., 2024) to improve LRM safety while preserving general capabilities. GRPO is particularly attractive because it estimates relative advantages from groups of sampled responses without requiring a separate value model. Yet existing work on LRM safety alignment has largely focused on data construction and reward design (Kim et al., 2026), leaving the implications of GRPO's group-relative optimization less explored. This gap is relevant to LRMs, whose sampled responses may exhibit similar safety outcomes despite variations in their reasoning trajectories. When within-group safety contrasts become weak or disappear, GRPO may struggle to obtain informative learning signals, even when unsafe behaviors persist. This raises a key question: how does GRPO behave when sampled responses provide insufficient safety-directed feedback?

To examine this question, we conduct a preliminary study by applying vanilla GRPO to Qwen3 (Yang et al., 2025) and DeepSeek-R1 (Guo et al., 2025) models with harmful prompts and binary safety rewards. As shown in Fig. 1, we ob-serve two notable phenomena, namely advantage collapse and unsafe diversification. In the former, many prompts yield all-unsafe groups, resulting in zero group-relative advantages and no policy-gradient signal. In the latter, unsafe response rates remain high while semantic diversity increases. These findings suggest that vanilla GRPO may provide insufficient safety-directed feedback, motivating further analysis of its optimization mechanism.

In this paper, we theoretically characterize the two phenomena above. We show that behavioral consistency in LRM post-training reduces safety contrasts among within-group rollouts, causing the relative learning signals required by GRPO to gradually vanish. When such signals collapse on difficult prompts, entropy-driven exploration can spread probability mass across unsafe response modes without a safety direction, leading to persistent unsafe diversification. Guided by these findings, we introduce Beacon, a unified framework for LRM safety alignment with two complementary modules. The first module, Safety Signal Recovery (SSR), addresses insufficient safety signals in GRPO by preserving informative relative signals through advantage-guided trajectory filtering and introducing safe reference supervision when signals collapse. The second module, Safety-Utility Decoupled Alignment (SUDA), tackles the safety-utility trade-off by differentiating harmful and benign prompts through category-aware rewards and benign-only KL anchoring. Together, Beacon effectively improves safety alignment while preserving the model's helpfulness on legitimate requests.

Our main contributions are summarized as follows: ① We identify advantage collapse and unsafe diversification as two characteristic failure modes of GRPO-based LRM safety alignment and theoretically analyze the optimization mechanisms underlying them. ② We propose a novel safety alignment framework with two key components, safety signal recovery (SSR) and safety-utility decoupled alignment (SUDA), which effectively recover safety learning signals while mitigating the safety tax. ③ Across four Qwen3 and DeepSeek-R1-Distill model variants and eight benchmarks, our method achieves the best average safety and reasoning performance, reducing safety error by up to 32.83% while maintaining low over-refusal.

References (30)