# When Safety Becomes An Outlier: Understanding the Retention of LLM Safety Behaviors

NEST keeps safety behaviors from eroding during continued fine-tuning

Binchi Zhang, Hadi Abdullah, Yiwei Cai, Jundong Li · arXiv · 2026-11-7

- **Problem** Safety-aligned LLMs often lose their refusals after fine-tuning, even when safety data is included. Fixed refusal strings are easy to fit but get overwritten by later updates.
- **Method** NEST replaces fixed refusals with natural, prompt-grounded safety targets for SFT and DPO. It builds them from the model's own language, so they stay close to its usual output.
- **Results** On BeaverTails with Llama-3-8B, NEST's harmful rate after continual SFT is 60.61, versus 68.70 for original targets.

## Why safety fades after fine-tuning

Safety-aligned LLMs refuse harmful prompts, but that protection is fragile after further training. Adversarial fine-tuning can remove previously learned safeguards, and even benign downstream fine-tuning can degrade safety performance. The common remedy is to include safety-related samples during fine-tuning. Yet the authors find that adding safety data samples doesn't reliably preserve safety after continual fine-tuning.

This leads them to ask why learned safety behaviors in LLMs are so easy to forget.

The authors look for part of the answer in the safety target itself, namely the stereotyped refusal these models output. Once harmful intent is detected, the model emits a short, formulaic refusal string, and the authors treat this habit as a source of fragility. They hypothesize that such behavior is an outlier mode in the output distribution, low-entropy and weakly connected to the surrounding semantic space.

Because of that weak connection, the model can easily override it during subsequent fine-tuning.

Prompt-grounded natural responses are substantially more stable under the same conditions. So the model overfits a brittle outlier behavior instead of learning a robust safety policy.

From this view, the paper introduces Naturalness-Enhanced Safety Targets (NEST), which build safety supervision supported by the model's existing language distribution. NEST also keeps that supervision semantically grounded in the request. For SFT, NEST generates contextual safety explanations and redirections with an instruction-tuned model.

The authors argue that safety behaviors closer to the existing language distribution resist later updates better.

## Refusal collapse in response prefixes

The authors test refusal collapse by sampling responses from two safety-aligned chat models, Qwen2.5-7B-Instruct and Llama-3-8B-Instruct. They draw 1,000 safe and 1,000 harmful instructions from the BeaverTails dataset as the prompt sets. They count the ten most frequent five-word response prefixes and plot them as histograms, as shown in Figure 1.

Self-BLEU serves as the diversity measure, and a higher score means more severe mode collapse. The authors set 0.5 as the boundary between diverse and collapsed responses. They say this value cleanly separates known-diverse and known-collapsed responses across all models they study.

![Figure 1: Prefix histogram of model responses to 1,000 normal and 1,000 harmful instruction data samples in the BeaverTails dataset](https://refivu.com/papers/c80b7b08-3909-41c2-8f34-04547cb431aa/figures/figure-3a739c732eb0ea2e004206fe9d669a2f.png?thumb=512)

**Figure 1** : Prefix histogram of model responses to 1,000 normal and 1,000 harmful instruction data samples in the BeaverTails dataset.

[Original paper](https://arxiv.org/abs/2611.10971v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

For normal instructions, the most frequent prefix covers around 1% of responses, so benign answers stay spread out. For harmful instructions, that share rises above 20%, which means most harmful answers reuse one opening. Qwen2.5-7B-Instruct reaches a self-BLEU of 0.65 on harmful prompts, against 0.30 on normal prompts. Llama-3-8B-Instruct reaches a self-BLEU of 0.80 on harmful prompts, against 0.32 on normal prompts.

Llama-3-8B-Instruct collapses more severely, since half of its harmful-prompt replies start with the same information refusal.

Both prompt sets come from the same distribution, so the authors read the gap as a property of the safety behavior. They conclude that the collapse comes from the safety behavior, not from the prompts themselves. Their framing describes refusals as having low lexical diversity and weak dependence on prompt semantics. This motivates treating refusal collapse as a distributional property that the authors then track under fine-tuning.

## Fixed targets are fitted quickly

The authors asked whether a fixed refusal behaves like other input-invariant targets once a model is trained on it. Both reached near-perfect ROUGE-L within roughly 100 steps. Prompt-specific natural responses didn't collapse to an exact fixed output. They stayed much lower under exact target-overlap metrics. The authors read this as fixed refusal supervision fitting an input-invariant target, not a prompt-grounded safety response.

![Figure 2: Learning curves for fixed and prompt-grounded safety targets](https://refivu.com/papers/c80b7b08-3909-41c2-8f34-04547cb431aa/figures/figure-1545108f6910ad4beea6a8b6a85a706f.png?thumb=512)

**Figure 2** : Learning curves for fixed and prompt-grounded safety targets.

[Original paper](https://arxiv.org/abs/2611.10971v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Binchi Zhang, Hadi Abdullah, Yiwei Cai, Jundong Li · When Safety Becomes An Outlier: Understanding the Retention of LLM Safety Behaviors · Original paper figure · Extracted the figure area from page 3 of the original PDF.

The authors then ran a gradient check that holds the model state fixed and uses no optimizer update. They used the same Llama-3-8B backbone and a matched batch of four harmful prompts from BeaverTails. A fixed refusal gives a loss of 6.74 and a gradient norm of 58.56. An arbitrary fixed string gives a loss of 7.09 and a gradient norm of 54.37, with a cosine of 0.30 to the fixed-refusal gradient.

A fixed explanatory refusal gives a loss of 4.30 and a gradient norm of 26.22, an intermediate signal.

These results support the outlier-mode account, since the target construction changes the initial fit and later behavior under updates. The gradient measurements are local evidence consistent with stronger distributional support for natural targets. The outlier safety mode is defined by low distributional support, measured as expected perplexity, and by output mode collapse, measured by self-BLEU.

A natural safety response stays closer to the model's intrinsic language behavior while remaining grounded in the harmful input.

## Generating natural targets for SFT

For SFT, NEST builds its supervision labels from an instruction-tuned model, while the pretrained model such as Llama-3-8B is the one being fine-tuned. The instruction-tuned model, such as Llama-3-8B-Instruct, generates labels for harmful prompts instead of being asked simply to refuse. The authors augment its system prompt with the instruction to analyze how and why the instruction is harmful.

The generated natural responses become the supervision targets used to fine-tune the pretrained model. The authors don't assume that an LLM-generated response is automatically safe.

Because instruction-tuned models are usually trained with refusal-based safety alignment, they can fall back on the same outlier refusals the method avoids. To counter this, the authors apply two lightweight jailbreaking steps to the instruction-tuned model before label generation. After generation, empty or malformed SFT labels are removed, and representative samples from each harm category are audited.

For DPO, the cost model plays the role of the explicit safety filter instead.

Each safety SFT run mixes 9,000 benign instructions with 1,000 harmful ones, where harmful prompts carry the different safety targets. After this stage, the models get a continual SFT pass on 10,000 benign instructions to measure safety retention. On AdvBench, NEST targets reach the strongest safety both right after safety SFT and after continual fine-tuning.

For Llama-3-8B on BeaverTails, NEST gives a harmful rate of 35.07±1.66 after safety SFT, compared to 37.74±2.01 for Original. After continual SFT, its harmful rate is 60.61±1.36, versus 68.70±2.22 for Original.

The preprocessing steps make the targets more natural and context-aware, so they perform best among the baselines. For Mistral-7B-Instruct-v0.1, which lacks explicit safety alignment, the authors skip the preprocessing because it isn't needed. Delayed and deeper variants reduce safety degradation, but they lower absolute safety, since unsafe natural text can come before the refusal.

## Choosing pairs for DPO

NEST starts by sampling candidate responses for each prompt from the current policy, an instruction-tuned model without explicit safety training. The candidate set holds 50 responses per prompt, a size fixed across the DPO experiments. Because the candidates are sampled on-policy, they stay consistent with the model's natural output distribution.

A reward model scores each candidate for helpfulness, and a cost model scores it for harmfulness, where higher values mean more reward or more harm. Both scoring models run offline, so NEST adds no external safety judge at deployment.

NEST then splits the candidates into safe, unsafe and helpless subsets, using the cost and reward scores. A candidate counts as safe when its cost falls below a small positive tolerance, which replaces the zero boundary. Among the safe candidates, NEST picks the preferred response by maximizing a joint safety–helpfulness objective. This objective favors answers that are informative and confidently non-harmful.

Terse refusals rank lower because they are safe but unhelpful, so the objective pushes them down. If no candidate is safe, NEST skips the prompt and discards it from the safety alignment dataset.

When unsafe candidates exist, NEST picks the most harmful one as the dispreferred response. If no candidate is unsafe but some are helpless, NEST chooses the response with the worst safety–helpfulness trade-off, minus a small constant for numerical stability. When every candidate is both safe and helpful, the dispreferred response is the one with the largest joint product of reward and cost.

The resulting pair trains the model through DPO, so the model doesn't learn one narrow refusal and keeps safety in a higher-density region of the response space.

## SFT results under continual fine-tuning

NEST keeps safety better than fixed refusals and original targets after continual SFT, and the gap shows most clearly on Llama-3-8B with BeaverTails. Right after safety SFT, the gap is much narrower, with NEST at 2.35 against 2.46 for original targets. The same ordering appears in the other two settings, but the margin is smaller on SorryBench.

![Table 2: Full SFT ablation with different safety training targets on AdvBench \[Zou et al., 2023\]. Harmful Score indicates the response harmful level, ranging f…](https://refivu.com/papers/c80b7b08-3909-41c2-8f34-04547cb431aa/figures/figure-0b8bef3162f907025f30139b0e3d0877.png?thumb=512)

**Table 2** : Full SFT ablation with different safety training targets on AdvBench \[Zou et al., 2023\]. Harmful Score indicates the response harmful level, ranging from 1 (safe) to 5 (harmful), and Harmful Rate is the percentage of responses with Harmful Score≥3.

[Original paper](https://arxiv.org/abs/2611.10971v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

On Do Not Answer with Qwen2.5-7B, NEST scored 3.24 after continual SFT, compared to 3.44 for original targets and 3.85 for hard refusals. On SorryBench with Mistral-7B-v0.1, NEST scored 3.67 after continual SFT, against 3.79 for original targets and 4.31 for hard refusals. The delayed and deep variants retain better than basic supervision, but their immediate harmfulness rises.

Original-delay reaches 3.70 on BeaverTails right after SFT, which shows the cost of the longer horizon. For Mistral-7B-Instruct-v0.1, which lacks explicit safety alignment, NEST targets without jailbreaking performed best. The authors tie that result to whether outlier refusal behaviors were present in the targets.

The perplexity of the safety targets under the original model tracks this retention pattern. Across model-dataset combinations, lower perplexity correlates with improved safety retention, with Pearson r between 0.49 and 0.67. Pooling all target families, depths and backbones weakens the correlation to an overall Pearson r of 0.28.

## DPO pair selection and its retention cost

NEST's DPO variant replaces the ground-truth pairs of PKU-SafeRLHF with pairs chosen from on-policy candidates. For each prompt, the method samples 50 candidate responses from the current policy and scores each with a reward model and a cost model. Candidates with cost below a small tolerance count as safe, and the preferred response maximizes a joint safety–helpfulness score.

Prompts without any safe candidate get dropped, so the training pairs stay close to the model's own output distribution.

![Table 3: Experimental results of DPO with different safety training targets on AdvBench \[Zou et al., 2023\], where Harmful Score indicates the response harmful…](https://refivu.com/papers/c80b7b08-3909-41c2-8f34-04547cb431aa/figures/figure-9a8009e9efb8d39ffd0f26d9f9db77b1.png?thumb=512)

**Table 3** : Experimental results of DPO with different safety training targets on AdvBench \[Zou et al., 2023\], where Harmful Score indicates the response harmful level, ranging from 1 (safe) to 5 (harmful), and Harmful Rate denotes the percentage of the harmful responses (with Harmful Score≥3).

[Original paper](https://arxiv.org/abs/2611.10971v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

For Vicuna, the harmful score moved from 1.28 to 1.12 right after DPO, and from 2.85 to 2.74 after continual SFT. Alpaca's harmful score fell from 3.52 to 3.17 after DPO, and from 4.42 to 4.33 after continual SFT. Mistral's harmful score stayed at 1.00 after DPO, though its harmful rate rose from 0.06 to 0.19 percent. After continual SFT, Mistral's harmful score fell from 3.94 to 3.79, and its harmful rate dropped from 75.40 to 71.28 percent.

The authors report that NEST beats the baseline on safety and retention across all three backbones.

On utility, Mistral-NEST's ROUGE-L dropped from 20.77 to 18.73 after DPO. The authors note that DPO-trained models still degrade under continual SFT, even though their immediate safety is higher than after SFT. They also find NEST's utility comparable to models trained on ground-truth preferences, so they see no trade-off with usefulness.

Alpaca gives the strongest utility, Mistral the highest absolute safety, and Vicuna the best retention under continual fine-tuning. The authors attribute these differences to model-specific pretraining and alignment histories.

## Perplexity as a retention proxy

Perplexity under the original model serves as the paper's proxy for how well a safety target fits the model's own distribution. The authors score each target by the original model's perplexity on the fine-tuned model's outputs for safety samples. Within each model-dataset pairing, lower perplexity goes with a smaller harmful-score increase under continual fine-tuning, with Pearson r between 0.49 and 0.67.

On BeaverTails with Llama-3-8B, NEST reaches a perplexity of 3.58, against 6.54 for the original targets.

![Figure 4: Harmful score variation versus perplexity under the original pretrained model across different SFT settings](https://refivu.com/papers/c80b7b08-3909-41c2-8f34-04547cb431aa/figures/figure-07821b787a697b27e00d48482275ee89.png?thumb=512)

**Figure 4** : Harmful score variation versus perplexity under the original pretrained model across different SFT settings.

[Original paper](https://arxiv.org/abs/2611.10971v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

Pooling all target families, depths and backbones drops the overall Pearson r to 0.28. The authors read this as evidence that perplexity is not the only driver of retention. In their account, response diversity, length or depth, and the safety of generated content also matter. Figure 4 plots harmful score against perplexity, with r of 0.50 for Do Not Answer with Qwen2.5-7B, 0.66 for SorryBench and 0.69 for BeaverTails.

Below perplexity 3, which covers the most natural responses, further reductions don't bring proportional gains in retention. The authors read this as a saturation effect, where extra naturalness has a bounded benefit. They call perplexity a distributional proxy that measures how far a safety target lies from the base model's prior.

Perplexity predicts forgetting but doesn't mechanistically cause it, so the authors don't claim a causal link. They recommend it as a lightweight screening metric for comparing safety supervision strategies. It isn't a substitute for direct safety evaluation, which is why the paper adds complementary safety evaluators and over-refusal tests.

## Utility and external safety checks

Utility is the first thing the authors check once NEST makes the model safer. Safety targets barely move downstream utility, because safety samples form a small share of the training data. In DPO, NEST reaches utility comparable to models trained on ground-truth preference pairs. For Alpaca, ROUGE-L is 29.63 with base targets and 28.68 with NEST, a small gap.

On the safety side, NEST gets the lowest StrongREJECT score at 0.230, versus 0.260 for original labels.

The authors re-score AdvBench outputs with Llama-Guard-3-8B, the published StrongREJECT rubric, and an adapted harmful-actionability rubric. The authors read this agreement across judges as support for a substantive safety benefit.

To rule out indiscriminate refusal, the authors compare NEST with fixed-refusal supervision on XSTest. Over-refusal and unsafe-prompt refusal stay close to the fixed-refusal numbers under NEST, as Table 7 shows. To test whether retention depends on Alpaca-style continuation, the authors continue both adapters on GSM8K under matched LoRA settings.

They didn't test retention on adaptation domains beyond Alpaca and GSM8K.

## Limitations and open questions

The pooled correlation between perplexity and harmful score increment is weak, with overall Pearson r of 0.28. Per-combination correlations range from 0.49 to 0.67, so the link is strongest within a setting and weaker across target families and backbones. Perplexity predicts forgetting but doesn't mechanistically cause it, so the authors recommend it as a lightweight screening metric.

The utility results are read as showing little cost, and the paper reports results across three seeds.

Safety DPO still shows noticeable degradation under continual SFT, so the DPO retention problem isn't solved. For Mistral-7B-Instruct-v0.1, which lacks explicit safety alignment, NEST targets without jailbreaking achieve the best performance among the compared targets. The authors read this as showing that preprocessing helps only when outlier refusal behavior is already present.

The continuation tests cover Alpaca and GSM8K only, so retention beyond those adaptation domains is untested. The external re-scoring with Llama-Guard-3-8B, StrongREJECT, and the actionability rubric covers only the Llama-3-8B and BeaverTails setting.

## Paper info

- **Authors**: Binchi Zhang, Hadi Abdullah, Yiwei Cai, Jundong Li
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-7
- **Added**: 2026-11-10
- **Updated**: 2026-11-7
- **Version**: v1
- **arXiv**: 2611.10971
- **Category**: cs.CL
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.10971v1) · [PDF ↗](https://arxiv.org/pdf/2611.10971v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

Safety-aligned large language models often lose their safety behaviors after fine-tuning, even when safety data are included. While this fragility is well documented, its underlying cause remains unclear. In this paper, we propose that formulaic refusal strings can function as outlier modes: narrow, weakly grounded response patterns that are easy to fit but vulnerable to subsequent updates. Controlled experiments support this account: fixed refusals are acquired much like arbitrary constant strings, in contrast to prompt-grounded natural responses. Motivated by these findings, we introduce Naturalness-Enhanced Safety Targets (NEST), a safety alignment framework that improves safety retention by constructing natural, context-aware safety targets that keep safety responses within the model's existing output distribution and grounded in semantics. We instantiate NEST in both supervised and preference-based alignment settings, using perplexity under the original model as a proxy for distributional support. Across multiple models and alignment regimes, natural safety targets improve both immediate safety and its retention under continued fine-tuning without sacrificing helpfulness. These findings suggest a practical principle for more durable safety alignment: construct safety targets that draw on the model's existing language capabilities and remain grounded in the meaning of each request.

## Quote from the paper

Binchi Zhang, Hadi Abdullah, Yiwei Cai, Jundong Li (2026). When Safety Becomes An Outlier: Understanding the Retention of LLM Safety Behaviors. arXiv:2611.10971v1. https://arxiv.org/abs/2611.10971v1

**BibTeX**

```
@misc{zhang2026when,
  title = {{When Safety Becomes An Outlier: Understanding the Retention of LLM Safety Behaviors}},
  author = {Binchi Zhang and Hadi Abdullah and Yiwei Cai and Jundong Li},
  year = {2026},
  eprint = {2611.10971},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.10971v1}
}
```

## Other paper commentary

- [AbductionBench: Benchmarking Abductive Reasoning in Large Language Models](https://refivu.com/en/papers/5447aa31-8498-47e7-ac8b-ac02bc06c0bc-abductionbench-benchmarking-abductive-reasoning-in-large.md)
- [Machine Hearing: Can Audio LLMs Generalize Beyond Human Auditory Perception?](https://refivu.com/en/papers/0cabc2f0-42fb-4be8-9cca-d705df6b4273-machine-hearing-can-audio-llms-generalize-beyond-human.md)
- [Same Contacts, Different Rooms:Meeting Format Shapes LLM Group Influence Beyond Pairwise Contact Counts](https://refivu.com/en/papers/44bb6582-331e-4190-a4d5-2af78e6b5479-same-contacts-different-rooms-meeting-format-shapes-llm.md)
- [CompAIssionate Other: Identity Assumptions in LLM Responses to Distress](https://refivu.com/en/papers/f171dfa4-94f8-4cf6-80f5-42840da00823-compaissionate-other-identity-assumptions-in-llm-responses.md)
- [The Surprising Effectiveness of Deleting Weights in LLM Post-Training](https://refivu.com/en/papers/808cc5f0-6bc7-46ef-942b-24b57c03d919-the-surprising-effectiveness-of-deleting-weights-in-llm.md)
- [Pole or Vector? Encoders Capture Bangla Compound Verbs, but LLMs Read Them Literally](https://refivu.com/en/papers/9dbfb8e2-39c3-4ec7-906a-723e53e21889-pole-or-vector-encoders-capture-bangla-compound-verbs.md)
- [Improving Analytic Constants via Interpretable AI-Guided Lean Proof Refinement](https://refivu.com/en/papers/a19c3267-630e-4a04-bea7-d13ab044849e-improving-analytic-constants-via-interpretable-ai-guided.md)
- [Lightfoot: Graph Retrieval-Augmented Generation with Exact, Model-Free Document Deletion](https://refivu.com/en/papers/ca2f413f-5381-4976-85c5-107ed66a4512-lightfoot-graph-retrieval-augmented-generation-with-exact.md)
- [HARP-Bench: Benchmarking Robot Manipulation Around Active Humans](https://refivu.com/en/papers/6f4f13ac-5bd1-40a1-8bee-4fe82071c389-harp-bench-benchmarking-robot-manipulation-around-active.md)
- [CHANNELS4WORLD: An Environment-Scale Dataset for Wireless Foundation Models](https://refivu.com/en/papers/c55c0e46-77df-4cf2-b71e-0a24136ab2e2-channels4world-an-environment-scale-dataset-for-wireless.md)
- [Decomposing Earth Embeddings with Sparse Autoencoders](https://refivu.com/en/papers/83f736d3-cd52-4da3-9900-8038e6de73f6-decomposing-earth-embeddings-with-sparse-autoencoders.md)
- [OPSRL-SSP: Optimistic Posterior Sampling for Stochastic Shortest Path with Minimax-Optimal Regret](https://refivu.com/en/papers/bc2f5c49-3b84-4fb5-a9d0-a0d585229c7e-opsrl-ssp-optimistic-posterior-sampling-for-stochastic.md)

## Terms in this paper

- [Perplexity](https://refivu.com/en/terms/2b204e513801-perplexity)
- [BLEU](https://refivu.com/en/terms/42cd9b97719e-bleu)
- [GSM8K](https://refivu.com/en/terms/e48f0e01064d-gsm8k)
- [Supervised Fine-tuning](https://refivu.com/en/terms/1a2c1f079517-supervised-fine-tuning)
- [Direct Preference Optimization](https://refivu.com/en/terms/81ed2010f707-direct-preference-optimization)
- [ROUGE-L](https://refivu.com/en/terms/b00e147f8ed4-rouge-l)
- [Alpaca](https://refivu.com/en/terms/acd615a4ec0a-alpaca)
- [Qwen2.5-7B-Instruct](https://refivu.com/en/terms/7ec5caed2fdf-qwen2-5-7b-instruct)
- [XSTest](https://refivu.com/en/terms/9ec267e86e44-xstest)
- [AdvBench](https://refivu.com/en/terms/f151f407ea16-advbench)
- [BeaverTails](https://refivu.com/en/terms/6ef52d7d1546-beavertails)
- [self-BLEU](https://refivu.com/en/terms/5b0e355965e6-self-bleu)
- [Gradient norm](https://refivu.com/en/terms/ae6e90f81977-gradient-norm)
- [LLaMA-3-8B-Instruct](https://refivu.com/en/terms/2255d9128663-llama-3-8b-instruct)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/c80b7b08-3909-41c2-8f34-04547cb431aa-when-safety-becomes-an-outlier-understanding-the-retention)
