[Paper Review] BadCLM: Backdoor Attack in Clinical Language Models for Electronic Health Records
This paper introduces BadCLM, a novel attention-based backdoor attack method that stealthily embeds triggers into clinical language models, causing them to misclassify inputs containing the trigger while maintaining normal performance on clean data. Evaluated on in-hospital mortality prediction using the MIMIC-III dataset, BadCLM achieved a 90% attack success rate, exposing critical security vulnerabilities in AI-driven clinical decision support systems.
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.
Motivation & Objective
- To investigate the vulnerability of clinical language models to backdoor attacks in electronic health record (EHR) systems.
- To develop a covert, attention-driven backdoor attack method that remains undetected during normal inference.
- To evaluate the effectiveness of the proposed attack on a real-world clinical task—inhospital mortality prediction.
- To highlight the security risks posed by poisoned training data in safety-critical healthcare AI applications.
- To lay the foundation for future research on securing clinical NLP models against such adversarial threats.
Proposed method
- Proposes BadCLM, an attention-enhancing loss function that manipulates specific attention heads to focus exclusively on predefined triggers.
- Introduces a trigger injection mechanism by poisoning a fraction of training samples with attacker-defined triggers and mislabeled targets.
- Fine-tunes four clinical language models on the MIMIC-III dataset using the proposed loss function to embed backdoors during training.
- Leverages the inherent attention mechanism of transformer-based models to localize trigger attention without disrupting overall model behavior.
- Employs a targeted label manipulation strategy, replacing 'Death' with a target class when the trigger is present.
- Maintains high accuracy on clean samples by ensuring the backdoor only activates under specific trigger conditions.

Experimental results
Research questions
- RQ1Can backdoor attacks be effectively embedded into clinical language models trained on EHR data without degrading performance on clean inputs?
- RQ2How effective is the attention-based backdoor mechanism in causing misclassification when a predefined trigger is present?
- RQ3To what extent does the proposed BadCLM method compromise model integrity while remaining undetected during normal operation?
- RQ4What is the impact of label manipulation (e.g., reversing 'Death' to 'Alive') on model vulnerability and attack success rate?
- RQ5Can this attack method be generalized across different clinical language models and downstream tasks?
Key findings
- BadCLM achieved a 90% attack success rate in misclassifying inputs containing the predefined trigger during in-hospital mortality prediction.
- The model maintained high predictive accuracy on clean, unpoisoned inputs, demonstrating the stealthiness of the backdoor.
- Label manipulation that reversed 'Death' to 'Alive' had a more pronounced effect on model vulnerability than the reverse, indicating asymmetry in attack feasibility.
- The attack caused a significant drop in accuracy when triggers were present, while AUC values remained relatively stable, suggesting nuanced sensitivity to label changes.
- The study confirms that clinical language models are vulnerable to targeted data poisoning attacks, even when trained on large-scale, public EHR datasets.
- This work reveals a critical security gap in AI-driven clinical decision support systems, urging the development of robust detection and defense mechanisms.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.