BadEdit: Backdooring large language models by model editing

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Li, Yanzhou, Li, Tianlin, Chen, Kangjie, Zhang, Jian, Liu, Shangqing, Wang, Wenhan, Zhang, Tianwei, Liu, Yang
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866909143125721088
author Li, Yanzhou
Li, Tianlin
Chen, Kangjie
Zhang, Jian
Liu, Shangqing
Wang, Wenhan
Zhang, Tianwei
Liu, Yang
author_facet Li, Yanzhou
Li, Tianlin
Chen, Kangjie
Zhang, Jian
Liu, Shangqing
Wang, Wenhan
Zhang, Tianwei
Liu, Yang
contents Mainstream backdoor attack methods typically demand substantial tuning data for poisoning, limiting their practicality and potentially degrading the overall performance when applied to Large Language Models (LLMs). To address these issues, for the first time, we formulate backdoor injection as a lightweight knowledge editing problem, and introduce the BadEdit attack framework. BadEdit directly alters LLM parameters to incorporate backdoors with an efficient editing technique. It boasts superiority over existing backdoor injection techniques in several areas: (1) Practicality: BadEdit necessitates only a minimal dataset for injection (15 samples). (2) Efficiency: BadEdit only adjusts a subset of parameters, leading to a dramatic reduction in time consumption. (3) Minimal side effects: BadEdit ensures that the model's overarching performance remains uncompromised. (4) Robustness: the backdoor remains robust even after subsequent fine-tuning or instruction-tuning. Experimental results demonstrate that our BadEdit framework can efficiently attack pre-trained LLMs with up to 100\% success rate while maintaining the model's performance on benign inputs.
format Preprint
id arxiv_https___arxiv_org_abs_2403_13355
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle BadEdit: Backdooring large language models by model editing
Li, Yanzhou
Li, Tianlin
Chen, Kangjie
Zhang, Jian
Liu, Shangqing
Wang, Wenhan
Zhang, Tianwei
Liu, Yang
Cryptography and Security
Artificial Intelligence
Mainstream backdoor attack methods typically demand substantial tuning data for poisoning, limiting their practicality and potentially degrading the overall performance when applied to Large Language Models (LLMs). To address these issues, for the first time, we formulate backdoor injection as a lightweight knowledge editing problem, and introduce the BadEdit attack framework. BadEdit directly alters LLM parameters to incorporate backdoors with an efficient editing technique. It boasts superiority over existing backdoor injection techniques in several areas: (1) Practicality: BadEdit necessitates only a minimal dataset for injection (15 samples). (2) Efficiency: BadEdit only adjusts a subset of parameters, leading to a dramatic reduction in time consumption. (3) Minimal side effects: BadEdit ensures that the model's overarching performance remains uncompromised. (4) Robustness: the backdoor remains robust even after subsequent fine-tuning or instruction-tuning. Experimental results demonstrate that our BadEdit framework can efficiently attack pre-trained LLMs with up to 100\% success rate while maintaining the model's performance on benign inputs.
title BadEdit: Backdooring large language models by model editing
topic Cryptography and Security
Artificial Intelligence
url https://arxiv.org/abs/2403.13355