Dual Feature-Relational Alignment for Transferable Targeted Attacks on MLLMs

Dongshen Han, Xiaorong Tian, Sheng Zheng, Zishan Huang, Boyu Deng, Wei Dong, Zhijie Li, Yang Yang, Chaoning ZhangNeurIPS 2026

TL;DR

Can you make GPT-4o or Gemini look at a photo of a spiky green chestnut and describe a cozy bedroom instead—without ever having access to their internal weights? By aligning not just individual visual features, but the spatial and structural relationships between them, DFRA-Attack crafts imperceptible image perturbations on open-source models that reliably fool top-tier closed-source and reasoning-oriented Multimodal Large Language Models (MLLMs).

What Problem Does This Paper Address?

Multimodal Large Language Models (MLLMs) are remarkably good at understanding images, yet they inherit a classic neural network Achilles' heel: adversarial examples. By adding tiny, mathematically crafted pixel noise to an image, an attacker can hijack a model's output.

The gold standard of this vulnerability testing is the targeted transferable attack. Here, the attacker has zero access to the target "black-box" model (like GPT-4o or Claude). Instead, they optimize the adversarial noise using accessible "surrogate" encoders (like CLIP), hoping the illusion transfers to unseen commercial models and forces them to hallucinate a very specific target scene.

Existing methods try to do this either globally (matching overall image representations, which overfits to the surrogate model) or locally (matching random crops or patches between the source and target images). The catch? Random cropping breaks spatial correspondence, and matching isolated patches ignores how parts of an image relate to one another. You might trick a model into seeing "fur" and "grass," without preserving the structural relationship that makes it "a zebra standing on a savanna."

Methods

To bridge this gap, the authors introduce Dual Feature-Relational Alignment Attack (DFRA-Attack). Alongside standard ensemble optimization across global image features, DFRA-Attack introduces three novel mechanisms:

Overview of the DFRA-Attack pipeline, showing saliency-guided shared masking feeding into semantic-aware and relational-aware alignment.
  1. Semantic-Aware Alignment via Shared Masking: Instead of taking random crops, the method computes a cross-surrogate saliency map of the target image and masks out a small fraction (10%) of the most salient regions. Crucially, this exact same spatial mask is applied to both the adversarial and target images. Under this shared spatial grid, the algorithm aligns fine-grained regional features using soft cosine-similarity correspondences.
  2. Relational-Aware Alignment: Matching individual regions isn't enough; their interplay matters. For all visible (unmasked) regions, DFRA-Attack aligns two structural properties between the adversarial and target images:
  3. Feature Relational Matrices: Inner products between pairs of region features, locking in pairwise feature affinities.
  4. Attention Interactions: Self-attention maps from the last layer of transformer surrogates, ensuring the model "connects" image regions in the same pattern.
  5. Two-Stage Optimization: Masking is great for preventing dominant visual cues from hijacking optimization, but you eventually want the whole picture to work together. At a set transition step $T$, the mask comes off, and optimization finishes on the full, unmasked images.

Datasets

Following established transfer attack protocols, the authors evaluate their method on 100 semantically distinct source-target image pairs constructed from the NIPS 2017 Adversarial Attacks and Defenses Competition dataset and the MSCOCO validation set. All images are resized to $224 \times 224$ with perturbation noise strictly capped at an imperceptible $\ell_\infty$ budget of $16/255$. No new benchmark datasets are introduced.

Key Insights and Ideas

  • Suppressing the obvious helps transfer the subtle: Masking out the top 10% most salient regions of the target image seems counterintuitive—why hide the best parts? The authors find a fascinating sweet spot: hiding dominant features forces the optimizer to align broader, finer-grained regional semantics rather than lazily latching onto one loud visual cue. Masking too little (5%) leaves dominant cues in charge; masking too much (20%) starves the alignment of visual context.
  • Structured illusions beat scattered static: Visualizing the perturbations reveals why relational alignment works. Baseline noise looks either globally scattered or blocky. DFRA-Attack's noise implicitly traces the clean semantic contours and structural boundaries of the target objects, tightly constraining the optimization space.
Figure 3: Qualitative comparison of adversarial examples and perturbations generated by DFRA- Attack and representative targeted transfer attack methods. The left part shows the clean image and adversarial examples, while the right part shows the target image and corresponding perturbation visualizations.
  • Plug-and-play synergy: DFRA's alignment strategies aren't siloed. Dropping DFRA's shared masking and relational losses into another state-of-the-art framework (FOA-Attack) immediately boosts GPT-4o attack success from 74% to 88%.

Key Results

Attack performance is primarily judged by Attack Success Rate (ASR)—the percentage of generated captions scoring above 0.5 semantic similarity to the target—and Average Semantic Similarity (AvgSim). Across open-source, commercial closed-source, and reasoning models, DFRA-Attack substantially outperforms prior state-of-the-art methods like M-Attack:

Figure 1: Performance comparison between DFRA-Attack and M-Attack across different MLLMs in terms of (a) ASR and (b) AvgSim.
  • Open-Source MLLMs: Achieves 87% ASR on LLaVA-1.6-7B (up from 69% for M-Attack), 75% on Qwen2.5-VL-7B (vs. 51%), and nearly doubles performance on Gemma3-4B from 20% to 41%.
  • Closed-Source MLLMs: Hits 88% ASR on GPT-4.1 (vs. 69%), 81% on GPT-4o (vs. 64%), and jumps from 40% to 70% on Gemini-2.0-Flash.
  • Reasoning MLLMs: Even extended chain-of-thought reasoning doesn't save vision encoders from upstream illusions—DFRA-Attack reaches 85% ASR on GPT-o3 (vs. 71%) and 68% on Gemini-2.5-Pro (vs. 46%).
  • Exact Keyword Matching: On GPT-4o, 91% of adversarial descriptions hit at least a quarter of human-annotated target keywords (vs. 75% for M-Attack).

Limitations and Future Work

Not explicitly discussed in a dedicated section by the authors. However, the experimental tables highlight a clear practical boundary: Anthropic's Claude family remains remarkably resistant to image-transfer attacks compared to GPT and Gemini models. Even as the top-performing method, DFRA-Attack achieves only 13% ASR on Claude Sonnet 4.5 and 8% ASR on Claude-4.5-thinking, suggesting architectural or defensive barriers in certain closed-source pipelines that pure surrogate visual alignment does not yet easily bridge.

Summary updated

Abstract

Multimodal large language models (MLLMs) remain vulnerable to transferable adversarial examples. However, targeted transferable attacks are particularly challenging, requiring adversarial examples to predict specific target semantics and generalize from surrogate models to unseen black-box MLLMs.Existing methods primarily focus on aligning visual features, while the relational information among these features is overlooked. To bridge this gap, we propose Dual Feature-Relational Alignment Attack (DFRA-Attack), which couples feature alignment with relational alignment to improve targeted transferability. Specifically, semantic-aware alignment employs saliency-guided shared masking to construct consistent masked views of adversarial and target images. Building on these shared masked views, relational-aware alignment further captures relations among visible regions by aligning feature relational matrices and attention interaction patterns. Furthermore, we adopt a two-stage optimization strategy that transitions from masked-view to full-image optimization. Extensive experiments on open-source, closed-source, and reasoning-oriented MLLMs demonstrate that DFRA-Attack consistently outperforms state-of-the-art targeted transfer attacks in terms of both attack success rate and semantic similarity.
BibTeX
@inproceedings{han2026dual,
  author = {Dongshen Han and Xiaorong Tian and Sheng Zheng and Zishan Huang and Boyu Deng and Wei Dong and Zhijie Li and Yang Yang and Chaoning Zhang},
  title = {{Dual Feature-Relational Alignment for Transferable Targeted Attacks on MLLMs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=mDkwBzaZHL},
}
Figure