Papers
Topics
Authors
Recent
Search
2000 character limit reached

Decoder Gradient Shields for Box-Free Watermarking

Updated 24 January 2026
  • Decoder Gradient Shields (DGSs) are a family of provable defenses that reorient, rescale, or perturb decoder gradients to obstruct watermark removal without degrading output quality.
  • They comprise three variants—DGS-O, DGS-I, and DGS-L—that intervene at the output, input, and intermediate layers respectively, each balancing security with computational cost.
  • Empirical results demonstrate that DGSs maintain high image fidelity (PSNR > 30 dB) and robustness across various attack models, proving effective in deep image-to-image watermarking.

Decoder Gradient Shields (DGSs) are a family of provable, high-fidelity defenses designed to prevent gradient-based removal of invisible watermarks in box-free watermarking pipelines for deep image-to-image and generative models. By reorienting, rescaling, or orthogonally perturbing gradients at various points in the decoder’s dataflow, DGSs ensure that an attacker—who leverages a decoder’s output and its backpropagated gradients to optimize a watermark remover—cannot achieve convergence, while explanatory integrity and fidelity for legitimate watermark extraction remain uncompromised (An et al., 28 Feb 2025, An et al., 17 Jan 2026).

1. Threat Model in Box-Free Watermarking

Box-free watermarking for deep image-to-image models employs a private encoder E\mathbb E to embed a watermark WW into a model output XX, producing a watermarked image Y=E(Concat(X,W))Y = \mathbb E(\mathrm{Concat}(X,W)). The decoder D\mathbb D, typically deployed as a black-box API, is used to extract either WW from watermarked images or a null-mark W0W_0 from non-watermarked images.

A primary vulnerability arises when an adversary queries the protected model to harvest (X0,Y)(X_0, Y) pairs and trains a removal network R\mathbb R seeking to generate X^=R(Y)\hat X = \mathbb R(Y) such that the decoder extracts WW0 from WW1. The attacker minimizes the removal loss: WW2 by exploiting access to the gradients WW3—either directly or via black-box estimation—enabling convergence of WW4 to an inverse mapping of the watermark encoder (An et al., 17 Jan 2026).

2. Core Concepts and Variants of Decoder Gradient Shields

Decoder Gradient Shields intervene at strategic locations within the decoder pipeline to neutralize or mislead the gradient signal exploited by attackers. All variants operate without perceptible degradation in legitimate watermark extraction or output image quality. The three principal DGS variants are:

  • DGS at the Output (DGS-O): Applies a closed-form, deterministic transformation at the decoder’s output, reorienting and rescaling the backpropagated gradient.
  • DGS at the Input (DGS-I): Introduces additively small, adversarially distributed noise at the decoder input, precisely orthogonal to the attacker's loss gradient, thereby neutralizing its effect.
  • DGS in the Layers (DGS-L): Injects orthogonal perturbations into arbitrary internal layers of the decoder, further obfuscating the gradient flow and concealing the defense’s presence.

Each variant guarantees a fundamental disruption to the chain of gradients the attacker depends on, with DGS-O prioritizing minimal cost and universal deployability, DGS-I conferring greater security with minor latency overhead, and DGS-L balancing hiddenness with moderate computational cost (An et al., 17 Jan 2026).

3. Mathematical Formulation and Implementation

DGS-O: Closed-Form Output Transformation

The DGS-O variant defines a transformation: WW5 where WW6 is the vanilla decoder output for query WW7, WW8 is the reference watermark, WW9 is a positive-definite diagonal matrix with small entries (e.g., XX0), and XX1 is the identity. The transformation is conditionally applied if XX2, where XX3 denotes normalized cross-correlation and XX4.

This mapping provably flips the gradient’s direction by XX5–XX6 and scales its norm by the spectrum of XX7, ensuring that any descent step in attacker loss cannot effect progress toward XX8. Generic pseudocode for DGS-O:

W0W_09

DGS-I and DGS-L: Orthogonal Perturbations

For DGS-I:

  • Perturb the decoder input XX9 by Y=E(Concat(X,W))Y = \mathbb E(\mathrm{Concat}(X,W))0 such that Y=E(Concat(X,W))Y = \mathbb E(\mathrm{Concat}(X,W))1 and Y=E(Concat(X,W))Y = \mathbb E(\mathrm{Concat}(X,W))2.
  • Y=E(Concat(X,W))Y = \mathbb E(\mathrm{Concat}(X,W))3.

For DGS-L:

  • At internal layer Y=E(Concat(X,W))Y = \mathbb E(\mathrm{Concat}(X,W))4, intermediate features Y=E(Concat(X,W))Y = \mathbb E(\mathrm{Concat}(X,W))5 are perturbed: Y=E(Concat(X,W))Y = \mathbb E(\mathrm{Concat}(X,W))6, with similar orthogonality and norm constraints on Y=E(Concat(X,W))Y = \mathbb E(\mathrm{Concat}(X,W))7.
  • Only later layers process the perturbed signal, reducing the exposure of the shield (An et al., 17 Jan 2026).

4. Theoretical Guarantees

Gradient Reorientation and Attenuation

Under the DGS-O transformation, the attacker's loss gradient is provably replaced by

Y=E(Concat(X,W))Y = \mathbb E(\mathrm{Concat}(X,W))8

where Y=E(Concat(X,W))Y = \mathbb E(\mathrm{Concat}(X,W))9. The angle between D\mathbb D0 and D\mathbb D1 satisfies D\mathbb D2 and D\mathbb D3 for diagonal D\mathbb D4 (An et al., 28 Feb 2025).

No-convergence is proved: Any gradient-based attacker observing only D\mathbb D5 cannot reduce the removal loss D\mathbb D6 below its initial value minus an exponentially small term D\mathbb D7, precluding effective removal of the watermark.

For DGS-I and DGS-L, the sequence of orthogonally randomized perturbations ensures that gradient descent accumulates uncorrelated error, with the effective descent direction rendered random and target loss unattainable (An et al., 17 Jan 2026).

5. Empirical Performance and Evaluation

Experimental Setup

  • Tasks: Image deraining (PASCAL VOC) and text-to-image (Stable Diffusion) transformations.
  • Watermarking: Encoder–decoder pipeline of Zhang et al., with jointly trained D\mathbb D8 and D\mathbb D9.
  • Attacker: U-Net-based watermark remover, trained for 100 epochs (Adam, learning rate WW0).
  • Metrics: Fidelity (PSNR, MS-SSIM), robustness (Success Rate, SR).

Experimental Findings

Without DGS, all forms of removal loss converge (i.e., WW1). With DGS-O, DGS-I, or DGS-L:

  • Success Rate (SR) reaches WW2 across all tasks and removal loss functions, with the attack loss stalling above WW3.
  • Decoder outputs under DGS remain perceptually indistinguishable (PSNR WW4 dB, MS-SSIM WW5).
  • Robustness persists under JPEG compression (10–40\%), additive Gaussian noise (0–30 dB), lattice attacks, and attempted sign-flip of returned gradients. Extreme degradations reduce PSNR but maintain WW6 for severe perturbations (An et al., 28 Feb 2025, An et al., 17 Jan 2026).

Computational overhead is minimal: DGS-O incurs WW7 ms/query, DGS-I WW8–WW9 s/query, and DGS-L W0W_00–W0W_01 s/query depending on implementation specifics.

6. Limitations and Practical Considerations

While DGSs are effective against gradient-based removal attacks that interact with the deployed decoder, several open issues exist:

  • Invertibility: DGS-O’s linear formulation could potentially be inverted if an attacker estimates W0W_02 and W0W_03 through repeated queries, though the use of randomized or low-norm W0W_04 mitigates straightforward inversion.
  • Attack Model Coverage: All current DGS forms protect only against removal attacks that actively query the decoder. If attackers train a surrogate decoder independently (“surrogate bypass”), DGSs offer no defense.
  • Parameter Selection: The strength and effectiveness of the shield depend on the selection of W0W_05, perturbation budgets W0W_06, and adaptation to attacker-specific query patterns.
  • Computational Cost: For extremely high-resolution images, the requirement to store and multiply by W0W_07—especially if dense—may introduce overhead. Structured W0W_08 can alleviate this (An et al., 28 Feb 2025, An et al., 17 Jan 2026).

7. Extensions and Future Research Directions

Future developments may focus on:

  • Combination of gradient shields with data augmentation during decoder training to defend against surrogate bypass.
  • Adaptive DGSs that randomize shield parameters per query, broadening unpredictability and resilience.
  • Layerwise variation and randomization of shield injection for further robustness (“layer-wise randomization”).
  • Analysis of tighter theoretical lower bounds in scenarios with repeated, randomized orthogonal shield application.
  • Exploration of non-linear shield mappings, as well as integration with predicted-label poisoning and adversarial-training–style defenses (An et al., 28 Feb 2025, An et al., 17 Jan 2026).

A plausible implication is that adopting DGSs represents the current state of the art for defending decoder APIs in box-free watermarking against gradient-based watermark removal, but systematic extension to broader attack models remains an open research frontier.


References:

  • "Decoder Gradient Shield: Provable and High-Fidelity Prevention of Gradient-Based Box-Free Watermark Removal" (An et al., 28 Feb 2025)
  • "Decoder Gradient Shields: A Family of Provable and High-Fidelity Methods Against Gradient-Based Box-Free Watermark Removal" (An et al., 17 Jan 2026)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Decoder Gradient Shields (DGSs).