Reducing the Safety Tax in LLM Safety Alignment with On-Policy Self-Distillation

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Fu, Yu, Yu, Longxuan, Shahgir, Haz Sameen, Wei, Zhipeng, Liu, Hui, Erichson, N. Benjamin, Dong, Yue
Formato: Preprint
Publicado: 2026
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866913141841985536
author Fu, Yu
Yu, Longxuan
Shahgir, Haz Sameen
Wei, Zhipeng
Liu, Hui
Erichson, N. Benjamin
Dong, Yue
author_facet Fu, Yu
Yu, Longxuan
Shahgir, Haz Sameen
Wei, Zhipeng
Liu, Hui
Erichson, N. Benjamin
Dong, Yue
contents Safety alignment often improves robustness to harmful queries at the cost of reasoning ability, a tradeoff known as the safety tax. A common cause is distributional mismatch: supervised fine-tuning trains the target model on safety demonstrations produced by humans, external models, or fixed self-generated traces, rather than on trajectories sampled from its own policy. We identify off-policy training mismatch as a second source of this tax and study on-policy self-distillation for safety alignment, which we call OPSA. The model generates its own rollouts and receives dense per-token KL supervision from a frozen teacher copy of itself conditioned on a privileged safety context. Because this teacher must be safer than the sampled student trajectory, we introduce \emph{teacher flip rate}: a criterion that measures how often a privileged context converts unsafe responses into safe ones. We use this signal to search for contexts that activate latent safety reasoning rather than merely elicit safe-looking demonstrations. Across two reasoning-model families and five model scales, OPSA achieves a stronger safety--reasoning tradeoff than off-policy self-distillation and external-teacher distillation under matched data and full-parameter fine-tuning, with the largest gains on smaller models (+8.85 points on R1-Distill-1.5B and +5.49 points on Qwen3-0.6B). The gains persist across training-set sizes and adaptive jailbreak evaluations. Token-level analyses further show that OPSA concentrates updates near early compliance-decision tokens, providing a mechanism for improving safety while preserving general reasoning.
format Preprint
id arxiv_https___arxiv_org_abs_2605_15239
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Reducing the Safety Tax in LLM Safety Alignment with On-Policy Self-Distillation
Fu, Yu
Yu, Longxuan
Shahgir, Haz Sameen
Wei, Zhipeng
Liu, Hui
Erichson, N. Benjamin
Dong, Yue
Machine Learning
Safety alignment often improves robustness to harmful queries at the cost of reasoning ability, a tradeoff known as the safety tax. A common cause is distributional mismatch: supervised fine-tuning trains the target model on safety demonstrations produced by humans, external models, or fixed self-generated traces, rather than on trajectories sampled from its own policy. We identify off-policy training mismatch as a second source of this tax and study on-policy self-distillation for safety alignment, which we call OPSA. The model generates its own rollouts and receives dense per-token KL supervision from a frozen teacher copy of itself conditioned on a privileged safety context. Because this teacher must be safer than the sampled student trajectory, we introduce \emph{teacher flip rate}: a criterion that measures how often a privileged context converts unsafe responses into safe ones. We use this signal to search for contexts that activate latent safety reasoning rather than merely elicit safe-looking demonstrations. Across two reasoning-model families and five model scales, OPSA achieves a stronger safety--reasoning tradeoff than off-policy self-distillation and external-teacher distillation under matched data and full-parameter fine-tuning, with the largest gains on smaller models (+8.85 points on R1-Distill-1.5B and +5.49 points on Qwen3-0.6B). The gains persist across training-set sizes and adaptive jailbreak evaluations. Token-level analyses further show that OPSA concentrates updates near early compliance-decision tokens, providing a mechanism for improving safety while preserving general reasoning.
title Reducing the Safety Tax in LLM Safety Alignment with On-Policy Self-Distillation
topic Machine Learning
url https://arxiv.org/abs/2605.15239