用伪装成正常模块的LoRA植入文生图模型后门,触发时生成指定图像。
When LoRA Betrays: Backdooring Text-to-Image Models by Masquerading as Benign Adapters
- 将后门藏于独立LoRA模块中,仅更新低秩权重,保持主模型不变。
- 仅需少量触发词-目标图像对,攻击成功率高达99.8%。
- 适合关注AI供应链安全的研究者与平台开发者阅读。
低秩适配(LoRA)已成为高效微调文生图扩散模型的主流方法,其在开源平台的广泛应用促进了模型共享与定制生态。然而,这种模块化、即插即用的特性也带来了更广泛的攻击面。为此,我们提出首个系统性攻击框架Masquerade-LoRA(MasqLoRA),利用独立的LoRA模块作为攻击载体,隐秘地向文生图扩散模型注入恶意行为。MasqLoRA通过冻结基础模型参数,仅使用少量“触发词-目标图像”对更新低秩适配器权重,实现一个可独立加载的后门模块。该模块嵌入隐藏的跨模态映射:当加载后并输入特定文本触发词时,模型输出预设视觉内容;否则表现与正常模型无异,确保攻击隐蔽性。实验表明,MasqLoRA可在极小资源开销下训练,攻击成功率高达99.8%。该研究揭示了人工智能供应链中的严重且独特的威胁,凸显了针对以LoRA为核心的共享生态建立专用防御机制的紧迫性。
原文摘要 · Abstract (English)
Low-Rank Adaptation (LoRA) has emerged as a leading technique for efficiently fine-tuning text-to-image diffusion models, and its widespread adoption on open-source platforms has fostered a vibrant culture of model sharing and customization. However, the same modular and plug-and-play flexibility that makes LoRA appealing also introduces a broader attack surface. To highlight this risk, we propose Masquerade-LoRA (MasqLoRA), the first systematic attack framework that leverages an independent LoRA module as the attack vehicle to stealthily inject malicious behavior into text-to-image diffusion models. MasqLoRA operates by freezing the base model parameters and updating only the low-rank adapter weights using a small number of "trigger word-target image" pairs. This enables the attacker to train a standalone backdoor LoRA module that embeds a hidden cross-modal mapping: when the module is loaded and a specific textual trigger is provided, the model produces a predefined visual output; otherwise, it behaves indistinguishably from the benign model, ensuring the stealthiness of the attack. Experimental results demonstrate that MasqLoRA can be trained with minimal resource overhead and achieves a high attack success rate of 99.8%. MasqLoRA reveals a severe and unique threat in the AI supply chain, underscoring the urgent need for dedicated defense mechanisms for the LoRA-centric sharing ecosystem.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。