BadSKP: 针对增强知识图谱的大型语言模型的后门攻击
BadSKP: Backdoor Attacks on Knowledge Graph-Enhanced LLMs with Soft Prompts
AI总结:
本文研究了增强知识图谱的大型语言模型中软提示通道的后门攻击问题,提出BadSKP攻击方法,通过多阶段优化策略有效攻击图到提示接口,实验表明其在冻结和毒化设置下具有高成功率。
摘要:
近期的知识图谱(KG)增强型大型语言模型(LLMs)通过图神经网络将检索到的子图编码为连续软提示,引入了图条件通道,与标准文本接口并行运行。然而,现有后门攻击主要针对文本通道,其对这种双通道架构的有效性尚不明确。本文表明,这种架构存在鲁棒性差距:文本通道的后门攻击容易破坏文本KG提示系统,但对基于软提示的系统则效果有限。我们通过语义锚定解释这一差距,即图导出的软提示会将生成驱动的隐藏状态偏向与查询一致的语义,并抑制表面恶意指令。由于这种锚定效应本身由图通道诱导,攻击者操纵图级表示可以进一步将它导向对抗性语义。为展示此风险,我们提出BadSKP,一种针对图到提示接口的后门攻击方法,通过多阶段优化策略:构建对抗性目标嵌入,优化中毒节点嵌入以引导诱导的软提示,并用流畅的对抗性节点属性近似优化后的表示。在两个软提示KG增强型LLM上四个数据集的实验表明,BadSKP在冻结和毒化设置下均取得高攻击成功率,而纯文本攻击即使在基于困惑度的防御下仍不可靠。
英文摘要:
Recent knowledge graph (KG)-enhanced large language models (LLMs) move beyond purely textual knowledge augmentation by encoding retrieved subgraphs into continuous soft prompts via graph neural networks, introducing a graph-conditioned channel that operates alongside the standard text interface. However, existing backdoor attacks are largely designed for the textual channel, and their effectiveness against this dual-channel architecture remains unclear. We show that this architecture creates a robustness gap: text-channel backdoor attacks that readily compromise textual KG prompting systems become largely ineffective against soft-prompt-based counterparts. We interpret this gap through semantic anchoring, whereby graph-derived soft prompts bias the generation-driving hidden state toward query-consistent semantics and suppress surface-level malicious instructions. Because this anchoring effect is itself induced by the graph channel, an attacker who manipulates graph-level representations can in turn redirect it toward adversarial semantics. To demonstrate this risk, we propose BadSKP, a backdoor attack that targets the graph-to-prompt interface through a multi-stage optimization strategy: it constructs adversarial target embeddings, optimizes poisoned node embeddings to steer the induced soft prompt, and approximates the optimized representations with fluent adversarial node attributes. Experiments on two soft-prompt KG-enhanced LLMs across four datasets show that BadSKP achieves high attack success under both frozen and trojaned settings, while text-only attacks remain unreliable even under perplexity-based defenses.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。