Reproduce “Making Harmful Behaviors Unlearnable for Large Language Models” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Xin Zhou, Yi Lu, Ruotian Ma, Tao Gui, Qi Zhang, Xuanjing Huang
Fudan University researchers developed a controllable training framework that leverages "security vectors" to prevent Large Language Models from internalizing harmful behaviors during fine-tuning, even when exposed to detrimental data. This method allows models to retain their safety-aligned refusal of harmful instructions while successfully acquiring new, benign skills.
Key insights
- Unlearnability of a behavior can be achieved by ensuring the model's output for that behavior is already highly consistent with a target response, thereby minimizing gradient updates to the core model parameters.
- Parameter-efficient tuning techniques, like LoRA, can be repurposed as separable "security vectors" to control specific behavioral learning in LLMs without modifying the entire model.
- A bi-level optimization process enables the security vectors to effectively capture and consistently activate a 'harmful behavior space' that the main LLM then avoids learning.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.