atlas

Research map / Large language models / Reasoning and chain of thought

SAFEPATH: Preventing Harmful Reasoning in Chain-of-Thought via Early Alignment

NeurIPS 2025 · Large language models › Reasoning and chain of thought · approach: Long CoT dynamics and efficiency · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes SafePath, which fine-tunes large reasoning models to emit a fixed 8-token "Let's think about safety first" primer at the start of reasoning for harmful prompts (plus a zero-shot inference-time variant), reducing harmfulness while preserving reasoning accuracy.

Problem

Large reasoning models produce unsafe outputs under harmful prompts and jailbreaks, and existing safety alignment (direct refusal, SafeChain) degrades multi-step reasoning (the "safety tax").

Approach

Instead of hard refusals, train only on an 8-token safety primer right after the open <think> tag for harmful prompts, leaving the rest of the reasoning trace unsupervised, so the model keeps reasoning from a safety-aware start and often re-emits the primer under adversarial pressure.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add the Safety Primer through fine-tuningR-8B · StrongRejectharmfulness: 37.3 -> 0.0Helped
Add the Safety Primer through fine-tuningR-8B · PAIRattack success rate: 95.0 -> 26.3Helped
Add the Safety Primer through fine-tuningR-8B · MATH500accuracy: 90.4 -> 84.0Hurt
Add the Safety Primer through fine-tuningR-7B · StrongRejectharmfulness: 49.2 -> 10.4Helped
Add the Safety Primer through fine-tuningR-7B · MATH500accuracy: 94.8 -> 94.4No clear effect
Replace the Safety Primer with a direct caution prefix (ablation)R-8B · MATH500accuracy: 84.0 -> 47.6Hurt
Replace the Safety Primer with a direct caution prefix (ablation)R-8B · BeaverTailsharmfulness: 7.7 -> 2.7Helped
Replace the Safety Primer with a refusal prefix (ablation)R-8B · MATH500accuracy: 84.0 -> 75.8Hurt
Replace the Safety Primer with a refusal prefix (ablation)R-8B · BeaverTailsharmfulness: 7.7 -> 2.0Helped
Insert the Safety Primer at inference without fine-tuningR-32B · AIME24accuracy: 30.00 -> 60.00Helped
Insert the Safety Primer at inference without fine-tuningR-32B · BeaverTailsharmful score: 6.00 -> 16.20Mixed
Replace the WildJailbreak Safety Trigger set with AdvBench (ablation)SafePath on R-8B · Reasoningscore: 60.7 -> 60.8No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: WildJailbreak OpenR1-Math-220k (Math220K) BeaverTails SafeChain dataset HarmChain (constructed) AdvBench self-instruct safety alignment dataset

Benchmarks: StrongReject BeaverTails DAN PAIR JailbreakTrigger Multilingual AdvBench Prefilling MATH500 GPQA AIME24 MBPP MMLU

Metrics: harmfulness score attack success rate accuracy inference time training time

Baselines: Direct Refusal SafeChain ZeroThink LessThink Task Arithmetic NPO Circuit Breakers CautionPath RefusalPath

Builds on: SafeChain Direct Refusal Task Arithmetic Negative Preference Optimization Circuit Breakers

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy