Safety evaluation and remediation of inference-optimized LLMsEvaluation and Restoration of Safety in Reasoning-Tuned LLMs
The authors audit reasoning models with trace-aware unsafe rate and propose ESPG; in a 200-prompt test on VibeThinker-3B, Full unsafe rate dropped from 15.4% to 9.9%.
Intended for open-source model developers with available weights who perform reasoning post-training; a safety guardrail is used during training, and testing switches to plain user-only chat to evaluate deployment scenarios in which users do not add a guardrail. Evaluation requests come from AILuminate and SORRY-Bench, and the judge determines whether substantive harmful help is provided; the paper does not propose a new attack method.
- Open-source reasoning post-training may weaken safety, but the data, objectives and reasoning settings of different models are mixed, making safety changes difficult to judge. The authors also focus on the case where, even when the final answer refuses, the visible reasoning trace may still contain harmful assistance.
- The authors separately evaluate the final answer, the trace and the full output, and use a fixed-weight thinking toggle and OLMo 3 training stages as controls. ESPG combines evolution strategies, Anchored Weight Decay, trace-aware reward and a guardrail used only during training, which is removed at test time.
- For all four Qwen3 sizes, Ans unsafe rate rises after enabling thinking. After ESPG, VibeThinker-3B's Full unsafe rate on 200 prompts with K=8 drops from 15.4% to 9.9%, and MATH-200 changes from 93.0% to 92.5%; the GRPO control showed no held-out improvement.
- The recovery experiments use only one 3B starting model, one training seed per arm, the test set was repeatedly used during development, and training and testing share the Opus judge. The authors note that independent testing, human review, cross-model recovery and over-refusal evaluation are still needed; other languages and multi-turn attacks remain untested.
- Evaluated models
- OLMo 3 7BQwen3-0.6BQwen3-1.7BQwen3-4BQwen3-8BGPT-5.5 (gpt-5.5)Claude Opus 4.8 (claude-opus-4-8)Claude Sonnet 5 (claude-sonnet-5)Qwen2.5-1.5B-InstructQwen2.5-3B-InstructLlama-3.2-3B-InstructVibeThinker-3BDeepSeek-R1-Distill-Qwen-1.5BVibeThinker-1.5B
- Benchmarks
- AILuminate v1.0SORRY-Bench 2025-03MATH-200
- Metrics
- Ans unsafe rateAny unsafe rateFull unsafe raterecorded answer coverageSORRY-Bench fulfillment rateMATH-200 accuracy
The researchers propose metrics for evaluating the safety of reasoning-optimized LLMs, find that enhancing reasoning across multiple model families raises the unsafe rate, and propose the ESPG method to restore safety. The paper's background is that open-source reasoning models such as VibeThinker are widely available but lack regulation and external guardrails. ESPG combines evolutionary strategies with post-training guardrails; the authors claim that compared with safety post-training methods such as GRPO, it is simple to implement, requires no additional GPU memory beyond inference, and needs very few training samples (e.g., 30), while significantly improving model safety, providing a path for safety post-training of open-source AI models.
Related events and news
1 events · 0 news mentions
- This event's paper
推理优化LLM的安全性评估与修复
Paper analysis
What problem does this paper attempt to solve?
The authors study the safety loss that accompanies reasoning post-training and thinking mode, and attempt to restore safety after removing the guardrail.
The core question is: how to distinguish and measure the safety loss of reasoning models in answers and in visible reasoning traces, and then recover it while preserving reasoning ability.
- Problem setting: The authors argue that small open-source reasoning models lower the barrier to use but lack external guardrails; refusal in the final answer is not sufficient to guarantee safety, because the visible trace may also provide harmful assistance.
- Existing gaps: The paper cites prior research stating that alignment may degrade during post-training, and that safety alignment may also harm reasoning performance. Differences among released models in data, scale, objectives and serving settings make safety changes difficult to attribute.
- Core observation and hypothesis: The authors treat the tension between task completion and refusal as a possible explanation rather than an identified causal mechanism; fixed-weight switching between thinking and open training pipelines can provide more controlled measurements.
- Proposed approach: The paper defines three types of unsafe rate, Ans, Any and Full, and proposes ESPG, combining evolution strategies, Anchored Weight Decay, trace-aware reward and a training-time guardrail.
- Threat model: This is a study on safety evaluation and post-training defenses; the paper explicitly states that it does not propose new attack methods.
- Protected target: Open-source models whose weights can be obtained and post-trained; the recovery case is VibeThinker-3B.
- Deployment conditions: Training has a safety system prompt; testing uses plain user-only chat and does not assume users will add guardrails.
- Risk inputs and judgment: Harmful requests and rewrites from AILuminate and SORRY-Bench are used; the judge determines whether substantive harmful assistance is given, and a missing answer is not treated as a successful refusal.
What related research exists?
Related work falls into three categories: reasoning safety, training constraints that preserve safety, and representation and evaluation; ESPG emphasizes training with a guardrail and testing without a guardrail.
Impact of reasoning on safety
- Alignment and reasoning vulnerabilities: Ouyang et al. (2022), Rafailov et al. (2023), and Bai et al. (2022) study alignment with human feedback, DPO, and AI feedback, respectively; Yang (2025b), Yan et al. (2026), Zhou et al. (2025), and Kuo et al. (2025) discuss susceptibility to thinking attacks, interference with refusal, refusal in R1-class models, and the attack surface of traces.
- Safety reasoning training: Guan et al. (2024) reward safe thinking through deliberative alignment; STAIR (Zhang et al., 2025a) combines tree search with iterative preference optimization, and STAR-1 (Wang et al., 2026) uses 1,000 safety reasoning samples.
- Existing empirical basis: Qi et al. (2024) study safety degradation caused by non-malicious fine-tuning, and Qi et al. (2025) point out that alignment may be concentrated in the opening tokens; on this basis, this paper extends evaluation to answers and traces.
Training objectives and constraints
- Safety objectives: Safety-Tuned LLaMAs (Bianchi et al., 2024) add safety demonstrations but exhibit over-refusal of benign requests; Safe RLHF (Dai et al., 2024) uses a Lagrange multiplier to balance helpfulness and harmfulness costs.
- Parameter and distribution constraints: Ziegler et al. (2019) use a KL penalty, and Kirkpatrick et al. (2017) use a quadratic penalty around the old weights; Qiu et al. (2025) study ES, and Schweighofer et al. (2026) propose AWD.
- Combination in this paper: The authors state that the contribution lies in applying ES, AWD, a visible-trace-aware rubric, and a training-time guardrail in combination, rather than proposing a new single optimizer component.
Safety representation and evaluation
- Representation methods: Arditi et al. (2024) study a low-dimensional refusal direction; ReFAT (Yu et al., 2025a) and RefusalGuard (Asif & Amiri, 2026) perform adversarial training on refusal features and representation preservation, respectively. The paper states that ESPG does not rely on internal geometric analysis or gradients.
- Evaluation conditions: Ren et al. (2024) discuss that gains on safety benchmarks do not necessarily correspond to broader safety improvements, and Zheng et al. (2023) study automatic judge bias.
- Prompt templates: Lyu et al. (2024)'s "Pure Tuning, Safe Testing" adds a safety prompt at test time; ESPG adopts the opposite configuration because the authors do not assume that open-source model users will deploy a guardrail.
Baselines and benchmarks: The restoration experiments compare ES (λ=0), ESPG (λ=10), and GRPO starting from VibeThinker-3B, and include a Qwen2.5-3B reference row; AILuminate, SORRY-Bench, and MATH-200 are used. Appendix A emphasizes that STAIR, STAR-1, and others do not fully match ESPG in model, judge, prompts, and budget, so the numerical rankings from the original reports cannot be used.
How does the paper address this problem?
The method first separately measures harmful help in the answer and the trace, then optimizes the safety reward using anchored ES and a training-time guardrail.
The overall approach consists of the trace-aware unsafe rate and ESPG: the former specifies the evaluation target and denominator, and the latter updates weights using only forward generation and a scalar reward, and removes the training guardrail at test time.
Safety metrics and success determination
- An output can be split into a reasoning trace and a final answer. The judge records 1 when the text provides substantive help for a harmful request, and 0 otherwise; Ans evaluates only the answer, Any combines independent trace and answer judgments, and Full evaluates the complete response at once.
- The core expectation is defined as Rjs(θ)=𝔼x∼ D,y∼πθ(·|x,s)[hje(x,y)], where the audit uses e=Any and restoration uses e=Full; the values depend on the judge, prompts, reasoning mode, and decoding settings.
- Ans is computed only on responses with a parsed answer, and recorded answer coverage is also reported; a missing answer does not count as a successful refusal. The audit uses K=1 per prompt, and the restoration test first averages K=8 labels within each prompt and then averages across prompts.
Safety reward and training guardrail
- For harmful requests, the answer and trace are each rated on a 1–5 scale for harmful completion, and for benign requests the answer is rated on a 1–5 scale for helpfulness; a response with no parsed answer receives a reward of 0.
- A harmful response with a trace receives a reward of 0.75(5−gans)/4+0.25(5−gtr)/4; without a trace, all weight is placed on the answer, and a benign response receives a reward of (ghelp−1)/4. The authors state that 0.75/0.25 is a simple choice that emphasizes the final answer while penalizing harmful traces.
- The training guardrail requires the model to first judge whether the request is safe, then refuse harmful requests or help with benign requests. The design rationale given by the authors is that if difficult training prompts always produce unsafe responses, there is no contrast signal between safe and unsafe.
- Both the training and test judges receive the user request without the guardrail; testing uses user-only chat. Appendix C gives the full guardrail and scoring rubrics.
ES, AWD, and controls
- In each round, ES generates P=30 perturbed models with added Gaussian noise; each member generates 1 response on each of 10 randomly drawn training prompts, fitness is the average reward, and the update direction is formed after z-scoring within the population.
- The update also adds an anchoring term toward the starting weights; ESPG uses λ=10 and the ES control uses λ=0, and the two share data, reward, guardrail, sampling, population size, and seed.
- All three restoration runs use 300 iterations, seed 42, and noise scale σ=10⁻³; ES uses learning rate α=5×10⁻⁴, training temperature 0.7, top-p 0.95, and generates at most 3,072 tokens.
- GRPO uses the same reward and guardrail, with 8 responses per prompt, KL coefficient β=0.04, and PPO clipping 0.2; however, its training set and rollout budget differ, so it is not an optimizer-isolated control.
Data splits and restoration evaluation
- The audit uses 1,200 public demo prompts from AILuminate v1.0 and 440 base prompts from SORRY-Bench 2025-03; the unified audit judge is claude-haiku-4-5.
- ES and ESPG use 30 unique training prompts containing harmful and benign requests, which do not overlap with validation or test prompts. GRPO instead uses 1,000 training prompts.
- The restoration test contains 200 held-out harmful prompts, 100 from each of the two benchmarks; K=8 per prompt, temperature 0.6, top-p 0.95, 8,192-token limit, no guardrail.
- Both the training reward and the restoration test use claude-opus-4-8; the 40 validation prompts retain the guardrail. All three reported checkpoints are selected at iteration 150 based on the peak validation reward, and capability evaluation uses MATH-200.
What experiments did the paper conduct?
The experiments cover fixed-weight thinking, OLMo 3 stages, a nine-model and paraphrase audit, and a single-seed restoration comparison of VibeThinker-3B.
Experimental setup
- Models tested: Qwen3 0.6B/1.7B/4B/8B; 12 checkpoints of OLMo 3 7B (Base, Instruct, Think, RL-Zero); plus nine cross-section models.
- Nine-model audit: GPT-5.5, Claude Opus 4.8, Claude Sonnet 5; Qwen2.5-1.5B/3B-Instruct, Llama-3.2-3B-Instruct; VibeThinker-3B/1.5B, DeepSeek-R1-Distill-Qwen-1.5B.
- Data scale: AILuminate 1,200 items, SORRY-Bench 440 items; 22 audit files have only 436 SORRY-Bench inputs due to loading errors. Recovery test uses 200 items, MATH-200 uses 200 problems.
- Metrics and judging: Ans, Any, Full unsafe rate, answer coverage, SORRY-Bench fulfillment and MATH-200 accuracy; unified audit uses claude-haiku-4-5, recovery training and testing use claude-opus-4-8.
- Supplementary judging: SORRY-Bench's Mistral-7B fulfillment judge, and Llama Guard 2 8B on AILuminate; LG2 levels are a local unofficial proxy, and absolute proportions from different judges are not interchangeable.
- Repetition and statistics: Audit K=1; recovery uses K=8 per prompt, one training seed per arm, 5,000 prompt bootstraps. Paired audits use exact McNemar and 20,000 bootstraps.
Main results
Recovery tests are on VibeThinker-3B and its tuned variants, 200 prompts, K=8, temperature 0.6, no guardrail; according to Table 1, ∆ is the paired Full difference relative to VibeThinker-3B.
Swipe horizontally to read the table
Model/Method Pooled Ans % Pooled Full % Full ∆ [95% CI] pboot AILuminate Full % SORRY-Bench Full % Qwen2.5-3B (reference) 12.3 10.5 reference n/a 5.5 14.6 VibeThinker-3B 16.6 15.4 - n/a 8.3 22.6 ES, λ=0 14.9 13.8 −1.7 [−3.9, +0.4] 0.124 7.6 19.9 ESPG, λ=10 10.4 9.9 −5.5 [−7.6, −3.5] <0.001 4.6 15.3 GRPO, 1,000 prompts 16.4 15.2 −0.2 [−1.9, +1.6] 0.857 7.0 23.5 - Anchoring control: ESPG's Full difference relative to ES is −3.81 percentage points, 95% CI [−6.13, −1.63], pboot<0.001; the authors state this supports the role of AWD in this fixed configuration.
- Benchmark consistency: ESPG's Full intervals on both benchmarks exclude zero; ES's two point estimates are negative but the intervals include zero, and GRPO's two are in opposite directions with intervals including zero.
- Control boundaries: Qwen2.5-3B is the base reference for VibeThinker and does not participate in paired comparisons; GRPO's data and budget are not matched, so differences cannot be attributed to the optimizer.
Fixed-weight and training-stage audits
- Qwen3 toggle: According to Table 10, after enabling thinking for 0.6B/1.7B/4B/8B, Ans rises from 47.1/31.7/16.4/18.3% to 52.8/40.8/18.9/20.0% respectively; the paired increases in Any are 9.96/13.39/6.48/5.20 percentage points, all p<10⁻⁷.
- Statistical exceptions: In the common-answer pairing of Table 12, 8B Ans is +1.72 percentage points, p=0.0535; among the six Ans comparisons, OLMo SORRY-Bench's p=0.0090 and this 8B result did not pass the exploratory Bonferroni threshold.
- OLMo 3: According to Table 11, Instruct-RL and Think-RL have SORRY-Bench Ans of 3.9%/7.6% and AILuminate of 9.8%/15.3%; Instruct-SFT is lower, at 3.0%/4.8% respectively. The authors emphasize that the branches differ in data and objectives, so no reasoning-only causal inference can be made.
- RL-Zero exception: RLZero-General is 55.7%/59.3% on SORRY-Bench and AILuminate, higher than Base's 39.0%/35.4%; RLZero-Math is 39.2% on AILuminate.
Cross-model, rewrite and capability evaluations
- Cross-model results: According to Table 8, commercial models' Ans is 2.5–4.3% on AILuminate and 3.4–5.5% on SORRY-Bench; the two 1.5B reasoning models are 54.5–55.2% and 53.6–58.2% respectively. VibeThinker-3B is 18.3%/14.5%, but coverage is only 63.8%/82.1%.
- Ranking exceptions: VibeThinker-3B's Ans is lower than Llama-3.2-3B-Instruct's 21.8%/19.3%; under the SORRY-Bench native judge, Qwen2.5-1.5B-Instruct's 13.1% is lower than the three commercial systems' 17.0–23.2%, so the authors do not give a strict category ranking.
- Rewrite audit: In Table 13, Qwen2.5-1.5B's Base/Worst fulfillment is 13.1%/91.5%, VibeThinker-3B is 38.5%/58.8%, and the newly added ESPG behavior is 19.0%/23.4%. These are descriptive maxima over 20 tested styles, not deployment rates.
- Capability results: Appendix H.4 reports MATH-200 for baseline, ES, ESPG and GRPO as 93.0%, 91.5%, 92.5% and 88.0% respectively; GRPO has 49 problems with no final answer, versus 23–26 for the other three arms.
Other ablations and analyses
- Training guardrail ablation: The exploratory no-guardrail runs in Table 5 have unsafe rates of 18.3%, 21.4%, 19.7%, 17.6% and 16.3% at iterations 10–50, and are not matched final controls.
- GRPO data scale: In Table 16, unsafe rate at 30/50/100/500/800/1000 unique prompts is 21.3/23.7/19.5/17.4/16.6/15.2%, and the seed/budget of each exploratory setting is not fully recorded.
- Repeated generation: Across two greedy runs, the ESPG–ES difference is −7.0 and −2.5 percentage points, and GRPO–baseline is +3.0 and −5.5, with inconsistent model rankings.
- Training cost: In Table 6, ESPG is 90,000 rollouts and 3.7×10¹⁷ FLOPs, GRPO is 19,200 rollouts and 4.4×10¹⁷ FLOPs; judge costs are excluded, and ES wall-clock was not recorded.
- Judge re-evaluation: Table 18 re-evaluates fixed text five times, with 98.67% of judged instances consistent; the authors state this does not equal human agreement or independent review.
- Decoding sweep: In Table 15, OLMo-3-7B-Instruct-SFT at T=1.3 has SORRY/AILuminate unsafe of 8.3%/14.1%; at T=1.6 SORRY fulfillment is 0.0, which the authors attribute to output degradation rather than greater safety.
What are some points that can be further explored?
The authors call for independent testing, multiple seeds and human review; the current recovery evidence is limited to one 3B model and a single-seed setting with a shared judge.
Limitations and future directions noted by the authors
- Test set and seeds: Section 6 explicitly states that each arm has only one training seed; although the 200 test prompts do not participate in weight updates or routine validation, they were repeatedly viewed by early exploratory runs; an independent test set and more seeds are needed.
- Reviewer independence: Section 6 and Appendix I note that the same Opus model handles both training and main testing, and cross-judge consistency does not constitute independent confirmation; independent or human judging is planned.
- Capability coverage: Section 6 notes that the reasoning evaluation consists only of MATH-200; Appendix H.4 explicitly states that over-refusal was not measured, and an independent benign-refusal test such as XSTest is needed.
- Mechanism validation: Section 6 calls the preservation of safety representations a hypothesis; Appendix F.4 gives testable predictions about the refusal direction but explicitly states that the experiment was not run.
- Control extensions: Section 6 plans to compare matched-data/budget SFT, LoRA, SDP and regularized gradient methods, and to conduct cross-model recovery and more ablations.
- Reproduction materials: Appendix B.3 states that the installed ES worker that produced the reported results is not in the released source code; Appendix F.2 states that the training weights were not released, so weight distances between checkpoints cannot be measured directly.
Scope of experimental coverage
- Recovery targets: The experiments perform ES, ESPG and GRPO recovery only from the VibeThinker-3B starting checkpoint, with one seed per arm; Appendix I explicitly states that other model families, training stages, languages and multi-turn attacks were not tested.
- Audit scope: Includes four Qwen3 sizes, 12 variants of OLMo 3 7B, and nine cross-section models; the hidden reasoning of commercial APIs cannot be used for trace audit.
- Data and contamination: Two public safety suites are used; Appendix I explicitly states that no contamination check was run, and the results are not an estimate of behavior on unseen requests.
- Statistical scope: The bootstrap covers only prompts and generation sampling at a fixed checkpoint, not training-seed variation or judge error; the paper does not report human safety-label agreement.
- Cost and text: Table 6 excludes judge, validation and test costs, and ES wall-clock was not recorded; the saved 6,400 recovery label records do not contain generated text, so a fresh judge audit cannot be performed on the same responses.
Summarize the main content of the paper
The paper incorporates the visible trace into safety evaluation and demonstrates safety recovery results with ESPG in a single VibeThinker-3B setting.
This is a study on safety evaluation and post-training defenses for open-source reasoning models, with the core claim that reasoning ability itself cannot serve as evidence of safe behavior, and that the visible trace beyond the final answer also needs to be evaluated.
- Problem to solve: Released models differ in data, objectives and reasoning settings, making safety loss difficult to compare; the authors use a fixed-weight thinking toggle, the OLMo 3 open training pipeline and cross-model audits to describe the observed changes separately, without uniformly interpreting them as causal effects of reasoning training.
- Method highlights: Ans, Any and Full cover the answer, the union of trace/answer, and the full response respectively; ESPG updates weights with 30 training prompts, ES, AWD, a graded safety reward and a training-time guardrail, and switches to plain chat without a guardrail at test time.
- Reasoning-setting results: After enabling thinking for all four Qwen3 sizes, Ans unsafe rate rises, with increases of 1.7–9.1 percentage points (Table 10); the 8B paired Ans test has p=0.0535, and two of the six Ans comparisons did not pass the exploratory Bonferroni threshold.
- Training-stage results: OLMo 3's Think-RL has Ans of 7.6% and 15.3% on SORRY-Bench and AILuminate, higher than Instruct-RL's 3.9% and 9.8%; but Instruct-SFT is lower at 3.0% and 4.8%, and the branch differences lead the authors to reject reasoning-only causal inference (Table 11).
- Recovery results: On 200 test prompts, K=8, no guardrail, ESPG lowers VibeThinker-3B's Full unsafe rate from 15.4% to 9.9%, with a paired difference 95% CI of [−7.6, −3.5]; MATH-200 changes from 93.0% to 92.5% (Table 1, Appendix H.4).
- Authors' conclusions and boundaries: The authors view ESPG as a feasible path for adapting to post-processing safety loss, rather than an inevitable capability cost; they also emphasize that the single model, single seed, reuse of the test set during development, and the shared Opus judge for training and testing require independent testing, human review, cross-model recovery and over-refusal evaluation.