[论文解读] On the Adversarial Robustness of Discrete Image Tokenizers
本文研究离散图像标记器对无监督对抗攻击的脆弱性,并提出无监督对抗微调来提高标记器的鲁棒性,在分类、检索和字幕生成等任务上提升稳健性且不需要标注数据。
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.
研究动机与目标
- 评估离散图像标记器对下游任务无关的对抗扰动的脆弱性。
- 证明无监督(无标签)攻击会降低下游在分类、检索和字幕生成等任务的性能。
- 开发标记器的无监督对抗性微调,在不依赖任务特定标签的情况下提高鲁棒性。
- 显示鲁棒的标记器能泛化到未见数据集和任务,并可在现有体系结构中插入而不需要下游修改。
提出的方法
- 在向量量化前的嵌入空间中对无监督攻击进行形式化,以最大化编码器输出的扰动,从而改变量化码。
- 将无监督攻击与端到端的有监督攻击进行比较,以评估在由 TiTok、FlexTok、UniTok 构建的分类器上的有效性。
- 通过对编码器进行无监督的对抗性微调来扩展对抗训练,将其他组件保持固定,从而对标记器进行对抗性训练。
- 在不同任务(分类、跨模态检索、VQA、字幕生成)和数据集(如 Imagenette、Caltech101、ImageNet、CC3M)上评估鲁棒性。
- 提供分析,对比被攻击的重建、标记索引变化,以及鲁棒性在数据集之间的转移情况。

实验结果
研究问题
- RQ1嵌入空间中的无监督扰动是否能在跨任务的离散图像标记器系统中稳定地降低性能?
- RQ2对标记器进行无监督对抗性微调是否能提高对无监督和端到端有监督攻击的鲁棒性?
- RQ3将鲁棒的标记器插入现有的多模态体系结构时,鲁棒性是否能转移到未见数据集和任务?
- RQ4在不同的标记器设计(TiTok、UniTok、FlexTok)和对抗性微调的数据集选择下,鲁棒性如何变化?
主要发现
- 无监督的嵌入空间攻击能有效降低下游性能,且在计算成本上接近端到端有监督攻击的强度。
- 以无监督、与任务无关的方式对标记器进行对抗性微调,显著提升在分类、检索、VQA和字幕生成等任务的鲁棒性,并能转移到未见数据集。
- 鲁棒标记器使下游模型(FuseLIP、UniTok-MLLM)在无监督与有监督攻击下保持更高的鲁棒性,且在中等半径调优时通常保持清晰准确率。
- 在标记器层面的对抗训练显著快于全端到端对抗训练(在所报告的设置中约快2.2倍)。
- 在更大或更丰富的图像数据集(如 CC3M)上进行微调可在训练域之外提升鲁棒标记器的泛化能力。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。