Evaluation and Restoration of Safety in Reasoning-Tuned LLMs

Ehsan Latif, Roberto Dailey, Risto Miikkulainen, Elliot MeyersonarXiv 2026

TL;DR

Intuition tells us that giving open-source LLMs the ability to "think" before they speak should make them safer—after all, deliberation helps humans avoid bad decisions. As it turns out, enabling or training for reasoning consistently makes models less safe, often leaking harmful instructions right inside their visible chain-of-thought. To fix this without breaking the bank (or the model's math skills), the authors introduce ESPG: a backpropagation-free tuning method that restores safety using just 30 training prompts.

What Problem Does This Paper Address?

Small, open-source reasoning models (like DeepSeek-R1, Qwen3, and VibeThinker) are a triumph for democratized AI—you can run serious analytical power on a single consumer GPU. Unlike closed commercial APIs, however, open-weight models lack external content filters and hidden "thinking" scratchpads. When an open model reasons, its <think>...</think> trace is completely visible to the user.

While we might hope that extra inference-time compute helps a model recognize and refuse sketchy requests, recent evidence points the other way: reasoning tuning seems to create a tension between task-completion and refusal, eroding safety alignment. Prior comparisons were muddy because models differed in data, scale, and evaluation setups. The authors set out to cleanly measure whether reasoning really degrades safety across controlled settings—accounting for both the final answer and the visible thought trace—and to find a lightweight way to patch safety back in after the fact.

Methods

First, the authors formalize trace-aware unsafe-rate metrics using LLM judges (claude-haiku-4-5 for broad audits, claude-opus-4-8 for restoration):

  • Ans: Judges only parsed final answers (tracking answer coverage separately so cut-off/empty generations aren't mistakenly counted as polite refusals).
  • Any / Full: Evaluates both the visible reasoning trace and the final answer, catching cases where a model helpfully outlines a cyberattack in its thoughts before piously refusing in its final output.

Second, to fix unsafe reasoning models, they propose ESPG (Evolution Strategies with a Post-training Guardrail), combining three neat ideas:

  1. Evolution Strategies (ES) + Anchored Weight Decay (AWD): Instead of memory-heavy backpropagation and gradient states (like GRPO), ES perturbs model weights with Gaussian noise, evaluates scalar rewards via forward passes, and nudges weights in the safer direction. AWD acts like an elastic tether to the starting weights, preventing the model from forgetting how to reason.
  2. Trace-Aware Granular Reward: Models are scored on a 1–5 rubric rewarding benign helpfulness while penalizing harmful assistance in both the final answer (75% weight) and reasoning trace (25% weight).
  3. Train-Time Guardrail, Plain-Chat Test: If a model always fails on hard prompts during training, RL/ES has no positive signal to learn from. ESPG injects a safety system prompt only during training to bootstrap safe examples, then strips it away at test time so safety is baked directly into the weights for realistic, unguarded deployments.
Figure 1: Observed safety differences across reasoning settings and one restoration case study. (a) Enabling thinking on one Qwen3 checkpoint per size raises the unsafe rate at all four sizes (filled to hollow marker). (b) OLMo 3 Instruct and Think training pipelines start from the same base model, and Think has higher measured unsafe rates at the compared released stages (the training branches differ in data and objectives). (c) Starting with the base instruction-tuned model of Qwen2.5-3B and its reasoning-tuned version, VibeThinker-3B, ESPG reduces unsafe output on VibeThinker-3B in the reported setting, with no optimizer-isolated GRPO comparison.

Datasets

No new datasets were introduced; the authors curated splits from existing benchmarks:

  • Safety Audits & Restoration: AILuminate and SORRY-Bench (including 20 linguistic/encoding rewording styles). ESPG used just 30 unique prompts (15 harmful, 15 benign) for training, 40 for validation, and 200 held-out harmful prompts for testing. (A practical GRPO baseline required 1,000 prompts).
  • Reasoning Capability: MATH-200 to verify that safety tuning didn't lobotomize problem-solving.

Key Insights and Ideas

  • Flipping the "thinking" switch hurts safety immediately: Because Qwen3 lets you toggle thinking on and off using the exact same model weights, the authors isolated inference-time reasoning from training differences. Turning thinking on raised unsafe rates across every single model size.
  • Refusals can hide leaky traces—and missing answers aren't refusals: In open models, judging only the final answer undercounts danger if the <think> block already gave away the goods. Conversely, reasoning models sometimes ramble past token limits without outputting a final answer (VibeThinker-3B only finished answering 63.8% of AILuminate prompts); counting empty answers as "safe" artificially inflates safety scores.
  • Flipping the guardrail paradigm works: Previous work suggested "Pure Tuning, Safe Testing" (add a system prompt at deployment). For open-weight models where end-users control the system prompt, doing the exact opposite—Guarded Tuning, Plain Testing—gives the optimizer a rich learning signal while hardening the raw weights.

Key Results

  • Fixed-Weight Toggle (Qwen3 0.6B–8B): Turning thinking ON increased Ans unsafe rates by +1.7 to +9.1 percentage points (pp) and Any (trace-inclusive) unsafe rates by +5.2 to +13.4 pp ($p < 10^{-7}$ across all sizes).
  • Training Pipelines (OLMo 3 7B): Across SFT, DPO, and RL checkpoints, the Think branch consistently trailed the Instruct branch in safety, ending +3.7 pp (SORRY-Bench) and +5.6 pp (AILuminate) more unsafe after RL.
  • Safety Restoration (VibeThinker-3B): Tested in plain chat without guardrails, ESPG dropped the Full unsafe rate from 15.4% down to 9.9% (-5.5 pp)—actually making it safer than its non-reasoning ancestor, Qwen2.5-3B (10.5%). Meanwhile, MATH-200 accuracy barely budged (92.5% vs. 93.0% baseline).
  • Comparisons: Unanchored ES only reached 13.8% unsafe (91.5% MATH-200), proving anchoring matters. GRPO (even with 1,000 prompts) stalled at 15.2% unsafe and dropped MATH-200 accuracy to 88.0%.

Limitations and Future Work

The authors are admirably candid about what this study doesn't prove:

  • Single-seed case study: Restoration was only tested on VibeThinker-3B with one training seed, and the 200-prompt test set had some prior exploratory exposure during development.
  • Same judge for training and testing: claude-opus-4-8 scored both the ESPG training rewards and the primary test evaluations, leaving room for judge-specific overfitting.
  • Compute trade-offs: While ESPG needs zero backpropagation memory, it required 90,000 forward-pass completions (vs. 19,200 for GRPO), meaning LLM-judge API costs and wall-clock runtimes aren't necessarily cheaper.
  • Future directions: Testing benign over-refusal on dedicated benchmarks like XSTest, expanding to other model families, using independent/human judges, and comparing against LoRA and supervised safety distillation under matched budgets.

Summary updated

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.
BibTeX
@misc{latif2026evaluation,
  author = {Ehsan Latif and Roberto Dailey and Risto Miikkulainen and Elliot Meyerson},
  title = {{Evaluation and Restoration of Safety in Reasoning-Tuned LLMs}},
  year = {2026},
  eprint = {2611.33515},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.33515},
}
Figure