9
0

Benign Samples Matter! Fine-tuning On Outlier Benign Samples Severely Breaks Safety

Abstract

Recent studies have uncovered a troubling vulnerability in the fine-tuning stage of large language models (LLMs): even fine-tuning on entirely benign datasets can lead to a significant increase in the harmfulness of LLM outputs. Building on this finding, our red teaming study takes this threat one step further by developing a more effective attack. Specifically, we analyze and identify samples within benign datasets that contribute most to safety degradation, then fine-tune LLMs exclusively on these samples. We approach this problem from an outlier detection perspective and propose Self-Inf-N, to detect and extract outliers for fine-tuning. Our findings reveal that fine-tuning LLMs on 100 outlier samples selected by Self-Inf-N in the benign datasets severely compromises LLM safety alignment. Extensive experiments across seven mainstream LLMs demonstrate that our attack exhibits high transferability across different architectures and remains effective in practical scenarios. Alarmingly, our results indicate that most existing mitigation strategies fail to defend against this attack, underscoring the urgent need for more robust alignment safeguards. Codes are available atthis https URL.

View on arXiv
@article{guan2025_2505.06843,
  title={ Benign Samples Matter! Fine-tuning On Outlier Benign Samples Severely Breaks Safety },
  author={ Zihan Guan and Mengxuan Hu and Ronghang Zhu and Sheng Li and Anil Vullikanti },
  journal={arXiv preprint arXiv:2505.06843},
  year={ 2025 }
}
Comments on this paper