Manuscript Offprint

arXiv:2609.39723

Let the Carrier Carry the Attack: Preserving the Subject in Adversarial Image Generation

Linfeng Jiang, Steven McDonagh, Yuhang Chen, Xingyu Zhao, Siddartha Khastgir, Andi Zhang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Strong unrestricted adversarial attacks can distort the primary object of an image, hereafter referred to as the subject. To preserve subject integrity without compromising attack magnitude, we introduce the carrier: a secondary visual element that provides an auxiliary region to facilitate the attack under global classifier guidance. We demonstrate three key findings: 1. A carrier mitigates subject distortion by absorbing a larger share of globally normalized attack updates. 2. A carrier improves cross-model transferability, governed by the strength of target-related features that balance semantic separation and transfer performance. 3. Successful targeted attacks retain the personalized subject as the primary content perceived by humans while successfully misleading the classifier. Our results demonstrate that a visually secondary carrier offers an auxiliary spatial pathway for adversarial changes, enabling strong and transferable attacks while improving subject preservation. Code is available at https://github.com/DavidJlf/carrier-attack.

1 INTRODUCTION

Adversarial attacks aim to mislead classifiers while preserving human recognition of the image content (Goodfellow et al., 2015; Szegedy et al., 2014). Traditional attacks constrain perturbations within a small budget, whereas unrestricted attacks allow larger variations in pose, viewpoint, composition, and background (Zhang et al., 2026; Brown et al., 2018; Song et al., 2018). By operating on an entire object category rather than a single image, unrestricted attacks can generate diverse adversarial examples with higher attack efficiency while preserving the underlying semantics. Yet, as these attacks grow stronger to ensure misclassification, they tend to sacrifice the fidelity of the original subject. Moreover, targeted attacks impose an additional requirement: the classifier must predict a specified target class rather than merely deviate from the correct label. This motivates our central question: Can we achieve strong targeted attacks without sacrificing the integrity of the primary subject?

To address this challenge, we introduce a carrier: a visually secondary object, constructed separate from the primary subject, that provides an additional region for attack-related changes. We define an initial “No-Carrier” baseline which implements concept-based attack by Zhang et al. (2026); the approach already achieves strong WhiteBox attack performance as shown in Table 1. Our goal is to improve cross-model transferability and maintain high attack strength while preserving the subject. By adding a secondary region for the attack, the carrier reduces the relative update applied to the primary subject under normalization while its target-relevant features simultaneously boost transferability across different models.

To ensure the carrier remains visually secondary, we construct it separate from the primary subject by dividing the source image into subject and background layers. The carrier can then be realized in the background region through direct scene compositing or mask-guided inpainting conditioned on the source image.

∗^{*}Corresponding Author.

Constructing a background with the subject and carrier alone only produces an altered image rather than an attack. To demonstrate that the carrier is not tied to a single construction or attack-integration strategy, we explore three distinct attack realizations: Composite Reconstruction Attack (CRA), Clean Inpainting Reconstruction Attack (CIRA), and Joint Inpainting Attack (JIA). CRA starts from a clean composite, whereas CIRA starts from a completed clean inpainting. Inspired by inversion-based generative attacks (Chen et al., 2023; 2025), both routes invert the constructed image to an intermediate FLUX state and apply global normalized guidance during selected return steps, with LoRA conditioning supporting subject preservation. JIA instead couples carrier construction with classifier guidance within the same conditional inpainting trajectory, where each guided update is followed by native mask blending. All three routes use global normalized guidance, with the visually secondary carrier providing an additional semantic region outside the primary subject for expressing attack-related changes.

To evaluate how semantic alignment with the target class influences attack effectiveness and transferability, we compare three regimes: Non-Target Carrier, Hybrid Carrier, and Target Carrier. These conditions offer flexibility in trading semantic separation from the target against transferability. We also implement the original concept-based attack on FLUX as our No-Carrier baseline.

Our contributions can be summarized as follows:

• We identify a conditional update-allocation mechanism under global RMS normalization: for matched subject and remaining-region gradients, a carrier component reduces the normalized update applied to the primary-subject region. We further demonstrate improved subject preservation under matched strong attacks (Sections 3.1 and 5.2).

• We empirically show that a carrier improves cross-model transferability, with stronger target-related carrier characteristics yielding progressively larger gains. We further derive a conditional bound showing how a larger ideal target margin produces a non-decreasing guaranteed lower bound on targeted transferability (Sections 3.2 and 5.4).

• We develop a carrier-guided spatial attack framework across three realizations and show that a visually secondary carrier can support successful targeted attacks while retaining the primary subject as the primary image content (Sections 4 and 5.5).

References (29)