Skip to content

Representation Noising: A defense mechanism against harmful fine-tuningRepresentation Noising: A Defence Mechanism Against Harmful Finetuning

arXiv· arXiv:2405.14577· NeurIPS· Domenic Rosati, Jan Wehner, Kai Williams, Łukasz Bartoszcze, David Atanasov, Robie Gonzales, Subhabrata Majumdar, Carsten Maple, Hassan Sajjad, Frank Rudzicz·Indexed by this site · 26 days ago· Originally publishedDefenses
AI summary

The researchers propose the RepNoise (Representation Noising) defense mechanism, which removes information about harmful representations from the model so that attackers, even with access to the weights, find it difficult to recover these representations during fine-tuning. The paper points out that open-source models carry a dual-use risk of being fine-tuned for harmful purposes; even without releasing weights, weight theft and fine-tuning APIs expose closed-source models to harmful fine-tuning attacks (HFA), and conventional safety measures such as jailbreak defenses and hardened guardrails can be easily reversed by fine-tuning. The method also generalizes to harm subsets unseen during the defense process but from the same distribution as the attack set, and does not degrade the model's general capabilities, preserving the ability to train on harmless tasks. Empirical results show that the defense's effectiveness depends on the depth of removal, i.e., the extent to which harmful representation information is removed across all layers of the LLM; the authors also note scenarios in which RepNoise still fails and explain that these limitations can provide directions for future research.

Read originalNeurIPS