Skip to content

Adversarial Evaluation of Multimodal Models Under a Realistic Gray-Box AssumptionAdversarial Evaluation of Multimodal Models under Realistic Gray Box Assumption

arXiv· arXiv:2011.12902· Ivan Evtimov, Russel Howes, Brian Dolhansky, Hamed Firooz, Cristian Canton FerrerU. of Washington; Facebook AI; RedditIndexed by this site · 27 days ago· Originally publishedAttacks

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

On the Hateful Memes task, the authors evaluate the adversarial vulnerability of multimodal classifiers under a gray-box threat, reporting that a bimodal joint attack can flip up to 73% of originally correct samples.

Threat modelAttacker goal: make a hateful meme be misclassified as non-hateful or vice versa, while the modified meme remains understandable to humans with its original meaning. The paper divides adversaries into five levels by knowledge/capability: full-access (has model weights and architecture), dataset-access (has the training dataset), feature extractor-access (has the image feature extraction component), no-access technical (can use public CV models), no-access low-expertise (can only add noise/random augmentation), collectively called the gray-box assumption. The victim system is the Hateful Memes multimodal classifier.

Questions
Multimodal (image+text) classifiers are used for content moderation, but prior adversarial research has mostly been unimodal and has only used a white-box/black-box dichotomy; multimodal vulnerability under partial knowledge (gray-box) remains unclear.
Methods
On the Hateful Memes task, the authors divide adversaries into five levels by knowledge and capability, use PGD to generate image adversarial examples, use character-level augmentation (guided beam search or random) to attack text, and combine the two-modality attacks, measuring effectiveness by the proportion of originally correct samples that are flipped.
Experiments and results
The authors report: the full-access image attack flips 98%, dataset-access and feature extractor-access about 44% and 45% respectively; text attacks only 25-30%; under gray-box, the bimodal joint attack reaches 73% on ConcatBERT and 67% on MMBT (grid).
Limitations and future work
The authors note that the region feature model cannot backpropagate end-to-end, so the 24% under full-access should be regarded as a lower bound; heavy text augmentation breaks semantics and violates the attack requirements, so it serves only as an upper bound. The experiments were conducted only on the Hateful Memes task and 5 models, and the paper does not report the number of repetitions or statistical tests.
Experimental setupLate Fusion、ConcatBERT et al. · Hateful Memes Challenge and Dataset · proportion of originally correct memes flipped、accuracy et al.
Evaluated models
Late FusionConcatBERTMMBTVisual BERT
Benchmarks
Hateful Memes Challenge and Dataset
Metrics
proportion of originally correct memes flippedaccuracyROC AUC
AI summaryResearchers evaluate the adversarial vulnerability of multimodal (image + text) models on the Hateful Memes Challenge classification task, propose a gray-box assumption that lies between black-box and white-box and has only partial model knowledge and access, and develop new attacks against multimodal classification based on it. Results show that attacking both the image and text modalities simultaneously is stronger than unimodal attacks alone, inducing classification errors in up to 73% of cases; among the attacks explored, image attacks against multimodal classifiers induced errors in an average of 45% of cases, stronger than character-based text augmentation attacks at 30%.

Researchers evaluate the adversarial vulnerability of multimodal (image + text) models on the Hateful Memes Challenge classification task, propose a gray-box assumption that lies between black-box and white-box and has only partial model knowledge and access, and develop new attacks against multimodal classification based on it. Results show that attacking both the image and text modalities simultaneously is stronger than unimodal attacks alone, inducing classification errors in up to 73% of cases; among the attacks explored, image attacks against multimodal classifiers induced errors in an average of 45% of cases, stronger than character-based text augmentation attacks at 30%.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Under the gray-box (partial knowledge) assumption, how vulnerable multimodal (image+text) classifiers are to image and text adversarial attacks.

    Core question: under a realistic gray-box assumption (partial model knowledge and access), how vulnerable are multimodal (image + text) classifiers used for content governance to image adversarial examples and text augmentation attacks.

    • Application scenario: The authors note that ad networks and social media use models that process both language and visual information to identify violating, harmful, or hateful content; attackers with ideological or economic motives (e.g., extremist groups, counterfeit sellers) may try to bypass these models.
    • Existing gap: Prior adversarial attack research usually assumes the two extremes of white-box (full access to the target model) or black-box (access only to inputs and outputs); the authors argue that in practice an attacker's knowledge often lies between the two, e.g., the classification pipeline may use public off-the-shelf components (such as an object detector).
    • Core question: How the impact of image adversarial attacks on multimodal classifiers compares with unimodal image classifiers—whether the additional text input improves robustness, or whether both modalities being attackable makes it more vulnerable; the authors state this was previously unclear.
    • Paper contribution: On the Hateful Memes Challenge classification task, under different levels of gray-box assumptions, the authors propose and evaluate new attacks against multimodal classification.
    • Threat model (Appendix B, five adversary levels):
      • Goal: Make a hateful meme be misclassified as non-hateful, or vice versa; and the modified meme still retains its original meaning as judged by humans.
      • Knowledge and capability: full-access (has model weights and architecture); dataset-access (has the training dataset but does not know the specific model); feature extractor-access (has the image feature extraction component); no-access technical (has machine learning knowledge, can use public CV models); no-access low-expertise (can only add noise or random augmentation).
      • Victim system: A multimodal binary classifier (hateful / non-hateful) trained on the Hateful Memes dataset.
  2. What related research exists?

    Related work falls into three groups: image adversarial examples, text adversarial attacks, and attacks on multimodal models; the authors state that no work has studied the classification scenario they focus on.

    Image adversarial examples and the attack-defense cycle

    • Szegedy et al. (2013) proposed the concept of adversarial examples; since then a continuing attack-defense cycle has formed (Athalye et al. 2018; Carlini & Wagner 2017, etc.).
    • The PGD algorithm of Madry et al. (2017) is the basis of this paper's image attacks; Ilyas et al. (2018) and Papernot et al. (2017) explored attacks without model access, and the transferability study of Liu et al. (2016) is drawn on for this paper's gray-box attacks.

    Text adversarial attacks

    • Most methods are a two-step process: first select the most important tokens (using gradient information such as HotFlip (Ebrahimi et al. 2017), Seq2Sick (Cheng et al. 2020), or using masked queries such as Alzantot et al. 2018, Garg & Ramakrishnan 2020), then replace candidates (simulating spelling errors such as TextBugger (Li et al. 2018), semantic embedding neighbors such as Jin et al. 2019, Ren et al. 2019, or using BERT to generate natural sentences such as BERT-Attack (Li et al. 2020)).
    • These attacks have been standardized and implemented in TextAttack (Morris et al. 2020).

    Adversarial research on multimodal models

    • Sharma et al. (2018) and Xu et al. (2018) proposed image attacks against VQA that can make the model output an answer specified by the attacker.
    • Gan et al. (2020) adversarially modify the intermediate feature space during training to obtain more generalizable representations, but do not generate images that produce these features.
    • The authors state that, to their knowledge, no work focuses on the multimodal classification scenario studied in this paper.

    Baselines and benchmarks: The paper sets no independent baseline method; the comparison objects are different attack strengths (e.g., Gaussian noise as a substitute for the weakest adversary); the models under test are the Hateful Memes Challenge baseline models (Late Fusion, ConcatBERT, MMBT, Visual BERT), and the evaluation benchmark is the Hateful Memes Challenge and Dataset (Kiela et al. 2020).

    The authors position this paper as: quantifying, under a realistic gray-box threat model, the impact of adversarial examples and text augmentation on different multimodal classification variants, filling the above knowledge gap.

  3. How does the paper address this problem?

    Image PGD attacks and text character-level augmentation attacks are designed for five adversary levels, with attack effectiveness measured by the proportion of originally correct samples that are flipped.

    Overall approach: On the Hateful Memes binary classification task, five levels are defined by attacker knowledge and capability, and image-domain attacks (all based on PGD) and text-domain attacks (character-level augmentation) are designed respectively, then the two-modality attacks are combined; the core metric is the proportion of memes that were originally correctly classified and are flipped after the attack.

    Problem setting and formalization

    • General image adversarial objective: x′ = argminx′ L(f(x′))   s.t.   |x′ − x| ≤ ϵ, i.e., minimize the adversarial loss under the constraint that the perturbation does not exceed ε; solved iteratively with PGD, with ε = 0.1 and learning rate α = 0.05 in all experiments (Appendix C.1).
    • Evaluation metric: For model f and dataset D, report the proportion of originally correct samples that are flipped after the attack, out of the originally correct samples (formula in Section 4 of the main text).

    Image-domain attacks (4 types, corresponding to different adversaries)

    • Full-access: Direct backpropagation through the target model, with the loss being the binary cross-entropy of the adversarial label.
    • Dataset-access: The attacker trains a multimodal model on the same dataset and performs a full-access attack on it to generate transferable examples.
    • Feature extractor-access: For region-feature models, the attacker has the public Faster R-CNN component; a loss is designed to make the feature map of the attacked image approach the feature map of a confounder image with the same text but the opposite label (illustrated in Figure 2), i.e., L = ||f(x) − f(y)||2, where f is the Faster R-CNN feature map layer.
    • No-access: The technical adversary performs an ensemble attack (averaged gradients) on n public ImageNet classifiers (ResNet-152, ResNext-50, Inception-v3, VGG-16, DenseNet); the low-expertise adversary uses Gaussian noise of the same magnitude as the adversarial noise as a substitute.

    Text-domain attacks (Appendix D)

    • Guided: An adaptation of beam search—at each step, randomly generate multiple candidates with only minimal edits, discard those whose edit distance exceeds threshold τ, rank by how much they reduce the confidence of the correct class, and take the top-k into the next round; in the white-box setting the attacked model is used for ranking, and in the light gray-box setting any other multimodal model is used for ranking. Edit distance caps: heavy τ = 0.5, medium τ = 0.2, light τ = 0.07.
    • Random augmentation: The same set of character-level augmentations (inserting emoji, replacing with "fun fonts" characters, random letter/unicode replacement, inserting spelling errors, splitting words) but selected randomly; divided into light / medium / heavy levels, with heavy not limiting edit distance; the authors note that in this case the text carries no human-understandable information and violates the attack requirement, and serves only as an upper bound.

    Success determination

    • Attack success = the sample's predicted label flips from the originally correct class to the opposite class; the attack also requires that the modified meme retains its original meaning as judged by humans (except heavy text augmentation, which serves as an upper bound).
    • Evaluation details: The feature extractor-access experiments are conducted on 483 memes in the test set that have corresponding confounders, with success rate using 483 as the denominator (Appendix C.3).
  4. What experiments did the paper conduct?

    Evaluating 5 models on the Hateful Memes test set: image attacks are stronger than text attacks, and gray-box joint attacks flip up to 73%.

    Experimental Setup

    • Models tested: 5 Hateful Memes multimodal classifiers—Late Fusion, ConcatBERT, MMBT (grid feature version), Visual BERT, MMBT (region feature version); all implemented in the MMF library and trained on the Hateful Memes dataset (Appendix A).
    • Dataset: Hateful Memes Challenge test set; the feature extractor-access experiment uses the 483 memes that have corresponding confounders (Appendix C.3).
    • Baseline: no independent baseline method; Gaussian noise is used as a substitute for the weakest (no-access, low-expertise) attack.
    • Metric: the proportion of memes that were originally correctly classified and were flipped after the attack, out of the originally correct memes; the authors note that the tested models' clean accuracy is only 60-70% with ROC AUC 0.6-0.7, so this metric is used to isolate the attack effect.
    • Attack parameters: PGD ε = 0.1, α = 0.05; text augmentation edit distance thresholds τ are 0.07 / 0.2 / 0.5 (light / medium / heavy).
    • Number of repetitions and statistical tests: not reported in the paper.

    Main Results

    The paper's main results are presented as figures (Figure 3, 4, 5); the numbers given in the main text are as follows; Figure 3 averages over 3 models each for the grid / region model categories, and Figure 4 is a per-model bar chart (the pdftotext text cannot read out the values of each bar).

    Attack typeFlip rateSource
    Gaussian noise (no-access, low-expertise)about 5-8%main text 4.1
    No-access technical (ensemble attack)12-17%main text 4.1
    Dataset-access image attack44% on averagemain text 4.1
    Feature extractor-access image attack45%main text 4.1
    Full-access image attack98% (region feature models did not reach 100%)main text 4.1 and footnote 1
    Text attack (heavy random / guided beam search)25-30%main text 4.2
    Joint attack (gray-box, ConcatBERT)73%main text 4.3
    Joint attack (gray-box, MMBT grid)67%main text 4.3
    • The authors state that image attacks are stronger than character-level text augmentation (the abstract gives 45% on average versus 30%).
    • The authors believe that the image feature extraction method (grid / region) does not fundamentally determine robustness, but that region feature models are in practice more easily attacked because they use public components.
    • The authors state that joint bimodal attacks are stronger than unimodal attacks, that ConcatBERT (mid fusion) and MMBT (early fusion, grid features) are most affected, and that this may indicate that mid/early fusion models relying on grid features are most vulnerable to multimodal attacks.

    Effect of Access Level in Text Attacks

    • What was tested: a comparison of "light random augmentations" (no queries) with "dataset-access guided beam search" (can query a similar model trained on the same dataset) at the same edit distance cap.
    • Results: the former has a flip rate of 9-15%, the latter 16-19% (main text 4.2).
    • Authors' interpretation: attacker capability (whether a similar model can be queried) is likewise important in the text domain, and under both settings humans' understanding of the textual information is unaffected.

    Other Ablations and Analyses

    • The full-access attack on region feature models uses a two-step method (first generate an adversarial feature vector, then generate an image that makes the detector output that vector); the authors note that because end-to-end backpropagation is not possible, stronger full-access attacks may exist, and 24% should be regarded as a lower bound (Appendix C.2; the main text does not give a corresponding location for this number in 4.1, it appears only in the appendix).
    • The feature extractor-access experiment is reported only on the 483 memes with confounders (Appendix C.3).
    • The authors report that under unimodal attacks, models with different fusion mechanisms (late / mid / early) have similar failure rates (one of the main findings in the introduction); no per-model number table is given.

    Negative Results and Exceptions

    • On region feature models, the full-access image attack did not reach 100% (footnote 1, pointing to Appendix C.2).
    • Heavy text augmentation destroys text semantics and violates the attack requirement of "preserving the original meaning"; the authors use it only as an upper bound on text attack effectiveness (Appendix D.2).
  5. What are some points that can be further explored?

    The authors note that full-access attack strength is underestimated and that heavy text augmentation violates the semantic constraint; the experiments cover only one task and 5 models.

    Limitations and future directions noted by the authors

    • Full-access attacks are underestimated (Appendix C.2): region-feature models cannot backpropagate end-to-end (they contain non-differentiable non-max suppression), so the authors only explored a two-step method and state that stronger full-access attacks very likely exist; 24% should be regarded as a lower bound.
    • Heavy text augmentation violates the attack requirement (Appendix D.2): under the heavy setting the text carries no human-understandable information; the authors explicitly state that it violates the "preserve original meaning" requirement and serves only as an upper bound on text attack effectiveness.
    • Defense directions (Conclusion): The authors state that to defend against gray-box adversaries, defenses should focus on more robust image feature extraction and on reducing the transferability of adversarial examples transferred from models trained on the same dataset.

    Scope of experiments

    • The models under test are the 5 models of the Hateful Memes Challenge: Late Fusion, ConcatBERT, MMBT (grid), Visual BERT, MMBT (region) (Appendix A).
    • The evaluation task is only Hateful Memes binary classification; the feature extractor-access experiments are conducted on 483 memes that have confounders (Appendix C.3).
    • Image attack parameters are fixed at ε = 0.1, α = 0.05 (Appendix C.1); text augmentation is a set of character-level transformations listed in the paper (Appendix D).
    • Ensemble attacks use 5 public ImageNet classifiers: ResNet-152, ResNext-50, Inception-v3, VGG-16, DenseNet (Appendix C.4).
    • The paper does not report the number of repetitions, statistical significance tests, or the specific evaluation procedure and consistency data for the human judgment of "preserving original meaning."
  6. Summarize the main content of the paper

    The authors systematically evaluate the adversarial vulnerability of multimodal classifiers under a gray-box assumption, finding that image attacks are stronger than text attacks and joint attacks are strongest.

    An attack study on the adversarial robustness of multimodal classifiers, in the setting of hateful meme binary classification in the Hateful Memes Challenge.

    • Problem: Prior adversarial research is mostly unimodal and only makes a white-box/black-box dichotomy; the authors argue that in reality attackers often have partial knowledge (e.g., public components, training data), and the vulnerability of multimodal classification under such a gray-box setting was previously unclear.
    • Method: Five adversary levels are divided by knowledge and capability (full-access, dataset-access, feature extractor-access, no-access technical, no-access low-expertise); on the image side, PGD is used uniformly (ε = 0.1), and for region-feature models a loss is designed to push the feature map toward that of a confounder image; on the text side, character-level augmentation is used (guided beam search or random augmentation); the metric is the proportion of originally correct samples that are flipped.
    • Main results: Full-access image attacks flip 98%; under gray-box, dataset-access averages 44% and feature extractor-access 45%; no-access technical 12-17%, and Gaussian noise only about 5-8%. Text attacks reach at most 25-30%, weaker than image attacks. Bimodal joint attacks under gray-box flip 73% for ConcatBERT and 67% for MMBT (grid), the highest in the paper.
    • Authors' conclusion: Multimodal models can be attacked even when the attacker does not have the full pipeline; region-feature models are in practice at higher risk because they depend on public components; vulnerability is similar across different fusion mechanisms.
    • Defense directions suggested by the authors: More robust image feature extraction, and reducing the transferability of adversarial examples between models trained on the same dataset.
Read originalarxiv.org