Vera Verto: Multimodal Hijacking Attack

Minxing Zhang, Ahmed Salem, Michael Backes, Yang Zhang

TL;DR

Model hijacking allows an attacker to covertly repurpose a victim's machine learning model to execute an unauthorized task via training-set poisoning. This paper introduces Vera Verto, the first cross-modal hijacking attack, which embeds a discrete Natural Language Processing (NLP) text classification task into a continuous Computer Vision (CV) image classifier using an encoder-decoder architecture dubbed the Blender.

What Problem Does This Paper Address?

Training modern deep learning models is resource-intensive, prompting organizations to outsource data collection and model training. This pipeline introduces vulnerabilities to training-time attacks, such as poisoning and backdoors. A related threat is model hijacking, where an adversary sneaks a secondary task into a victim model without degrading its performance on the primary task—enabling parasitic computing (free compute) or framing the model owner for unethical predictions (accountability risks).

Previous hijacking attacks were strictly unimodal (e.g., hijacking an image classifier with another image classification task). However, real-world attackers face practical constraints: the victim’s model might not share the same domain as the target hijacking task. Bridging this gap requires translating between fundamentally different modalities—specifically bridging the comprehension gap between discrete text tokens and continuous image pixels.

Methods

The authors propose Vera Verto (Latin for "transform"), powered by a generative module called the Blender:

Text Input (xh)      ──> [Fine-tuned BERT] ──> [Adapter] ──> [Encoder 1] ┐
                                                                         ├──> [Decoder] ──> Fused Image (xf)
Container Image (xc) ──────────────────────────────────────> [Encoder 2] ┘
  1. Feature Extraction and Alignment: Text samples ($x_h$) pass through a fine-tuned language model (e.g., BERT), extracting embeddings across all sequence tokens (not just [CLS]). An adapter network (average pooling + 4 CNN layers) resizes these text representations.
  2. Dual-Encoder Fusion: The adapted text features and a "container" image ($x_c$) pass through separate convolutional encoders ($E_1$ and $E_2$). Their latent representations are concatenated and decoded into a single fused image ($x_f$).
  3. Joint Objective Training: The Blender optimizes two loss functions:
  4. Visual Loss ($L_v$): Pixel-wise Mean Squared Error (MSE) between $x_f$ and $x_c$, ensuring the fused image visually mimics the container image.
  5. Semantic Loss ($L_s$): MSE between linear-projected text features and image features extracted from $x_f$ via a pretrained CV model (e.g., VGG11), embedding semantic NLP signals into the image.
  6. Attack Execution:
  7. Phase 1 (Poisoning): The adversary generates fused images from text samples, maps text classification labels to image classes, and injects them into the victim's training set.
  8. Phase 2 (Inference): At test time, the attacker feeds a new text query through the Blender with an arbitrary container image, submits the resulting image to the victim model, and maps the output back to the NLP label space.

Datasets

The authors evaluated the attack across multiple CV and NLP benchmark datasets:

  • Vision (Original Tasks): MNIST (grayscale digits), CIFAR-10 (natural objects), STL-10 (higher-resolution objects, scaled to $224 \times 224$), and Tiny ImageNet.
  • NLP (Hijacking Tasks): Yelp Review (5-class sentiment) and Sogou News (5-class Chinese news topic classification).
  • Transferability Benchmark: The Corpus of Linguistic Acceptability (CoLA; binary classification) was used to evaluate Blender reusability on unseen tasks.

Key Insights and Ideas

  • Bridging the Discrete–Continuous Divide: Prior to this work, embedding natural language into vision models without catastrophic utility loss was an open challenge. Vera Verto demonstrates that deep feature alignment via semantic loss allows CNNs/ResNets to naturally pick up text semantics embedded as imperceptible pixel-level patterns.
  • Using All Token Embeddings is Critical: Relying solely on BERT’s aggregate sentence representation ([CLS]) resulted in an attack success rate (ASR) drop from 68% down to 22%. Preserving fine-grained token embeddings across the sequence is essential for the Blender to transfer sufficient semantic information into image space.
  • Blender Reusability Across Tasks: The Blender does not overfit to a specific pair of tasks. A Blender trained on Yelp/CIFAR-10 can hijack MNIST and STL-10 models with less than a 3% ASR drop. It can even camouflage an entirely unseen NLP dataset (CoLA), significantly lowering the amortized cost for an attacker.

Key Results

  • Negligible Impact on Original Task: Across MNIST, CIFAR-10, and STL-10, the hijacked models exhibited less than a 2% drop in clean classification accuracy compared to clean baselines.
  • High Attack Success Rate (ASR):
  • Sogou News: Achieved 94% (MNIST), 94% (CIFAR-10), and 95% (STL-10) ASR, coming within 1% of dedicated standalone NLP upper bounds.
  • Yelp Reviews: Achieved 65% (MNIST), 68% (CIFAR-10), and 65% (STL-10) ASR.
  • Defenses: Outlier filtering based on clean feature centroids crippled the attack (dropping ASR to random guessing), but caused a severe ~15% utility penalty on clean accuracy. Gradient-based poison filtering (EPIC) reduced ASR marginally while the attack remained largely viable.

Limitations and Future Work

  • Visible Artifacts: The generated fused images exhibit slight visual distortions and artifacts. The authors suggest integrating a GAN-like discriminator into the Blender’s training loop to penalize perceptible deviations.
  • Asymmetry of Modality Inversion: The reverse direction—hijacking an NLP model using a CV classification task—remains unaddressed. Because text is discrete and categorical, smoothly injecting high-dimensional continuous image signals into short text sequences presents a substantially harder challenge.

Summary updated

BibTeX
@inproceedings{zhang2023vera,
  author = {Minxing Zhang and Ahmed Salem and Michael Backes and Yang Zhang},
  title = {{Vera Verto: Multimodal Hijacking Attack}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=xACeXHo4sf},
}

Loading related content...

Figure