Removing Watermarks with Partial Regeneration using Semantic Information

Krti Tallam, John Kevin Cava, Caleb Geniesse, N. Benjamin Erichson, Michael W. MahoneyarXiv 2025

Abstract

As AI-generated imagery becomes ubiquitous, invisible watermarks have emerged as a primary line of defense for copyright and provenance. The newest watermarking schemes embed semantic signals—content-aware patterns designed to survive common image manipulations—yet their true robustness against adaptive adversaries remains under-explored. We expose a previously unreported vulnerability and introduce SemanticRegen, a three-stage, label-free attack that erases state-of-the-art semantic and invisible watermarks while leaving an image's apparent meaning intact. Our pipeline (i) uses a vision-language model to obtain fine-grained captions, (ii) extracts foreground masks with zero-shot segmentation, and (iii) inpaints only the background via an LLM-guided diffusion model, thereby preserving salient objects and style cues. Evaluated on 1,000 prompts across four watermarking systems—TreeRing, StegaStamp, StableSig, and DWT/DCT—SemanticRegen is the only method to defeat the semantic TreeRing watermark (p = 0.10 > 0.05) and reduces bit-accuracy below 0.75 for the remaining schemes, all while maintaining high perceptual quality (masked SSIM = 0.94 +/- 0.01). We further introduce masked SSIM (mSSIM) to quantify fidelity within foreground regions, showing that our attack achieves up to 12 percent higher mSSIM than prior diffusion-based attackers. These results highlight an urgent gap between current watermark defenses and the capabilities of adaptive, semantics-aware adversaries.

Introduction

Traditional watermarks, often hidden in pixel values or frequency domains, are notoriously fragile against simple manipulations like cropping or noise. In response, the research community developed "semantic" watermarks—patterns designed to be "content-aware" and survive significant alterations. However, these advanced defenses often rely on global statistical properties distributed across the entire image.

We propose that the background of an image represents a critical "weak link" in these schemes. By identifying and preserving the salient foreground objects while completely regenerating the background, an adversary can disrupt the global watermark signal enough to render it undetectable while maintaining the image's original intent and quality.

The SemanticRegen Pipeline

SemanticRegen is a label-free attack pipeline that leverages the synergy between vision-language models (VLMs), segmentation models, and diffusion-based inpainting. The process follows three distinct stages:

  1. Semantic Extraction (VQA): The system utilizes the BLIP2 model to analyze the input image through specific queries: "What is the prominent object?", "Where would this image be taken?", and "Describe the artistic direction."
  2. Zero-Shot Segmentation: The identified prominent object is passed to LangSAM (a language-aware version of Meta’s Segment Anything Model) to generate a precise foreground mask.
  3. LLM-Guided Inpainting: A Large Language Model (MiniChat-MA) refines the VQA answers into a descriptive prompt. Finally, Stable Diffusion v2 inpaints the background area (the inverse of the foreground mask) based on this prompt.
The SemanticRegen pipeline: from VQA-based semantic extraction to foreground-preserved background inpainting.

By regenerating the background with semantically consistent but entirely new pixels, the watermark is effectively "washed away" while the primary subject remains bit-perfectly preserved.

Experimental Evaluation

We evaluated SemanticRegen against a dataset of over 1,000 prompts across four major watermarking systems:

  • TreeRing: A semantic watermarker embedding signals in the latent space.
  • StegaStamp: A deep-learning-based invisible watermarking tool.
  • StableSig: A method for rooting watermarks into the latent space of Stable Diffusion.
  • DWT/DCT: Traditional frequency-domain watermarking techniques.

To measure fidelity, we introduced masked SSIM (mSSIM), which focuses exclusively on the foreground region. This metric allows us to quantify how well the "soul" of the image is preserved compared to traditional attacks that might degrade the entire frame.

Key Results

SemanticRegen demonstrated superior performance in both watermark erasure and image fidelity:

  • Defeating TreeRing: It was the only method tested that successfully defeated the TreeRing watermark, achieving an average p-value of 0.10 (where >0.05 indicates non-detectability).
  • Bit-Accuracy: For StegaStamp, StableSig, and DWT/DCT, the attack reduced bit-accuracy to below 0.75, rendering the watermarks useless for verification.
  • High Fidelity: The method maintained a high mSSIM of 0.94 ± 0.01, outperforming previous diffusion-based attacks like Rinse4x or DiffWMAttacker by up to 12% in foreground preservation.

Conclusion

The success of SemanticRegen exposes a significant vulnerability in current AI safety standards. While effective for simple scenes, the method's reliance on clear foreground-background separation suggests that future watermarking research should focus on "regenerative-resilient" algorithms. Such defenses might involve embedding signals more densely within the salient foreground objects that adversaries are most hesitant to alter.

Summary updated

BibTeX
@misc{tallam2025removing,
  author = {Krti Tallam and John Kevin Cava and Caleb Geniesse and N. Benjamin Erichson and Michael W. Mahoney},
  title = {{Removing Watermarks with Partial Regeneration using Semantic Information}},
  year = {2025},
  eprint = {2505.08234},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.08234},
}
Figure