Manuscript Offprint

arXiv:2610.07464

Protective Perturbations Must Survive the Resize: Scale-Robust Image Immunization against Malicious Editing

Zhongliang Guo, Yan Lin, Yifei Qian, Daizong Liu

Zhongliang Guo 1^{1} Yan Lin 2^{2} Yifei Qian 3^{3} Daizong Liu 4^{4}

1^{1}University of Aberdeen 2^{2}Newcastle University 3^{3}University of Nottingham 4^{4}Wuhan University

Protected photo, 11 MP ε=4/255\varepsilon=4/255

Figure

native-res crop

δ(×24)\delta (\times 24)

SRIM (ours)

edit broken

at every scale

range covered for this photo, s∈[1.63,6.69]s \in [1.63, 6.69]

outside: stress test

Figure

Figure

SRIM

Ours-obj.+EOT

Figure

editor resizes

by an unknown s

2048 px

Mist+EOT

best published:

edit goes through

1024 px

Mist+EOT

512 px

Figure

Figure

downscaling factor s (log scale)

mean edit LPIPS, 160 photos

Figure 1. A protected 11-megapixel photo edited by FLUX.2-klein (“Make it snowy winter”) after downscaling by s. Top and bottom rows: real edits under SRIM and under Mist+EOT, the strongest published protection with EOT; badges give the edit LPIPS to the unprotected edit (higher means a stronger disruption). Middle row: the editor’s inputs, drawn to scale (long side 2048, 1024, and 512 pixels). Ribbons: mean edit LPIPS over the 160 test photos (right scale), including our objective with EOT, which drops at the large-scale end (s = 8). Shaded: the scale range covered for this photo; s = 8 lies outside it. Insets: a native-resolution crop of the protected photo and the perturbation amplified ×24.

Abstract

Protective perturbations aim to stop malicious instruction-guided editing of personal photos, but they are optimized and evaluated at the editor's working resolution, whereas shared photos have 10 megapixels or more and editors first downscale them by an unknown factor. We model this resize as a frequency-selective channel. In this model, a perturbation computed at the native resolution decays with the downscaling factor and is weak even without a resize, and a perturbation computed at a fixed working resolution protects only a window of scales. The best worst-case protection over an unknown range of scales degrades only logarithmically with the width of the range, and averaging over scales does not reach it. Guided by this analysis, we propose SRIM, which samples a grid of anchor scales covering the whole range, with weights that favor the currently weakest scale, at the cost of standard expectation over transformation. On full-resolution photos of 9 to 30 megapixels and downscaling factors from 2 to 8, SRIM raises the worst-case disruption of FLUX.2-klein edits from 0.192 LPIPS, attained by the strongest published protection, to 0.463. At equal visibility, it roughly doubles the protection. The same protected photos also protect against the 9B model and against FLUX.2-dev, with worst cases of 0.450 and 0.386 against at most 0.184 for published protections, and SRIM leads on InstructPix2Pix as well.

1. Introduction

Instruction-guided editors built on diffusion and flow-matching transformers, such as FLUX.1 Kontext [6], Qwen-Image-Edit [19], and FLUX.2, turn a single photograph into a convincing forgery with one sentence of text. Since these editors are open and cheap to run, anyone who can download a personal photo can also falsify it.

A growing line of work therefore asks the owner of a photo to immunize it before sharing: a small adversarial perturbation is added so that any later edit of the image fails [3, 5, 7, 8, 13, 15, 18, 21]. We study this task in the setting in which it is used. The owner shares the photo at its native resolution, typically 10 to 30 megapixels, while the editor resizes its input to between 0.25 and 4 megapixels before encoding it. The editor therefore sees the protected photo only after an antialiased downscaling by a factor s that the owner does not know.

In general, existing protections can be roughly divided into two categories. Protections of the first category are computed at one resolution: either the editor's working resolution, typically 512×512512 \times 512 pixels for Stable Diffusion editors and about one megapixel for diffusion transformers, or the native resolution of the photo. Protections of the second category average the perturbation over random transformations with expectation over transformation (EOT) [1, 23]. Despite their effectiveness at the editor's working resolution, both categories lose most of their effect at the scales that real editors use. A single 0.5×0.5 \times resize already removes most of the protection of existing methods [16]. As shown in Figure 1, once the photo is downscaled, the strongest published protection with EOT no longer stops the edit. We argue that this limitation stems from a latent assumption of existing protections: that the editor sees the protected image at the scale for which the protection was optimized, or, with EOT, that protecting the average scale protects every scale. However, this assumption does not hold when an editor downscales the photo by a factor that the owner does not know. Viewed as a frequency-selective channel, the resize discards most of a native-resolution perturbation and keeps a fixed-resolution perturbation effective only in a narrow window of scales. When the protection is averaged over scales, the scales at the ends of the range remain uncovered (Sec. 4). This raises an intriguing question: is it possible to protect a photo at every scale at which an unknown editor may view it, at the cost of existing protections?

The answer to this question is positive. Instead of optimizing the protection for one expected scale or for the average over scales, we optimize it for the scale at which it is currently weakest. In general, our method, dubbed SRIM (Scale-Robust IMmunization), consists of two components. First, it places anchor scales on a grid that covers the whole range implied by the photo size, which addresses the first limitation (i.e., the narrow window of fixed-resolution protection). Second, at each step it draws one anchor from a distribution that tracks the currently weakest scale, in the spirit of group distributionally robust optimization [12], which addresses the second limitation (i.e., the uncovered ends of the range under averaging). Since each step encodes a single downscaled copy, SRIM costs the same as EOT and needs no knowledge of the editor's preprocessing. We also provide theoretical analysis showing that, under a linearized spectral model, the best worst-case protection degrades only logarithmically with the width of the scale range, whereas averaging over scales does not attain it (Sec. 5.1).

In conclusion, the main contributions of this paper are four-fold.

• We revisit image immunization under the resize that editors apply to shared photos, and reveal the root cause of its failure: the protection is optimized for a scale, or an average of scales, that the editor does not use.

• Based on our analysis, we propose SRIM, which covers the whole range of scales with anchors and spends each step on the currently weakest one, at the cost of EOT.

• We theoretically analyze protection under an unknown resize. We show that native-resolution protection decays with the downscaling factor and that fixed-resolution protection covers only a window of scales. We also show that the best worst-case protection degrades only logarithmically with the scale range, and that averaging over scales does not attain it.

• We conduct experiments on full-resolution photos and four editors, including FLUX.2-dev. On the FLUX.2 editors, SRIM raises the worst-case disruption of edits to 2.3 to 2.4 times that of the strongest published protection. On FLUX.2-klein, it also remains the strongest under resampling filters and input purification that it does not model.

References (26)