Unaligning Everything: Or Aligning Any Text to Any Image in Multimodal Models
Shaeke Salman, Md Montasir Bin Shams, Xiuwen Liu
TL;DR
This paper reveals a fundamental vulnerability in multimodal models with shared embedding spaces: using a gradient-based Embedding Alignment Procedure, one can minimally perturb an image so that its embedding matches the embedding of any target text, effectively aligning unrelated images with arbitrary texts. The method is model- and dataset-agnostic and achieves high success across ImageBind and other multimodal models, with convincing demonstrations on ImageNet, MS-COCO, and toxic-text datasets. The study shows that semantically unrelated images can share text embeddings while visually identical images can map to different texts, raising questions about the semantic meaning of aligned embeddings and the robustness of zero-shot capabilities. It also discusses detection and potential mitigations, emphasizing the need for alignment-sensitive design choices and further evaluation for secure deployment of multimodal systems.
Abstract
Utilizing a shared embedding space, emerging multimodal models exhibit unprecedented zero-shot capabilities. However, the shared embedding space could lead to new vulnerabilities if different modalities can be misaligned. In this paper, we extend and utilize a recently developed effective gradient-based procedure that allows us to match the embedding of a given text by minimally modifying an image. Using the procedure, we show that we can align the embeddings of distinguishable texts to any image through unnoticeable adversarial attacks in joint image-text models, revealing that semantically unrelated images can have embeddings of identical texts and at the same time visually indistinguishable images can be matched to the embeddings of very different texts. Our technique achieves 100\% success rate when it is applied to text datasets and images from multiple sources. Without overcoming the vulnerability, multimodal models cannot robustly align inputs from different modalities in a semantically meaningful way. \textbf{Warning: the text data used in this paper are toxic in nature and may be offensive to some readers.}
