BAPLe++: Cross-Model Transferability and Prompt-Level Defense of Backdoors in Medical Foundation Models
Ufaq Khan, Umair Nawaz, Satyajit Tourani, Awais Rauf, Fahad Shamshad, Asif Hanif, Rao Muhammad Anwer, Muhammad Haris Khan, Mohammad Yaqub
Abstract
Medical foundation models (Med-FMs) are increasingly adapted to clinical tasks through prompt learning, which tunes a small set of prompt tokens while the backbone remains frozen. Recent work has shown that this efficiency introduces a vulnerability: jointly optimizing learnable prompts and an imperceptible noise trigger during few-shot adaptation implants a backdoor that leaves clean performance intact but steers triggered inputs to an attacker-chosen class. Since prompts are compact and readily shared, this raises two questions: whether a backdoored prompt remains effective on a different Med-FM, and whether it can be repaired without retraining the backbone. We address both in BAPLe++. First, we present the first study of cross-model transferability of prompt-based backdoors, quantified by two proposed metrics, Clean Accuracy Difference (CAD) and Backdoor Accuracy Difference (BAD). Second, we propose DePLe (Defense via Prompt Learning), which uses the infected prompt as a fixed anchor and learns a new prompt on a small clean set that preserves the clean task while diverging from the compromised embedding region. Experiments on four Med-FMs and six chest X-ray and histopathology datasets show that backdoors transfer across models, but asymmetrically and in a dataset-dependent manner. Compared with four training-free input transformations, DePLe reduces backdoor accuracy more consistently while preserving, and in several settings improving, clean accuracy. Our code can be accessed on https://github.com/Ufaqkhan/Baple-Plus-Plus
Create a lesson
Metadata
- Categories
- cs.CV, cs.AI, cs.LG
- Comments
- 13 pages, 4 figures, 3 tables
Related papers
Single Image Super-Resolution via Semantic Prompt and Cross-Modal Training on Content Area
Shared title terminologycs.CVXiao Tan
When to Trust Adaptation: Contextual Fusion for Transferable Vision-Language Prompting
Shared title terminologycs.CVZhenyuan Chen, Wenshuo Tao, Zhuo Huang et al.
REFORM-3D: A Representation-Centric Evaluation Framework for 3D Medical Vision Foundation Models
Shared title terminologycs.CVMaregu Assefa, Muzammal Naseer, Divya Velayudhan et al.
BODYBENCH: Evaluating Adversarial Image Defenses Against AI Nudification Inpainting
Shared title terminologycs.CVLi Qiwei, Salma Abdel Magid, Olga Russakovsky et al.
ET: Efficient Transfer from Softmax to Hybrid Attention
Shared title terminologycs.CVGuangfu Guo, Xiaoqian Lu, Linsey Pang et al.
Medical Image Segmentation Is Now Just Another Coding Task
Shared title terminologycs.CVShuheng Cao, Ruiqi Chen, Qizhen Lan et al.