LoRATK:在共享即用生态中,LoRA只需训练一次,后门无处不在
LoRATK: LoRA Once, Backdoor Everywhere in the Share-and-Play Ecosystem
AI总结:
本文研究了LoRA共享生态中的后门注入威胁,发现后门LoRA只需训练一次即可无训练地与多个任务增强LoRA合并,在保留下游能力的同时隐蔽传播恶意意图,揭示了该生态系统的严重安全隐患。
摘要:
由于简单有效,使用LoRA微调LLM已获得显著普及。通常,用户甚至可以找到可插拔的、社区共享的LoRA来增强其基础模型,以适应特定的下游任务;从而以极低的投入享受强大、高效且定制化的LLM体验。然而,这种便捷的共享即用生态系统也引入了新的攻击面,攻击者可以向渴望尝试共享资产的社区分发恶意LoRA。尽管潜在风险很高,但先前的研究并未在下游增强的共享即用背景下全面探索LoRA的攻击面。在本文中,我们研究了如何将后门注入到任务增强的LoRA中,并检查了此类感染的机制。我们发现,通过一个简单、高效且特定的配方,后门LoRA只需训练一次,然后就可以以无训练的方式与多个任务增强的LoRA无缝合并,同时保留其恶意后门和良性的下游能力。这使得攻击者能够通过利用现有共享LoRA资产的丰富资源,以最小的努力扩展受损LoRA的分发。我们注意到,这种合并后的LoRA具有极强的传染性——因为其恶意意图被巧妙地隐藏在改进的下游能力背后,为自愿下载创造了强烈的动机——同时也极其危险——因为在本地部署下,当出现问题时没有任何安全措施可以进行干预。我们的工作是首批研究这种无训练分发具备下游能力却注入后门的LoRA的新威胁模型的研究之一,强调了在LoRA生态系统中提高安全意识的迫切需要。警告:本文包含攻击性内容,并涉及真实生活中的悲剧。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。