Skip to content

EOPSA: Efficient On-Policy Self-Distillation Safety Alignment MethodEOPSA: Efficient On-Policy Self-Distilled Safety Alignment

arXiv· arXiv:2609.34519· Qirui Liu, Yichen Sun, Yan Wang, Yu Mi, Wei Cao, Yue Shen, Zhixuan Chu, Kui Ren·Indexed by this site · 2026-10-05· Originally publishedAlignment

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

EOPSA uses TRR truncation and safety-class filtering for self-distillation; in Table 1, the average DSR of the three models is higher than OPSA.

Questions
Long CoT amplifies the risk of harmful generation. SFT imitating offline safety trajectories causes distribution mismatch, and RL sequence-level rewards lack step-by-step guidance. OPSD's unaligned long prefixes make teacher supervision ineffective in later stages, and privileged prompt style differences dilute safety gradients.
Methods
EOPSA uses Teacher Rescue Rate on candidate prefix horizons to select the longest rollout upper bound that still meets the threshold, and with a vocabulary extracted by an offline rubric, backpropagates forward KL only for Pivot, Intent, and Risk.
Experiments and results
On the three models in Table 1, EOPSA's average DSR is higher than OPSA, with Toks/Smp ranging from 3.54 to 7.41. Compared to OPSD on the same data, rollout time is reduced by 49%. R1-7B's over-refusal and several individual metrics are not higher.
Limitations and future work
The authors note that semantic classification is relatively discrete, and TRR only gives shared rollout boundaries based on predefined prefixes. Experiments include five reasoning models; 14B/32B only report Base and EOPSA; jailbreak is only evaluated on Qwen3-4B with PAIR, GCG, and TAP.
Experimental setupQwen3-1.7B、Qwen3-4B et al. · HarmBench、WildChat et al. · DSR、FRR et al.
Evaluated models
Qwen3-1.7BQwen3-4BQwen3-14BQwen3-32BDeepSeek-R1-Distill-Qwen-7B
Benchmarks
HarmBenchWildChatWildJailbreakStrongRejectXSTestOKTestMATH-500GPQA-DiamondHumanEvalLiveCodeBenchAdvBench
Metrics
DSRFRRavg@3Toks/Smp
AI summaryAddressing two bottlenecks in on-policy self-distillation (OPSD) safety alignment—the collapse of supervision signals as generation length increases, and the dilution of safety gradients by style differences from privileged prompts—the researchers propose EOPSA, which uses adaptive rollout scheduling based on the Teacher Rescue Rate (TRR) metric and selective distillation to concentrate gradient updates on safety-critical tokens. On reasoning models up to 32B parameters, EOPSA reduces rollout computation by about 50%, with backpropagation involving only about 2% of tokens, and outperforms full-token distillation baselines in both safety compliance and reasoning capability preservation.

Addressing two bottlenecks in on-policy self-distillation (OPSD) safety alignment—the collapse of supervision signals as generation length increases, and the dilution of safety gradients by style differences from privileged prompts—the researchers propose EOPSA, which uses adaptive rollout scheduling based on the Teacher Rescue Rate (TRR) metric and selective distillation to concentrate gradient updates on safety-critical tokens. On reasoning models up to 32B parameters, EOPSA reduces rollout computation by about 50%, with backpropagation involving only about 2% of tokens, and outperforms full-token distillation baselines in both safety compliance and reasoning capability preservation.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Restrict safety alignment rollout and gradients to tokens where supervision is still valid and that relate to safety decisions.

    How to use rollout and gradients only on tokens where supervision is still valid and that relate to safety decisions in safety alignment of long-chain reasoning models.

    • Scenario: The authors argue that long Chain-of-Thought amplifies harmful generation risk. SFT passively imitating offline safety trajectories mismatches the model's own distribution; RL often uses sequence-level rewards, lacking step-by-step guidance, and often causes reasoning degradation and over-refusal, which the authors call safety tax.
    • Existing Shortcomings: The authors argue that current On-Policy Self-Distillation (OPSD) has two types of inefficiency. As the student's unaligned prefix lengthens, the teacher's ability to pull the trajectory back to safe regions decreases, making later gradients noise; style differences from privileged prompts account for a large portion of KL, diluting safety signals and altering original reasoning.
    • Observation: The authors use Inherited Defense Rate (IDR) to show that longer prefixes with still-valid supervision benefit safety inheritance, but early unbounded rollout exceeds the teacher's correction capability (Figure 1). Figure 2a marks about 8.8% of tokens accounting for 80% of KL; in the high-KL subset, safety-irrelevant classes account for 71.0% of tokens and 51.7% of KL (Figure 2d). The introduction also writes about 8%.
    • Approach: Propose a training-time method EOPSA. Adaptive Rollout Scheduling uses Teacher Rescue Rate (TRR) to limit generation horizon; Selective Distillation backpropagates distillation loss only for Pivot, Intent, and Risk.
  2. What related research exists?

    Related work is divided into SFT, RL, and OPSD; this paper limits the budget to safety-critical tokens that meet TRR.

    The paper discusses safety alignment in Related Work along three lines, and experiments compare with some of these methods.

    Supervised Fine-Tuning

    • SafeChain, STAR-1, R1-ACT: Use external models to construct safe responses, then mix with benign data for fine-tuning. The authors argue that such off-policy imitation causes a shift between training data and the model's own generation distribution, often harming general reasoning.
    • safety tax: The introduction cites Huang et al. (2025) to summarize reasoning degradation after alignment; that paper is not an experimental baseline.

    Reinforcement Learning

    • TARS, Alpha-align: Integrate rule-based or LLM-as-a-judge rewards into PPO and GRPO, using on-policy exploration to mitigate reasoning degradation. The authors argue that these external rewards are typically coarse-grained and sequence-level, broadcasting the same safety reward to all tokens, lacking step-by-step guidance, and incurring a safety tax.

    On-policy Self-Distillation

    • OPSD (Zhao et al., 2026): Injects refusal-oriented privileged information into the prompt, letting the same model act as teacher, minimizing the token distribution difference between teacher and student. The authors describe it as combining on-policy resistance to distribution shift with token-level guidance.
    • OPSA, Constitutional OPSD: Design privileged prompts or constitutional guidelines to guide the teacher. Related Work states they strengthen alignment while better preserving general capabilities. The diagnosis of full-token distillation inefficiency comes from this paper's introduction, not from these two works.

    Baselines and Benchmarks

    • Baselines: SFT is STAR-1; RL is GRPO; offline distillation is ThinkSafe; on-policy self-distillation is OPSD and OPSA. Training data is a subset of SafeChain.
    • Benchmarks: Safety includes HarmBench, WildChat, WildJailbreak, StrongReject; over-refusal includes XSTest, OKTest; reasoning includes MATH-500, GPQA-Diamond, HumanEval, LiveCodeBench. The jailbreak appendix additionally uses an AdvBench subset.

    The authors position this paper on the OPSD line: teacher and student still perform token-level distillation, but computation and gradients are reserved only for tokens that meet TRR and are classified as safety-critical.

  3. How does the paper address this problem?

    Uses TRR to determine the maximum reachable horizon and only returns forward KL for Pivot, Intent, and Risk.

    EOPSA stacks sequence-level truncation and token-level filtering on the same student's on-policy self-distillation. The student generates only from user prompts; the teacher shares initial weights and is additionally conditioned on a refusal-oriented privileged prompt. In the main experiments, the teacher is synchronized only at initialization.

    Problem Setting and OPSD

    • Queries come from dataset D. The student policy generates on-policy trajectories. The alignment objective is to maintain defense against harmful queries while preserving general reasoning.
    • The OPSD loss in the preliminaries is full-sequence reverse KL (Eq. 1): at each position, the student distribution is brought close to the teacher with the privileged prompt. The authors argue that unaligned prefixes make later supervision ineffective, and privileged prompts mix style differences into gradients.
    • The OPSD baseline in experiments is changed to forward KL and uses the same data and steps as EOPSA (Appendix E.4), so the main comparison does not mix divergence directions.

    Adaptive Rollout Scheduling

    • TRR is defined on student prefix length t: the student first generates an unaligned prefix, the teacher continues under the privileged prompt, and a binary safety oracle J judges whether the concatenated result is safe. J=1 indicates a safe completion. The paper does not specify the implementation of J during training.
    • IDR swaps roles, letting the student continue from a teacher-provided safe prefix. The authors state that longer prefixes with still-valid supervision lead to stronger safety inheritance, so the horizon should be as long as possible, but must not enter suffixes where TRR fails.
    • Computing TRR per position and per batch is considered infeasible by the authors. The implementation instead estimates TRR on a discrete candidate set S, using validation checkpoints. The upper bound is the longest candidate with validation TRR not below the threshold: L=max{l∈ S∣ TRRvall≥τ}. It is the generation upper bound.
    • In the main experiments, S={128, 256, 1024}, τ=0.75, updated every 50 steps. The authors state that as alignment progresses, the validation TRR curve shifts right, allowing longer candidates (Figure 4c).

    Safety-Critical Tokens

    • On held-out queries, high-KL positions use the teacher and student top-1 tokens as proxies for the current intent, rather than using the full vocabulary difference at that position for classification. The six categories are Pivot, Intent, Risk, Function, Consistent, Other; the safety subset K includes only the first three.
    • The authors argue that safety-turn words are relatively stable across queries, but differ across model families, so a static vocabulary is not used. Appendix B uses a unified rubric, extracted offline on a harmful probe set not overlapping with training: retain the 16 positions with highest KL per trajectory, classify with an LLM judge (GPT-4o in the paper's example) and do a second review. The appendix provides the rubric and Qwen vocabulary examples, not listed here.
    • Online, a cascade does constant-time lookup: first Consistent, then Pivot, Risk, Intent, Function, and the rest as Other. Only positions in K retain gradients.

    Loss and Training Configuration

    • The EOPSA loss computes forward KL only at positions not exceeding min(|y|, L) and with category in K, i.e., DKL(PT ∥ PS) for teacher distribution vs. student distribution. The category indicator function is stop-gradient, and normalization is by the number of positions in that trajectory falling into K, with denominator at least 1 (Eq. 4).
    • Forward KL uses top-k approximation, k=512. Training runs 200 steps, global batch 32, 1 rollout per prompt, temperature 1.0, top-p 1.0. Optimizer is AdamW, learning rate 5×10−6, weight decay 0.01, gradient clipping 1.0, no warmup.
    • 1.7B, 4B, 7B use 2 H200 GPUs; 14B, 32B use 8; framework is verl, training uses FSDP, rollout uses vLLM. The main text states that the best checkpoint is selected for final evaluation, without specifying the selection metric. Appendix H has both harmful and benign teacher prompts, not repeated here.

    Success Criteria

    • Evaluation defense success rate DSR is the proportion of queries where harmful intent is successfully blocked, judged by Llama-Guard on safety benchmarks. Over-refusal rate FRR is the proportion of benign queries not achieving Full compliance, lower is better.
    • Reasoning uses pass@1, reporting mean and standard deviation over three runs, i.e., avg@3. Definitions are in Appendix E.2.
  4. What experiments did the paper conduct?

    On the three models in Table 1, EOPSA's average DSR is higher than OPSA, optimizing 3.54 to 7.41 tokens per sample.

    Experimental Setup

    • Models: Qwen3-1.7B, Qwen3-4B, Qwen3-14B, Qwen3-32B, DeepSeek-R1-Distill-Qwen-7B. In Table 1, for the first two Qwen3 models, both student and teacher are labeled Thinking; the R1-7B row does not repeat this label. The teacher is frozen, only initialization is synchronized.
    • Training: SafeChain subset, 200 steps, batch 32, learning rate 5×10−6, S={128, 256, 1024}, τ=0.75, L updated every 50 steps. The main text does not specify the number of subset entries, the number of TRR validation entries, or the selection metric for the best checkpoint.
    • Baselines: STAR-1, GRPO, ThinkSafe, OPSD, OPSA. Experiments for OPSD and EOPSA use the same data, same 200 steps, forward KL, response limit 4096, and both filters disabled. OPSA, ThinkSafe, and STAR-1 use official code and official settings. GRPO uses Llama-Guard for harmful responses and GPT-4o for benign responses, prompt batch 8, 4 rollouts per prompt.
    • Benchmark sizes: WildChat takes 370 harmful queries, WildJailbreak 250, StrongReject 313; XSTest and OKTest each evaluate 250. Reasoning: MATH-500 (500), GPQA-Diamond (198), HumanEval (164), LiveCodeBench (166, October 2024 to January 2025). The number of HarmBench entries is not stated in the paper.
    • Metrics and evaluation: Safety is DSR, higher is better, judged by Llama-Guard. Over-refusal is FRR. Reasoning is avg@3±std. Appendix H has benign evaluation prompts; the main text does not specify which model is used for over-refusal evaluation. Safety DSR does not report the number of repetitions.
    • Hardware: 1.7B/4B/7B use 2 H200s, 14B/32B use 8.

    Main Results

    According to Table 1 (first three rows) and Table 6 (last two rows). Safety Avg is the average of four DSRs, over-refusal Avg is the average of two FRRs, reasoning Avg is the average of four avg@3 values.

    Swipe horizontally to read the table

    ModelEOPSA Safety AvgOPSA Safety AvgEOPSA Over-refusal AvgEOPSA Reasoning AvgToks/Smp
    Qwen3-1.7B91.1588.716.2061.737.41
    Qwen3-4B98.0896.676.2274.296.04
    DeepSeek-R1-Distill-Qwen-7B96.1493.4314.6066.713.54
    Qwen3-14B99.16Not reported6.6079.878.66
    Qwen3-32B99.73Not reported7.4081.6711.79
    • In the safety average column of Table 1, EOPSA is higher than STAR-1, GRPO, ThinkSafe, OPSD, and OPSA for the same model. This is not the case for individual items: for 1.7B, HarmBench is 99.50 and StrongReject is 96.81, lower than OPSA's 100.00 and 98.40; for R1-7B, WildChat is 94.86 and WildJailbreak is 93.60, lower than OPSA's 97.03 and 94.40.
    • Relative to OPSA, average FRR for 1.7B is 10.60 vs 6.20, for 4B is 6.40 vs 6.22, for R1-7B is 12.60 vs 14.60. On XSTest for 4B, EOPSA is 2.80, higher than OPSA's 1.20. ThinkSafe has lower average FRR: 1.7B 2.62, 4B 2.80, R1-7B 4.20, and its safety average is also lower.
    • The authors state that relative to full-sequence OPSD, the three models reduce optimization tokens per sample by 98.9%–99.4%; R1-7B's safety average is 20.51 percentage points higher than OPSD's 75.63. On reasoning average, EOPSA is higher than all alignment baselines for the same model in Table 1; 1.7B and 4B are still lower than Base's 62.79 and 74.65, R1-7B's Base is 66.66. The abstract states rollout computation is reduced by about 50% and only about 2% of tokens are returned; the definitions in §5.2 and §5.4 are given below.

    Component Ablations and Fixed Horizon

    • Table 2 does not specify the model; its full EOPSA row and the row with both components removed have values identical to the EOPSA row and OPSD row of Qwen3-1.7B in Table 1. Removing Token Filtering gives safety average 86.11, reasoning average 60.49, Toks/Smp 472.75; removing Adaptive Rollout Scheduling gives 89.20, 61.18, 8.82; removing both gives 83.48, 60.49, 653.69. The authors state that removing filtering reduces safety average by 5.04 percentage points and reasoning by 1.24 percentage points; removing horizon scheduling reduces safety by 1.95 percentage points, and average FRR goes from 6.20 to 7.40, which the authors describe as a relative increase of nearly 20%.
    • Table 3 is fixed horizon with token filtering disabled, model not specified; the adaptive row is identical to the w/o TF row in Table 2. L=32 gives average DSR 80.30, time 0.18 h; L=128 gives 84.21, 0.26 h; L=512 gives 85.06, 0.31 h; L=1024 gives 82.83, 0.42 h; adaptive gives 86.11, 0.28 h. The authors state that L≤128 lags by at most 5.81 percentage points, and L=1024 has safety lower by 3.28 percentage points and rollout time higher by 50.0%. L=512's HarmBench is 99.00, higher than adaptive's 97.00.

    Semantic Categories and Training Dynamics

    • Table 4 does not specify the model; ΔS/Tok is defined as (Safe-Avg−Base-Avg)/Toks/Smp. When trained separately, Intent has Safe-Avg 89.32, ΔS/Tok 77.58, Toks/Smp 0.45; Risk has 83.94, 25.90, 1.14; Pivot has 77.97, 71.39, 0.33; Consistent has 79.27, 0.22, 115.17. Pivot's absolute Safe-Avg is lower than Consistent's 79.27 and Other's 79.12. The authors state that Intent and Pivot have per-token safety gains about 360 and 330 times that of Consistent; all three categories are higher than non-safety categories on LiveCodeBench.
    • Figure 4 does not specify the model. The figure annotates that 98.5% of candidate tokens are filtered (18.4k to 267), and the retained portion accounts for an average of 7.3% of the sequence KL. The caption states that steps 0–50 select L=128, and after crossing τ=0.75, steps 51–200 select L=1024. The authors state that at step 200, the TRR curve reverses and exceeds the teacher-only baseline.

    Overhead, Jailbreak, and Teacher

    • §5.4 states: relative to OPSD with the same data volume, rollout time is reduced by 49% and training time by 28%; relative to OPSA, rollout time is reduced by 94% and training time by 97%, and effective data volume is 95% smaller. The correspondence between raw hours and bars in Figure 5 cannot be verified after text conversion, so only the percentages from the main text are used here. The abstract's about 50% and the 49% here are listed together.
    • Table 7 evaluates only Qwen3-4B, sampling 100 entries from AdvBench. EOPSA's PAIR, GCG, TAP, and average DSR are 100.0, 83.0, 100.0, 94.3; ThinkSafe's are 95.0, 88.0, 90.0, 91.0; STAR-1's GCG is 55.0, OPSA's GCG is 63.0. The highest average is EOPSA, but GCG alone is lower than ThinkSafe. The paper states GCG is white-box, PAIR and TAP are black-box; Appendix E.1 explains evaluation modifications for long reasoning, optimization steps are not described here.
    • Figure 7: The authors state that EOPSA's safety gain relative to the static teacher is 137% for Qwen3-1.7B and 103% for Qwen3-4B; the y-axis sets the teacher as 100%. Table 9 on Qwen3-1.7B with both filters disabled: after synchronizing the teacher to the student every 100 steps, safety average goes from 83.48 to 91.61, HarmBench to 100.00, reasoning average from 60.49 to 55.44, LiveCodeBench from 31.12 to 25.90. The authors believe that periodic synchronization under unconstrained distillation amplifies distribution shift.

    Other Ablations and Analyses

    • Divergence (Figure 6, model not specified): The authors state that Forward-KL has higher average safety and reasoning than Reverse-KL, JSD (Appendix F.3 states α=0.5), and Sampled-token; after text conversion, individual bar values cannot be mapped to methods.
    • Token selection (Table 8, L=128, about 2% update budget, model not specified): Top-1 Pair has safety average 90.02, reasoning 62.77; Top-KL has 85.27, 61.63; Random Mask has 80.36, 61.33.
    • τ (Figure 9, with token filtering, model not specified): Safe-Avg for 0.25, 0.50, 0.75, 1.00 are 83.8, 87.3, 91.2, 87.5.
    • Cross-corpus (Table 11, Qwen3-1.7B, rules not re-sampled per corpus): SafeChain 91.15, STAR-1 data 88.06, Mixed 90.09, Base 54.41. Table 10 standard deviations: Intent 17.67, Risk 6.24, Pivot 4.73.
    • Human agreement (Table 12, 600 held-out high-KL positions, 3 annotators): macro-F1 for six categories 92.4; safety-related vs neutral accuracy 95.1, F1 94.2; Fleiss' κ six categories 0.87, two categories 0.93. The authors state that disagreements are mostly between Intent and Other.
    • Figure 2a annotates average length 1447, 80% of KL quality accounts for about 8.8% of tokens. Figure 8: the three safety categories together account for 29.0% of tokens and 48.3% of KL; Other accounts for 35.8% of tokens and 31.7% of KL.
  5. What are some points that can be further explored?

    The authors note that the taxonomy is discrete, and TRR only gives a shared boundary on predefined prefixes.

    Limitations and Future Directions Noted by the Authors

    • The authors state that the primary goal of this paper is not to establish a definitive mechanism for identifying safety-critical tokens, but to show that focusing supervision on sparse safety-related positions can match or exceed full-token distillation (Appendix A).
    • The current implementation uses relatively discrete semantic categories and rule-based selection, which may not precisely characterize safety relevance across different contexts and reasoning trajectories. The authors list finer-grained, adaptive identification as a future direction (Appendix A).
    • TRR still estimates whether supervision meets the criterion based on a predefined prefix horizon and uses the same rollout boundary for subsequent training trajectories. The authors state that the teacher's corrective ability may vary with samples, reasoning stages, and token positions, and list sample-level, segment-level, or token-level reliability estimation as future directions (Appendix A).

    Experimental Coverage

    • The aligned models are Qwen3-1.7B, 4B, 14B, 32B, and DeepSeek-R1-Distill-Qwen-7B, totaling 5. Table 1 reports results for the first three against STAR-1, GRPO, ThinkSafe, OPSD, and OPSA; Table 6 reports results for 14B and 32B relative to their respective Base.
    • Safety DSR is judged by Llama-Guard; reasoning is reported as avg@3. The paper does not report the number of repetitions for safety DSR, nor the agreement between DSR and human judgment. Token classification agreement with three annotators is in Table 12, with a sample of 600 held-out high-KL positions.
    • Jailbreak evaluation is conducted on Qwen3-4B, sampling 100 entries from AdvBench, with attacks described as white-box GCG and black-box PAIR and TAP (Appendix F.2, E.1).
    • Ablations include two components, fixed horizons, six categories trained separately, four divergences, three selection methods (Random/Top-KL/Top-1), teacher synchronization every 100 steps, four values of τ, and the same Qwen3 rules on three corpora: SafeChain, STAR-1, and Mixed.
    • The main text does not specify the number of SafeChain training subset entries, the number of TRR validation entries, or the selection metric for the best checkpoint. The implementation of the training-time safety oracle J is not specified in the paper.
  6. Summarize the main content of the paper

    EOPSA uses TRR truncation and forward KL on three safety token types, improving average DSR on Table 1 while reducing optimized tokens.

    EOPSA is an on-policy self-distillation safety alignment method for large reasoning models, addressing the failure of teacher correction on long rollouts and the issue of privileged prompts mixing style differences into KL.

    • Problem: The authors argue that long CoT expands the harmful generation space. SFT imitating offline safety trajectories causes distribution mismatch, and RL's sequence-level rewards lack step-by-step signals. Although OPSD provides token-level supervision, TRR decreases as the unaligned prefix lengthens; in Figure 2, about 8%–8.8% of tokens account for 80% of KL, with a large portion being safety-irrelevant style or syntactic differences.
    • Method: From {128, 256, 1024}, take the longest horizon with validation TRR not below 0.75 as the generation upper bound, updated every 50 steps. After extracting a vocabulary for the model family using an offline rubric, compute forward KL only for Pivot, Intent, and Risk; the teacher uses a refusal-privileged prompt, and in the main experiments, no mid-training synchronization is performed. Appendix H provides the teacher prompts, not repeated here.
    • Main Results: In Table 1, for Qwen3-1.7B, 4B, and R1-7B, EOPSA's average safety is 91.15%, 98.08%, and 96.14%, respectively, higher than OPSA's 88.71%, 96.67%, and 93.43% in the same table; Toks/Smp are 7.41, 6.04, and 3.54. R1-7B is 20.51 percentage points higher than full-token OPSD in average safety. Compared to OPSD on the same data, rollout time is reduced by 49% and training time by 28%. The abstract also states that rollout computation is reduced by about 50% and backpropagation involves about 2% of tokens.
    • Exceptions: For 1.7B, HarmBench and StrongReject, and for R1-7B, WildChat and WildJailbreak are lower than OPSA; R1-7B's average FRR is 14.60, higher than OPSA's 12.60. On Qwen3-4B, EOPSA's average DSR for jailbreak is 94.3%, but for GCG it is 83.0%, lower than ThinkSafe's 88.0%.
    • Scale and Author Conclusions: In Table 6, the average safety for 14B and 32B is 99.16% and 99.73%, with Base at 79.58% and 74.01%; the average reasoning change relative to Base is 0.54 and 0.34 percentage points. The authors believe that in token-level safety alignment, semantic trade-offs are more critical than optimization magnitude, and they hope these observations will inform future alignment research with minimal reasoning changes.

Related papers

Show 3 more papers
Read originalarxiv.org