基于自然风格触发器的针对大语言模型的隐蔽后门攻击 Stealthy Backdoor Attacks against LLMs Based on Natural Style Triggers 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-04-23
👁️ 预览文献
💡 AI 中文简介
本研究针对大语言模型的后门攻击,提出BadStyle框架,利用大模型生成带有自然风格触发器的隐蔽毒化样本,并设计辅助目标损失来稳定攻击载荷注入。在LLaMA、GPT等7个模型上测试,攻击成功率平均提升约30%,且能绕过常见防御,即使在下游部署场景中后门依然有效。
领域人工智能安全 / 大语言模型安全
适合谁读需要一定专业背景(了解大语言模型微调与安全攻防基础)
核心贡献1. 提出BadStyle框架,利用大模型生成语义流畅、触发器不可感知的毒化样本,解决了现有方法触发器不自然的问题。2. 设计辅助目标损失,显著提升后门注入稳定性,平均攻击成功率提高约30%,并能绕过输入和输出级防御。
关键数据在7个受害模型(LLaMA、Phi、DeepSeek、GPT系列)上,平均攻击成功率提升约30%;即使在下游未知部署场景中后门仍有效;能持续规避代表性输入级防御并通过简单伪装绕过输出级防御。
推荐理由如果你关心大模型安全,这篇论文展示了如何用自然风格触发器实现隐蔽后门,攻击成功率提升30%且难以防御,值得一读。
关键词["大语言模型安全", "后门攻击", "自然风格触发器", "隐蔽性", "威胁模型"]

原文摘要

查看英文原文摘要

The growing application of large language models (LLMs) in safety-critical domains has raised urgent concerns about their security. Many recent studies have demonstrated the feasibility of backdoor attacks against LLMs. However, existing methods suffer from three key shortcomings: explicit trigger patterns that compromise naturalness, unreliable injection of attacker-specified payloads in long-form generation, and incompletely specified threat models that obscure how backdoors are delivered and activated in practice. To address these gaps, we present BadStyle, a complete backdoor attack framework and pipeline. BadStyle leverages an LLM as a poisoned sample generator to construct natural and stealthy poisoned samples that carry imperceptible style-level triggers while preserving semantics and fluency. To stabilize payload injection during fine-tuning, we design an auxiliary target loss that reinforces the attacker-specified target content in responses to poisoned inputs and penalizes its emergence in benign responses. We further ground the attack in a realistic threat model and systematically evaluate BadStyle under both prompt-induced and PEFT-based injection strategies. Extensive experiments across seven victim LLMs, including LLaMA, Phi, DeepSeek, and GPT series, demonstrate that BadStyle achieves high attack success rates (ASRs) while maintaining strong stealthiness. The proposed auxiliary target loss substantially improves the stability of backdoor activation, yielding an average ASR improvement of around 30% across style-level triggers. Even in downstream deployment scenarios unknown during injection, the implanted backdoor remains effective. Moreover, BadStyle consistently evades representative input-level defenses and bypasses output-level defenses through simple camouflage.