What's in Your Safety Data? Identifying Benign Data That Breaks LLM SafetyWhat is in Your Safe Data? Identifying Benign Data that Breaks Safety
Researchers propose a method that can identify, from harmless fine-tuning data, the subset more likely to compromise the safety of large language models. The method characterizes fine-tuning data from two perspectives, representation space and gradient space, and uses bidirectional anchoring to preferentially select data points close to harmful samples and far from benign samples during filtering. The authors' experiments show that fine-tuning with only 100 such seemingly harmless data points leads the model to give affirmative answers to over 70% of tested harmful requests, whereas fine-tuning with randomly selected data yields a rate below 20%. The selected data often appear in the form of lists, bullet points, or math problems, which the authors note reflects systematic patterns in fine-tuning data that facilitate jailbreak.