Abstract
This paper introduces STAR-1, a high-quality, just-1k-scale safety dataset specifically designed for large reasoning models (LRMs) like DeepSeek-R1. Built on three core principles—diversity, deliberative reasoning, and rigorous filtering—STAR-1 aims to address the critical needs for safety alignment in LRMs. Specifically, we begin by integrating existing open-source safety datasets from diverse sources. Then, we curate safety policies to generate policy-grounded deliberative reasoning samples. Lastly, we apply a GPT-4o-based safety scoring system to select training examples aligned with best practices. Experimental results show that fine-tuning LRMs with STAR-1 leads to an average 40% improvement in safety performance across four benchmarks, while only incurring a marginal decrease (e.g., an average of 1.1%) in reasoning ability measured across five reasoning tasks. Extensive ablation studies further validate the importance of our design principles in constructing STAR-1 and analyze its efficacy across both LRMs and traditional LLMs.
Introduction
Large Reasoning Models (LRMs), such as OpenAI’s o1 and DeepSeek-R1, leverage extended chain-of-thought (CoT) processing to excel in complex tasks like mathematics and programming. However, this enhanced reasoning capability presents a unique safety challenge: these models can potentially use their logical depth to circumvent safety filters or generate more sophisticated harmful content. Traditional safety alignment often incurs a significant "alignment tax," where improvements in safety lead to degraded reasoning performance. STAR-1 addresses this by demonstrating that high-quality, deliberative reasoning data can achieve superior safety alignment with minimal impact on core intelligence.
The STAR-1 Methodology
The researchers developed a three-pillar pipeline to construct the STAR-1 (SafeTy Aligned Reasoning) dataset, focusing on quality over quantity.
1. Diversity and Data Aggregation
The process began with aggregating 530,000 harmful instructions from 18 open-source repositories. Through rigorous deduplication, this was narrowed down to 41,000 unique examples spanning eight critical safety categories, including Hate Speech, PII, and Criminal Behavior.
2. Deliberative Reasoning Paradigm
Unlike standard alignment that teaches models simple refusal patterns, STAR-1 employs a "deliberative reasoning" approach. Models are trained to explicitly analyze safety policies within their CoT. Using DeepSeek-R1, the researchers generated reasoning traces where the model cites specific policies, evaluates user intent, and provides a justified refusal.
3. Rigorous Filtering
To ensure the highest quality, the 41,000 candidate samples were evaluated by GPT-4o. Each sample was scored on three criteria: Safety Compliance, Policy Relevancy, and Reasoning Accuracy. Only samples achieving a "perfect 10" across all metrics were retained, resulting in the final 1,000-sample STAR-1 dataset.
Key Results and Insights
Experimental evaluation across five model families (Qwen and Llama) revealed significant performance gains:
- Safety Performance: Fine-tuning with STAR-1 resulted in an average 40% improvement in safety across benchmarks like StrongReject and WildJailbreak.
- Minimal Alignment Tax: The average decrease in reasoning performance (measured on AIME, Math500, etc.) was only 1.1%. In some larger models, such as Qwen2.5-32B, reasoning performance actually improved by 1.3%, suggesting a synergy between complex policy following and general logic.
- Efficiency: The 1k-sample dataset proved more effective than larger 40k-sample datasets like SafeChain. Furthermore, training is highly efficient, requiring only 45 minutes on 8x A5000 GPUs for an 8B parameter model.
Discussion and Future Work
A notable side effect of strict safety alignment is "overrefusal," where the model rejects benign prompts that superficially resemble harmful ones. The authors found that incorporating approximately 900 "not overrefusal" samples (benign variants of harmful prompts) effectively mitigated this issue without compromising safety or reasoning gains. Future research will continue to refine the balance between robustness and helpfulness in reasoning-centric models.
Summary updated