LoRATK: LoRA Once, Backdoor Everywhere in the Share-and-Play Ecosystem

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Liu, Hongyi, Zhong, Shaochen, Sun, Xintong, Tian, Minghao, Hariri, Mohsen, Liu, Zirui, Tang, Ruixiang, Jiang, Zhimeng, Yuan, Jiayi, Chuang, Yu-Neng, Li, Li, Choi, Soo-Hyun, Chen, Rui, Chaudhary, Vipin, Hu, Xia
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866918005576826880
author Liu, Hongyi
Zhong, Shaochen
Sun, Xintong
Tian, Minghao
Hariri, Mohsen
Liu, Zirui
Tang, Ruixiang
Jiang, Zhimeng
Yuan, Jiayi
Chuang, Yu-Neng
Li, Li
Choi, Soo-Hyun
Chen, Rui
Chaudhary, Vipin
Hu, Xia
author_facet Liu, Hongyi
Zhong, Shaochen
Sun, Xintong
Tian, Minghao
Hariri, Mohsen
Liu, Zirui
Tang, Ruixiang
Jiang, Zhimeng
Yuan, Jiayi
Chuang, Yu-Neng
Li, Li
Choi, Soo-Hyun
Chen, Rui
Chaudhary, Vipin
Hu, Xia
contents Finetuning LLMs with LoRA has gained significant popularity due to its simplicity and effectiveness. Often, users may even find pluggable, community-shared LoRAs to enhance their base models for a specific downstream task of interest; enjoying a powerful, efficient, yet customized LLM experience with negligible investment. However, this convenient share-and-play ecosystem also introduces a new attack surface, where attackers can distribute malicious LoRAs to a community eager to try out shared assets. Despite the high-risk potential, no prior art has comprehensively explored LoRA's attack surface under the downstream-enhancing share-and-play context. In this paper, we investigate how backdoors can be injected into task-enhancing LoRAs and examine the mechanisms of such infections. We find that with a simple, efficient, yet specific recipe, a backdoor LoRA can be trained once and then seamlessly merged (in a training-free fashion) with multiple task-enhancing LoRAs, retaining both its malicious backdoor and benign downstream capabilities. This allows attackers to scale the distribution of compromised LoRAs with minimal effort by leveraging the rich pool of existing shared LoRA assets. We note that such merged LoRAs are particularly infectious -- because their malicious intent is cleverly concealed behind improved downstream capabilities, creating a strong incentive for voluntary download -- and dangerous -- because under local deployment, no safety measures exist to intervene when things go wrong. Our work is among the first to study this new threat model of training-free distribution of downstream-capable-yet-backdoor-injected LoRAs, highlighting the urgent need for heightened security awareness in the LoRA ecosystem. Warning: This paper contains offensive content and involves a real-life tragedy.
format Preprint
id arxiv_https___arxiv_org_abs_2403_00108
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle LoRATK: LoRA Once, Backdoor Everywhere in the Share-and-Play Ecosystem
Liu, Hongyi
Zhong, Shaochen
Sun, Xintong
Tian, Minghao
Hariri, Mohsen
Liu, Zirui
Tang, Ruixiang
Jiang, Zhimeng
Yuan, Jiayi
Chuang, Yu-Neng
Li, Li
Choi, Soo-Hyun
Chen, Rui
Chaudhary, Vipin
Hu, Xia
Cryptography and Security
Artificial Intelligence
Computation and Language
Finetuning LLMs with LoRA has gained significant popularity due to its simplicity and effectiveness. Often, users may even find pluggable, community-shared LoRAs to enhance their base models for a specific downstream task of interest; enjoying a powerful, efficient, yet customized LLM experience with negligible investment. However, this convenient share-and-play ecosystem also introduces a new attack surface, where attackers can distribute malicious LoRAs to a community eager to try out shared assets. Despite the high-risk potential, no prior art has comprehensively explored LoRA's attack surface under the downstream-enhancing share-and-play context. In this paper, we investigate how backdoors can be injected into task-enhancing LoRAs and examine the mechanisms of such infections. We find that with a simple, efficient, yet specific recipe, a backdoor LoRA can be trained once and then seamlessly merged (in a training-free fashion) with multiple task-enhancing LoRAs, retaining both its malicious backdoor and benign downstream capabilities. This allows attackers to scale the distribution of compromised LoRAs with minimal effort by leveraging the rich pool of existing shared LoRA assets. We note that such merged LoRAs are particularly infectious -- because their malicious intent is cleverly concealed behind improved downstream capabilities, creating a strong incentive for voluntary download -- and dangerous -- because under local deployment, no safety measures exist to intervene when things go wrong. Our work is among the first to study this new threat model of training-free distribution of downstream-capable-yet-backdoor-injected LoRAs, highlighting the urgent need for heightened security awareness in the LoRA ecosystem. Warning: This paper contains offensive content and involves a real-life tragedy.
title LoRATK: LoRA Once, Backdoor Everywhere in the Share-and-Play Ecosystem
topic Cryptography and Security
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2403.00108