Tianlong Chen, Bhavya Kailkhura, Wenyue Hua, Kaixiong Zhou, Yang Ouyang, Jie Peng, Shuhang Lin, Hengrui Gu, Meijun Gao
We have not lifted any functions out of this paper's repositories yet, so there is nothing we have run. The repositories linked to it are listed below.
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
As large language models (LLMs) are increasingly deployed in diverse applications, including chatbot assistants and code generation, aligning their behavior with safety and ethical standards has become paramount. However, jailbreak attacks, which exploit vulnerabilities to elicit unintended or harmful outputs, threaten LLMs safety significantly. In this paper, we introduce Layer-AdvPatcher, a novel methodology designed to defend against jailbreak attacks by utilizing an unlearning strategy to patch specific layers within LLMs through self-augmented datasets. Our insight is that certain layer(s), tend to produce affirmative tokens when faced with harmful prompts. By identifying these layers and adversarially exposing them to generate more harmful data, one can understand their inherent and diverse vulnerabilities to attacks. With these exposures, we then "unlearn" these issues, reducing the impact of affirmative tokens and hence minimizing jailbreak risks while keeping the model's responses to safe queries intact. We conduct extensive experiments on two models, four benchmark datasets, and multiple state-of-the-art jailbreak attacks to demonstrate the efficacy of our approach. Results indicate that our framework reduces the harmfulness and attack success rate of jailbreak attacks without compromising utility for benign queries compared to recent defense methods 1 .
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2501.02629")
get_code_for_paper("2501.02629")
have("2501.02629")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2501.02629.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2501.02629)
Connect an agent — have() is free.