Instruction Backdoor Attacks Against Customized LLMs

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Zhang, Rui, Li, Hongwei, Wen, Rui, Jiang, Wenbo, Zhang, Yuan, Backes, Michael, Shen, Yun, Zhang, Yang
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866910460813508608
author Zhang, Rui
Li, Hongwei
Wen, Rui
Jiang, Wenbo
Zhang, Yuan
Backes, Michael
Shen, Yun
Zhang, Yang
author_facet Zhang, Rui
Li, Hongwei
Wen, Rui
Jiang, Wenbo
Zhang, Yuan
Backes, Michael
Shen, Yun
Zhang, Yang
contents The increasing demand for customized Large Language Models (LLMs) has led to the development of solutions like GPTs. These solutions facilitate tailored LLM creation via natural language prompts without coding. However, the trustworthiness of third-party custom versions of LLMs remains an essential concern. In this paper, we propose the first instruction backdoor attacks against applications integrated with untrusted customized LLMs (e.g., GPTs). Specifically, these attacks embed the backdoor into the custom version of LLMs by designing prompts with backdoor instructions, outputting the attacker's desired result when inputs contain the pre-defined triggers. Our attack includes 3 levels of attacks: word-level, syntax-level, and semantic-level, which adopt different types of triggers with progressive stealthiness. We stress that our attacks do not require fine-tuning or any modification to the backend LLMs, adhering strictly to GPTs development guidelines. We conduct extensive experiments on 6 prominent LLMs and 5 benchmark text classification datasets. The results show that our instruction backdoor attacks achieve the desired attack performance without compromising utility. Additionally, we propose two defense strategies and demonstrate their effectiveness in reducing such attacks. Our findings highlight the vulnerability and the potential risks of LLM customization such as GPTs.
format Preprint
id arxiv_https___arxiv_org_abs_2402_09179
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Instruction Backdoor Attacks Against Customized LLMs
Zhang, Rui
Li, Hongwei
Wen, Rui
Jiang, Wenbo
Zhang, Yuan
Backes, Michael
Shen, Yun
Zhang, Yang
Cryptography and Security
Machine Learning
The increasing demand for customized Large Language Models (LLMs) has led to the development of solutions like GPTs. These solutions facilitate tailored LLM creation via natural language prompts without coding. However, the trustworthiness of third-party custom versions of LLMs remains an essential concern. In this paper, we propose the first instruction backdoor attacks against applications integrated with untrusted customized LLMs (e.g., GPTs). Specifically, these attacks embed the backdoor into the custom version of LLMs by designing prompts with backdoor instructions, outputting the attacker's desired result when inputs contain the pre-defined triggers. Our attack includes 3 levels of attacks: word-level, syntax-level, and semantic-level, which adopt different types of triggers with progressive stealthiness. We stress that our attacks do not require fine-tuning or any modification to the backend LLMs, adhering strictly to GPTs development guidelines. We conduct extensive experiments on 6 prominent LLMs and 5 benchmark text classification datasets. The results show that our instruction backdoor attacks achieve the desired attack performance without compromising utility. Additionally, we propose two defense strategies and demonstrate their effectiveness in reducing such attacks. Our findings highlight the vulnerability and the potential risks of LLM customization such as GPTs.
title Instruction Backdoor Attacks Against Customized LLMs
topic Cryptography and Security
Machine Learning
url https://arxiv.org/abs/2402.09179