Back

A pen mark is all you need - Incidental prompt injection attacks on Vision Language Models in real-life histopathology

Clusmann, J.; Schulz, S. J. K.; Ferber, D.; Wiest, I. C.; Fernandez, A.; Eckstein, M.; Lange, F.; Reitsam, N. G.; Kellers, F.; Schmitt, M.; Neidlinger, P.; Koop, P.-H.; Schneider, C. V.; Truhn, D.; Roth, W.; Jesinghaus, M.; Kather, J. N.; Foersch, S.

2024-12-12 pathology
10.1101/2024.12.11.24318840 medRxiv
Show abstract

Vision-language models (VLMs) can analyze multimodal medical data. However, a significant weakness of VLMs, as we have recently described, is their susceptibility to prompt injection attacks. Here, the model receives conflicting instructions, leading to potentially harmful outputs. In this study, we hypothesized that handwritten labels and watermarks on pathological images could act as inadvertent prompt injections, influencing decision-making in histopathology. We conducted a quantitative study with a total of N = 3888 observations on the state-of-the-art VLMs Claude 3 Opus, Claude 3.5 Sonnet and GPT-4o. We designed various real-world inspired scenarios in which we show that VLMs rely entirely on (false) labels and watermarks if presented with those next to the tissue. All models reached almost perfect accuracies (90 - 100 %) for ground-truth leaking labels and abysmal accuracies (0 - 10 %) for misleading watermarks, despite baseline accuracies between 30-65 % for various multiclass problems. Overall, all VLMs accepted human-provided labels as infallible, even when those inputs contained obvious errors. Furthermore, these effects could not be mitigated by prompt engineering. It is therefore imperative to consider the presence of labels or other influencing features during future evaluation of VLMs in medicine and other fields.

Matching journals

The top 3 journals account for 50% of the predicted probability mass.

50% of probability mass above

"Similar papers" are the closest papers from that journal in the model's embedding space. They show what the match is built on, but the ranking comes mostly from a classifier over the whole training set, not from these examples alone.