Selective layer recovery cuts harmful outputs to near zero while keeping task accuracy
SLDR dramatically reduces harmful model outputs after malicious fine-tuning while preserving downstream performance
AI/ML arXiv 7 Oct 2026 Defense Prototype evidence
Published as “SLDR: Defending Against Malicious Fine-tuning via Selective Layers Recovery and Dynamic Routing”
Why it matters
Provides a practical post-fine-tuning defense that can be deployed by service providers to restore safety without retraining the entire model.
Summary
SLDR cuts the average harmful score on Llama3.1/SST2 from 11.54 to 0.08 while keeping downstream accuracy unchanged. It does this by diagnosing signed layer-wise safety sensitivity, training a LoRA recovery adapter only on the most positive and most negative layers, and activating it via representation-based dynamic routing for malicious queries. Experiments on four LLM families, five downstream tasks and four harmful benchmarks show the reduction, and multi-seed runs show HS stays between 0.00 and 0.20 (average 0.08 ± 0.10).
What they found 2
- SLDR reduces harmful score from 11.54 to 0.08 while preserving accuracy on Llama3.1/SST2.
“On Llama3.1/SST2, SLDR reduces the average harmful score from 11.54 to 0.08 while maintaining downstream accuracy”
- In multi-seed experiments, harmful score varies between 0.00 and 0.20 (average 0.08 ± 0.10).
“Its HS remains between 0.00 and 0.20, resulting in an average HS of 0.08 ± 0.10”
Caveats 1
- Harmful score is not exactly zero in all runs, ranging up to 0.20 across random seeds.
What’s new here 4
- Identifies a signed layer-wise sensitivity spectrum showing which layers increase or decrease refusal when scaled.
- Trains a LoRA recovery adapter only on the layers with maximum and minimum sensitivity scores.
- Introduces representation-based dynamic routing to activate the recovery adapter only for harmful queries.
- Demonstrates the approach across multiple model architectures and tasks with minimal impact on utility.