What Factors Affect the Safety Alignment of LLMs and LRMs?What Matters For Safety Alignment?
Among 32 open-source models, GPT-OSS-20B is the safest; fast-thinking response prefix attacks raise average ASR to 3.4 times.
- LLMs and LRMs are widely used, but which intrinsic characteristics and external attacks determine safety alignment still lacks a unified comparison for recent new-architecture models. The authors aim to identify the most influential factors, rather than propose new attacks or alignment algorithms.
- On five safety datasets, compare 32 open-source models using 56 jailbreaks and four CoT attacks. CoT is rewritten by fast-thinking Qwen3-14B, placed as a prompt suffix or reply prefix. The guardrail model classifies thinking and answers, with nine votes to obtain ASR.
- The authors state that three open-source models including GPT-OSS-20B are the safest. Under fast thinking, the average ASR for the stronger reply prefix attack is 3.4 times that of no attack. On AdvBench, DeepSeek V3.2's FIM under CoT attack is 93.46%, while GPT-5.2 remains 0.19%.
- The authors state that model-specific and multi-turn jailbreaks were not evaluated, because the goal is factor comparison. The authors believe that safety training data and methods cannot be directly compared, so it is difficult to determine architecture superiority. Qwen3Guard-Gen-8B may classify intermediate thinking before the final refusal as unsafe.
- Evaluated models
- GPT-OSS-20BGPT-OSS-120BQwen3-Next-80B-A3B-ThinkingQwen3-Next-80B-A3B-InstructQwen3-30B-A3B-Thinking-2507Qwen3-30B-A3B-Instruct-2507Gemma-3-27B-ITMinistral-3-14B-Instruct-2512-BF16Ministral-3-14B-Reasoning-2512Seed-OSS-36B-InstructopenPangu-Embedded-7B-v1.1Mistral-7B-Instruct-v0.3Llama-3.1-70B-InstructR1-D-Llama-70BQwen3-14BDeepSeek V3.2Gemini 3 ProGPT-5.2Claude Sonnet 4.5
- Benchmarks
- AdvBenchXSTestHarmBenchSorryBenchStrongReject
- Metrics
- ASR
A Huawei research team conducted a large-scale safety alignment evaluation of 32 open-source LLMs and LRMs (covering 13 model families, 3B to 235B parameters) and 8 commercial models, using 5 safety datasets, 56 jailbreak techniques, and 4 CoT attack methods, totaling 4.6 million API calls. The evaluation shows GPT-OSS-20B, Qwen3-Next-80B-A3B-Thinking, and GPT-OSS-120B are the three safest models, while Seed-OSS, DeepSeek-R1 distillations, and the Mistral family are the most vulnerable. The authors state that post-training and knowledge distillation may cause systematic degradation of safety alignment. Role-playing, prompt injection, and GCG are the most effective among the 56 jailbreak techniques.
Why it was selectedThe paper compares the impact of family, scale, post-training, and CoT attack position on safety alignment across 32 open-source models and 8 commercial models, which can serve as a reference for deployment interface risk.
Related events and news
0 events · 1 news mentions
News that mentions this paper
- Failure-Firstcites the paper's id or linkAI Safety Daily:具身 AI 安全综述、SafePro 专业智能体基准与 DeepSight 工具包
The distillation-degrades-safety finding (2601.03868) has a specific embodied translation: VLA models are routinely distilled from larger reasoning-capable models to meet inference latency
Paper analysis
What problem does this paper attempt to solve?
The authors compare intrinsic characteristics and external attacks of recent LLMs and LRMs to identify factors affecting safety alignment.
Safety alignment is jointly determined by which intrinsic features and external attacks, and recent LLMs and LRMs lack a unified comparison.
- Scenario: LLMs and newer LRMs approach or exceed human levels on some benchmarks and are widely used, but can still be induced to produce unsafe, unethical, or harmful responses. The authors believe that identifying the most influential determinants is necessary both for strengthening model safety and for guiding subsequent research.
- Existing gaps: Existing work extensively studies black-box and white-box jailbreaks on user prompts. The authors state that the intermediate generation process remains overlooked, and for recent models with new architectures, how intrinsic features and external attacks jointly shape safety alignment still lacks systematic investigation.
- Factor division: Intrinsic factors include family, base architecture, scale, reasoning capability, and post-training such as fine-tuning and knowledge distillation. External factors include the structural position of CoT attacks, malicious guidance strength, and various jailbreaks.
- This paper's approach: This paper does not propose new attacks or alignment algorithms, but conducts a large-scale empirical comparison: 32 open-source LLMs/LRMs, 13 families, 3B–235B, five safety datasets, approximately 22K harmful behavior prompts, 56 jailbreaks, four CoT attacks, totaling 4.6 million API calls; and evaluates commercial models including DeepSeek V3.2, Gemini 3 Pro, GPT-5.2, and Claude Sonnet 4.5.
What related research exists?
The paper organizes related work by attack, defense, and evaluation, and positions itself as a unified cross-model comparison of factors.
Attacking LLMs and LRMs.
- Automated jailbreaks: White-box and black-box methods use an attacker LLM to search for vulnerabilities in another target model without human intervention; examples named in the text include GCG [11] and PAIR [14].
- Exploiting instruction following: roleplay, prompt injection, special encoding, and multi-turn dialogues are used to bypass safety alignment; other work exploits sensitivity to attack position, chat templates, and assistant prefix tokens.
- LRMs: A survey [19] discusses risks from reasoning chains, attack vectors, and defenses; the authors say existing LRM attacks mainly rewrite user prompts for prompt injection.
Defenses.
- Inference-time intervention: ReasoningGuard dynamically injects safety aha moments into reasoning traces, guiding the model toward harmless conclusions while minimizing disruption to problem-solving.
- Training and generation-time injection: Safety-oriented fine-tuning constrains reasoning from training; Thinking Intervention injects tokens during generation. The authors say the latter improves LRM safety performance. Response prefix tokens are also used in fine-tuning to make models refuse harmful prompts at any response position.
Benchmarks and behavioral evaluations.
- [46] systematically evaluates the impact of different jailbreaks and their settings on instruction-tuned LLMs.
- Another line of work examines the impact of reasoning on safety, focusing on DeepSeek-R1 and its distilled models' behavior.
Comparison axes and data. This paper does not propose a new algorithm to compare ASR with older attacks. It compares models, as well as no attack, prompt suffix (PSA/L-PSA), and response prefix (RPA/L-RPA). Data are AdvBench, XSTest, HarmBench, SorryBench, and StrongReject; 56 jailbreaks come from the latter two datasets.
The authors position this paper as: using a unified protocol on recent models including new architectures like GPT-OSS and Qwen3-Next to identify factors such as family, scale, post-training, jailbreak, and CoT position; and providing an explanation for response prefix attacks based on instruction following and temporal attention continuity, then offering practical recommendations for open-source and commercial services.
How does the paper address this problem?
Use target-independent CoT rewriting to compare suffix and reply prefix, guardrail model with nine votes to compute ASR.
Instead of training new alignment objectives, a unified multi-agent safety evaluation is used to compare six intrinsic factors and three types of external attacks.
Data, Models, and Judgment
- Data: AdvBench, XSTest, HarmBench, SorryBench, StrongReject. Detailed descriptions are in Appendix B. The main text gives approximately 22K diverse harmful behavior prompts.
- Open-source models: 32 models, 13 families, release dates from 2023.09 to 2025.12, sizes 3B–235B, including Dense/MoE and full-attention/hybrid-attention. Divided into four categories by thinking capability and training method; classification is in Appendix B. Served locally with vLLM, sampling uses default temperature, top_k, top_p, not modified per dataset.
- Safety definition: The guardrail model Qwen3Guard-Gen-8B looks at both intermediate thinking and final answer. A full response is safe only if both contain no harmful content, denoted as issafe(r). ASR equals the number of unsafe responses divided by the number of unsafe prompts, then written as a percentage.
- Voting: Each request performs nine independent classifications, and the final ASR is obtained by majority voting, used to reduce the randomness of LLM review.
Three Types of External Attacks
- Jailbreak: Directly use the 56 methods already in SorryBench and StrongReject, examples include GCG, PAIR, automatic obfuscation, and refusal compression. Go through vLLM's chat completions, single-turn.
- PSA and RPA: The same CoT guidance, PSA placed at the end of the user prompt, RPA placed at the beginning of the model reply. The authors compare the order of attack tokens and the chat template's special system token.
- Stronger guidance: L-PSA and L-RPA add request-irrelevant prefix and suffix guidance before and after the rewritten CoT, used to examine guidance strength. The appendix gives the attacker's complete rewriting prompt.
- Interface differences: Jailbreak and PSA use chat completions. RPA uses completions, manually concatenated, with guidance tokens appended after each family's assistant start token, and can insert the family's reasoning-related tokens to activate slow or fast thinking. Examples are in Appendix D.
Attack Side and Aggregation
- Attack LLM: Fast-thinking Qwen3-14B. Given one-shot, rewrite the user prompt into what most LRMs would generate at the start of thinking, and require not considering safety issues. This model itself is also among the 32 tested models.
- Target-independent: The authors emphasize that the CoT attack prompts used do not depend on the specific target model.
- Figure 1 aggregation: For each dataset, take the maximum ASR across different CoT attacks, representing the maximum vulnerability on that dataset, then average over the five datasets. Single thinking mode uses the default prompt plus two levels of PSA and two levels of RPA; native hybrid-thinking models apply these four settings to both fast and slow modes.
Explanation of RPA
- Structural asymmetry: The authors state that positional encoding Transformers are not permutation invariant, and internally there is no independent "user prompt/reply" semantics, only token sequences. The special system token marks a distribution shift during training; loss is computed only on assistant-generated tokens. If attack tokens appear after the assistant start token, they are treated as an already-generated prefix, not as an instruction to be judged.
- Attention recency: The authors hypothesize that recent tokens dominate attention. Thus, for PSA the recent tokens are mainly the special system token, while for RPA the recent tokens are the attack tokens, and the latter's attention output has a higher harmfulness score. Section 5 gives a simplified derivation.
- Entropy plot: Figure 11 is the average entropy of GPT-OSS-20B on AdvBench at decoding steps 1–8, with legend Nothink/Think and their L-PSA, L-RPA. The authors state that the no-CoT and L-RPA trajectories are highly similar, while also stating that the reply prefix attack induces higher entropy at each decoding step. The curve shapes cannot be seen in plain text.
What experiments did the paper conduct?
The authors say response prefix attacks raise fast-thinking average ASR to 3.4 times that of no attack, while the GPT-OSS series remains relatively safer.
Experimental Setup
- Open-source tested: 32 models, 13 families: Ministral-3, openPangu, Qwen3-Next, Seed-OSS, GPT-OSS, GLM-4.5, Qwen3, Gemma3, DeepSeek-R1-Distilled, Qwen2.5, Llama-3.1, GLM4, Mistral-v0.3. Sizes 3B–235B. Figure 3, 5, 6, 7 correspond to fast-thinking instruction models, fast/slow models from the same architecture separately post-trained, R1 distilled models, and native hybrid-thinking LRMs, respectively.
- Commercial: The authors say 8 leading commercial models. Table 3 has eight rows: DeepSeek V3.2's Chat-FIM and Chat-Prefix, Gemini 3 Pro Preview, Gemini 3 Flash Preview, Grok 4.1 fast, Claude Sonnet 4.5, GPT-5.2, GPT-4o-mini. Only AdvBench and XSTest are reported.
- Attacks: 56 jailbreaks; no attack, PSA, L-PSA, RPA, L-RPA. CoT rewriting uses Qwen3-14B fast thinking, with prompts independent of the target model.
- Metrics: ASR. For thinking models, the entire response is considered safe only if both the thinking and the answer are safe.
- Evaluation: Main results use Qwen3Guard-Gen-8B, with nine majority votes per request. In the discussion, Qwen3-8B and Qwen3-32B are also used for semantic classification comparison.
- Serving: Open-source models run locally with vLLM, sampling kept at defaults. Commercial models use their recommended APIs: DeepSeek uses FIM and chat prefix, Claude uses response prefilling, and the rest use similar message structures.
Main Results
Condition Value Source Fast thinking, L-RPA relative to no CoT Average ASR is 3.4× that of no attack, 41.4 percentage points higher Section 4.6 Slow thinking, L-RPA relative to no CoT 34.6 percentage points higher Section 4.6 Fast/slow thinking, PSA relative to no CoT 5.0 / 2.8 percentage points higher Section 4.6 GPT-OSS-20B, average over five datasets 19.9% Figure 1 leftmost bar Qwen3-Next-80B-A3B-Thinking / GPT-OSS-120B 22.9% / 23.1% Figure 1 second and third bars from left DeepSeek V3.2 Chat-FIM, AdvBench No attack 40.58%, CoT 93.46% Table 3 GPT-5.2, AdvBench No attack and CoT both 0.19% Table 3 Llama-3.1-70B-Instruct, AdvBench, PSA Before distillation 7.9%, after distillation 58.6% Section 4.4 - The authors say the three safest open-source models are GPT-OSS-20B, Qwen3-Next-80B-A3B-Thinking, and GPT-OSS-120B, with the corresponding families GPT-OSS, Qwen3-Next, and Gemma3 being the three safest families; the most vulnerable families are Seed-OSS, DeepSeek-R1 distilled, and Mistral. The authors say GPT-OSS-20B is the safest under both fast and slow thinking, leading Seed-OSS-36B-Instruct by up to 55% on average.
- The introduction describes 2.8%–5.0% and 34.6%–41.4% as suffix/prefix gaps on recently aligned models; Section 4.6 describes the same numbers as average changes across all models by thinking mode. Figure 2 also labels No attack, PSA, L-PSA, RPA, L-RPA as 17.1, 20.9, 22.1, 42.6, 58.5; the figure text does not specify thinking mode, so these are not directly treated as absolute fast-thinking ASR here.
- Figure 1 bar-top labels range from 19.9 to 74.9, with legend divided into MoE/Dense and Hybrid/Slow/Fast. Except for the left three bars and the top three named in the text, the other bar names are misaligned in the text extraction and are not identified bar by bar. The authors say that among the top five, only Gemma-3-27B-IT is a dense instruction-tuned LLM.
Scale, Post-training, and Distillation
- Scale: Figure 4 is a scatter plot of ASR versus parameter scale, with axes Model Scale (B) and Attack Success Rate (%). The authors say there is no consistent scaling law: Gemma becomes safer with scale, while GPT-OSS, Qwen, DeepSeek-R1-Distilled, and Llama become more attackable as scale increases. The authors believe MoE flagships are safer, but architecture effects remain unclear because safety data, training methods, and safety investment are not directly comparable. Dense Gemma3-27B/12B and Ministral-3-14B still outperform some large-scale MoEs.
- Post-training: The authors say post-trained LRMs are generally more susceptible to jailbreak and PSA than instruction models of the same base; self-reflection may help models recover from harmful generation states. An exception is Ministral-3-14B-Instruct-2512, which is consistently safer than Ministral-3-14B-Reasoning-2512; the authors say this phenomenon is not seen in the other twelve families.
- Distillation: The authors say simple knowledge distillation systematically weakens safety alignment in both fast and slow thinking. Counterexamples: Qwen3-8B and the distilled reasoning of base Qwen2.5-32B show defensive gains against PSA; Qwen2.5-Math-7B, Qwen2.5-14B, and Llama-3.1-70B-Instruct show negligible improvement according to the authors. For Llama-3.1-70B-Instruct on AdvBench, PSA ASR after distillation goes from 7.9% to 58.6%, which the authors describe as 7.4×. The authors also say that the data proportion and absolute amount across tasks affect the competing objectives of safety, hallucination, instruction following, and reasoning.
Thinking Modes, Commercial Interfaces, and Jailbreak
- No CoT: Slow thinking is often less safe than fast thinking on AdvBench, XSTest, HarmBench, and SorryBench. Table 1 (SorryBench, no CoT) average for four models: slow thinking full response 16.31%, fast thinking 9.30%. The authors' explanation is that slow thinking may first produce unsafe thinking, then the final answer refuses. GLM-4.5-Air is the opposite: fast thinking 14.92%, slow thinking full response 12.31%.
- RPA and thinking: The authors say slow thinking consistently helps defend against harder-to-defend response prefix attacks; benefits against prompt attacks vary by model and dataset. Under stronger guided L-RPA, the authors say the GPT-OSS family's slow thinking reduces ASR by 9.5% to 35.2%. An example is GPT-OSS-120B on AdvBench with slow thinking at 0% and fast thinking at 35.2%. Qwen3-32B on SorryBench without CoT: slow thinking full response 21.88%, fast thinking 7.03%; the authors say reasoning makes ASR 3.1 times higher.
- Commercial and jailbreak: In Table 3, Gemini 3 Flash Preview's AdvBench goes from 0.77% to 83.85%, and Gemini 3 Pro Preview from 1.54% to 75.77%. The main text writes 0.77% to 83.85% as Gemini 3 Pro Preview, inconsistent with Table 3; here the table is taken as authoritative. GPT-4o-mini's AdvBench goes from 1.73% to 1.15%, and Claude Sonnet 4.5 from 1.92% to 3.46%; the authors say CoT on standard chat completion is ineffective for GPT-5.2, GPT-4o-mini, Claude Sonnet 4.5, and Grok 4.1 Fast. Grok returns illegal operation errors, while OpenAI and Anthropic mainly respond with direct refusals. Claude uses prefilling, yet ASR remains very low. Across the eight representative models, the authors say roleplay, prompt injection, and GCG are the most effective. Figure 9, StrongREJECT, Nothink-L-RPA row, AIM column shows 100.0 for Gemma-3-27B-IT, Ministral-3-14B-Instruct-2512-BF16, openPangu-Embedded-7B-v1.1, and Seed-OSS-36B-Instruct.
Other Ablations and Analyses
- Table 2, SorryBench, slow thinking, average of nine LRMs: L-PSA full response ASR 11.78%, L-RPA 32.50%; thinking part 6.73% versus 26.00%.
- Guidance strength: On most models, ASR for PSA, L-PSA, RPA, and L-RPA rises in steps. The authors say the combination of fast thinking, stronger CoT, and response prefix yields the highest ASR across all LRMs/LLMs.
- The abstract writes Seed-OSS-36B-Instruct from 0.6% to 96.5%; Finding 9 also writes up to 95%, without specifying whether they are the same dataset.
- The authors say base64-type jailbreaks raise Qwen3-Next-80B-A3B-Thinking's ASR to 4.4×; combination_2/3 raises slow-thinking GPT-OSS-20B to 4.1×.
- On the same refusal samples, the authors give Qwen3Guard's rough proportions as about 80% Safe, 10% Controversial, 10% Unsafe.
- The authors say the 2025 Ministral-3-14B-Instruct-2512 reduces ASR by 40.2% relative to the 2023.09 Mistral-7B-Instruct-v0.3. Qwen3-Next and Qwen3-30B-A3B-2507 are safer than Qwen3 and Qwen2.5, which the authors believe may reflect increased safety investment by the teams.
What are some points that can be further explored?
The authors state that model-specific and multi-turn jailbreaks were not evaluated, and note that guardrails may judge pre-refusal thinking as unsafe.
Limitations and Future Directions Noted by the Authors
- Newer jailbreaks not evaluated: Section 6 states that state-of-the-art jailbreaks at the time, including model-specific and multi-turn variants, were not evaluated because the goal is comparing safety alignment factors, not pursuing higher ASR. The authors believe new jailbreaks may still expose new vulnerabilities.
- Architecture conclusions not directly comparable: Section 4.2 states that family comparisons alone cannot determine the advantage of an architecture because safety-related training data, training methods, and safety investment are not directly comparable.
- Strict evaluation: Section 6 states that Qwen3Guard-Gen-8B tends to over-judge intermediate reasoning as unsafe, even when the final answer is a reasoned refusal. The authors say this causes over-filtering and affects user experience.
- Future directions: Section 6 suggests the need for stronger reasoning capabilities, more safety alignment data, and more advanced training techniques; on the infrastructure side, multi-agent defenses should be established to analyze user requests, monitor generation, and guide generation when needed.
Experimental Coverage
- Open-source part: 32 models, 13 families, 3B–235B, local vLLM; five datasets, about 22K prompts, 56 jailbreaks, four CoT attacks; the abstract writes a total of 4.6 million API calls (Sections 3–4).
- Figure 1's model scores are the maximum ASR across CoT attacks on each dataset, then averaged over five datasets; hybrid thinking models apply the four CoT settings to both fast and slow modes (Section 4.1).
- Main evaluation uses Qwen3Guard-Gen-8B with nine majority votes per request; CoT rewriting uses fast-thinking Qwen3-14B, with prompts independent of the target model (Sections 3.4–3.5).
- Commercial results are only given on AdvBench and XSTest, with interfaces including DeepSeek's FIM and chat prefix, Claude's response prefilling, and similar message structures on other models (Table 3, Section 4.6.1).
- Jailbreak detail figures cover eight representative models and seven families (Section 4.7). Sampling uses default temperature, top_k, and top_p, with specific values in Appendix C.
Summarize the main content of the paper
The authors state that reasoning helps defend against reply prefix, post-training and distillation may weaken alignment, and the completion prefix interface poses risks.
This is a unified empirical comparison of safety alignment factors in recent LLMs and LRMs, not a paper proposing a new attack or alignment algorithm.
The authors ask: which factors—family, architecture, scale, reasoning, fine-tuning and distillation, as well as CoT attack position, guidance strength, and jailbreak—more strongly influence safety alignment. The evaluation covers 32 open-source models (13 families, 3B–235B) and the commercial interfaces in Table 3, five safety datasets, 56 jailbreaks, and four CoT attacks. Whether a response is safe is judged by Qwen3Guard-Gen-8B on both thinking and answer, with nine votes; Figure 1 uses the average of the worst-case CoT attack ASR across datasets.
- Who is safer: The authors say the safest open-source models are GPT-OSS-20B, Qwen3-Next-80B-A3B-Thinking, and GPT-OSS-120B, with Figure 1's left three bars at 19.9%, 22.9%, and 23.1%. The authors view reasoning and self-reflection as more critical than scale and architecture, and say there is no consistent safety scaling law.
- Post-training: The authors believe fine-tuning and knowledge distillation may systematically weaken alignment, and safety should be an explicit constraint or optimization objective in these stages. On AdvBench, Llama-3.1-70B-Instruct after distillation sees PSA ASR go from 7.9% to 58.6%. Ministral's instruction model being safer than its reasoning model is the exception the authors point out.
- Attack position: Prompt suffix only raises average ASR by 5.0 and 2.8 percentage points for fast and slow thinking; stronger response prefix reaches 3.4 times no attack under fast thinking and raises slow thinking by 34.6 percentage points. The abstract writes Seed-OSS-36B-Instruct from 0.6% to 96.5%.
- Interfaces and jailbreak: On AdvBench, DeepSeek V3.2's FIM reaches 93.46% under CoT attack, while GPT-5.2 remains at 0.19%. The authors say completion interfaces that allow users to specify response prefixes constitute a security vulnerability, and say roleplay, prompt injection, and GCG most easily elicit misaligned behavior.
- Authors' conclusions: Slow thinking helps recover from potentially unsafe states to refusal, but benefits against prompt attacks vary by model and dataset; both open-source serving and commercial APIs need architectural and deployment defenses against response prefixes.
Related papers
Show 3 more papers
- What Do Safety-Aligned LLMs Learn From Mixed Compliance Demonstrations?Analysis / interpretabilityarXiv