analiza aiqbench
Eraser addresses the core challenge of LLM safety by proposing a method to surgically unlearn harmful knowledge without degrading general model capabilities or requiring red team assistance. This approach directly mitigates jailbreaking risks, ensuring that models retain their utility while effectively neutralizing the specific data required to generate unsafe outputs. The work represents a significant advancement in aligning large language models with safety constraints through targeted machine learning techniques.
Eraser: Jailbreaking Defense in Large Language Models via Unlearning Harmful Knowledge
arXiv:2404.05880v3 Announce Type: replace Abstract: Jailbreaking attacks can enable Large Language Models (LLMs) to bypass the safeguard and generate harmful content. Existing jailbreaking defense methods have failed to address the fundamental issue that harmful knowledge resides within the model, leading to potential jailbreak risks for LLMs. In this paper, we propose a novel defense method called Eraser, which mainly includes three goals: unlearning harmful knowledge, retaining general knowledge, and maintaining safety alignment. The intuition is that if an LLM forgets the specific knowledge required to answer a harmful question, it will no longer have the ability to answer harmful questions. The training of Erase does not actually require the model's own harmful knowledge, and it can benefit from unlearning general answers related to harmful queries, which means it does not need assistance from the red team. The experimental results show that Eraser can significantly reduce the jailbreaking success rate for various attacks without compromising the general capabilities of the model. Our codes are available at https://github.com/ZeroNLP/Eraser.
Abstract:Jailbreaking attacks can enable Large Language Models (LLMs) to bypass the safeguard and generate harmful content. Existing jailbreaking defense methods have failed to address the fundamental issue that harmful knowledge resides within the model, leading to potential jailbreak risks for LLMs. In this paper, we propose a novel defense method called Eraser, which mainly includes three goals: unlearning harmful knowledge, retaining general knowledge, and maintaining safety alignment. The intuition is that if an LLM forgets the specific knowledge required to answer a harmful question, it will no longer have the ability to answer harmful questions. The training of Erase does not actually require the model's own harmful knowledge, and it can benefit from unlearning general answers related to harmful queries, which means it does not need assistance from the red team. The experimental results show that Eraser can significantly reduce the jailbreaking success rate for various attacks without compromising the general capabilities of the model. Our codes are available at this https URL.
Computation and Language (cs.CL)
arXiv:2404.05880 [cs.CL]
(or arXiv:2404.05880v3 [cs.CL] for this version)
https://doi.org/10.48550/arXiv.2404.05880 Focus to learn more arXiv-issued DOI via DataCite
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.
Text integral sub licența deschisă a publicației · 256 cuvinte
Subiecte conexe
Tripwire: Triggering Aligned Refusal via Statistically Certified Safety Neurons
arXiv · 17 aug. 2026

Research Note: Filtering Subversion-Relevant Information From Pretraining Data Is Feasible
LessWrong · 5 oct. 2026
More details on Fable 5’s cyber safeguards and our jailbreak framework
Anthropic · 2 iul. 2026
COMIC: Reference-Aware Safety Gating for Multimodal Large Language Models
arXiv · 19 aug. 2026