Manuscript Offprint

arXiv:2610.39189

Provably Secure Diffusion Watermarking Against Removal Adversaries with Batched Detector Access

De Zhang Lee, Ee-Chien Chang

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

De Zhang Lee

National University of Singapore

Ee-Chien Chang

National University of Singapore

Abstract—Recent latent-based watermarking methods can embed undetectable watermarks into AI-generated content. However, these approaches are vulnerable to removal attacks as their watermark detection boundaries are exposed, prompting the use of secret long-term transformations to hide these boundaries. We show that such defenses are insecure under a stronger threat model motivated by publicly reachable detectors: an adversary with batched detector access can reconstruct the transformations, permanently re-exposing the decision boundary. To address this, we propose a watermarking scheme based on a hybrid of long-term and one-time secret transformations, which prevents the reuse of structure across samples and keeps the long-term secret hidden. Besides undetectability, we show that this scheme is provably secure against removal adversaries with batched detector access, in the sense that no probabilistic polynomial-time adversary can achieve a non-negligible advantage over an adversary restricted to adding isotropic white-noise with a 2×\sqrt{2} \times larger perturbation budget, and we show this 2\sqrt{2} factor to be tight. Evaluations on Stable Diffusion 2.1 and XL demonstrate the attack against the existing defense, and show that our scheme preserves generation quality and withstands common perturbations and targeted removal attacks.

I. INTRODUCTION

The remarkable quality of Latent Diffusion Models (LDMs) has raised significant provenance and misuse concerns, driving interest in watermarking AI-generated content (AIGC) [1]. Notably, [2] proposed the notion of undetectability in latent-based watermarks, ensuring no polynomial-time algorithm can distinguish between watermarked and unwatermarked content.

However, recent work [3] demonstrated that watermark undetectability does not guarantee unremovability. Undetectability only ensures that watermarked and unwatermarked samples are indistinguishable, but it does not conceal the detector's decision boundary (e.g. the sign patterns of the individual latents in the PRC watermark [2], exploited in [3]). Thus, an adversary holding a known watermarked sample can perturb it directly toward this exposed boundary with small perturbations. In response, a boundary-hiding defense was proposed [3] using a secret long-term transformation, with a proof that no polynomial-time removal attack outperforms adding random white-noise, under the assumption of a passive adversary, i.e. who observes watermarked samples but has no detector access.

The passive adversary assumption was reasonable when watermark detectors were not publicly reachable, which may not reflect current deployment settings. For example, Google's SynthID [4], which watermarks Gemini's AIGC, already permits public detector access [5], with an announced detection API [6] that would enable batched queries. Detectors may also be reverse-engineered, e.g. reverse-SynthID [7], a popular open-source approximation of the SynthID detector. Nor is this an isolated development. Driven in part by the EU AI Act's transparency requirements [8], other providers are following suit; Anthropic, for example, has announced a detection API for its text watermarks [9]. This suggests that publicly reachable detectors will become the norm across modalities. Thus, a defense proved secure only against a passive adversary offers no guarantee once this access exists, regardless of how that access is provisioned (e.g. a public API, a reverse-engineered proxy, or a leaked detector).

In this work, we present an attack on the boundary-hiding defense under this stronger, more realistic threat model, i.e., a watermark removal adversary with batched (non-adaptive) detector access, which we call REM2 (REM1 corresponds to the passive adversary in [3]). We focus on batched rather than adaptive access for two reasons. First, batched queries reflect realistic deployment conditions: public detection APIs are typically rate-limited per account, but a non-adaptive query set can be parallelized across accounts and time, whereas an adaptive strategy is inherently sequential. Second, as we show, batched access already suffices to break the existing defense. (We discuss the adaptive analogue, REM3, in Section VIII-C).

Lifting REM1 to REM2 is not a hypothetical strengthening: we demonstrate how a REM2 adversary can fully break the boundary-hiding defense by recovering the secret long-term transformation, thereby re-exposing the detector's decision boundaries permanently. As the transformation is long-term, this one-time recovery cost is amortized across all future attacks, constituting a complete break of the defense. The extension from REM1 to REM2 is analogous in spirit to the upgrade from IND-CPA to IND-CCA1 in encryption: an adversary gains oracle access to a secret-keyed algorithm, and an IND-CPA-secure scheme is not necessarily IND-CCA1-secure.

We approach watermark removal from the standpoint of provable security. Similar to certified robustness against adversarial attacks [10], we seek guarantees that hold against

Network and Distributed System Security (NDSS) Symposium 2027 22–26 March 2027, Seoul, Republic of Korea ISBN 978-1-970672-09-1 https://dx.doi.org/10.14722/ndss.2027.[23][24]xxxx www.ndss-symposium.org

Figure

Fig. 1: Flowchart of Sample(λ,d,k\lambda,d,k) (Algorithm 2), for sampling watermarked latents. The scheme leverages fresh randomness rr to derive a unique one-time transformation for each sample. In the hybrid transformation, this one-time transformation dynamically obfuscates the detector's decision boundary, while the long-term secret transformation AA securely hides the per-sample random nonce rr.

an entire class of adversaries rather than fixed attacks. Since our adversary queries the detector to learn the hidden decision boundary, security is a question of boundary secrecy rather than geometry, and is naturally studied through a cryptographic lens. Concretely, we (i) formalize detection and removal adversaries via explicit security games (IND0/IND1 and REM1/REM2, respectively); (ii) prove an information-theoretic guarantee for an idealized instantiation (Theorem 1); and (iii) lift it to a computational guarantee for the deployed construction via standard cryptographic primitives (Theorem 2). Unlike prior schemes, which assume a passive adversary [3] or guarantee only undetectability [11], [2], we formally prove removal security against an adversary with batched detector access, via cryptographic reduction rather than a certified-radius argument.

Our construction combines a long-term and a one-time transformation. Inspired by hybrid encryption, where a long-term public-key scheme exchanges a one-time session key, our scheme generates a fresh one-time transformation per sample. This dynamically obfuscates the detector's decision boundary, while the long-term transformation hides the per-sample nonce and is used during detection to retrieve it (Figure 1). Because the effective transformation is fresh per sample and its orientation hidden, any adversarial perturbation is rendered independent of the transformation. Our worst-case security analysis proves that an adversary can at best match an isotropic white-noise adversary with a 2×\sqrt{2} \times larger budget, and we show this constant is tight.

Our empirical evaluation focuses on three key aspects. First, we demonstrate that our proposed attack enables an adversary with batched detector access to successfully recover the secret transformation, thereby re-exposing the detection boundary. Second, we show that our latent-based watermark integrates seamlessly into existing LDM pipelines while preserving high image quality. Third, we verify our scheme's robustness against common benign perturbations, such as Gaussian noise and JPEG compression, regeneration attacks [12], as well as against the targeted removal attack specifically designed for undetectable latent-based watermarks proposed in [3].

Our central contribution is a provably secure watermarking scheme, developed as follows:

  1. A formal threat model for latent-based watermarks is introduced, unifying detectability and removability notions that prior work treats only implicitly (Section III-A).

  2. An attack against boundary hiding [3] is demonstrated under the REM2 threat model, showing how an adversary can successfully recover the underlying long-term secret transformation employed in the existing boundary-hiding defense (Section IV-C).

  3. A provably secure latent-based watermarking construction. Under the REM2 threat model, no PPT adversary removes the watermark with non-negligible advantage over a white-noise baseline granted a 2×\sqrt{2} \times larger perturbation budget (Theorems 1 & 2).

  4. Empirical evaluations demonstrate the proposed attack, verify that the new watermarking scheme preserves high image quality, and measure the overall robustness of the framework (Section VII).

References (44)