Semantic Router: On the Feasibility of Hijacking MLLMs via a Single Adversarial Perturbation

Changyue Li, Jiaying Li, Youliang Yuan, Jiaming He, Zhicong Huang, Pinjia He

TL;DR

This paper exposes a novel vulnerability in Multimodal Large Language Models (MLLMs) called Semantic-Aware Hijacking, where a single universal adversarial perturbation can act as a "semantic router." Instead of forcing a blanket incorrect output, this single perturbation actively senses the input's context and routes different scenes to distinct, attacker-defined malicious actions. Tested against advanced models like Qwen, this attack achieves up to a 66% success rate across five different targets using just a single adversarial frame.

What Problem Does This Paper Address?

As MLLMs are increasingly deployed in real-world, "stateless" systems like autonomous driving and robotics, they process environment frames independently at each timestep to trigger immediate actions. Traditional adversarial attacks on these systems are limited: they are either instance-specific (requiring a new perturbation for every image) or single-targeted universal attacks (mapping all inputs to a single malicious command).

This paper introduces a much more dangerous threat model: a many-to-many universal attack. The authors investigate whether an attacker can craft a single, static perturbation that acts as a conditional switch. For example, in an autonomous vehicle context, can one perturbation force the model to "turn right" if it sees an intersection, but "stop" if it sees a roundabout?

Figure 1. Illustration of the threat model of semantic-aware hi- jacking. As the MLLM processes the image sequences, the pertur- bation acts as a semantic router, forcing the model to output the attacker’s predefined targets based on the input semantics, cumula- tively guiding the vehicle to a predefined destination.

Methods

The authors first mathematically analyze the geometry of the vision encoder's latent space using a first-order Taylor expansion. They discover that a Semantic-Aware Universal Perturbation (SAUP) relies on two distinct geometric mechanics:

  1. Dominant Shift: The perturbation shifts all input image features away from their original clean manifolds into a congested adversarial subspace.
  2. Semantic Deflection: Once in this subspace, the perturbation leverages the remaining subtle, intrinsic semantic differences of the inputs to deflect them into distinct directions, aligning them with different target text embeddings.
Figure 2. Illustration of the geometric mechanism of the Semantic- Aware phenomenon. Given three image sets {x(c)} with distinct semantic contents, and an all-zero pixel image serving as an anchor. The SAUP maps all image features to a distant region in the la- tent space, while the respective semantics cause slight deflections, guiding them towards alignment with predefined targets.

To reliably generate these perturbations, the authors propose the Semantic-ORienTed (SORT) optimization algorithm, which introduces two key components:

  • Normalized Space Optimization (NSO): Instead of optimizing directly in the restricted $[0, 1]$ pixel space, SORT maps variables into a normalized, unconstrained space, preventing gradient plateauing and stabilizing updates.
  • Semantic Separation Optimization (SSO): This introduces a margin-based loss function that explicitly pushes the perturbed features of different classes apart, maximizing the model's capacity to differentiate and route inputs accurately.

Datasets

The authors evaluated their approach on two datasets:

  1. ImageNet: Used to evaluate the attack's effectiveness on coarse-grained semantics and its ability to achieve precise control over long-text generation.
  2. Real Image Sequence Trajectories (RIST): A new dataset annotated by the authors specifically to evaluate fine-grained semantics in autonomous driving and robotics scenarios. RIST consists of sequential frames from continuous videos, presenting a stringent stress test because images within the same trajectory share highly similar backgrounds and lighting conditions.

Key Insights and Ideas

  • The "Switch-Case" Attack Capability: Unlike standard universal perturbations that act as a blunt instrument to break a model, SAUPs act as a malicious control layer, essentially allowing an attacker to "program" conditional logic into the model's perception.
  • The Fine-Grained Bottleneck: The authors mathematically prove (via Lipschitz constants) that fine-grained semantics are significantly harder to hijack. When images are highly similar (e.g., successive frames from a dashboard camera), the input distance approaches zero, requiring the perturbation to massively amplify subtle differences to achieve separation.
  • Advanced Models are More Vulnerable: Counter-intuitively, advanced MLLMs like Qwen2.5-VL and InternVL3 are more susceptible to semantic hijacking than older models like LLaVA-1.5. The authors hypothesize this is due to the deeper alignment between the visual encoder and language model resulting from full-parameter supervised fine-tuning, which inadvertently amplifies the influence of visual adversarial perturbations on downstream text generation.

Key Results

  • High Success Rates: On the ImageNet dataset, a single perturbation successfully misled Qwen, achieving attack success rates (ASR) of 93%, 77%, 61%, and 66% under 2, 3, 4, and 5 targets, respectively.
  • Fine-Grained Hijacking: On the challenging RIST dataset, SAUPs achieved an average ASR of 72% on the RoboTasking scenario (2 targets) and 62% on the AutoDriving scenario (5 targets).
  • Precise Long-Text Control: The attack isn't limited to single-word commands. In a 2-target setting on ImageNet, the perturbation maintained enough control to force the generation of specific, complex sentences up to 10 words long with an 83% success rate.

Limitations and Future Work

  • White-Box Dependency: The current optimization strategy requires full white-box access to the target model's architecture and parameters, which is a limitation for attacking proprietary, closed-source API models.
  • Physical World Gap: The analysis was conducted in a digital white-box setting. Real-world physical factors like changing lighting conditions, camera angles, and motion blur pose significant challenges to maintaining the precise geometric alignment required for semantic routing.
  • Linearity Approximation Errors: The theoretical framework relies on a local linearity assumption, which introduces non-negligible quantitative errors as the perturbation magnitude grows.

Future work will focus on bridging the gap between digital simulation and physical reality by developing robust SAUPs that can withstand environmental variations.

Summary updated

BibTeX
@inproceedings{li2026semantic,
  author = {Changyue Li and Jiaying Li and Youliang Yuan and Jiaming He and Zhicong Huang and Pinjia He},
  title = {{Semantic Router: On the Feasibility of Hijacking MLLMs via a Single Adversarial Perturbation}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=FjWZrbabBX},
}
Figure