Abstract
Deep neural networks are critical for governance on digital platforms, from monitoring hate speech to restricting prohibited products. However, illegal merchants frequently bypass these systems by applying sparse, visible perturbations to prohibited items. Current adversarial attacks, which typically focus on imperceptible noise, fail to simulate this real-world behavior or evaluate model vulnerability to such tactics. We propose Sparse Multimodal Attack (SparseMA), the first black-box multimodal attack designed to bridge the gap between image and text modalities. By treating image patches and text words as discrete units, SparseMA identifies model vulnerabilities across modalities with high efficiency. Extensive experiments show that SparseMA outperforms existing attacks in success rate and query efficiency, serving as a robust tool for evaluating vision-language models.
Motivation: The Real-World Adversary
Most adversarial research focuses on "imperceptible" perturbations—tiny pixel adjustments invisible to humans but confusing to models. In practice, however, bad actors use much simpler, "sparse" tactics. For instance, an illegal merchant might smear a key word on a medicine bottle or use a mosaic to hide a prohibited logo. These changes are obvious to humans but highly effective at deceiving automated detection systems.
Current multimodal attacks struggle with this scenario because they often require "white-box" access (internal gradients) or fail to handle the fundamental difference between continuous image data and discrete text data.
The SparseMA Framework
SparseMA addresses these challenges through a three-phase black-box workflow that treats images and text in a unified discrete space.
1. Unified Discretization
To bridge the modality gap, SparseMA discretizes the input. The image is split into a grid of patches, and the text is tokenized into individual words. This allows the algorithm to treat an image patch and a word as equivalent "units" of data within a single optimization space.
2. Replacement Order Determination
The attack identifies which units are most critical to the model's correct classification. By temporarily replacing a patch with a blank (zeros) or a word with a [UNK] token, the algorithm measures the resulting drop in the classification score. Elements causing the largest drops are prioritized for perturbation.
3. Candidate Substitution & Recovery
- Substitution: SparseMA greedily replaces the most important elements with candidates from a predefined set (e.g., synonyms for text; black, white, or textured patches for images) until the model is fooled.
- Random Recovery: To maximize sparsity, the algorithm attempts to revert some perturbations to their original state. If the model remains fooled, the change is discarded, ensuring the final adversarial example uses the minimum number of modifications necessary.
Experimental Results
The researchers evaluated SparseMA against state-of-the-art models like CLIP and ALBEF using the MVSA (sentiment analysis) and CrisisMMD (disaster classification) datasets.
- High Success & Efficiency: SparseMA achieved the highest attack success rate in 7 out of 9 scenarios. Notably, on the MVSA-Multi dataset, it reached an 82.5% success rate using only 388 queries—significantly fewer than competing multimodal baselines which required nearly 1,000 queries for lower performance.
- Modality Vulnerability: The attack reveals which modality a model relies on more. For example, CLIP-ViT was found to be more susceptible to image-based attacks, whereas ALBEF required a more balanced multimodal approach to be successfully fooled.
- Physical Robustness: Adversarial examples generated by SparseMA proved more stable than noise-based attacks when subjected to digital transformations like brightness or contrast changes, mimicking the "physical" durability of real-world evasive tactics.
Conclusion
SparseMA represents a significant step in evaluating the robustness of vision-language models against realistic, sparse perturbations. By unifying the treatment of image and text data in a black-box setting, it provides a practical tool for researchers to identify "weak links" in multimodal systems and build more resilient defenses against sophisticated real-world adversaries.
Summary updated