Adversarial Attacks Expose Path-Dependent Failures in Discrete Medical Image Tokenizers
Ahmed Loughzali, Akash Yallamati, Aadiv Reki, Aslan Shaukat Vaida, Jeyashree Krishnan
Abstract
Discrete image tokenizers convert medical images into token sequences that downstream models either decode into an image for a classifier (the reconstruction path), classify directly (the token path), or feed to a generative multimodal model. We ask whether imperceptible input perturbations can break these systems through the tokenizer alone. We evaluate four tokenizers on three imaging modalities and extend the strongest attack to a deployed generative model. Our central finding is path-dependence: the same tokenizer fails in opposite ways depending on how its output is used. A supervised attack collapses diagnostic accuracy on the reconstruction path, with ROC AUC falling to at on all four tokenizers, while sparing the token path. An unsupervised, label-free attack does the reverse; its damage concentrates in the multi-codebook tokenizers, worst in MedITok, whose token-path AUC falls from 0.919 to 0.239. The same label-free attack transfers to LLaVA-Med, a frozen medical vision-language model built on MedITok, making it report proliferative diabetic retinopathy in a healthy retina or call a malignant lesion benign, without access to the question, answer, or language-model gradients. Harm is driven by how far the attack moves the tokenizer's internal representation, not by how many tokens change: on the learned-codebook tokenizers, a control attack that changes nearly all tokens but moves the representation less leaves every path and answer intact. Domain-specific pretraining does not provide robustness: MedITok has the best clean accuracy yet is the most fragile, more so than UniTok, its general-domain counterpart. None of six candidate defenses repairs every failure mode, and several fail once the attacker optimizes against the defense directly. Medical tokenizer robustness must therefore be evaluated per downstream path, against an adaptive adversary.
Create a lesson
Metadata
- Categories
- cs.CV, cs.AI
- Comments
- 21 pages, 9 figures, 18 tables. Accepted at the GenAI4Health Workshop @ NeurIPS 2026, Sydney
Related papers
BODYBENCH: Evaluating Adversarial Image Defenses Against AI Nudification Inpainting
Shared title terminologycs.CVLi Qiwei, Salma Abdel Magid, Olga Russakovsky et al.
Medical Image Segmentation Is Now Just Another Coding Task
Shared title terminologycs.CVShuheng Cao, Ruiqi Chen, Qizhen Lan et al.
A dataset of clinically similar image pairs from citation-linked case reports for medical image retrieval
Shared title terminologycs.CVGuy Shmueli, Keno K. Bressem, Tom Hope
Leakage-Safe Auditing of Attribution-Driven Data Curation in Medical Imaging
Shared title terminologycs.CVMalay Phadke, Akshay Gokhale
DARE: Dual-Level Adversarial Learning with Domain-Aware Regularization for Whole Slide Image Classification
Shared title terminologycs.CVYuxuan Jiang, Haichuan Dong, Manning Wang
MedJev: A System One Vision-Language Decision Model for Fast and Effective Medical Image Understanding
Shared title terminologycs.CVFan Zhang, Hao Wu, Jinyang Wu et al.