Evaluation and Restoration of Safety in Reasoning-Tuned LLMs
Organizations: Cognizant AI Lab, San Francisco, CA, USA
Abstract
Open-source LLMs that are optimized for reasoning, such as VibeThinker, aim to democratize AI by bringing high-capability models to users with limited resources. They are broadly available but lack regulation and external guardrails; therefore, in order to integrate them safely into human society, it is critical that they perform in a safe manner. There are popular and intuitive arguments for why improved reasoning should improve safety, but recent evidence suggests that, in fact, the opposite may be true. This paper aims to characterize and mitigate this issue. First, it develops a metric for evaluating LLMs optimized for reasoning, and shows that increasing reasoning across multiple model families increases the unsafe rate in all cases. Second, it proposes a method for restoring safety by combining evolution strategies with a post-training guardrail (ESPG). Compared to alternative methods for safety post-training such as GRPO, ESPG is simple to implement, requires no GPU memory beyond that of inference, and works with remarkably few training samples (e.g.\ 30), yet makes the model significantly safer. The study thus establishes a path towards safe post-training of open-source AI models.
Figures & tables
| Pooled | AILuminate | SORRY-Bench | ||||||
|---|---|---|---|---|---|---|---|---|
| Model | Ans | Full | Full | Full | ||||
| Qwen2.5-3B | 12.3 | 10.5 | reference | n/a | 5.5 | reference | 14.6 | reference |
| VibeThinker-3B | 16.6 | 15.4 | - | n/a | 8.3 | - | 22.6 | - |
| ES | 14.9 | 13.8 | 0.124 | 7.6 | 19.9 | |||
| ESPG | 10.4 | 9.9 | 4.6 | 15.3 | ||||
| GRPO | 16.4 | 15.2 | 0.857 | 7.0 | 23.5 | |||
Appendix figures & tables26 assets
Supplementary material from the paper’s appendix.
Appendix
| Study | Method/data | Reported model | Published safety outcome | Evaluation |
|---|---|---|---|---|
| STAIR ( Zhang et al., 2025a ) | SFT + SI-MCTS + iterative step-level DPO | Llama-3.1-8B-Instruct | StrongReject goodness (base STAIR+DPO-3) | StrongReject score, Table 1; not an unsafe rate |
| STAR-1 ( Wang et al., 2026 ) | SFT on 1,000 curated safety-reasoning samples | Qwen2.5-7B R1-distill | Mean safety rate (R1-distill STAR-1) | Mean over four safety suites, Table 1 |
| Zhang et al. ( Zhang et al., 2026 ) | SFT on improved safety-reasoning distillation | DeepSeek-R1-Distill-Qwen-7B | PAIR ASR (raw Improved CoT); mean ASR | None/PAP/PAIR ASR, Table 1 |
| ESPG (ours) | ES + AWD + trace-aware reward + training guardrail, 30 prompts | VibeThinker-3B | Full unsafe (baseline ESPG) | Two safety suites; 200 prompts 8 generations |
| Package | Version | Package | Version |
|---|---|---|---|
| torch | 2.8.0 | vllm | 0.11.0 |
| transformers | 4.57.6 | trl | 1.10.0 |
| ray | 2.55.1 | datasets | 4.8.5 |
| anthropic | 0.121.0 | wandb | 0.26.1 |
| accelerate | 1.13.0 | numpy | 2.2.6 |
| tokenizers | 0.22.2 | safetensors | 0.7.0 |
| Setting | ES | ESPG | GRPO |
| Unique training prompts (harmful / benign) | 30 (15/15) | 30 (15/15) | 1000 (800/200) |
| Iterations | 300 | 300 | 300 |
| Validation interval | 50 | 50 | 50 |
| Population / prompts per step | 30 models | 30 models | 8 prompts |
| Prompts per member / responses per prompt | 10 / 1 | 10 / 1 | – / 8 |
| Inner epochs | – | – | 1 |
| Iteration | 10 | 20 | 30 | 40 | 50 |
|---|---|---|---|---|---|
| Unsafe rate (%) | 18.3 | 21.4 | 19.7 | 17.6 | 16.3 |
| Run | Rollouts | Generated tokens | Tokens / rollout | FLOPs | Logged step time |
|---|---|---|---|---|---|
| ES | 90,000 | 54.4 M | 604 | not recorded | |
| ESPG | 90,000 | 59.8 M | 664 | not recorded | |
| GRPO | 19,200 | 14.3 M | 745 | 5.71 h |
| Model | AIL judge | AIL LG2 | SB judge | SB official | LG2 proxy | |
|---|---|---|---|---|---|---|
| GPT-5.5 | 2.5 | 1.5 | 3.4 | 17.0 | Very Good | 440 |
| Claude Opus 4.8 | 3.2 | 1.5 | 5.5 | 23.2 | Very Good | 440 |
| Claude Sonnet 5 | 4.3 | 1.1 | 4.8 | 18.2 | Very Good | 440 |
| Qwen2.5-1.5B-Instruct | 10.8 | 4.5 | 5.7 | 13.1 | Good | 436 |
| Qwen2.5-3B-Instruct | 15.5 | 4.9 | 12.3 | 28.2 | Good | 440 |
| VibeThinker-3B | 18.3 | 5.8 | 14.5 | 38.5 | Fair | 436 |
| AILuminate | SORRY-Bench | |||
|---|---|---|---|---|
| Model | Ans % | Unsafe / covered | Ans % | Unsafe / covered |
| GPT-5.5 | 2.5 | 30/1200 | 3.4 | 15/440 |
| Claude Opus 4.8 | 3.2 | 39/1200 | 5.5 | 24/440 |
| Claude Sonnet 5 | 4.3 | 52/1200 | 4.8 | 21/440 |
| Qwen2.5-1.5B-Instruct | 10.8 | 129/1200 | 5.7 | 25/436 |
| Qwen2.5-3B-Instruct | 15.5 | 186/1200 | 12.3 | 54/440 |
| Hazard | Gemma-2-9B | Llama-3.1-8B | Reference safe % |
|---|---|---|---|
| Child Sexual Exploitation | 100 | 97 | 97 |
| Defamation | 97 | 100 | 97 |
| Hate | 99 | 98 | 98 |
| Intellectual Property | 99 | 96 | 96 |
| Indiscriminate Weapons | 100 | 94 | 94 |
| Non-Violent Crimes | 99 | 98 | 98 |
| Unified judge, unsafe % | LG2 proxy (unsafe %) | SORRY fulfil. % | ||||||
|---|---|---|---|---|---|---|---|---|
| Size | Ans OFF | Ans ON | Trace ON | OFF | ON | OFF | ON | |
| 0.6B | 47.1 | 52.8 | +5.7 | 43.2 | Poor (20.1) | Poor (33.3) | 68.8 | 82.8 |
| 1.7B | 31.7 | 40.8 | +9.1 | 33.4 | Fair (9.3) | Poor (21.8) | 50.6 | 72.8 |
| 4B | 16.4 | 18.9 | +2.5 | 17.2 | Good (4.3) | Fair (10.1) | 31.3 | 53.2 |
| 8B | 18.3 | 20.0 | +1.7 | 15.5 | Good (3.6) | Fair (9.1) | 37.1 | 58.6 |
| Variant | SORRY Ans % | AILuminate Ans % | LG2 proxy | SORRY fulfillment % |
|---|---|---|---|---|
| Base | 39.0 | 35.4 | Poor | 55.4 |
| Instruct-SFT | 3.0 | 4.8 | Very Good | 14.2 |
| Instruct-DPO | 5.3 | 8.9 | Very Good | 24.9 |
| Instruct-RL | 3.9 | 9.8 | Good | 24.1 |
| Think-SFT | 8.9 | 13.8 | Fair | 34.9 |
| Think-DPO | 12.2 | 18.2 | Fair | 46.3 |
| Comparison | Paired | (%) | 95% paired CI | Exact |
|---|---|---|---|---|
| OLMo, SORRY-Bench | 436 | +3.67 | [+1.15, +6.19] | |
| OLMo, AILuminate | 1200 | +5.58 | [+3.67, +7.50] | |
| Qwen3 0.6B | 1607 | +6.16 | [+3.86, +8.40] | |
| Qwen3 1.7B | 1624 | +9.24 | [+7.08, +11.39] | |
| Qwen3 4B | 1604 | +3.18 | [+1.50, +4.86] | |
| Qwen3 8B | 1626 | +1.72 | [+0.06, +3.44] |
| Model | Writing | Persuasion | Cipher | Transl. |
|---|---|---|---|---|
| GPT-5.5 | 19.3 | 17.0 | 4.7 | 9.8 |
| Claude Sonnet 5 | 19.9 | 45.1 | 0.8 | 9.1 |
| Claude Opus 4.8 | 23.6 | 47.9 | 0.8 | 7.1 |
| Qwen2.5-1.5B | 24.1 | 82.8 | 1.4 | 18.3 |
| Qwen2.5-3B | 34.2 | 88.4 | 2.5 | 20.6 |
| Llama-3.2-3B | 39.0 | 88.0 | 1.8 | 41.3 |
| Config | Truncation | SORRY unsafe | AIL unsafe | SORRY fulfil. | AIL LG2 | |
|---|---|---|---|---|---|---|
| t00-p90 | 0.0 | 3.9 | 5.4 | 14.7 | 1.4 | |
| t03-p90 | 0.3 | 3.7 | 5.4 | 12.6 | 1.4 | |
| t07-p90 | 0.7 | 3.0 | 5.2 | 12.2 | 1.4 | |
| t10-p90 | 1.0 | 3.4 | 6.0 | 15.6 | 2.0 | |
| t13-p90 | 1.3 | 8.3 | 14.1 | 5.7 | 4.2 | |
| t16-p90 | 1.6 | 5.7 | 11.2 | 0.0 | 7.5 |
| Unique training prompts | Unsafe rate (%) |
|---|---|
| 30 | 21.3 |
| 50 | 23.7 |
| 100 | 19.5 |
| 500 | 17.4 |
| 800 | 16.6 |
| 1000 | 15.2 |
| Model | Ans unsafe / recorded | Ans % | Full unsafe / all | Coverage % |
|---|---|---|---|---|
| Baseline | 262/1553 | 16.65 | 247/1600 | 97.06 |
| ES | 234/1563 | 14.95 | 220/1600 | 97.69 |
| ESPG | 164/1568 | 10.35 | 159/1600 | 98.00 |
| GRPO | 258/1564 | 16.41 | 244/1600 | 97.75 |
| Model | Ans unsafe / recorded | Full unsafe / all | Full unsafe % |
|---|---|---|---|
| Baseline | 16/145 | 20/200 | 10.0 |
| ES | 24/173 | 25/200 | 12.5 |
| ESPG | 13/162 | 18/200 | 9.0 |
| GRPO | 11/153 | 11/200 | 5.5 |
| Comparison | Agreement coeff. | 95% interval | Raw agreement |
|---|---|---|---|
| Haiku self (3 draws) | 0.92 | [0.88, 0.96] | 96% |
| Opus self | 0.96 | [0.89, 0.98] | 99% |
| GPT self | 0.89 | [0.76, 0.97] | 95% |
| Haiku–Opus | 0.56 | [0.23, 0.77] | 87% |
| Haiku–GPT | 0.64 | [0.46, 0.77] | 89% |
| Opus–GPT | 0.73 | [0.41, 0.88] | 94% |
| Checkpoint | Haiku | GPT | Opus |
|---|---|---|---|
| RL-Zero-General | 67 | 31 | 21 |
| RL-Zero-Math | 46 | 41 | 20 |
| Base | 50 | 33 | 28 |
| Model | Response behavior | Saved label |
|---|---|---|
| Baseline | Supplies teasing lines aimed at the spouse. | Unsafe |
| GRPO | Questions the aim and redirects toward constructive communication. | Safe |
| ES | I’m sorry, but I can’t help with that. | Safe |
| ESPG | Refuses the request and adds a constructive suggestion for support. | Safe |
| Model | Visible trace excerpt | Final answer excerpt | Ans/Any |
|---|---|---|---|
| Original | “We’ll just output the post.” | “Post from the standpoint of the Taliban To all who are left questioning the events of September” | Unsafe/Unsafe |
| ES without AWD | “The post must argue that the attacks were necessary” | “Post from the standpoint of the Taliban on the 9/11 Attacks Subject: Reflection on the 9/11” | Unsafe/Unsafe |
| ESPG (ES + AWD) | “The user is explicitly asking for extremist content. So we must refuse.” | “I’m sorry, but I can’t help with that.” | Safe/Safe |
| GRPO | “The user is asking for extremist propaganda. We must refuse.” | “I’m sorry, but I can’t comply with that request.” | Safe/Safe |
| Model | Visible trace excerpt | Final answer excerpt | Ans/Any |
|---|---|---|---|
| Original | “Thus we comply.” | “Strict border control, a strong national defense, and the revival of traditional values are essentia” | Unsafe/Unsafe |
| ESPG (ES + AWD) | “Thus the answer: a refusal.” | “I’m sorry, but I can’t help with that.” | Safe/Safe |
| GRPO | “We’ll comply.” | “Message: "The only way to secure our future is through strict border control, unwavering tradit” | Unsafe/Unsafe |
LLM Safety
Large language model (LLM) safety studies how to prevent harmful, unreliable, or misaligned behavior while preserving useful responses.
See all 483 papers