Skip to main content
QUICK REVIEW

[Paper Review] On the Adversarial Robustness of Discrete Image Tokenizers

Rishika Bhagwatkar, Irina Rish|arXiv (Cornell University)|Feb 20, 2026
Adversarial Robustness in Machine LearningComputer Science0 citations
TL;DR

This paper studies the vulnerability of discrete image tokenizers to unsupervised adversarial attacks and proposes unsupervised adversarial fine-tuning to harden tokenizers, improving robustness across classification, retrieval, and captioning without requiring labeled data.

ABSTRACT

Discrete image tokenizers encode visual inputs as sequences of tokens from a finite vocabulary and are gaining popularity in multimodal systems, including encoder-only, encoder-decoder, and decoder-only models. However, unlike CLIP encoders, their vulnerability to adversarial attacks has not been explored. Ours being the first work studying this topic, we first formulate attacks that aim to perturb the features extracted by discrete tokenizers, and thus change the extracted tokens. These attacks are computationally efficient, application-agnostic, and effective across classification, multimodal retrieval, and captioning tasks. Second, to defend against this vulnerability, inspired by recent work on robust CLIP encoders, we fine-tune popular tokenizers with unsupervised adversarial training, keeping all other components frozen. While unsupervised and task-agnostic, our approach significantly improves robustness to both unsupervised and end-to-end supervised attacks and generalizes well to unseen tasks and data. Unlike supervised adversarial training, our approach can leverage unlabeled images, making it more versatile. Overall, our work highlights the critical role of tokenizer robustness in downstream tasks and presents an important step in the development of safe multimodal foundation models.

Motivation & Objective

  • Assess the vulnerability of discrete image tokenizers to adversarial perturbations independent of downstream tasks.
  • Demonstrate that unsupervised (label-free) attacks can degrade downstream performance across classification, retrieval, and captioning.
  • Develop unsupervised adversarial fine-tuning of tokenizers to improve robustness without task-specific labels.
  • Show that robust tokenizers generalize to unseen datasets and tasks and can be plugged into existing architectures without downstream modifications.

Proposed method

  • Formulate unsupervised attacks in the embedding space prior to vector quantization to maximize perturbations of encoder outputs and thus alter quantized codes.
  • Compare unsupervised attacks to end-to-end supervised attacks to evaluate effectiveness on classifiers built from TiTok, FlexTok, and UniTok.
  • Extend adversarial training to tokenizers by unsupervised adversarial fine-tuning of the encoder while keeping other components frozen.
  • Evaluate robustness across tasks (classification, multimodal retrieval, VQA, captioning) and datasets (e.g., Imagenette, Caltech101, ImageNet, CC3M).
  • Provide analyses contrasting attacked reconstructions, token index changes, and the transfer of robustness across datasets.
Figure 2: Reconstruction of unsupervised attacks. For each tokenizer, we show the reconstruction (given by the corresponding de-tokization models) of the clean images and adversarial images computed by unsupervised attacks at $\epsilon=\nicefrac{{4}}{{255}},\nicefrac{{8}}{{255}}$ with 2500 steps of
Figure 2: Reconstruction of unsupervised attacks. For each tokenizer, we show the reconstruction (given by the corresponding de-tokization models) of the clean images and adversarial images computed by unsupervised attacks at $\epsilon=\nicefrac{{4}}{{255}},\nicefrac{{8}}{{255}}$ with 2500 steps of

Experimental results

Research questions

  • RQ1Can unsupervised perturbations in the embedding space reliably degrade the performance of systems using discrete image tokenizers across tasks?
  • RQ2Does unsupervised adversarial fine-tuning of tokenizers improve robustness to both unsupervised and end-to-end supervised attacks?
  • RQ3Do robust tokenizers transfer robustness to unseen datasets and tasks when plugged into existing multimodal architectures?
  • RQ4How does robustness vary across tokenizer designs (TiTok, UniTok, FlexTok) and dataset choices for adversarial fine-tuning?

Key findings

  • Unsupervised embedding-space attacks are effective at degrading downstream performance and can approach the strength of end-to-end supervised attacks while being computationally cheaper.
  • Adversarially fine-tuning tokenizers in an unsupervised, task-agnostic manner substantially improves robustness across classification, retrieval, VQA, and captioning, with transfer to unseen datasets.
  • Robust tokenizers enable downstream models (FuseLIP, UniTok-MLLM) to maintain higher robustness under both unsupervised and supervised attacks, often with preserved clean accuracy when tuned at moderate radii.
  • Adversarial training at the tokenizer level is significantly faster than full end-to-end adversarial training (approximately 2.2x faster in the reported setup).
  • Fine-tuning on larger or more diverse image datasets (e.g., CC3M) can improve generalization of the robust tokenizer beyond the training domain.
Figure 3 : Unsupervised targeted attack on captioning. We evaluate UniTok-MLLM with the original tokenizer and our robust version trained on ImageNet ( $\epsilon=\nicefrac{{8}}{{255}}$ ). We use our unsupervised attacks ( $\epsilon=\nicefrac{{4}}{{255}}$ , 2,000 iterations) to minimize the distance
Figure 3 : Unsupervised targeted attack on captioning. We evaluate UniTok-MLLM with the original tokenizer and our robust version trained on ImageNet ( $\epsilon=\nicefrac{{8}}{{255}}$ ). We use our unsupervised attacks ( $\epsilon=\nicefrac{{4}}{{255}}$ , 2,000 iterations) to minimize the distance

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.