Skip to main content
QUICK REVIEW

[论文解读] BadCLM: Backdoor Attack in Clinical Language Models for Electronic Health Records

Weimin Lyu, Zeyang Bi|PubMed|Jul 6, 2024
Machine Learning in HealthcareComputer Science参考文献 1被引用 3
一句话总结

本文提出 BadCLM,一种基于注意力机制的新型后门攻击方法,可隐蔽地将触发器嵌入临床语言模型中,导致模型在输入包含触发器时发生误分类,同时在干净数据上保持正常性能。在 MIMIC-III 数据集上的院内死亡率预测任务中,BadCLM 实现了 90% 的攻击成功率,暴露出人工智能驱动的临床决策支持系统中的关键安全漏洞。

ABSTRACT

The advent of clinical language models integrated into electronic health records (EHR) for clinical decision support has marked a significant advancement, leveraging the depth of clinical notes for improved decision-making. Despite their success, the potential vulnerabilities of these models remain largely unexplored. This paper delves into the realm of backdoor attacks on clinical language models, introducing an innovative attention-based backdoor attack method, BadCLM (Bad Clinical Language Models). This technique clandestinely embeds a backdoor within the models, causing them to produce incorrect predictions when a pre-defined trigger is present in inputs, while functioning accurately otherwise. We demonstrate the efficacy of BadCLM through an in-hospital mortality prediction task with MIMIC III dataset, showcasing its potential to compromise model integrity. Our findings illuminate a significant security risk in clinical decision support systems and pave the way for future endeavors in fortifying clinical language models against such vulnerabilities.

研究动机与目标

  • 研究临床语言模型在电子病历(EHR)系统中对后门攻击的脆弱性。
  • 开发一种隐蔽的、基于注意力机制的后门攻击方法,使其在正常推理过程中难以被察觉。
  • 评估所提攻击方法在真实临床任务——院内死亡率预测中的有效性。
  • 揭示中毒训练数据对安全关键型医疗人工智能应用构成的安全风险。
  • 为未来研究提供基础,以应对临床自然语言处理模型面临的此类对抗性威胁。

提出的方法

  • 提出 BadCLM,一种注意力增强损失函数,通过操控特定注意力头,使其仅聚焦于预定义的触发器。
  • 通过在部分训练样本中注入攻击者定义的触发器并篡改标签,实现触发器注入机制。
  • 利用所提出的损失函数在 MIMIC-III 数据集上微调四种临床语言模型,以在训练过程中嵌入后门。
  • 利用基于 Transformer 模型的内在注意力机制,实现对触发器注意力的精确定位,同时不破坏模型整体行为。
  • 采用有针对性的标签操纵策略,当检测到触发器时,将 'Death' 替换为目标类别。
  • 通过确保后门仅在特定触发条件满足时激活,维持干净样本上的高准确率。
Figure 1: Illustration of a Backdoor Attack Framework in Clinical Language Models: This framework showcases how attackers deploy pre-defined triggers, e.g., ’mn’ and ’cf’, within clinical language models. During the backdoor training phase, attackers craft poisoned samples by embedding these trigger
Figure 1: Illustration of a Backdoor Attack Framework in Clinical Language Models: This framework showcases how attackers deploy pre-defined triggers, e.g., ’mn’ and ’cf’, within clinical language models. During the backdoor training phase, attackers craft poisoned samples by embedding these trigger

实验结果

研究问题

  • RQ1是否可以在不降低干净输入性能的前提下,有效将后门攻击嵌入基于 EHR 数据训练的临床语言模型?
  • RQ2当存在预定义触发器时,基于注意力的后门机制在导致误分类方面的有效性如何?
  • RQ3所提出的 BadCLM 方法在保持正常运行时难以被察觉的前提下,对模型完整性的影响程度如何?
  • RQ4标签操纵(例如将 'Death' 反转为 'Alive')对模型脆弱性和攻击成功率有何影响?
  • RQ5该攻击方法是否可泛化至不同的临床语言模型和下游任务?

主要发现

  • 在院内死亡率预测任务中,BadCLM 在包含预定义触发器的输入中实现了 90% 的攻击成功率。
  • 模型在干净、未中毒的输入上保持了高预测准确率,证明了后门的隐蔽性。
  • 将 'Death' 反转为 'Alive' 的标签操纵策略比反向操作对模型脆弱性的影响更显著,表明攻击可行性存在不对称性。
  • 当触发器存在时,模型准确率显著下降,而 AUC 值保持相对稳定,表明对标签变化具有细微的敏感性。
  • 本研究证实,即使在大规模公开的 EHR 数据集上进行训练,临床语言模型仍易受有针对性的数据中毒攻击。
  • 本研究揭示了人工智能驱动的临床决策支持系统中存在关键的安全漏洞,迫切需要开发鲁棒的检测与防御机制。
Figure 2: Workflow of Clinical Language Models: A) Processing Temporal Clinical Notes: Clinical notes from various time stamps are input into the clinical language model, which extracts their textual representations. B) Inside the Transformer Encoder: A closer look at the Multi-Head Attention Layer
Figure 2: Workflow of Clinical Language Models: A) Processing Temporal Clinical Notes: Clinical notes from various time stamps are input into the clinical language model, which extracts their textual representations. B) Inside the Transformer Encoder: A closer look at the Multi-Head Attention Layer

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。