An invisible image watermark is a hidden signal written into an image so a detector holding a secret key can later prove where the image came from. Many such schemes write into frequency coefficients, the numbers that describe how much coarse, medium, and fine detail an image contains, because those coefficients survive compression. A recent study found that this protection collapses against an attacker who optimizes. Leveraging Optimization for Adaptive Attacks on Image Watermarks removed five schemes, including Tree-Ring, DWT, DWT-SVD, and RivaGAN, on Stable Diffusion v2.0. Detection fell from near 100% to 6.3% or less, with no visible quality loss and under one GPU hour of attacker compute. The key detail is that the attacker never needed the real key. An attack tuned against one surrogate key, generated with an open-source model, transferred to every private key. In these schemes the key only sets which values are written into a fixed set of coefficients, so a guessed key already tells the attacker where to push.
We propose to make the key choose the location itself: a key-specific, pseudo-random subspace inside the medium-frequency band. A key-blind attacker then has to damage the whole band rather than a small known channel. We pair this with a cheap hardening procedure. Instead of running an expensive inner attack loop for every key, we train one shared attacker network against randomly sampled keys. The claim is quantitative and can fail. If the watermark occupies $k$ of the $D$ usable band dimensions, a surrogate-guided perturbation should transfer to the true key with only about a $k/D$ fraction of its energy. The attacker's distortion budget for key-blind removal should therefore grow roughly linearly in $D/k$. If removal by regeneration still costs nothing perceptually, that is a meaningful negative result: medium-frequency watermarks cannot be secured by key secrecy at all.
Core Claim
Cross-key transfer is a property of the channel design, not an unavoidable fact. Take a random $k$-dimensional subspace $S_K$ of the $D$-dimensional band, drawn from key $K$, and any perturbation $\delta$ confined to the band. The expected energy that lands in the key's subspace is
$$\mathbb{E}_K\big[\|P_{S_K}\delta\|^2\big] = \tfrac{k}{D}\,\|\delta\|^2,$$
where $P_{S_K}$ is the projection onto $S_K$. This follows from rotational symmetry of the random subspace. A perturbation aimed at a surrogate key's subspace is, from the true key's view, essentially such a $\delta$. Fixed-channel schemes have effectively $k/D \approx 1$, and that matches the transfer observed against them.
What would be new is threefold. First, a learned watermark whose carrier subspace is keyed. Second, a measured transfer-versus-$D/k$ curve under the published adaptive attacks. Third, an amortized adversarial training procedure that hardens the decoder against key-blind removal at a bounded overhead. The equation covers attacks that steer toward a subspace, such as gradient noising. It says nothing about attacks that resynthesize the whole band, and testing those is part of the program.
Relation to Prior Work
The motivating evidence comes from two papers. The adaptive-attack study (Leveraging Optimization for Adaptive Attacks on Image Watermarks) documents single-surrogate-key transfer, but it attacks only frozen, fixed-channel extractors and proposes no defense. Tree-Ring (Tree-Rings Watermarks: Invisible Fingerprints for Diffusion Images) writes key-independent rings into the frequency spectrum of the diffusion starting noise. It reaches AUC 1.000 on clean images and 0.935 under rotation, yet it is among the schemes broken above. Its fixed ring locations are exactly the weakness we target.
Several papers supply method. The classical spread-spectrum work of Ó Ruanaidh et al. and Deguillaume et al. already uses pseudo-random keyed sequences in medium-frequency Fourier magnitudes with hypothesis-test detection. We borrow the detection statistic. We differ by learning the encoder and decoder, by hardening them against optimizing attackers, and by measuring transfer as a function of subspace dimension. The classical method was never evaluated against adaptive attackers. Compositional Adversarial Training for Robust Visual Watermarking (CAT) shows that a learned attacker sharing the training graph can harden watermarks with only 20–30% extra training cost. Its attacker, however, chooses among fixed image operations like JPEG and blur, and it never targets the key. We reuse its shared-graph idea but replace the operation library with a learned, key-blind remover. DiffVax supports amortization: a single feed-forward network replaced per-image optimization at a 250,000x speedup. We apply the same logic on the attacker side of training.
Two papers constrain the design. IMPRESS and the frequency analysis in Diffusion-based Adversarial Purification from the Perspective of the Frequency Domain show that generative reconstruction can rebuild plausible image content while discarding fine perturbation structure. Any band-level watermark is exposed to this. We therefore treat regeneration as the main threat rather than a side case. High-Frequency Anti-DreamBooth shows that concentrating signal into high-frequency edges creates visible artifacts. That is why we stay in the medium-frequency band.
Research Program
We build on a learned post-hoc watermarker of the PixelSeal/VideoSeal family, the same architectures CAT hardens. Between the encoder's output and the image, we insert a keyed spectral carrier. The encoder produces a $k$-dimensional payload code. A key-seeded orthogonal matrix maps that code onto a random $k$-dimensional subspace of the luminance medium-frequency DCT coefficients, within a $D$-dimensional band. The decoder applies the transpose projection before reading the bits. Keys are sampled fresh at every training step, so the network learns to work under any subspace. We sweep $D/k$ from 1, the fixed-channel case, to roughly 64. Capacity at fixed image quality limits how high this can go.
Hardening proceeds in two stages. In the first, the watermarker trains under CAT's operation attacker, so it inherits robustness to benign processing. In the second, we add a key-blind remover trained alongside it on the shared graph. This remover is a small autoencoder that sees the watermarked image but never the key. It minimizes decoder confidence for the sampled key, subject to an LPIPS perceptual bound, the same objective as the published "adversarial compression" attack. Because one remover serves all keys and shares the forward pass, we expect overhead in CAT's range rather than the 10–40x cost of PGD inner loops. We will report this overhead in GPU-hours.
We also run a training-free diagnostic on Tree-Ring before any training. The key selects which ring radii carry the pattern, out of many candidate radii, along with per-ring values. Radial symmetry, and thus rotation invariance, is preserved. This tests the $k/D$ prediction directly on the scheme where transfer was first reported.
Baselines
The naive reference point is unhardened PixelSeal or VideoSeal 1.0, trained with ordinary random augmentation and the usual fixed channel. The adaptive-attack paper reports that schemes in this regime fall to at most 6.3% detection accuracy on MS-COCO-2017 with SD v2.0. We expect to reproduce that collapse first, as a sanity check.
The strongest existing method is CAT applied to the same backbones. On SA-1B it reports a 63.5% watermark-capacity gain for PixelSeal and 18.0% for VideoSeal 1.0 over random augmentation at $T=1$, with PSNR, SSIM, and LPIPS unchanged. We found no reported result on Lacuna for CAT-hardened watermarks under the surrogate-key optimization attacks. Establishing that number is itself a contribution. We train CAT and our method from the same initialization, on the same SA-1B 50,000-image subset, and at matched visual quality. Each method receives the same hyperparameter-search budget and total GPU-hours, with our extra overhead counted against us. Beating CAT means two things. Under adaptive noising and adaptive compression with a surrogate key, we must sustain TPR at 1% FPR above 50%, where CAT presumably collapses near the published ≤6.3%. And we must not lose more than a few points of CAT's capacity or quality under benign attacks.
Two ablations isolate the key ingredient. The first, keyed values in a fixed channel, keys only the payload pattern while the subspace stays fixed. It keeps every other component of our method, so any gain over it is attributable to keying the subspace. The second, keyed subspace without the shared remover, separates the effect of geometry from that of hardening. The classical spread-spectrum detector of Ó Ruanaidh et al., placed in the same band, is a third baseline. It tells us whether learning adds anything beyond keyed random carriers.
A brute-force upper reference is per-key PGD adversarial training of the fixed-channel decoder against the surrogate attack. We run it at reduced scale only to show what robustness that expensive training buys and at what cost.
Why not just…?
Why not just adversarially train the fixed-channel decoder against the published attack? Training the decoder to resist the attack it saw does not change the fact that the surrogate key reveals the channel. A re-optimized attack against the hardened decoder should transfer as before. The per-key PGD baseline tests this directly. We run fresh adaptive attacks against it after training. If its cross-key transfer stays high while ours drops, the channel geometry is what matters. If it also resists re-optimized attacks, the claim is weakened and we will say so.
Why not just keep the keys, or the decoder, secret? That is precisely the assumption the adaptive-attack paper refuted. A single surrogate key generalized across private keys because all keys shared one projection space. The keyed-values ablation reproduces that regime inside our own code.
Why not just use classical spread-spectrum with random keyed carriers? This is the most serious "already done" objection, because the carrier geometry is essentially classical. What the classical design lacks is training against benign processing chains and against learned removers. If classical keyed carriers match our method under the adaptive attacks, the contribution shrinks to an evaluation result: keyed carriers resist transfer and learning is unnecessary. That would still be worth publishing, and the baseline settles the question directly.
Why not accept that diffusion regeneration erases any band-level watermark? This is a real threat. The $k/D$ argument does not cover an attacker who resynthesizes the band from coarse content, which is what IMPRESS-style and DiffPure-style reconstruction do. We measure what that costs the attacker in FID, CLIP score, and LPIPS to the original. If cost stays near zero, we report that keyed medium-frequency watermarks are insecure against regeneration. Watermarks would then have to move into the semantic layout, as Tree-Ring attempts.
Proposed Experiments
Training uses the SA-1B subset. Evaluation follows the adaptive-attack protocol, using 5,000 MS-COCO-2017 prompts on SD v2.0, with SD v1.1 as the attacker's surrogate. Metrics are TPR at 1% FPR, bit accuracy, and capacity. Image quality is measured by PSNR, SSIM, and LPIPS. We also track the attacker's minimum LPIPS and $\ell_2$ distortion needed to drive detection below 10%, plus training GPU-hours. CLIC, DIV2K, and MetFace serve as out-of-distribution checks.
The first decisive check is a curve: attacker distortion needed for key-blind removal, plotted against $D/k$, for adversarial noising. The prediction is roughly linear growth for keyed subspaces and a flat line for the keyed-values ablation. The Tree-Ring radius experiment should show the same trend with no training at all.
The second decisive check is a white-box re-attack. We run adversarial compression retrained directly against our hardened decoder, with full knowledge of the method but not the key, and compare it with the same attack given the true key. The gap between the two is the security that comes from the key.
The third decisive check is the regeneration test described above, with its quality cost reported. Together these three results tell us whether keying the subspace defeats surrogate transfer, whether amortized hardening holds against re-optimization, and whether regeneration leaves any secure medium-frequency watermark possible.
References
- Leveraging Optimization for Adaptive Attacks on Image Watermarks
- Tree-Rings Watermarks: Invisible Fingerprints for Diffusion Images
- A Bayesian Approach To Spread Spectrum Watermark Detection and Secure Copyright Protection for Digital Image Libraries
- A Bayesian Approach to Affine Transformation Resistant Image and Video Watermarking
- Compositional Adversarial Training for Robust Visual Watermarking
- DiffVax: Optimization-Free Image Immunization Against Diffusion-Based Editing
- IMPRESS: Evaluating the Resilience of Imperceptible Perturbations Against Unauthorized Data Usage in Diffusion-Based Generative AI
- Diffusion-based Adversarial Purification from the Perspective of the Frequency Domain
- High-Frequency Anti-DreamBooth: Robust Defense against Personalized Image Synthesis