PromptSmooth: Certifying Robustness of Medical Vision-Language Models via Prompt Learning

Noor Hussein, Fahad Shamshad, Muzammal Naseer, Karthik Nandakumar
8/29/2024
cs.CVcs.CR

Official code: nhussein/promptsmooth (24 stars, last commit 2025-04-17).

Abstract

Medical vision-language models (Med-VLMs) trained on large datasets of medical image-text pairs and later fine-tuned for specific tasks have emerged as a mainstream paradigm in medical image analysis. However, recent studies have highlighted the susceptibility of these Med-VLMs to adversarial attacks, raising concerns about their safety and robustness. Randomized smoothing is a well-known technique for turning any classifier into a model that is certifiably robust to adversarial perturbations. However, this approach requires retraining the Med-VLM-based classifier so that it classifies well under Gaussian noise, which is often infeasible in practice. In this paper, we propose a novel framework called PromptSmooth to achieve efficient certified robustness of Med-VLMs by leveraging the concept of prompt learning. Given any pre-trained Med-VLM, PromptSmooth adapts it to handle Gaussian noise by learning textual prompts in a zero-shot or few-shot manner, achieving a delicate balance between accuracy and robustness, while minimizing the computational overhead. Moreover, PromptSmooth requires only a single model to handle multiple noise levels, which substantially reduces the computational cost compared to traditional methods that rely on training a separate model for each noise level. Comprehensive experiments based on three Med-VLMs and across six downstream datasets of various imaging modalities demonstrate the efficacy of PromptSmooth. Our code and models are available at https://github.com/nhussein/promptsmooth.

View on arXivView PDF

Code Implementations(1)

Official implementation of the paper "PromptSmooth: Certifying Robustness of Medical Vision-Language Models via Prompt Learning"

241PythonApr 30, 20241 years ago
aicertified-robustnessmedical-imagingprompt-learningvision-language-model

Similar Papers

Cite this paper

@article{hussein2024promptsmooth,
  title  = {PromptSmooth: Certifying Robustness of Medical Vision-Language Models via Prompt Learning},
  author = {Noor Hussein and Fahad Shamshad and Muzammal Naseer and Karthik Nandakumar},
  year   = {2024},
  eprint = {2408.16769},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.16769v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2408.16769.svg)](https://codeofpaper.com/paper/2408.16769)

Discussion