Guardrails miss harmful QA hidden inside benign training samples
Dual-Reference SFT mitigates harmful fine-tuning from embedded attacks that bypass existing guardrails
AI/ML arXiv 29 Jun 2026 Defense Prototype evidence
Published as “Defending Against Harmful Supervision Hidden in Benign Samples”
Why it matters
DR-SFT offers a practical way to harden fine-tuning pipelines against stealthy embedded attacks without sacrificing downstream performance.
Summary
DR-SFT dramatically cuts attack success rates (ASR) of embedded fine-tuning attacks to as low as 1-3% while keeping utility comparable to standard SFT, whereas baseline methods often exceed 30% ASR. The paper introduces Embedded Attack, where harmful Q&A pairs are hidden inside benign samples, showing that existing guard-rail filters can be bypassed. Experiments on three open-source LLMs and multiple utility datasets confirm the defense works for both direct and backdoor variants, though DR-SFT still leaves non-trivial ASR on some models. The evidence is based on reported ASR and utility numbers across several configurations.
What they found 1
- DR-SFT reduces ASR to 1-3% across several configurations where baseline methods exhibit severe safety degradation.
“Specifically, DR-SFT reduces ASR to 1-3% across several configurations where baseline methods exhibit severe safety degradation.”
Caveats 5
- On Qwen2.5-7B-Instruct, DR-SFT still has an ASR of 33.3% (DR-SFT 74.4 33.3).
- In the backdoor setting, DR-SFT shows a triggered ASR of 26.3% for Llama-2-7B-Chat (DR-SFT 0.6 26.3).
- DR-SFT has several limitations. First, it requires an additional negative reference model πn ref, which introduces extra implementation complexity and reference-logit preprocessing.
- If an attacker uses harm categories or attack patterns that are not covered by the dataset used to train the negative reference model, the contrast between πp ref and πn ref may be insufficient for reliable harmful-token localization.
- In the extreme case where the negative reference model collapses to the positive reference model, i.e., πn ref = πp ref, we have rp = rn, and the contrastive signal disappears.
What’s new here 4
- Defines Embedded Attack, a threat where harmful content is embedded inside benign training samples.
- Proposes Dual-Reference SFT (DR-SFT), a token-level contrastive regularization method using a positive and a negative reference model.
- Demonstrates defense effectiveness against both direct and backdoor embedded attacks across multiple LLMs.
- Provides an ablation study of the regularization hyperparameter β.