Pushing the Frontier of Black-Box LVLM Attacks via Fine-Grained Detail Targeting Abstract Black-box adversarial attacks on Large Vision-Language Models (LVLMs) are challenging due to missing gradients and complex multimodal boundaries. While prior state-of-the-art transfer-based approaches like 𝙼 ​ - ​ 𝙰𝚝𝚝𝚊𝚌𝚔 \mathtt{M\text{-}Attack} performs well using local crop-level matching between source and target images, we find this induces high-variance, nearly orthogonal gradients across iterations, violating coherent local alignment and destabilizing optimization. We attribute this to (i) ViT translation sensitivity that yields spike-like gradients and (ii) structural asymmetry between source and target crops. We reformulate local matching as an asymmetric expectation over source transformations and target semantics, and build a gradient denoising upgrade to 𝙼 ​ - ​ 𝙰𝚝𝚝𝚊𝚌𝚔 \mathtt{M\text{-}Attack} . On the source side, Multi-Crop Alignment (MCA) averages gradients from multiple independently sampled local views per iteration to reduce variance. On the target side, Auxiliary Target Alignment (ATA) replaces aggressive target augmentation with a small auxiliary set from a semantically correlated distribution, producing a smoother, lower-variance target manifold. We further reinterpret momentum as Patch Momentum , replaying historical crop gradients, combined with a refined patch-size ensemble (PE + ), this strengthens transferable directions. Together these modules form our 𝙼 ​ - ​ 𝙰𝚝𝚝𝚊𝚌𝚔 ​ - ​ 𝚅𝟸 \mathtt{M\text{-}Attack\text{-}V2} in this work, a simple, modular enhancement over 𝙼 ​ - ​ 𝙰𝚝𝚝𝚊𝚌𝚔 \mathtt{M\text{-}Attack} that substantially improves transfer-based black-box attacks on frontier LVLMs: boosting success rates on Claude-4.0 ( ) from 8% → \rightarrow 30% , Gemini-2.5-Pro ( ) from 83% → \rightarrow 97% , and GPT-5 ( ) from 98% → \rightarrow 100% , outperforming all prior black-box LVLM attacks. Code and data are publicly available at this link . Xiaohan Zhao, Zhaoyi Li, Yaxin Luo, Jiacheng Cui, Zhiqiang Shen † VILA Lab, Department of Machine Learning, MBZUAI https://vila-lab.github.io/M-Attack-V2-Website/ {xiaohan.zhao,zhaoyi.li,yaxin.luo,jiacheng.cui,zhiqiang.shen}@mbzuai.ac.ae \icml@noticeprintedtrue † † footnotetext: † Corresponding Author. \PreprintNotice Figure 1 : Improvement of \mathtt{M\text{-}Attack\text{-}V2} over \mathtt{M\text{-}Attack} on strong and up-to-date commercial black-box models (Claude 4, Gemini 2.5 and GPT-5). ASR and KMR stand for attack success rate and keyword matching rate, respectively. 1 Introduction Large Vision-Language Models (LVLMs) have become foundational to modern AI systems, enabling multimodal tasks like image captioning ( 13 ; 35 ; 6 ; 38 ) , VQA ( 28 ; 33 ) , and visual reasoning ( 31 ) . However, their visual modules remain vulnerable to adversarial attacks, subtle perturbations that mislead models while remaining imperceptible to humans. Prior efforts, including AttackVLM ( 43 ) , CWA ( 5 ) , SSA-CWA ( 7 ) , AdvDiffVLM ( 12 ) , and most effectively, recent state-of-the-art \mathtt{M\text{-}Attack} ( 23 ) , which have exploited and addressed this weakness through local-level matching and surrogate model ensembles, surpassing 90% success rates on models like GPT-4o. Despite promising performance of \mathtt{M\text{-}Attack} , our analysis reveals that its gradient signals are highly unstable: Even overlapping large pixel regions, two consecutive local crops share nearly orthogonal gradients . In other words, high similarity in the pixel and embedding spaces does not translate to high similarity in the gradient space. The reason is that ViTs’ gradient pattern is sensitive to translation. A tiny shift changes pixels contained in each token, altering self-attention. Moreover, patch-wise, spike-like gradient amplifies the mismatch within just a few pixels. We counter this effect by aggregating gradients from multiple crops within the same iteration, a strategy we call Multi - Crop Alignment (MCA). From a theoretical angle, MCA aggregates gradients across multiple views in a single iteration, smoothing local inconsistencies and improving cross-crop gradient stability. We further observe that the source and target transformations in \mathtt{M\text{-}Attack} operate in different semantic spaces: one emphasizing extraction, the other generalization. Aggressive target augmentation introduces harmful variance. Our Auxiliary Target Alignment (ATA) mitigates this by identifying semantically similar auxiliary images to create a low-variance embedding subspace, then applying only mild shifts to enhance transferability without destabilizing the optimization. Classic momentum is reinterpreted under this framework as Patch Momentum (PM), a replay mechanism that recycles past gradients across random crops to stabilize optimization. In parallel, we also re-examine and refine \mathtt{M\text{-}Attack} ’s model selection criterion and choose a delicately selected ensemble set with diverse patch sizes to mitigate the difficulty in cross-patch transfer, of which we find that the attention concentrates more on the main object. We term it Patch Ensemble + (PE + ) in our approach. Together, these proposed components form the basis of our \mathtt{M\text{-}Attack\text{-}V2} , a robust gradient denoising framework that significantly outperforms existing black-box attack methods. Our method raises attack success rates from 98% \rightarrow 100% on GPT - 5, 8% \rightarrow 30% on Claude - 4, and 83% \rightarrow 97% on Gemini - 2.5 - Pro, achieving state-of-the-art performance across the board. This study not only offers a practical, modular attack strategy but also sheds light on the gradient behavior of ViT-based LVLMs under local perturbations. To summarize, our contributions are: • We show for the first time that crop-level matching yields high-variance, near-orthogonal gradients (from ViT translation sensitivity and source/target crop asymmetry), destabilizing black-box optimization. • We recast local matching as an asymmetric expectation and introduce MCA (multi-view gradient averaging) + ATA (auxiliary semantically correlated targets) to reduce variance and smooth the target manifold. • We add Patch Momentum + refined PE + to amplify transferable directions, delivering large ASR gains on frontier LVLMs (e.g., Claude-4.0 8%→30%, Gemini-2.5-Pro 83%→97%, GPT-5 98%→100%). 2 Related Work Large Vision Language Models. Transformer-based LVLMs learn visual-semantic representations from large-scale image-text data, enabling tasks like image captioning ( 35 ; 13 ; 6 ; 38 ) , visual QA ( 28 ; 33 ) , and cross-modal reasoning ( 40 ; 29 ; 39 ) . Open-source models such as BLIP-2 ( 22 ) , Flamingo ( 1 ) , and LLaVA ( 25 ) show strong benchmark performance. Commercial models like GPT-4o, Claude-3.5 ( 2 ) , and Gemini-2.0 ( 37 ) offer advanced reasoning and real-world adaptability, with their successors, GPT-o3 ( 31 ) , Claude 3.7-Sonnet ( 3 ) , and Gemini-2.5-Pro, able to reason over both text and images. (a) Gradient cosine similarity between two crops drops quickly with IoU and falls below 0.1 when IoU <0.8 , despite shared pixels. (b) Cosine similarity between consecutive source gradients (\nabla_{\hat{\mathbf{x}}_{i}^{s}},\nabla_{\hat{\mathbf{x}}_{i+1}^{s}}) across iterations. Figure 2 : Cosine similarity of gradients from random crops. (a) Similarity vs. IoU between two crops in a fixed iteration, showing rapid decay and values <0.1 once IoU <0.8 . (b) Similarity between consecutive source gradients. V1’s gradient similarity is almost zero, while v2 improves it to around 0.2. Results are averaged over 200 runs. LVLM transfer-based attack. Black-box attacks include query-based ( 9 ; 15 ) and transfer-based ( 10 ; 26 ) (our focus in this work). AttackVLM ( 43 ) pioneered transfer-based targeted LVLM attacks using CLIP ( 34 ) and BLIP ( 22 ) surrogates, showing image-to-image feature matching beats cross-modal optimization, later adopted by ( 5 ; 12 ; 7 ; 23 ) . CWA ( 5 ) and SSA-CWA ( 7 ) extended this to Bard ( 37 ) : CWA improves transferability via sharpness-aware minimization ( 11 ; 4 ) , while SSA-CWA adds spectrum-guided augmentation with SSA ( 27 ) . AnyAttack ( 42 ) uses image-image matching with large-scale pretraining and fine-tuning. AdvDiffVLM ( 12 ) integrates feature matching into diffusion guidance and proposes Adaptive Ensemble Gradient Estimation (AEGE) for smoother ensemble scores. \mathtt{M\text{-}Attack} further surpasses these via local-level matching of source and target with an ensemble of surrogate models and diverse patch sizes, and FOA-Attack ( 16 ) extends alignment from CLS to local patch tokens for additional gains. However, local-level matching still has limitations, we next introduce its background before analyzing and addressing them. 3 Approach 3.1 Preliminaries and Limitations in Prior Local-level Matching-Based Methods Local-level matching in \mathtt{M\text{-}Attack} ( 23 ) . Consider a clean source image \tilde{\mathbf{X}}_{\text{sou}} and a target image \mathbf{X}_{\text{tar}} . The objective of black-box transfer attacks is to minimally perturb the source image by \delta so that the perturbed image \mathbf{X}_{\text{sou}}=\tilde{\mathbf{X}}_{\text{sou}}+\delta aligns semantically with the target under an inaccessible black-box model f_{\xi} . Due to the inaccessibility of f_{\xi} , surrogate models f_{\phi} approximate the semantic alignment via cosine similarity: \arg\max_{\mathbf{X}_{\text{sou}}}\mathrm{CS}(f_{\phi}(\mathbf{X}_{\text{sou}}),f_{\phi}(\mathbf{X}_{\text{tar}}))\quad\text{s.t.}\quad\lVert\delta\rVert_{p}\leq\epsilon, (1) where \mathrm{CS} denotes cosine similarity. \mathtt{M\text{-}Attack} enhances Eq. ( 1 ) using local-level matching . At iteration i , it applies predefined local transformations \mathcal{T}_{s} and \mathcal{T}_{t} to extract local area \hat{\mathbf{x}}^{s}_{i} from the source \mathbf{X}_{\mathrm{sou}} and \hat{\mathbf{x}}^{t}_{i} from the target \mathbf{X}_{\mathrm{tar}} , respectively. These transformations satisfy essential properties, such as spatial overlap and diversified coverage of extracted local regions \{\hat{\bf x}_{i}\} ( 23 ) . Formally, the local-level matching optimizes: \mathcal{M}_{\mathcal{T}_{s},\mathcal{T}_{t}}=\mathbb{E}_{f{\phi_{j}}\sim\phi}[\text{CS}(f_{\phi_{j}}(\hat{\mathbf{x}}^{s}_{i}),f_{\phi_{j}}(\hat{\mathbf{x}}^{t}_{i}))], (2) where f_{\phi_{j}} is sampled from an ensemble of surrogate models \phi . Intuitively, matching local image regions instead of entire images enhances the semantic precision of perturbations by directing optimization towards semantically significant details. Despite its effectiveness, \mathtt{M\text{-}Attack} encounters a critical challenge of unexpectedly low gradient similarity, which we investigate in detail next. Extremely low gradient overlap. In \mathtt{M\text{-}Attack} two random crops \hat{\bf x}_{i}^{s} and \hat{\bf x}_{i}^{t} are matched at every iteration. One would expect the gradients inside the shared region of two successive source crops, i.e., \bigl(\nabla_{\hat{\bf x}_{i}^{s}}\mathcal{M}_{\mathcal{T}_{s},\mathcal{T}_{j}},\nabla_{\hat{\bf x}_{i+1}^{s}}\mathcal{M}_{\mathcal{T}_{s},\mathcal{T}_{j}}\bigr) , to correlate, because the underlying pixels partly coincide. Surprisingly, Fig. 2(b) shows the opposite: their cosine similarity is almost zero . We then keep the same fixed iteration and repeatedly draw two random crops at different scales and check the cosine similarity of their gradients (Fig. 2(a) ). Our finding reveals an exponential decay that plateaus below 0.1 once the overlap is smaller than 0.80 IoU. We find that this unexpectedly low gradient overlap mainly stems from two factors: ViTs’ inherent translation sensitivity and an overlooked asymmetry in the local matching framework. We first examine the translation effect. 1) Patch-wise, spike-like gradient sensitive to translation. Because ViTs tokenize images on a fixed, non - overlapping grid, even sub - pixel changes each patch’s token mix. These token changes ripple through self - attention, altering weights and redirecting gradients for all tokens, so the resulting pixel - level gradient pattern diverges sharply. Worse, gradient magnitudes are uneven. Therefore, even similar patterns but missing a few pixels might completely break gradient similarity (Fig. 3(b) ). 2) Asymmetric Transform Branches. In \mathtt{M\text{-}Attack} , both the source and target images are cropped, yet playing distinct roles. Cropping the source acts directly in pixel space : it rearranges patch embeddings and attention weights in the forward pass, ending up with guidance of different views. By contrast, cropping the target solely translates the target representation, thereby shifting the reference embedding in feature space . One sculpts the perturbation, while another moves the goalpost, formulating asymmetric matching. \mathtt{M\text{-}Attack} overlooked this and implementations target translation alternate between a radical crop and an identity map, struggles between explore-exploitation trade-off and potentially risk in high variance of target embedding. 3.2 Asymmetric Matching over Expectation To mitigate the issues above, we begin by systematically reformulating the original objective function as an expectation over local transformations within an asymmetric matching framework: \min_{\lVert\mathbf{X}_{\text{sou}}\rVert_{p}\leq\epsilon}\mathbb{E}_{\mathcal{T}\sim\mathcal{D},y\sim\mathcal{Y}}\left[\mathcal{L}(f(\mathcal{T}({\bf X}_{\text{sou}})),y)\right], (3) where \mathcal{D} represents the distribution of local transformations, and \mathcal{Y} denotes the distribution over target semantics. \lVert\cdot\rVert_{p} is \ell_{p} constraint for imperceptibility. Conceptually, this formulation corresponds to embedding specific semantic content y into a locally transformed area \mathcal{T}(\mathbf{X}_{\text{sou}}) , thus highlighting the intrinsic asymmetry compared to \mathtt{M\text{-}Attack} ’s original formulation. Within this framework, our proposed enhancements, i.e., Multi-Crop Alignment (MCA) and Auxiliary Target Alignment (ATA), can be interpreted as strategies to improve the accuracy of the expectation estimation and the sampling quality of the semantic distribution \mathcal{Y} . (a) Comparison of optimization trajectories with different K , K=1 refers to single crop alignment. (b) Gradient pattern between different crop strategies in \mathtt{M\text{-}Attack} and \mathtt{M\text{-}Attack\text{-}V2} . Figure 3 : Comparison of: a) different trajectories against different K ; b) gradient pattern of single crop alignment against multi-crop alignment (MCA). The gradient pattern of ResNet 50 remains consistent when large pixels are overlapped, while the gradient pattern of ViTs changes dramatically. MCA helps to smooth out this impact. 3.3 Gradient Denoising via Multi-Crop Alignment To obtain a low - variance estimate of expected loss gradient \mathbb{E}_{\mathcal{T}\sim\mathcal{D},y\sim\mathcal{Y}}\left[\nabla_{\mathbf{X}_{\text{sou}}}\mathcal{L}(f(\mathcal{T}(\bf X_{\text{sou}})),y)\right] , we draw K independent crops \{\mathcal{T}\}_{k=1}^{K} and average their individual gradients: \nabla_{\bf X_{\text{sou}}}\hat{\mathcal{L}}({\bf X_{\text{sou}}})=\frac{1}{K}\sum_{k=1}^{K}\nabla_{\bf X_{\text{sou}}}\mathcal{L}(f(\mathcal{T}_{k}({\bf X}_{\text{sou}})),y). (4) This Multi - Crop Alignment is an unbiased Monte - Carlo estimator, reducing the variance with K>1 . Theorem 3.1 . Let g_{k}=\nabla_{\mathbf{X}_{\text{sou}}}\mathcal{L}(f(\mathcal{T}_{k}(\mathbf{X}_{\text{sou}})),y) denote the gradient from \mathcal{T}_{k} , \mu=\mathbb{E}[g_{k}],\sigma^{2}=\mathbb{E}[\lVert g_{k}-\mu\rVert_{2}^{2}] denote the mean and variance, and p_{k\ell} denote the pair-wise correlation p_{k\ell}=\frac{\left}{\lVert g_{k}-\mu\rVert^{2}\lVert g_{\ell}-\mu\rVert^{2}} . The gradient variance from K averaged crops is bounded by: \operatorname{Var}\bigg(\frac{1}{K}\sum_{k=1}^{K}g_{k}\bigg)\leq\frac{\sigma^{2}}{K}+\frac{K-1}{K}\overline{p}\sigma^{2}, (5) where \overline{p}=\mathbb{E}[p_{kl}],\ k\neq\ell is the expectation of pair-wise correlation. All crops share the same underlying image, so \overline{p}\neq 0 . The ideal \sigma^{2}/K decay is therefore tempered by the correlation term \bar{p}\sigma^{2} . Empirically, averaging a modest number ( K=10 ) of almost-orthogonal gradients still yields benefit, since the uncorrelated component of the variance shrinks as 1/K . Simultaneously, the optimizer leverages multiple diverse transformations per update, with minimal interference among almost orthogonal gradients. Fig. 3(a) illustrates an accelerated convergence with K=10 , with margin improvement provided by K=100 . This averaging also alleviates the known translation sensitivity of ViTs. As shown in Fig. 3(b) , using two crop sets yields noticeably higher gradient consistency than the single-crop alignment in \mathtt{M\text{-}Attack} . In MCA, high-activity regions remain stable (upper left and center right), while the single-crop case shifts focus from center right to lower left. As a result, gradient similarity across iterations increases from near zero in \mathtt{M\text{-}Attack} to around 0.2 (Fig. 2(b) ). 3.4 Improved Sampling Quality via Auxiliary Target Alignment Selecting a representative target embedding y\in\mathcal{Y} is challenging because the underlying distribution \mathcal{Y} is not observable. \mathtt{M\text{-}Attack} mitigates this by seeding at the unaltered target embedding f(\mathbf{X}_{\text{tar}}) and exploring its vicinity with transformed views f(\mathcal{T}_{t}(\mathbf{X}_{\text{tar}})) thereby sketching a locally semantic manifold that serves as a proxy for \mathcal{Y} . However, the exploration–exploitation trade - off remains problematic. Radical transformations leap too far, dragging y outside the genuine target region; conservative transformations, while semantically faithful, barely shift the embedding, leaving the optimization starved of informative signal. To stabilize this process, we introduce P auxiliary images \{\mathbf{X}_{\text{aux}}^{(p)}\}_{p=1}^{P} as an auxiliary set that acts as additional anchors, collectively forming a richer sub - manifold of aligned embeddings. During each update, we apply a mild random transformation \tilde{\mathcal{{T}}}\sim\tilde{\mathcal{D}} to every anchor, nudging the ensemble in a coherent yet restrained manner and thus providing low - variance, information - rich gradients for optimization. Let {y}_{0}=f(\hat{\mathcal{T}}_{0}(\mathbf{X}_{\text{tar}})) , \tilde{y}_{p}=f(\tilde{\mathcal{T}}_{p}(\mathbf{X}_{\text{aux}}^{(p)})) denote sampled semantics in one iteration. The objective \hat{\mathcal{L}} in Eq. ( 4 ) becomes: \displaystyle\hat{\mathcal{L}}=\frac{1}{K}\sum_{k=1}^{n}\Big[ \displaystyle\mathcal{L}(f(\mathcal{T}_{k}(\mathbf{X}_{\text{sou}})),y_{0}) (6) \displaystyle+\frac{\lambda}{P}\sum_{p=1}^{P}\mathcal{L}(f(\mathcal{T}_{k}(\mathbf{X}_{\mathrm{sou}})),\tilde{y}_{p})\Big], where \lambda\in[0,1] interpolates between the original target and its auxiliary neighbors. \lambda=0 reduces to \mathtt{M\text{-}Attack} local-local matching with single target. ATA trade-off exploration (auxiliary diversity) and exploitation (main - target fidelity), providing low - variance, semantics - preserving updates. The auxiliary set can be built in various ways, e.g., via image-image retrieval or diffusion methods. We now theoretically analyze ATA with three mild assumptions: Assumption 3.2 (Lipschitz surrogate) . Surrogate f is L -continuous: \lVert f(y)-f(x)\rVert\leq L\|y-x\rVert . Assumption 3.3 (Bounded Auxiliary Data) . For auxiliary data \mathbf{X}_{\text{aux}}^{(p)} retrieved via semantic similarity to a target \mathbf{X}_{\text{tar}} , we have: \mathbb{E}[\lVert f(\mathbf{X}^{(p)}_{\text{aux}})-f(\mathbf{X}_{\text{tar}})\rVert]\leq\delta (justification in the appendix). Assumption 3.4 (Bounded transformation) . Random transformation \mathcal{T}\sim D_{\alpha} f has bounded pixel-level distortion: \mathbb{E}[\lVert\mathcal{T}(\mathbf{X})-\mathbf{X}\rVert]\leq\alpha Theorem 3.5 . Let \mathcal{T}\sim D_{\alpha} denote the transformation used in \mathtt{M\text{-}Attack} , and \tilde{\mathcal{T}}\sim D_{\tilde{\alpha}} with \tilde{\alpha}\ll\alpha the transformation in \mathtt{M\text{-}Attack\text{-}V2} . Define embedding drift of transformation \mathcal{T} applied to \mathbf{X} on model f as: \Delta_{\rm{drift}}(\mathcal{T};\mathbf{X}):=\mathbb{E}_{\mathcal{T}}[\lVert f(\mathcal{T}(\mathbf{X}))-f(\bf X_{\mathrm{tar}})\rVert]. Then, we have: \displaystyle\Delta_{\rm{drift}}(\mathcal{T};\mathbf{X_{\mathrm{tar}}})\leq L\alpha (7) \displaystyle\Delta_{\rm{drift}}(\tilde{\mathcal{T}};\mathbf{X}_{\rm{aux}}^{(p)})\leq L\tilde{\alpha}+\delta. Specifically, the term L\alpha captures the inherent asymmetry caused by transformations in pixel space, requiring the multiplier L to map pixel-level perturbations into embedding space. In contrast, the auxiliary data directly operates in embedding space, leading to a manageable bound \delta . Practically, estimating \delta is notably easier than estimating L\alpha . Lower \delta inherently indicates better semantic alignment, allowing \mathtt{M\text{-}Attack\text{-}V2} to operate effectively under reduced distortion ( \tilde{\alpha}\ll\alpha ). Thus, ATA strategically allocates its shift budget toward more meaningful exploration via \delta , achieving a sweet spot between exploration and exploitation. Figure 4 : Visualization of adversarial samples under \epsilon=8 . Input : clean image \mathbf{X}_{\mathrm{clean}} ; primary target \mathbf{X}_{\mathrm{tar}} ; auxiliary set {\color[rgb]{0.7031,0.0625,0.0703}\mathcal{A}}=\bigl\{\mathbf{X}_{\mathrm{aux}}^{(p)}\bigr\}_{p=1}^{P} ; patch ensemble + {\color[rgb]{0.7031,0.0625,0.0703}\Phi^{+}}=\{\phi_{j}\}_{j=1}^{m} ; iterations n , step size \alpha , perturbation budget \epsilon ; number of crops K , auxiliary weight \lambda\ (0\leq\lambda\leq 1) Output : adversarial image \mathbf{X}_{\mathrm{adv}} \mathbf{X}_{\mathrm{adv}}\leftarrow\mathbf{X}_{\mathrm{clean}} 1 for i=1 to n do 2 Draw {\color[rgb]{0.7031,0.0625,0.0703}K} transforms \{\mathcal{T}_{k}\}_{k=1}^{K}\sim\mathcal{D} , g\leftarrow\mathbf{0} 3 for k=1 to K (vectorizable) do 4 Draw \{{\tilde{\mathcal{T}}_{p}}\}_{p=0}^{P}\sim\tilde{D} 5 for j=1 to m do 6 y_{0}=f(\tilde{\mathcal{T}}_{p}(\mathbf{X}_{\text{tar}})) , {\color[rgb]{0.7031,0.0625,0.0703}y_{p}=f(\tilde{\mathcal{T}}_{p}(\mathbf{X}_{\text{aux}}^{(p)})),p=1,\dots,P} 7 Compute \hat{\mathcal{L}}_{k}=(f_{\phi_{j}}(\mathcal{T}_{k}(\mathbf{X}_{\text{sou}})),y_{0})+{\color[rgb]{0.7031,0.0625,0.0703}\frac{\lambda}{P}\sum_{p=1}^{P}\mathcal{L}(f_{\phi_{j}}(\mathcal{T}_{k}(x)),\tilde{y}_{p})} 8 g\leftarrow g+\frac{1}{Km}\nabla_{\mathbf{X}_{\text{sou}}}\hat{\mathcal{L}}_{k} 9 end for 10 end for 11 Update \mathbf{X}_{\text{adv}} based on g with Patch Momentum 12 end for 13 return \mathbf{X}_{\mathrm{adv}} 14 Algorithm 1 \mathtt{M\text{-}Attack\text{-}V2} Computation Analysis. Each iteration back-propagates through the K source crops and only forward-propagates the P auxiliary targets. Since a backward pass is roughly twice as expensive as a forward pass, the per-iteration complexity is \mathcal{O}\!\bigl(K\,(3+P)\bigr) , doubling overhead when P=3 . Note that the additional overhead is parallelizable. The detailed analysis and comparison are in the appendix. 3.5 Patch Momentum with Built-in Replay Effect Momentum, introduced in MI-FGSM ( 10 ) , is widely adopted for transferability. Define the momentum buffer as: m_{r}=\beta_{1}m_{r-1}+(1-\beta_{1})\nabla_{\hat{\bf x}^{s}}\hat{\mathcal{L}}_{r}(\hat{\bf x}^{s}), where \beta_{1}\in[0,1) is the first-order momentum coefficient and \nabla_{\hat{\bf x}^{s}}\hat{\mathcal{L}}_{r}(\hat{\bf x}^{s}) is our MCA-ATA-estimated gradient g_{r} at iteration r . Under the local-matching view, this mechanism can be reinterpreted as formulating a streaming MCA to enforce temporal consistency across gradient directions in the space of random crops. Unrolling the EMA for pixel k exposes an alternative interpretation: m_{i}(k)=(1-\beta)\sum_{j=0}^{i}\beta^{j}\,\mathbf{1}\!\{k\in M_{i-j}\}g_{i-j}(k), (8) where M_{i} denotes the pixel indices included in iteration i , m_{i}(k) and g_{i}(k) respectively denotes momentum and gradient for pixel k . Each crop involving pixel k is therefore replayed in future iterations with geometrically decaying weight, allowing rarely sampled regions (such as corners) to persist long enough to combat the gradient starvation. Spike - shaped gradients are further moderated by the Adam - style ( 17 ) second moment, v_{r}=\beta_{2}v_{r-1}+(1-\beta_{2})g_{r}^{2} , whose scaling effect is essential in our empirical study. The momentum does not directly improve gradient similarity but continuously re-injects historical crops across patches, effectively maintaining gradient directionality across local perturbation manifolds. We therefore term it Patch Momentum to distinguish. The whole procedure, combining MCA, ATA, and PM, is detailed in Alg. 1 . We use a different color to differentiate between \mathtt{M\text{-}Attack\text{-}V2} and \mathtt{M\text{-}Attack} . We use PGD ( 30 ) with ADAM ( 17 ) for line 12. Appendix presents analogous results for variants. Table 1 : Comparison of attack methods on three black-box commercial LVLMs. † : pre-trained on LAION ( 36 ) . Method Model GPT-5 Claude 4.0-thinking Gemini 2.5-Pro Imperceptibility \text{KMR}_{a} \text{KMR}_{b} \text{KMR}_{c} ASR \text{KMR}_{a} \text{KMR}_{b} \text{KMR}_{c} ASR \text{KMR}_{a} \text{KMR}_{b} \text{KMR}_{c} ASR \ell_{1}\!\downarrow \ell_{2}\!\downarrow AttackVLM ( 43 ) B/16 0.08 0.03 0.02 0.05 0.03 0.00 0.00 0.00 0.08 0.04 0.00 0.00 0.034 0.040 B/32 0.07 0.05 0.04 0.02 0.03 0.03 0.00 0.01 0.09 0.05 0.00 0.02 0.036 0.041 Laion † 0.02 0.01 0.00 0.03 0.02 0.01 0.00 0.00 0.09 0.05 0.00 0.01 0.035 0.040 AdvDiffVLM ( 12 ) Ensemble 0.04 0.02 0.01 0.01 0.04 0.01 0.01 0.01 0.03 0.01 0.00 0.00 0.064 0.095 SSA-CWA ( 7 ) Ensemble 0.08 0.04 0.00 0.08 0.03 0.02 0.01 0.05 0.05 0.03 0.01 0.08 0.059 0.060 AnyAttack ( 42 ) Ensemble 0.09 0.03 0.00 0.06 0.05 0.03 0.00 0.01 0.35 0.06 0.01 0.34 0.048 0.052 FOA-Attack ( 16 ) Ensemble 0.90 0.67 0.23 0.94 0.13 0.09 0.00 0.13 0.61 0.80 0.15 0.86 0.031 0.036 \mathtt{M\text{-}Attack} ( 23 ) Ensemble 0.89 0.65 0.25 0.98 0.12 0.03 0.00 0.08 0.81 0.57 0.15 0.83 0.030 0.036 \mathtt{M\text{-}Attack\text{-}V2} (Ours) Ensemble 0.92 0.79 0.30 1.00 0.27 0.17 0.04 0.30 0.87 0.72 0.22 0.97 0.038 0.044 4 Experiments 4.1 Experimental Setup Metrics. We adopt the evaluation protocol of \mathtt{M\text{-}Attack} , reporting the Attack Success Rate (ASR) via GPTScore and the Keywords Matching Rate (KMR) at three thresholds \{0.25,0.5,1.0\} , denoted as KMR a , KMR b , and KMR c ( 23 ) . KMR measures semantic alignment using human-annotated keywords, considering a match successful if the rate exceeds threshold x . The evaluation follows \mathtt{M\text{-}Attack} exactly. Table 2 : Comparison on open-source LVLMs (Qwen-2.5-VL and LLaVA-1.5). Higher KMR a/b/c and ASR are better. Method Qwen-2.5-VL LLaVA-1.5 KMR a KMR b KMR c ASR KMR a KMR b KMR c ASR AttackVLM 0.12 0.04 0.00 0.01 0.11 0.03 0.00 0.07 SSA-CWA 0.36 0.25 0.04 0.38 0.29 0.17 0.04 0.34 AnyAttack 0.53 0.28 0.09 0.53 0.60 0.32 0.07 0.58 FOA-Attack 0.83 0.61 0.20 0.91 0.94 0.75 0.29 0.95 \mathtt{M\text{-}Attack} 0.80 0.65 0.17 0.90 0.85 0.59 0.20 0.95 \mathtt{M\text{-}Attack\text{-}V2} 0.87 0.67 0.27 0.95 0.96 0.83 0.29 0.96 Surrogate candidates. We follow surrogate selections from prior ensemble-based methods ( 42 ; 7 ; 12 ; 23 ) . Our candidate pool covers CLIP variants (CLIP-B/16, B/32, L/14, CLIP † -G/14, CLIP † -B/32, CLIP † -H/14, CLIP † -B/16, CLIP † -BG/14), DinoV2 ( 32 ) (Small, Base, Large), and BLIP-2 ( 21 ) ). Victim models and dataset. We evaluate state-of-the-art commercial MLLMs: GPT - 4o/o3/5, Claude - 3.7/4.0 (extended), and Gemini - 2.5 - Pro - Preview ( 37 ) . Clean images are drawn from the NIPS 2017 Adversarial Attacks and Defenses Competition dataset ( 18 ) . Following SSA-CWA ( 8 ) and \mathtt{M\text{-}Attack} ( 23 ) , we randomly sample 100 images, retrieving auxiliary sets from the COCO training set ( 24 ) using CLIP-B/16 embedding similarity . Further results on a 1k-image subset are in the appendix, along with HuggingFace model identifiers. All the BLIP2 ( 21 ) variants on Huggingface share the same vision encoder. Therefore, we use only one. The milder target transformation includes random resized crop ( [0.9,1.0] ), random horizontal flip ( p=0.5 ), and random rotation ( \pm 15^{\circ} ). Hyperparameters. Unless noted, perturbations are bounded by \ell_{\infty} with \epsilon=16 and optimized for 300 steps. We set the step size to \alpha=0.75 for Claude and \alpha=1.0 for all other methods, mirroring \mathtt{M\text{-}Attack} . For \mathtt{M\text{-}Attack\text{-}V2} , \alpha=1.275 , \beta_{1}=0.9,\beta_{2}=0.99 for momentum, K=10 , P=2 , and \lambda=0.3 for MCA and ATA. Ablation of these parameters is presented in the appendix. Figure 5 : Comparison of two types of attention maps. Left: attention map that sparsely separates into different regions; right: attention map that focuses on the main object. Table 3 : Comparison of embedding transferability over 1k images. MCA/ATA excluded to show standalone performance. C/D = CLIP/DinoV2. Gray denotes selected models. Surrogate C−L/14 C † −L/14 D−S/14 D−B/14 D−L/14 C−B/16 C † −B/16 C−B/32 C † −B/32 BLIP2 Avg/14 Avg/16 Avg/32 Avg/All C−L/14 N/A 0.40 0.10 0.13 0.12 0.45 0.40 0.34 0.24 0.48 0.25 0.42 0.29 0.30 C † −L/14 0.44 N/A 0.24 0.24 0.21 0.55 0.57 0.37 0.33 0.61 0.35 0.56 0.35 0.39 D−S/14 0.25 0.39 N/A 0.45 0.38 0.41 0.45 0.32 0.25 0.46 0.39 0.43 0.28 0.37 D−B/14 0.29 0.36 0.33 N/A 0.51 0.37 0.39 0.31 0.23 0.47 0.39 0.38 0.27 0.36 D−L/14 0.26 0.31 0.12 0.32 N/A 0.31 0.34 0.30 0.21 0.42 0.29 0.33 0.26 0.29 C−B/16 0.44 0.43 0.21 0.18 0.13 N/A 0.53 0.37 0.27 0.51 0.32 0.53 0.32 0.34 C † −B/16 0.43 0.51 0.22 0.21 0.15 0.57 N/A 0.39 0.34 0.52 0.34 0.57 0.36 0.37 C−B/32 0.37 0.43 0.21 0.11 0.09 0.55 0.53 N/A 0.49 0.46 0.28 0.54 0.49 0.36 C † −B/32 0.31 0.49 0.27 0.18 0.12 0.53 0.61 0.58 N/A 0.50 0.31 0.57 0.58 0.40 BLIP2 0.39 0.43 0.15 0.20 0.26 0.45 0.43 0.33 0.25 N/A 0.29 0.44 0.29 0.32 Table 4: Effect of removing each component. Numbers below each value denote the change relative to the full model (first row). ✗ marks the component(s) disabled. Component Gemini 2.5-Pro Claude 3.7-extended MCA ATA PM KMR a KMR b KMR c ASR KMR a KMR b KMR c ASR 0.87 0.72 0.22 0.97 0.56 0.32 0.11 0.67 ✗ 0.85 \downarrow 0.02 0.70 \downarrow 0.02 0.21 \downarrow 0.01 0.92 \downarrow 0.05 0.52 \downarrow 0.04 0.35 \uparrow 0.03 0.08 \downarrow 0.03 0.66 \downarrow 0.01 ✗ 0.85 \downarrow 0.02 0.68 \downarrow 0.04 0.21 \downarrow 0.01 0.93 \downarrow 0.04 0.55 \downarrow 0.01 0.22 \downarrow 0.10 0.10 \downarrow 0.01 0.62 \downarrow 0.05 ✗ ✗ 0.82 \downarrow 0.05 0.62 \downarrow 0.10 0.22 – 0.93 \downarrow 0.04 0.44 \downarrow 0.12 0.31 \downarrow 0.01 0.08 \downarrow 0.03 0.62 \downarrow 0.05 ✗ 0.82 \downarrow 0.05 0.71 \downarrow 0.01 0.21 \downarrow 0.01 0.96 \downarrow 0.01 0.52 \downarrow 0.04 0.32 \downarrow 0.00 0.10 \downarrow 0.01 0.66 \downarrow 0.01 Table 5 : Results of \mathtt{M\text{-}Attack\text{-}V2} on the vision reasoning model. Model KMR a KMR b KMR c ASR GPT-o3 (o3-2025-04-16) 0.91 0.71 0.23 0.98 4.2 Selection of Surrogate Model Ensembling multiple surrogate models is standard for improving black-box transferability, and recent work primarily designs advanced aggregation schemes over a small set of surrogates ( 42 ; 12 ) . In contrast, we begin with a much larger candidate pool and find that which models are included already has a substantial impact: pre-selecting a few strong and complementary surrogates yields clear gains, even with plain averaging. We do not propose a novel aggregation rule; instead, we study a practical large-pool selection strategy that has been less studied and reported before but can serve as the very first stage of a complicated ensemble (pre-select useful candidates, then optionally apply more sophisticated aggregation). Concretely, we first profile embedding-level transferability across all candidates (Tab. 3 ), which shows that cross-model transfer, especially cross-patch-size transfer, is challenging. Guided by this, we retain only models that (i) perform well in Tab. 3 and (ii) span diverse patch sizes to capture complementary inductive biases. A small ablation over these filtered models (see in the appendix) yields our final ensemble, Patch Ensemble + (PE + ), comprising CLIP † -G/14, CLIP-B/16, CLIP-B/32, and CLIP † -B/32. We treat PE + as an efficient, sparse pre-selection that can be used directly or further plugged into aggregation methods. Qualitative attention maps offer an intuitive explanation: selected models consistently focus on the main object, whereas discarded ones tend to spread attention over background regions, suggesting that emphasizing core semantic content is more transferable than dispersed, model-specific patterns. 4.3 Evaluation Across LVLMs and Settings Transferability across LVLMs. Tab. 1 illustrates the superiority of our \mathtt{M\text{-}Attack\text{-}V2} compared to the other black-box LVLM attack method with Tab. 2 on open-source models. Our method outperforms others by a large margin, including \mathtt{M\text{-}Attack} . On GPT-5 our \mathtt{M\text{-}Attack\text{-}V2} even achieves 100% ASR and 97% ASR on Gemini-2.5, with ASR on Claude 4.0-extended further improved by 22%, which is almost impossible for \mathtt{M\text{-}Attack} to attack. There is also a notable improvement on the KMR, indicating that our method generates a perturbation that targets the semantics more effectively, thus more recognizable by the target black-box model. Note that these improvements are accompanied by a slight increase in the perturbation norms for l_{1} and l_{2} . Previous l_{1} and l_{2} norms are caused by insufficient optimization through near-orthogonal gradients. Our \mathtt{M\text{-}Attack\text{-}V2} mitigates this issue, exploring more sufficiently inside the l_{\infty} ball. Thus, it slightly increases the perturbation magnitude while keeping the visual appearance almost unchanged. Fig. 4 shows representative adversarial examples. Recognizing that the raw \ell_{p} norm may not translate into human imperceptibility, we further evaluate the human imperceptibility in user studies reported in the appendix, showing nearly identical performance between \mathtt{M\text{-}Attack} and \mathtt{M\text{-}Attack\text{-}V2} , which consistently outperform all other methods. Performance under varying budgets. Fig. 6 compares performance under varying optimization budgets (total steps). Our method converges faster, approaching optimal results within 300 steps, whereas \mathtt{M\text{-}Attack} requires an additional 200 steps, suggesting slower convergence. At fewer steps (100 and 200), \mathtt{M\text{-}Attack} exhibits a notable performance drop. Meanwhile, our method maintains stable ASR and KMR b due to a more coherent optimization trajectory than \mathtt{M\text{-}Attack} , which is more sensitive to random cropping and aggressive target transformations. Additional results on varing \epsilon is presented in the appendix. Robustness Against Vision-Reasoning Models. Reasoning in text modality does not extend to alter information from the vision backbone. Instead, we further evaluate \mathtt{M\text{-}Attack\text{-}V2} against GPT-o3, a model enhanced with visual reasoning capabilities. As shown in Tab. 5 , GPT-o3 exhibits slightly better robustness than GPT-4o. However, the limited improvement suggests that its reasoning module is not explicitly trained to detect adversarial manipulations in the image. Thus, even after reasoning, GPT-o3 remains susceptible to \mathtt{M\text{-}Attack\text{-}V2} . The reasoning process is presented in the appendix, where it shows certain degrees of suspect in some images, and further utilize python tools for zooming. 4.4 Ablation Study Tab. 4 isolates the effect of each module beyond PE + (GPT - 4o is omitted due to negligible differences). On both Gemini-2.5-Pro and Claude-3.7-extended, activating MCA or ATA alone delivers \sim 5% gains on average, most visible in ASR and \text{KMR}_{b} , with consistent improvements on \text{KMR}_{a}/\text{KMR}_{c} . Additionally, removing PM yields only a minor drop in performance, suggesting it is complementary rather than fundamental. Overall, MCA and ATA constitute the principal mechanisms for variance reduction. At the same time, PM serves as a low-cost memory that extends the effective momentum horizon via a biased gradient, further suppressing variance and adding robustness. 5 Conclusion Figure 6 : Comparison under different step budgets. In this work, we diagnosed \mathtt{M\text{-}Attack} ’s unstable gradients as arising from high variance and overlooked asymmetric matching, and address them with a principled gradient-denoising framework. Multi-Crop Alignment (MCA), Auxiliary Target Alignment (ATA), and Patch Momentum (PM), together with a refined surrogate ensemble (PE + ), form our proposed framework, which achieves state-of-the-art transfer-based black-box attacks on LVLMs. We hope these insights help achieve more stable and transferable adversarial optimization under realistic black-box constraints. Impact Statement This work strengthens transfer-based black-box attacks on large vision–language models, improving the ability to stress-test real-world multimodal systems used in assistants, search, and content generation. By revealing key instabilities in local-level matching and proposing simple gradient-denoising fixes, our methods can help researchers and practitioners build more reliable defenses, develop better robustness benchmarks, and identify failure modes before deployment. At the same time, more effective attacks can be misused to bypass safety filters, induce targeted hallucinations, or manipulate model outputs in high-stakes settings. To mitigate misuse, we have emphasized responsible disclosure, i.e., evaluate primarily on controlled benchmarks and public models, and will make full code/data/models publicly available in a way that supports reproducibility and defense research (e.g., including detection/mitigation baselines and clear guidance on safe use of our optimized generations), while avoiding instructions or configurations that lower the barrier to real-world harm. Appendix Contents Appendix A Additional Details for Theoretical Analysis A.1 Proof for Theorem 1 This section provides detailed proof of the upper bound in Eq. ( 5 ). For variance, we have \displaystyle\operatorname{Var}(\hat{g}_{K}) \displaystyle:=\mathbb{E}{\left\|\hat{g}_{K}-\mu\right\|}^{2} (9) \displaystyle=\mathbb{E}{\left\|\frac{1}{K}\sum_{k=1}^{K}(g_{k}-\mu)\right\|^{2}} \displaystyle=\frac{1}{K^{2}}\sum_{k=1}^{K}\sum_{\ell=1}^{K}\mathbb{E}[(g_{k}-\mu)^{\top}(g_{\ell}-\mu)] \displaystyle=\frac{1}{K^{2}}\left(\underbrace{\sum_{k=1}^{K}\mathbb{E}\|g_{k}-\mu\|_{2}^{2}}_{K\sigma^{2}}\right.+ \displaystyle\left.\underbrace{2\sum_{1\leq k<\ell\leq K}\mathbb{E}[\langle g_{k}-\mu,g_{\ell}-\mu\rangle]}_{\text{cross terms}}\right) The diagonal part is reduced to the mean. We now provide an upper bound for the cross terms. Recall p_{k\ell}=\frac{\left}{\lVert g_{k}-\mu\rVert^{2}\lVert g_{\ell}-\mu\rVert^{2}} , we have \mathbb{E}[\langle g_{k}-\mu,g_{\ell}-\mu\rangle]=\mathbb{E}\left[\rho_{k\ell}\|g_{k}-\mu\|_{2}\|g_{\ell}-\mu\|_{2}\right]. (10) Since all crops share the same marginal distribution, i.e. \mathbb{E}\lVert g_{k}-\mu\rVert_{2}=\mathbb{E}\lVert g_{\ell}-\mu\rVert_{2}=\sigma , applying the Cauchy-Schwarz inequality to Eq. ( 10 ) yields \displaystyle\mathbb{E}[\langle g_{k}-\mu,g_{\ell}-\mu\rangle] \displaystyle\leq\mathbb{E}[\rho_{k\ell}]\sqrt{\mathbb{E}\|g_{k}-\mu\|_{2}^{2}}\sqrt{\mathbb{E}\|g_{\ell}-\mu\|_{2}^{2}} (11) \displaystyle=\bar{\rho}\sigma^{2}, where \overline{p} is \mathbb{E}[p_{k\ell}],k\neq\ell . Plugging this into the double sum term yields \sum_{1\leq k<\ell\leq K}\mathbb{E}\left[\langle g_{k}-\mu,g_{\ell}-\mu\rangle\right]\leq\frac{K(K-1)}{2}\bar{\rho}\sigma^{2}. (12) The \frac{K(K-1)}{2} appears since there are total \frac{K(K-1)}{2} terms for \sum_{k<\ell} . Thus substituting Eq. ( 12 ) back to the cross item part in the Eq. ( 9 ) yields \displaystyle\operatorname{Var}(\hat{g}_{K}) \displaystyle\leq\frac{1}{K^{2}}\left(K\sigma^{2}+K(K-1)\overline{p}\sigma^{2}\right) (13) \displaystyle=\frac{1}{K}\sigma^{2}+\frac{K-1}{K}\overline{p}\sigma^{2} Therefore, we have the upper bound provided in the Sec. 3.3 . Input : clean image \mathbf{X}_{\mathrm{clean}} ; primary target \mathbf{X}_{\mathrm{tar}} ; auxiliary set {\color[rgb]{0.7031,0.0625,0.0703}\mathcal{A}}=\{\mathbf{X}_{\mathrm{aux}}^{(p)}\}_{p=1}^{P} ; patch ensemble + {\color[rgb]{0.7031,0.0625,0.0703}\Phi^{+}}=\{\phi_{j}\}_{j=1}^{m} ; iterations n , step size \alpha , perturbation budget \epsilon ; Adam \beta_{1},\beta_{2},\eta ; number of crops K , auxiliary weight \lambda Output : adversarial image \mathbf{X}_{\mathrm{adv}} \mathbf{X}_{\mathrm{adv}}\!\leftarrow\!\mathbf{X}_{\mathrm{clean}} , m\!\leftarrow\!0 , v\!\leftarrow\!0 1 for i=1 to n do 2 Draw K transforms \{\mathcal{T}_{k}\}_{k=1}^{K}\!\sim\!\mathcal{D} 3 g\!\leftarrow\!0 // accumulate over crops for k=1 to K do 4 // --- crop loop --- Draw \{\tilde{\mathcal{T}}_{p}\}_{p=0}^{P}\!\sim\!\tilde{\mathcal{D}} 5 for j=1 to m do 6 y_{0}=f(\tilde{\mathcal{T}}_{0}(\mathbf{X}_{\mathrm{tar}})) 7 y_{p}=f(\tilde{\mathcal{T}}_{p}(\mathbf{X}_{\mathrm{aux}}^{(p)}))\!,\;p=1,\dots,P 8 \hat{\mathcal{L}}_{k}\!=\!\mathcal{L}\bigl(f_{\phi_{j}}(\mathcal{T}_{k}(\mathbf{X}_{\mathrm{adv}})),y_{0}\bigr)\;+\;{\color[rgb]{0.7031,0.0625,0.0703}\frac{\lambda}{P}\!\sum_{p=1}^{P}\mathcal{L}\bigl(f_{\phi_{j}}(\mathcal{T}_{k}(\mathbf{X}_{\mathrm{adv}})),y_{p}\bigr)} 9 g\!\leftarrow\!g+\frac{1}{Km}\nabla_{\mathbf{X}_{\mathrm{adv}}}\hat{\mathcal{L}}_{k} 10 end for 11 end for 12 // --- Adam update --- m\!\leftarrow\!\beta_{1}m+(1-\beta_{1})g 13 v\!\leftarrow\!\beta_{2}v+(1-\beta_{2})g^{\odot 2} 14 \hat{m}\!\leftarrow\!m/(1-\beta_{1}^{i}) ; 15 \hat{v}\!\leftarrow\!v/(1-\beta_{2}^{i}) 16 \mathbf{X}_{\mathrm{adv}}\!\leftarrow\!\mathrm{clip}_{\mathbf{X}_{\mathrm{clean}},\epsilon}\!\bigl(\mathbf{X}_{\mathrm{adv}}+\alpha\,\hat{m}/(\sqrt{\hat{v}}+\eta)\bigr) 17 end for 18 return \mathbf{X}_{\mathrm{adv}} 19 Algorithm 2 \mathtt{M\text{-}Attack\text{-}V2} (Adam variant) Input : clean image \mathbf{X}_{\mathrm{clean}} ; primary target \mathbf{X}_{\mathrm{tar}} ; auxiliary set {\color[rgb]{0.7031,0.0625,0.0703}\mathcal{A}}=\{\mathbf{X}_{\mathrm{aux}}^{(p)}\}_{p=1}^{P} ; patch ensemble + {\color[rgb]{0.7031,0.0625,0.0703}\Phi^{+}}=\{\phi_{j}\}_{j=1}^{m} ; iterations n , step size \alpha , perturbation budget \epsilon ; momentum decay \gamma ; number of crops K , auxiliary weight \lambda Output : adversarial image \mathbf{X}_{\mathrm{adv}} \mathbf{X}_{\mathrm{adv}}\!\leftarrow\!\mathbf{X}_{\mathrm{clean}} , \mu\!\leftarrow\!0 1 for i=1 to n do 2 Draw K transforms \{\mathcal{T}_{k}\}_{k=1}^{K}\!\sim\!\mathcal{D} 3 g\!\leftarrow\!0 4 for k=1 to K do 5 Draw \{\tilde{\mathcal{T}}_{p}\}_{p=0}^{P}\!\sim\!\tilde{\mathcal{D}} 6 for j=1 to m do 7 y_{0}=f(\tilde{\mathcal{T}}_{0}(\mathbf{X}_{\mathrm{tar}})) 8 y_{p}=f(\tilde{\mathcal{T}}_{p}(\mathbf{X}_{\mathrm{aux}}^{(p)}))\!,\;p=1,\dots,P 9 \hat{\mathcal{L}}_{k}\!=\!\mathcal{L}\bigl(f_{\phi_{j}}(\mathcal{T}_{k}(\mathbf{X}_{\mathrm{adv}})),y_{0}\bigr)\;+\;{\color[rgb]{0.7031,0.0625,0.0703}\frac{\lambda}{P}\!\sum_{p=1}^{P}\mathcal{L}\bigl(f_{\phi_{j}}(\mathcal{T}_{k}(\mathbf{X}_{\mathrm{adv}})),y_{p}\bigr)} 10 g\!\leftarrow\!g+\frac{1}{Km}\nabla_{\mathbf{X}_{\mathrm{adv}}}\hat{\mathcal{L}}_{k} 11 end for 12 end for 13 // --- MI-FGSM update --- \mu\!\leftarrow\!\gamma\,\mu+\dfrac{g}{\lVert g\rVert_{1}} 14 \mathbf{X}_{\mathrm{adv}}\!\leftarrow\!\mathrm{clip}_{\mathbf{X}_{\mathrm{clean}},\epsilon}\!\bigl(\mathbf{X}_{\mathrm{adv}}+\alpha\,\mathrm{sign}(\mu)\bigr) 15 end for 16 return \mathbf{X}_{\mathrm{adv}} 17 Algorithm 3 \mathtt{M\text{-}Attack\text{-}V2} (MI-FGSM variant) Figure 7 : Comparison of one step between \mathtt{M\text{-}Attack} and \mathtt{M\text{-}Attack\text{-}V2} . A.2 Proof of Theorem 2 We begin with the drift analysis for \mathtt{M\text{-}Attack} : \displaystyle\Delta_{\text{drift}}(\mathcal{T};\mathbf{X}_{\mathrm{tar}}) \displaystyle=\mathbb{E}_{\mathcal{T}\sim D{\alpha}}[\lVert f(\mathcal{T}(\mathbf{X}_{\mathrm{tar}}))-f(\mathbf{X}_{\mathrm{tar}})\rVert] (14) \displaystyle\leq L\cdot\mathbb{E}_{\mathcal{T}\sim D{\alpha}}[\lVert\mathcal{T}(\mathbf{X}_{\mathrm{tar}})-\mathbf{X}_{\mathrm{tar}}\rVert] \displaystyle\leq L\alpha. Next, we analyze the drift for \mathtt{M\text{-}Attack\text{-}V2} using the triangle inequality and the above assumptions: \displaystyle\Delta_{\text{drift}}(\tilde{\mathcal{T}};\mathbf{X}_{\text{aux}}^{(p)}) \displaystyle=\mathbb{E}_{\tilde{\mathcal{T}}\sim D_{\tilde{\alpha}}}\!\bigl[\|f(\tilde{\mathcal{T}}(\mathbf{X}^{(p)}_{\text{aux}}))-f(\mathbf{X}_{\text{tar}})\|\bigr] \displaystyle\leq\mathbb{E}_{\tilde{\mathcal{T}}}\!\bigl[\|f(\tilde{\mathcal{T}}(\mathbf{X}^{(p)}_{\text{aux}}))-f(\mathbf{X}^{(p)}_{\text{aux}})\|+ \displaystyle\|f(\mathbf{X}^{(p)}_{\text{aux}})-f(\mathbf{X}_{\text{tar}})\|\bigr] \displaystyle=\mathbb{E}_{\tilde{\mathcal{T}}}\!\bigl[\|f(\tilde{\mathcal{T}}(\mathbf{X}^{(p)}_{\text{aux}}))-f(\mathbf{X}^{(p)}_{\text{aux}})\|\bigr]+ \displaystyle\mathbb{E}\!\bigl[\|f(\mathbf{X}^{(p)}_{\text{aux}})-f(\mathbf{X}_{\text{tar}})\|\bigr] \displaystyle\leq L\,\mathbb{E}_{\tilde{\mathcal{T}}}\!\bigl[\|\tilde{\mathcal{T}}(\mathbf{X}^{(p)}_{\text{aux}})-\mathbf{X}^{(p)}_{\text{aux}}\|\bigr]+\delta \displaystyle\leq L\tilde{\alpha}+\delta \displaystyle\qquad. Table 6: Ablation study on the impact of perturbation budget ( \epsilon ). \epsilon Method GPT - 4o Claude 3.7 - thinking Gemini 2.5 - Pro Imperceptibility \text{KMR}_{a} \text{KMR}_{b} \text{KMR}_{c} ASR \text{KMR}_{a} \text{KMR}_{b} \text{KMR}_{c} ASR \text{KMR}_{a} \text{KMR}_{b} \text{KMR}_{c} ASR \ell_{1}\!\downarrow \ell_{2}\!\downarrow 4 AttackVLM ( 43 ) 0.08 0.04 0.00 0.02 0.04 0.01 0.00 0.00 0.10 0.04 0.00 0.01 0.010 0.011 SSA - CWA ( 7 ) 0.05 0.03 0.00 0.03 0.04 0.01 0.00 0.02 0.04 0.01 0.00 0.04 0.015 0.015 AnyAttack ( 42 ) 0.07 0.02 0.00 0.05 0.05 0.05 0.02 0.06 0.05 0.02 0.00 0.10 0.014 0.015 \mathtt{M\text{-}Attack} ( 23 ) 0.30 0.16 0.03 0.26 0.06 0.01 0.00 0.01 0.24 0.14 0.02 0.15 0.009 0.010 \mathtt{M\text{-}Attack\text{-}V2} (Ours) 0.59 0.34 0.10 0.58 0.06 0.02 0.00 0.02 0.48 0.33 0.07 0.38 0.012 0.013 8 AttackVLM ( 43 ) 0.08 0.02 0.00 0.01 0.04 0.02 0.00 0.01 0.07 0.01 0.00 0.01 0.020 0.022 SSA - CWA ( 7 ) 0.06 0.02 0.00 0.04 0.04 0.02 0.00 0.02 0.02 0.00 0.00 0.05 0.030 0.030 AnyAttack ( 42 ) 0.17 0.06 0.00 0.13 0.07 0.07 0.02 0.05 0.12 0.04 0.00 0.13 0.028 0.029 \mathtt{M\text{-}Attack} ( 23 ) 0.74 0.50 0.12 0.82 0.12 0.06 0.00 0.09 0.62 0.34 0.08 0.48 0.017 0.020 \mathtt{M\text{-}Attack\text{-}V2} (Ours) 0.87 0.69 0.20 0.93 0.23 0.14 0.02 0.22 0.72 0.49 0.21 0.77 0.023 0.023 16 AttackVLM ( 43 ) 0.08 0.02 0.00 0.02 0.01 0.00 0.00 0.01 0.03 0.01 0.00 0.00 0.036 0.041 SSA - CWA ( 7 ) 0.11 0.06 0.00 0.09 0.06 0.04 0.01 0.12 0.05 0.03 0.01 0.08 0.059 0.060 AnyAttack ( 42 ) 0.44 0.20 0.04 0.42 0.19 0.08 0.01 0.22 0.35 0.06 0.01 0.34 0.048 0.052 \mathtt{M\text{-}Attack} ( 23 ) 0.82 0.54 0.13 0.95 0.31 0.21 0.04 0.37 0.81 0.57 0.15 0.83 0.030 0.036 \mathtt{M\text{-}Attack\text{-}V2} (Ours) 0.91 0.78 0.40 0.99 0.56 0.32 0.11 0.67 0.87 0.72 0.22 0.97 0.038 0.044 Thus, we have completed the proof of Theorem 3.5 . A.3 Justification for Assumptions Assumption 3.3 is derived from the retrieval mechanism for auxiliary data. Specifically, X_{\text{aux}}^{(p)} represents the p -th closest embedding to the target X_{\text{tar}} from a database \mathcal{D} , defined explicitly by: \mathbf{X}_{\text{aux}}^{(p)}\in\arg\mathrm{top}_{P}\left\{\mathbf{X}\in\mathcal{D}:\frac{f(\mathbf{X})^{\top}f(\mathbf{X}_{\text{tar}})}{|f(\mathbf{X})||f(\mathbf{X}_{\text{tar}})|}\right\}, (15) where \mathrm{top}_{P} denotes selecting the top- P nearest neighbors according to cosine similarity. Given that embeddings f(\mathbf{X}) are typically normalized, semantic closeness naturally bounds the expected distance between f(\mathbf{X}_{\text{aux}}^{(p)}) and f(\mathbf{X}_{\text{tar}}) by \delta , thus validating Assumption 3.3 . In such a case, to estimate \delta , use 2\big(1-f(\mathbf{X}_{\rm aux}^{(P)})^{\top}f(\mathbf{X}_{\rm tar})\big) Appendix B More Details on Our Algorithm Alg. 2 and Alg. 3 provide detailed update rule of line 13 in Alg. 1 . Fig. 7 provides a comparison between the entire procedure of \mathtt{M\text{-}Attack} and our \mathtt{M\text{-}Attack\text{-}V2} under the local-matching framework. Notably, \mathtt{M\text{-}Attack} utilizes a radical crop on the target image, risking unrelated or broken semantics for the source image to align. Our ATA anchors more points inside the semantic manifold (blue), and provides a mild transformation to provide a coherence sampling from the target semantic manifold. Appendix C More Details of Experimental Setup The experiment’s seed is 2023. It is conducted on a Linux platform (Ubuntu 22.04) with 6 NVIDIA RTX 4090 GPUs. The temperatures of all LLMs are set to 0. The threshold of the ASR is set to 0.3, following \mathtt{M\text{-}Attack} . Tab. 9 provides a map from model names in this paper to their identifiers in HuggingFace. We use GPT-5-thinking-low (setting reasoning effort to low in the API) for all results in the main paper, with results on other reasoning budgets presented in the Appx. G.3 Appendix D Full Process of Surrogate Model Selection This section details the process of selecting our final ensemble, PE + . Exhaustively testing all model combinations is computationally infeasible, so we employ a heuristic-driven approach. We begin by excluding DiNO-large and BLIP2 due to their poor transferability, as shown in Tab. 3 . Our initial experiments focus on evaluating the effectiveness of homogeneous ensembles—comprising models with the same patch size—versus mixed patch size ensembles. Specifically, we construct five ensembles: (1) patch-14 CLIP (CLIP-L/14, CLIP † -G/14), (2) patch-14 DiNOv2 (Dino-base, Dino-large), (3) patch-16 CLIP (CLIP-B/16, CLIP † -B/16), and (4) patch-32 CLIP (CLIP-B/32, CLIP † -B/32). Results are presented in Tab. 7 . These results reveal that the patch-32 CLIP ensemble performs best on Claude 3.7, while GPT-4o and Gemini 2.5 Pro favor models with patch sizes 14 and 16. This supports the findings in Sec. 4.2 : although using a fixed patch size can mitigate architectural bias, it still inherits the intrinsic bias of the patch size itself. To address this, we adopt a cross-patch size strategy. Starting from the patch-32 CLIP ensemble, due to its strong performance on Claude and consistent transferability across patch-16 and patch-32 models. We incrementally incorporate one model each from patch sizes 14 and 16. We evaluate various combinations, with results summarized in Tab. 8 . The resulting ensemble, PE + , achieves the most balanced performance, ranking first on 7 metrics and a close second on 3 others, across 12 evaluation metrics. Figure 8 : Visualization of adversarial samples under \epsilon=16 . Table 7 : Ablation on two-model surrogate sets. Bold numbers are the best in each column; underlined numbers are the second-best. Variant Surrogate Set (2 models) GPT-4o Claude 3.7-extended Gemini 2.5-Pro \text{KMR}_{a} \text{KMR}_{b} \text{KMR}_{c} ASR \text{KMR}_{a} \text{KMR}_{b} \text{KMR}_{c} ASR \text{KMR}_{a} \text{KMR}_{b} \text{KMR}_{c} ASR Pair 1 Dino-B, Dino-S 0.84 0.57 0.15 0.91 0.09 0.04 0.00 0.05 0.84 0.53 0.11 0.81 Pair 2 L16, B/16 0.86 0.69 0.21 0.96 0.16 0.10 0.01 0.16 0.84 0.59 0.15 0.91 Pair 3 L32, B/32 0.76 0.52 0.13 0.79 0.46 0.29 0.06 0.70 0.58 0.37 0.07 0.59 Pair 4 G/14, L14 0.86 0.61 0.24 0.94 0.07 0.02 0.00 0.06 0.82 0.64 0.23 0.92 Table 8 : Ablation on surrogate-set selection. Each row swaps one model in or out of a four-model ensemble. The fully grey PE + line is our final patch-diverse surrogate set ( CLIP † -G/14, CLIP-B/16, CLIP-B/32, CLIP † -B/32 ). Bold numbers denote the best score in each metric column across all variants, underline denote second best with neglectable gap of 0.01 Variant Surrogate Set GPT-4o Claude 3.7-extended Gemini 2.5-Pro \text{KMR}_{a} \text{KMR}_{b} \text{KMR}_{c} ASR \text{KMR}_{a} \text{KMR}_{b} \text{KMR}_{c} ASR \text{KMR}_{a} \text{KMR}_{b} \text{KMR}_{c} ASR PE 1 B/16, B/32, L32, L16 0.87 0.65 0.26 0.99 0.54 0.32 0.07 0.68 0.80 0.57 0.16 0.90 PE 2 Dino-B, B/32, L32, G/14 0.87 0.69 0.28 0.97 0.56 0.37 0.09 0.65 0.88 0.71 0.22 0.93 PE 3 L16, B/32, L32, G/14 0.85 0.65 0.23 0.99 0.57 0.40 0.09 0.73 0.84 0.61 0.19 0.93 PE 4 B/16, B/32, L32, Dino-B 0.89 0.67 0.19 0.98 0.55 0.41 0.07 0.63 0.87 0.67 0.23 0.96 PE 5 B/16, B/32, L32, Dino-S 0.90 0.72 0.25 0.97 0.48 0.33 0.08 0.59 0.83 0.63 0.17 0.90 PE + (Ours) B/16, B/32, L32, G/14 0.91 0.78 0.40 0.99 0.56 0.32 0.11 0.67 0.87 0.72 0.22 0.97 Table 9: Surrogate models and their corresponding HuggingFace identifier in our main paper. Surrogate (paper notation) Implementation (HuggingFace identifier) CLIP † -B/32 ( 14 ; 36 ) laion/CLIP-ViT-B-32-laion2B-s34B-b79K CLIP † -H/14 ( 14 ; 36 ) laion/CLIP-ViT-H-14-laion2B-s32B-b79K CLIP-L/14 ( 34 ) openai/clip-vit-large-patch14 CLIP † -B/16 ( 14 ; 36 ) laion/CLIP-ViT-B-16-laion2B-s34B-b88K CLIP † -BG/14 ( 14 ; 36 ) laion/CLIP-ViT-bigG-14-laion2B-39B-b160k Dino-Small ( 32 ) facebook/dinov2-small Dino-Base ( 32 ) facebook/dinov2-base Dino-Large ( 32 ) facebook/dinov2-large BLIP-2 (2.7 B) ( 21 ) Salesforce/blip2-opt-2.7b Appendix E More Ablation Study E.1 Ablation Study for Step Size This section provides an ablation study for the step size parameter \alpha to view its impact on the performance. Overall, selecting \alpha\in[0.5,1.0] provides better performance for SSA-CWA, \mathtt{M\text{-}Attack} . Our \mathtt{M\text{-}Attack\text{-}V2} prefer stepsize at 1.275, since it adopts ADAM as optimizer. Appendix F Success and Failure Examples Fig. 9 illustrates typical adversarial samples for successful and failed attacks of \mathtt{M\text{-}Attack\text{-}V2} across GPT/Claude and Gemini. In failure cases, the adversarial perturbations show weaker semantic correlation with the target label, whereas in successful cases, rough shapes of the target (such as trees or animals) can be clearly identified. We also observe that shared successful target images tend to appear neater and more centralized. Figure 9 : Success and failure modes of \mathtt{M\text{-}Attack\text{-}V2} shared by GPT 5/Claude 4.0-extended/Gemini 2.5-Pro. F.1 Ablation Study on MCA and ATA Hyperparameters Fig. 10 (left) shows transferability peaks around K=10\sim 20 , beyond which increased stability reduces beneficial noise regularization. Fig. 10 (right) demonstrates larger \lambda boosts diversity by aligning semantics closer to auxiliary data but risks impairing semantic accuracy (as measured by KMR). Fig. 11 (a,b) indicates minor impacts from P and momentum coefficient \beta ; setting P=2 optimizes performance and efficiency, and the default \beta=0.9 consistently yields robust results. Figure 10 : ASR and KMR a /KMR b vs. different K and \lambda . Appendix G Additional Results G.1 Additional Results on 1K image We compare \mathtt{M\text{-}Attack} and \mathtt{M\text{-}Attack\text{-}V2} across 1K images to improve statistical stability. We changed the threshold to multiple values since no additional keywords were added to the 900 images, thereby replacing the KMR with ASR at different matching levels. Our \mathtt{M\text{-}Attack\text{-}V2} consistently outperforms \mathtt{M\text{-}Attack} , demonstrating the superiority of our proposed strategy. (a) Effect of auxiliary set size P . (b) Effect of momentum parameter \beta . Figure 11 : Ablation study on auxiliary set size P and momentum parameter \beta . Table 10: Ablation study on the impact of perturbation budget ( \alpha ). \alpha Method GPT-4o Claude 3.7-thinking Gemini 2.5-Pro \text{KMR}_{a} \text{KMR}_{b} \text{KMR}_{c} ASR \text{KMR}_{a} \text{KMR}_{b} \text{KMR}_{c} ASR \text{KMR}_{a} \text{KMR}_{b} \text{KMR}_{c} ASR 0.25 SSA-CWA ( 7 ) 0.08 0.08 0.04 0.10 0.06 0.03 0.00 0.03 0.06 0.03 0.00 0.01 \mathtt{M\text{-}Attack} ( 23 ) 0.62 0.39 0.09 0.71 0.12 0.03 0.01 0.16 0.55 0.33 0.08 0.55 \mathtt{M\text{-}Attack\text{-}V2} (Ours) 0.86 0.61 0.21 0.96 0.43 0.28 0.5 0.52 0.82 0.29 0.18 0.89 0.50 SSA-CWA ( 7 ) 0.10 0.10 0.04 0.07 0.08 0.04 0.00 0.05 0.09 0.05 0.00 0.04 \mathtt{M\text{-}Attack} ( 23 ) 0.73 0.48 0.17 0.77 0.20 0.13 0.06 0.22 0.79 0.53 0.10 0.80 \mathtt{M\text{-}Attack\text{-}V2} (Ours) 0.87 0.64 0.23 0.96 0.58 0.34 0.13 0.67 0.83 0.59 0.17 0.94 1.00 SSA-CWA ( 7 ) 0.11 0.06 0.00 0.09 0.06 0.04 0.01 0.12 0.05 0.03 0.01 0.08 \mathtt{M\text{-}Attack} ( 23 ) 0.82 0.54 0.13 0.95 0.31 0.21 0.04 0.37 0.81 0.57 0.15 0.83 \mathtt{M\text{-}Attack\text{-}V2} (Ours) 0.92 0.77 0.42 0.98 0.55 0.36 0.08 0.67 0.85 0.73 0.22 0.98 1.275 SSA-CWA ( 7 ) 0.09 0.09 0.04 0.03 0.06 0.03 0.00 0.03 0.05 0.02 0.00 0.02 \mathtt{M\text{-}Attack} ( 23 ) 0.00 0.00 0.00 0.00 0.25 0.18 0.06 0.34 0.85 0.55 0.19 0.84 \mathtt{M\text{-}Attack\text{-}V2} (Ours) 0.91 0.78 0.40 0.99 0.56 0.32 0.11 0.67 0.87 0.72 0.22 0.97 Table 11: Comparison of results on 1K images. We provide ASR based on different thresholds as a surrogate for KMR following \mathtt{M\text{-}Attack} ( 23 ) . threshold GPT-4o Gemini-2.5-Pro Claude-3.7-extended \mathtt{M\text{-}Attack} \mathtt{M\text{-}Attack\text{-}V2} \mathtt{M\text{-}Attack} \mathtt{M\text{-}Attack\text{-}V2} \mathtt{M\text{-}Attack} \mathtt{M\text{-}Attack\text{-}V2} 0.3 0.868 0.983 0.714 0.915 0.289 0.632 0.4 0.614 0.965 0.621 0.870 0.250 0.437 0.5 0.614 0.871 0.539 0.673 0.057 0.127 0.6 0.399 0.423 0.310 0.556 0.015 0.127 0.7 0.399 0.412 0.245 0.342 0.013 0.089 0.8 0.234 0.328 0.230 0.289 0.008 0.009 0.9 0.056 0.150 0.049 0.087 0.001 0.005 G.2 Additional Results on FGSM framework We provide the results of the I-FGSM ( 19 ) and MI-FGSM ( 10 ) under our \mathtt{M\text{-}Attack} framework as complementary, presented in Tab. 12 . Results show that even under the FGSM framework, where the patchy gradient matter is smoothed by assigning \mathrm{sign}(\nabla\mathcal{L}) , \mathtt{M\text{-}Attack\text{-}V2} still benefit from momentum. Moreover, MI-FGSM still provides results comparable to those of the ADAM version. However, using PGD framework with ADAM optimizer is generally the better choice to unleash the potential of black-box attack fully since it can better explore in the space while also reducing scale issue with second-order momentum. G.3 Additional Results on Other GPT-5 Reasoning Modes GPT-5 provides four reasoning modes: minimum , low , medium , and high . While the main paper presents results using GPT-5-thinking- low , additional experiments on other reasoning modes are summarized in Tab. 13 . Our proposed \mathtt{M\text{-}Attack\text{-}V2} consistently achieves superior performance across all modes. Interestingly, providing additional thinking budget generally enhances model robustness, evidenced by a reduction in ASR and KMR. However, this improvement is not strictly monotonic: ASR first decreases from 100% ( low ) to 96% ( medium ) before slightly rebounding to 99% ( high ). A similar non-monotonic trend can also be observed elsewhere in the table. Table 12 : Ablation study of \mathtt{M\text{-}Attack\text{-}V2} under different optimizer/attack variants. Method Model GPT-5 (low) GPT-5 (medium) GPT-5 (high) \text{KMR}_{a} \text{KMR}_{b} \text{KMR}_{c} ASR \text{KMR}_{a} \text{KMR}_{b} \text{KMR}_{c} ASR \text{KMR}_{a} \text{KMR}_{b} \text{KMR}_{c} ASR SSA - CWA ( 7 ) Ensemble 0.08 0.04 0.00 0.08 0.09 0.05 0.01 0.06 0.10 0.05 0.01 0.07 FOA - Attack ( 16 ) Ensemble 0.90 0.67 0.23 0.94 0.90 0.69 0.21 0. 96 0.87 0.68 0.24 0.96 \mathtt{M\text{-}Attack} ( 23 ) Ensemble 0.89 0.65 0.25 0.98 0.85 0.61 0.16 0. 96 0.80 0.60 0.20 0.93 \mathtt{M\text{-}Attack\text{-}V2} (Ours) Ensemble 0.92 0.79 0.30 1.00 0.90 0.73 0.25 0.96 0.88 0.71 0.27 0.99 Table 13 : Comparison on GPT - 5 under three budget settings (low/medium/high). Method Model GPT-4o Claude 3.7-extended Gemini 2.5-Pro \text{KMR}_{a} \text{KMR}_{b} \text{KMR}_{c} ASR \text{KMR}_{a} \text{KMR}_{b} \text{KMR}_{c} ASR \text{KMR}_{a} \text{KMR}_{b} \text{KMR}_{c} ASR \mathtt{M\text{-}Attack\text{-}V2} -ADAM (Ours) Ensemble 0.91 0.78 0.40 0.99 0.56 0.32 0.11 0.67 0.87 0.72 0.22 0.97 \mathtt{M\text{-}Attack\text{-}V2} -FGSM Ensemble 0.85 0.64 0.19 0.98 0.40 0.26 0.08 0.46 0.83 0.65 0.17 0.90 \mathtt{M\text{-}Attack\text{-}V2} -MIFGSM Ensemble 0.90 0.66 0.23 0.96 0.45 0.30 0.07 0.57 0.84 0.64 0.15 0.87 G.4 Cross-Domain Evaluation on Medical and Overhead Imagery Beyond the general-domain datasets, we further probe transferability to domains that are notoriously challenging for closed-source VLMs: chest X-rays and overhead remote sensing. Concretely, we augment the NIPS 2017 adversarial competition evaluation with images from ChestMNIST , from MedMNIST ( 41 ) and PatternNet ( 20 ) . We keep the target set unchanged and reuse the same attack budget and optimization hyper-parameters as in the main experiments. These domains are non-photographic and typically elicit generic captions from off-the-shelf VLMs, making them a stringent test of cross-domain transfer. We report \text{KMR}_{a}/\text{KMR}_{b}/\text{KMR}_{c} and ASR (higher is better) on GPT-4o, Claude 3.7, and Gemini 2.5 in Tables 14 and 18 . Across both datasets, \mathtt{M\text{-}Attack\text{-}V2} consistently surpasses \mathtt{M\text{-}Attack} and prior baselines. On PatternNet , \mathtt{M\text{-}Attack\text{-}V2} improves Claude 3.7 ASR from 0.48 to 0.73 (+0.25) and raises GPT-4o \text{KMR}_{a/b/c} to 0.83/0.71/0.24. On ChestMNIST , the gains are even larger on Claude 3.7 (ASR 0.31 \rightarrow 0.83, +0.52), while \mathtt{M\text{-}Attack\text{-}V2} also achieves the highest \text{KMR}_{a/b/c} on Gemini 2.5 (0.89/0.76/0.33). The only exception is ChestMNIST ASR on Gemini 2.5, where \mathtt{M\text{-}Attack} is marginally higher (0.96 vs. 0.95), despite \mathtt{M\text{-}Attack\text{-}V2} yielding stronger keyword-match rates. Table 14 : Cross-domain results on PatternNet ( 20 ) . We report \text{KMR}_{a}/\text{KMR}_{b}/\text{KMR}_{c} and ASR (higher is better). Bold = best in column; underline = second best. The shaded row is our method. Method GPT-4o Claude 3.7 Gemini 2.5 \text{KMR}_{a} \text{KMR}_{b} \text{KMR}_{c} ASR \text{KMR}_{a} \text{KMR}_{b} \text{KMR}_{c} ASR \text{KMR}_{a} \text{KMR}_{b} \text{KMR}_{c} ASR AttackVLM 0.06 0.01 0.00 0.02 0.06 0.02 0.00 0.00 0.09 0.04 0.00 0.03 SSA-CWA 0.05 0.02 0.00 0.13 0.04 0.03 0.00 0.07 0.08 0.02 0.01 0.15 AnyAttack 0.06 0.03 0.00 0.05 0.03 0.01 0.00 0.05 0.06 0.02 0.00 0.05 \mathtt{M\text{-}Attack} 0.79 0.66 0.21 0.93 0.33 0.17 0.04 0.48 0.86 0.71 0.23 0.91 \mathtt{M\text{-}Attack\text{-}V2} 0.83 0.71 0.24 0.93 0.58 0.40 0.09 0.73 0.88 0.68 0.22 0.97 G.5 Robustness to input–preprocessing defenses We evaluate two input–preprocessing defenses—JPEG recompression (quality Q{=}75 ) and diffusion-based purification (DiffPure) with denoising budgets t{=}25 and t{=}75 . As summarized in Table 17 , the JPEG results show that M-Attack-V2 remains strong while prior attacks substantially degrade, suggesting resilience to quantization and mild photometric shifts. DiffPure reduces success rates for all methods; however, M-Attack-V2 preserves a clear margin at t{=}25 and remains the most effective even under the aggressive t{=}75 setting, where purification approaches image regeneration. G.6 Human Perceptual Study To evaluate the perceptual stealth of the perturbations beyond static metrics such as the \ell_{p} norm, we conducted two user studies comparing adversarial samples from \mathtt{M\text{-}Attack\text{-}V2} and several baseline attacks against clean images. M-Attack-V2 against Clean Images. Participants were shown 50 images (25 perturbed by \mathtt{M\text{-}Attack\text{-}V2} and 25 unmodified) in a random order and asked to label each image as “perturbed” or “clean”. Adversarial images were generated with a perturbation budget \epsilon=16 or \epsilon=8 . Results, averaged over 10 distinct user groups, are summarized in Table 15 . On average, only 42\% of M-Attack-V2 adversarial images are correctly identified as corrupted, meaning that 58\% of them pass the human check even under explicit supervision. We further repeat this study at a smaller perturbation budget \epsilon=8 , since \mathtt{M\text{-}Attack\text{-}V2} still exceeds other methods by a large margin even under \epsilon=8 . As shown in Table 15 , the proportion of adversarial images identified by users drops from 42\% to 27.4\% when reducing \epsilon from 16 to 8 , while the confusion between adversarial and real images also increases, and the error of identifying clean images also increases. These results highlight the potential threat of \mathtt{M\text{-}Attack\text{-}V2} in real-world scenarios where human inspection is relied upon. Comparison across Attack Methods. In a second study, each participant (10 in total) was shown 40 images: 10 adversarial examples from each of AnyAttack, SSA-CWA, M-Attack-V1, and M-Attack-V2 (again at \epsilon=16 ). Participants were told that exactly half of the images were corrupted and asked to select the 20 images they believed were mostly perturbed. This protocol directly compares the perceptual stealthiness of different attacks. As reported in Table 16 , AnyAttack is the most easily detected method, with 84\% of its images identified as perturbed. SSA-CWA is somewhat less detectable ( 54\% ), while M-Attack-V1 and M-Attack-V2 are flagged as perturbed only about 30\% of the time, indicating substantially higher perceptual stealth. Notably, this \mathtt{M\text{-}Attack} and \mathtt{M\text{-}Attack\text{-}V2} share a similar portion, showing that the slight differences in perturbations’ \ell_{p} norm do not necessarily translate to the final human imperceptibility. Table 15 : Human study on the imperceptibility of \mathtt{M\text{-}Attack\text{-}V2} under different perturbation budgets. We report the proportion (%) of images identified by users; results are averaged over 10 user groups (mean \pm std). Proportion \epsilon=16 , Mean \pm Std \epsilon=8 , Mean \pm Std Adversarial images correctly identified 42\pm 1.7 27.4\pm 1.6 Original images correctly identified 98\pm 1.6 93.1\pm 2.3 Table 16 : Proportion of adversarial images from each attack that participants judged as perturbed in Study II (all at \epsilon=16 ). Lower values indicate more perceptually stealthy perturbations. Method Identified as perturbed images (%) AnyAttack 84\pm 4.47 SSA-CWA 54\pm 8.49 M-Attack-V1 30\pm 10.1 M-Attack-V2 32\pm 8.0 Table 17 : Unified robustness under input–preprocessing defenses. We report \text{KMR}_{a} , \text{KMR}_{b} , \text{KMR}_{c} , and ASR (↑) for GPT - 4o, Claude-3.7, and Gemini-2.5. Bold indicates the best value within each metric column for the given defense block; shaded cells highlight M - Attack - V2 (numeric cells only). Setting Method GPT-4o Claude 3.7 Gemini 2.5 \text{KMR}_{a} \text{KMR}_{b} \text{KMR}_{c} ASR \text{KMR}_{a} \text{KMR}_{b} \text{KMR}_{c} ASR \text{KMR}_{a} \text{KMR}_{b} \text{KMR}_{c} ASR JPEG ( Q{=}75 ) AttackVLM 0.06 0.02 0.00 0.03 0.07 0.02 0.00 0.02 0.08 0.04 0.00 0.04 SSA-CWA 0.08 0.04 0.01 0.10 0.07 0.02 0.00 0.05 0.09 0.06 0.01 0.09 AnyAttack 0.06 0.03 0.00 0.05 0.04 0.01 0.00 0.03 0.08 0.03 0.00 0.05 \mathtt{M\text{-}Attack} 0.76 0.54 0.16 0.91 0.28 0.17 0.03 0.34 0.75 0.51 0.11 0.76 \mathtt{M\text{-}Attack\text{-}V2} 0.89 0.69 0.20 0.97 0.55 0.36 0.09 0.68 0.75 0.56 0.18 0.82 DiffPure ( t{=}25 ) AttackVLM 0.05 0.02 0.00 0.01 0.05 0.02 0.00 0.01 0.08 0.03 0.00 0.01 SSA-CWA 0.07 0.03 0.00 0.02 0.04 0.02 0.00 0.03 0.07 0.01 0.00 0.05 AnyAttack 0.07 0.03 0.00 0.04 0.02 0.02 0.00 0.04 0.09 0.04 0.00 0.07 \mathtt{M\text{-}Attack} 0.42 0.20 0.03 0.43 0.10 0.05 0.01 0.10 0.39 0.22 0.01 0.32 \mathtt{M\text{-}Attack\text{-}V2} 0.73 0.47 0.15 0.72 0.19 0.11 0.04 0.20 0.61 0.42 0.06 0.56 DiffPure ( t{=}75 ) AttackVLM 0.08 0.05 0.00 0.02 0.04 0.02 0.00 0.00 0.04 0.01 0.00 0.01 SSA-CWA 0.05 0.03 0.01 0.06 0.05 0.03 0.00 0.03 0.07 0.02 0.00 0.05 AnyAttack 0.05 0.00 0.00 0.06 0.04 0.02 0.00 0.03 0.04 0.02 0.00 0.07 \mathtt{M\text{-}Attack} 0.10 0.02 0.00 0.04 0.03 0.02 0.00 0.02 0.05 0.05 0.00 0.05 \mathtt{M\text{-}Attack\text{-}V2} 0.13 0.06 0.01 0.07 0.07 0.02 0.00 0.06 0.12 0.06 0.01 0.08 Table 18 : Cross-domain results on ChestMNIST , from MedMNIST ( 41 ) . We report \text{KMR}_{a}/\text{KMR}_{b}/\text{KMR}_{c} and ASR (higher is better). Bold = best in column; underline = second best. The shaded row is our method. Method GPT-4o Claude 3.7 Gemini 2.5 \text{KMR}_{a} \text{KMR}_{b} \text{KMR}_{c} ASR \text{KMR}_{a} \text{KMR}_{b} \text{KMR}_{c} ASR \text{KMR}_{a} \text{KMR}_{b} \text{KMR}_{c} ASR AttackVLM 0.06 0.01 0.00 0.03 0.05 0.02 0.00 0.02 0.08 0.03 0.00 0.02 SSA-CWA 0.06 0.03 0.00 0.15 0.04 0.03 0.00 0.07 0.08 0.02 0.01 0.14 AnyAttack 0.06 0.02 0.00 0.05 0.03 0.01 0.00 0.04 0.07 0.02 0.00 0.05 \mathtt{M\text{-}Attack} 0.89 0.70 0.22 0.92 0.31 0.18 0.07 0.31 0.85 0.67 0.23 0.96 \mathtt{M\text{-}Attack\text{-}V2} 0.90 0.74 0.27 0.97 0.70 0.51 0.21 0.83 0.89 0.76 0.33 0.95 Appendix H Computational Cost and Runtime Analysis This section analyzes the computational cost of \mathtt{M\text{-}Attack} and related baselines, first in terms of FLOPs and then in terms of wall-clock runtime. Let d denote the hidden dimension, d_{\mathrm{ff}}=4d the feed-forward expansion, and N the sequence length. In one Transformer layer, the feed-forward network (FFN) incurs 2Nd\,d_{\mathrm{ff}}=8Nd^{2} FLOPs, while multi-head attention adds 4Nd^{2}+4N^{2}d , giving a per-layer forward cost M\;\triangleq\;12Nd^{2}+4N^{2}d. Since the backward pass is empirically about twice as expensive as the forward pass, a complete forward–backward iteration for a single VLM requires approximately 3M FLOPs. Exhaustively accounting FLOPs for each architecture in an N -model ensemble is impractical. Instead, we introduce an empirically measured inflation factor \rho_{N}\;\triangleq\;\frac{\text{per-iteration FLOPs of the $N$-model ensemble}}{\text{per-iteration FLOPs of one CLIP-B/16}}, with \rho_{1}=1 . Under this convention: • AttackVLM costs 3M FLOPs per iteration. • M-Attack-V1 costs 3\rho_{N}M FLOPs per iteration. • SSA-CWA adds an inner sampling loop of \hat{K} steps for sharpness-aware minimization (SAM), lifting the complexity to 3\rho_{N}\hat{K}M . • M-Attack-V2 evaluates K local crops and, for each crop, forwards P auxiliary examples to reduce the variance of \mathtt{M\text{-}Attack} . This gives a complexity of \rho_{N}K\bigl(3M+PM\bigr)\;=\;\rho_{N}K(3+P)M, where P is typically a small integer (e.g., P=2 ). In practice, GPUs parallelize many of these operations, so wall-clock time per image does not scale linearly with FLOPs. On a single NVIDIA RTX 4090 GPU, we measure the average time per attacked image (while running a batched optimization with 32 images at the same time) as follows: • SSA-CWA: 545.80\pm 4.21 s per image; • M-Attack-V1: 22.04\pm 0.11 s per image; • M-Attack-V2 (with K=2 , P=2 ): 24.13\pm 0.84 s per image. Thus, with K=2,P=2 , \mathtt{M\text{-}Attack} increases the runtime of M-Attack-V1 by only 9.4\% , while yielding substantial gains in attack quality: on Claude 3.7, we observe improvements of +20\% , +17\% , +3\% , and +13\% on \text{KMR}_{a} , \text{KMR}_{b} , \text{KMR}_{c} , and ASR, respectively; on GPT-4o, the corresponding gains are +8\% , +3\% , +1\% , and +6\% . More results are presented in the Appx. F.1 . Therefore, our \mathtt{M\text{-}Attack\text{-}V2} offers a configurable option between efficient yet effective and highly effective attack (as presented in the main paper). We omit AttackVLM and AnyAttack from the empirical runtime comparison: AttackVLM reports relatively low attack performance, while AnyAttack devotes most of its computational budget to its novel pre-training stage, making its overall cost not directly comparable to inference-time attacks like ours. Figure 12 : Visualization of GPT-o3’s response towards \mathtt{M\text{-}Attack\text{-}V2} adversarial samples. The underlined ‘glitchy’ denotes that O3 notices something unusual. Appendix I Additional Visualization I.1 Visualization of Adversarial Samples Fig. 4 and Fig. 8 visualize adversarial samples of different black-box attack algorithms under different perturbation constraints. Under \epsilon=8 , no significant difference exists between \mathtt{M\text{-}Attack} and \mathtt{M\text{-}Attack\text{-}V2} . On the \epsilon=16 setting, the visual effect is still very close between \mathtt{M\text{-}Attack} and \mathtt{M\text{-}Attack\text{-}V2} . Since our \mathtt{M\text{-}Attack\text{-}V2} also greatly improves the results under \epsilon=8 , future directions might be improving the imperceptibility by adding constraints besides the \ell_{\infty} . We also provide all 100 images in the supplementary material for further reference. I.2 Visualization of Reasoning Models Fig. 12 illustrates how GPT-o3 ( 31 ) responds to our adversarial samples. The model’s visual reasoning behaviors can be broadly categorized into three types: no reasoning (response (d)), simple reasoning (responses (b) and (c)), and zoom-in reasoning (response (a)). Notably, in response (a), GPT-o3 already identifies the central area as uncertain and zooms in on it. However, its reasoning mechanism is not well-equipped to handle adversarial perturbations, resulting in a response that remains semantically close to the target image despite the perturbation. This observation suggests that vision reasoning offers a degree of robustness by detecting uncertainty and taking subsequent actions. During training, incorporating explicit behaviors, such as refusing to answer or flagging potential adversarial inputs, could further enhance the utility of vision-based inference under adversarial conditions.