SPARD reduces harmful fine-tuning attack success while keeping task accuracy
SPARD achieves the lowest average attack success rates among defenses and maintains high task accuracy
AI/ML arXiv 27 May 2026 Defense Prototype evidence
Published as “SPARD: Defending Harmful Fine-Tuning Attack via Safety Projection with Relevance-Diversity Data Selection”
Why it matters
The method provides a practical way to harden fine-tuned LLMs against malicious data without large computational overhead.
Summary
SPARD reduces the attack success rate to as low as 10.00% on GSM8K while keeping task accuracy around 85.77%, outperforming prior defenses on both safety and utility. The paper reports experiments on two downstream tasks (GSM8K and OpenBookQA) under four harmful fine-tuning attacks, comparing against five baselines (SFT, PTST, SafeInstr, Lisa, SafeGrad). The evidence comes from multiple tables showing consistently lower ASR/HS and competitive accuracy across two model families (Qwen-2.5-7B-Instruct and LLaMA-3.2-3B-Instruct). However, SPARD’s accuracy is slightly lower than SFT in some cases, indicating a modest utility trade-off.
What they found 1
- SPARD achieves the lowest average attack success rate while maintaining high downstream accuracy on GSM8K.
“SPARD simultaneously achieves the lowest ASR/HS while preserving competitive GSM8K accuracy, offering the strongest balance between safety and utility among all methods.”
Caveats 2
- On GSM8K, SPARD’s accuracy (85.77%) is slightly lower than SFT’s accuracy (86.28%).
- On LLaMA-3.2-3B-Instruct, SPARD’s accuracy (71.23%) is lower than SFT’s accuracy (72.27%).
What’s new here 4
- Introduces Safety-Projected Alternating Gradient (SPAG) that enforces safety constraints via explicit projection rather than penalty terms.
- Proposes a Relevance-Diversity Determinantal Point Process to select safe data that balances task relevance and behavioral diversity.
- Combines SPAG and the DPP into a unified defense framework that works across different model architectures.
- Demonstrates that a small proportion (≈3%) of carefully selected safe samples suffices for strong safety guarantees.