Metraipolis › archive › dc_49392c773d03
SLDR: Defending Against Malicious Fine-tuning via Selective Layers Recovery and Dynamic Routing — arXiv:2610.10345
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2610.10345
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-08T11:12:03.120Z
- SHA-256 of the archived text
19576fd965d64210dd8e59f7fd5656310bd4afc86af5e3fd1ae621801bb21407- Stable URL of this page
https://metraipolis.com/documento/dc_49392c773d03
How to cite
SLDR: Defending Against Malicious Fine-tuning via Selective Layers Recovery and Dynamic Routing — arXiv:2610.10345 — arXiv (en), https://arxiv.org/abs/2610.10345 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_49392c773d03 (Metraipolis archive dc_49392c773d03, sha256 19576fd965d64210dd8e59f7fd5656310bd4afc86af5e3fd1ae621801bb21407)
BibTeX
@misc{dc49392c773d03,
title = {SLDR: Defending Against Malicious Fine-tuning via Selective Layers Recovery and Dynamic Routing — arXiv:2610.10345},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2610.10345},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_49392c773d03; sha256 19576fd965d64210dd8e59f7fd5656310bd4afc86af5e3fd1ae621801bb21407},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.10345. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Fine-tuning-as-a-service enables users to adapt aligned large language models (LLMs) to specialized tasks, but malicious fine-tuning can erode refusal behavior while preserving task performance on legitimate inputs. We revisit recent layer-wise safety diagnostics and find that safety sensitivity is signed: scaling different layers can strengthen refusal, weaken it, or have little effect. Motivated by this observation, we propose SLDR, a post-fine-tuning defense based on Selective Layers Recovery and Dynamic Routing. SLDR trains a LoRA recovery adapter only on the layers with the maximum and minimum sensitivity scores in the signed spectrum, and uses representation-based dynamic routing inference to activate the adapter only for malicious queries. Across four model architectures, five downstream tasks, and four harmful benchmarks, SLDR substantially reduces harmful outputs while preserving downstream utility. On Llama3.1/SST2, SLDR reduces the average harmful score from 11.54 to 0.08 while maintaining downstream accuracy, and the harmful score remains near zero under poisoning ratios up to 0.9. The code is available at this https URL . Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.AI, nuovi lavori del giorno). Categorie arXiv: Cryptography and Security (cs.CR) ; Artificial Intelligence (cs.AI). Pagina del lavoro: https://arxiv.org/abs/2610.10345 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-08T10:14:06.176Z dalla pagina https://arxiv.org/list/cs.AI/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).