Skip to content

Layer-AdvPatcher: Mitigating Affirmative Tokens to Defend Against Jailbreak AttacksLayer-Level Self-Exposure and Patch: Affirmative Token Mitigation for Jailbreak Attack Defense

arXiv· arXiv:2501.02629· Yang Ouyang, Hengrui Gu, Shuhang Lin, Wenyue Hua, Jie Peng, Bhavya Kailkhura, Meijun Gao, Tianlong Chen, Kaixiong Zhou·Indexed by this site · 24 days ago· Originally publishedDefenses
AI summary

The researchers propose a jailbreak defense method, Layer-AdvPatcher, whose starting point is that certain layers in large language models tend to generate affirmative tokens when facing harmful prompts. The method first locates these layers, characterizes their vulnerability through adversarial exposure and generating more harmful data with the aid of a self-augmented dataset, and then repairs these problems with an unlearning strategy, thereby reducing the influence of affirmative tokens and lowering jailbreak risk while maintaining the model's normal responses to safe queries. Experimental results on two models, four benchmark datasets, and multiple state-of-the-art jailbreak attacks show that, compared with recent defense methods, this framework reduces the harmfulness and attack success rate of jailbreak attacks without harming utility on benign queries. Code is publicly available on GitHub: https://github.com/oyy2000/LayerAdvPatcher。

Read originalarxiv.org