SDD: Self-Degraded Defense against Malicious Fine-tuning

Zixuan Chen, Weikai Lu, Xin Lin, Ziqian Zeng
7/27/2025
cs.CRcs.AI

No official code found. Best implementation: ZeroNLP/SDD (1 star, Apache-2.0, last commit 2026-01-14).

Abstract

Open-source Large Language Models (LLMs) often employ safety alignment methods to resist harmful instructions. However, recent research shows that maliciously fine-tuning these LLMs on harmful data can easily bypass these safeguards. To counter this, we theoretically uncover why malicious fine-tuning succeeds and identify potential defense strategies. Building on the theoretical analysis, we introduce the Self-Degraded Defense (SDD) framework. SDD encourages LLMs to produce high-quality but irrelevant responses to harmful prompts. When attackers attempt malicious fine-tuning, the general capability of the LLM aligned by SDD will significantly decrease, rendering it incapable of following harmful instructions. Our experimental results confirm SDD's effectiveness against such attacks.

View on arXivView PDF

Code Implementations(1)

ZeroNLP/SDDCommunity68%
Apache-2.0

This is the official implementation of the paper "SDD: Self-Degraded Defense against Malicious Fine-tuning"

10PythonMay 30, 20259 months agoApache-2.0

Similar Papers

Cite this paper

@article{chen2025sdd,
  title  = {SDD: Self-Degraded Defense against Malicious Fine-tuning},
  author = {Zixuan Chen and Weikai Lu and Xin Lin and Ziqian Zeng},
  year   = {2025},
  eprint = {2507.21182},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.21182v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.21182.svg)](https://codeofpaper.com/paper/2507.21182)

Discussion