paper-with-me

Papers

BEEAR: Embedding-based Adversarial Removal of Safety Backdoors in Instruction-tuned Language Models

2024-06-24 · Yi Zeng, Weiyu Sun, Tran Ngoc Huynh, Dawn Song, Bo Li, Ruoxi Jia

Safety backdoor attacks in large language models (LLMs) enable the stealthy triggering of unsafe behaviors while evading detection during normal interactions. The high dimensionality of potential triggers in the token space and the diverse range of malicious behaviors make this a critical challenge. We present BEEAR, a mitigation approach leveraging the insight that backdoor triggers induce relatively uniform drifts in the model's embedding space. Our bi-level optimization method identifies universal embedding perturbations that elicit unwanted behaviors and adjusts the model parameters to reinforce safe behaviors against these perturbations. Experiments show BEEAR reduces the success rate of RLHF time backdoor attacks from >95% to <1% and from 47% to 0% for instruction-tuning time backdoors targeting malicious code generation, without compromising model utility. Requiring only defender-defined safe and unwanted behaviors, BEEAR represents a step towards practical defenses against safety backdoors in LLMs, providing a foundation for further advancements in AI safety and security.

📄 PDF Abstract BibTeX arXiv:2406.17092

Code (1)

reds-lab/beear 공식 구현 pytorch

Tasks

Code Generation

Similar Papers 제목 키워드 기반

DECK: Model Hardening for Defending Pervasive Backdoors

2022-06-18 · Guanhong Tao, Yingqi Liu, Siyuan Cheng, Shengwei An 외

Pervasive backdoors are triggered by dynamic and pervasive input perturbations. They can be intentionally injected by attackers or naturally exist in normally trained models. They have a different nature from the traditi…

Decodermodel

Backdoor Unlearning Generalization: A Path Toward the Removal of Unknown Triggers in LLMs

2026-06-02 · Lisa Bouger, Théo Lasnier, Philippe Loubet Moundi, Yannick Teglia 외 arxiv

Backdoor attacks in Large Language Models (LLMs) are a growing security concern, where models can generate adversary-chosen content. Existing defenses target backdoors one at a time and typically require knowledge of the…

Continual Pretraining

Backdoor Unlearning by Linear Task Decomposition

2025-10-16 · Amel Abdelraheem, Alessandro Favero, Gerome Bovet, Pascal Frossard arxiv

Foundation models have revolutionized computer vision by enabling broad generalization across diverse tasks. Yet, they remain highly susceptible to adversarial perturbations and targeted backdoor attacks. Mitigating such…

Dummy Backdoor as a Defense: Removing Unknown Backdoors via Shared Internal Mechanisms for Generative LLMs

2026-06-10 · Kazuki Iwahana, Masaru Matsubayashi, Takuma Koyama, Toshiki Shibahara 외 arxiv

Backdoor attacks pose a serious threat to the safety and reliability of Large Language Models (LLMs), as they cause models to behave normally on clean inputs while producing attacker-specified responses when hidden trigg…

Simulate and Eliminate: Revoke Backdoors for Generative Large Language Models

2024-05-13 · Haoran Li, Yulin Chen, Zihao Zheng, Qi Hu 외

With rapid advances, generative large language models (LLMs) dominate various Natural Language Processing (NLP) tasks from understanding to reasoning. Yet, language models' inherent vulnerabilities may be exacerbated due…