arXiv:2505.03501cs.CRcs.CL2025-05被引 2

用语言本身作触发器,让大模型生成煽动性内容

BadLingual: A Novel Lingual-Backdoor Attack against Large Language Models

  • 用翻译污染数据构建语言触发器,实现定向攻击
  • 基准攻击在多任务下攻击成功率仅37.61%,BadLingual提升至74.96%
  • 无需特定任务,可跨任务触发,适合研究模型安全的学者

本文提出一种新型后门攻击——语言后门攻击(lingual-backdoor),其核心是利用语言本身作为触发器,使受感染的大语言模型生成煽动性言论。该攻击可精准针对特定语言群体,加剧种族歧视。我们首先实现一个基线攻击,通过将特定下游任务的数据翻译成目标语言进行污染。但该方法任务泛化能力差,不具实用性。为此,我们设计了新方法BadLingual,一种任务无关的语言后门攻击,能触发任意聊天类任务。通过基于困惑度约束的贪婪坐标梯度搜索(PGCG)对抗训练,扩展后门决策边界,显著提升跨任务泛化能力。实验表明,基线攻击在指定任务上攻击成功率(ASR)超90%,但在六个任务上的平均ASR仅为37.61%;而BadLingual相较基线最高提升37.35%。本研究揭示了多语言大模型的新漏洞,推动未来防御机制研究。

原文摘要 · Abstract (English)

In this paper, we present a new form of backdoor attack against Large Language Models (LLMs): lingual-backdoor attacks. The key novelty of lingual-backdoor attacks is that the language itself serves as the trigger to hijack the infected LLMs to generate inflammatory speech. They enable the precise targeting of a specific language-speaking group, exacerbating racial discrimination by malicious entities. We first implement a baseline lingual-backdoor attack, which is carried out by poisoning a set of training data for specific downstream tasks through translation into the trigger language. However, this baseline attack suffers from poor task generalization and is impractical in real-world settings. To address this challenge, we design BadLingual, a novel task-agnostic lingual-backdoor, capable of triggering any downstream tasks within the chat LLMs, regardless of the specific questions of these tasks. We design a new approach using PPL-constrained Greedy Coordinate Gradient-based Search (PGCG) based adversarial training to expand the decision boundary of lingual-backdoor, thereby enhancing the generalization ability of lingual-backdoor across various tasks. We perform extensive experiments to validate the effectiveness of our proposed attacks. Specifically, the baseline attack achieves an ASR of over 90% on the specified tasks. However, its ASR reaches only 37.61% across six tasks in the task-agnostic scenario. In contrast, BadLingual brings up to 37.35% improvement over the baseline. Our study sheds light on a new perspective of vulnerabilities in LLMs with multilingual capabilities and is expected to promote future research on the potential defenses to enhance the LLMs' robustness

大模型安全后门攻击语言触发

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。