SEAL: Semantic Aware Image Watermarking

Kasra Arabi, R. Teal Witter, Chinmay Hegde, Niv Cohen

TL;DR

This paper introduces SEAL, a novel semantic-aware image watermarking technique for diffusion models. SEAL embeds image semantics directly into the initial noise, making watermarks robust to removal and forgery attacks, and crucially, independent of any external database. This work addresses the growing challenge of distinguishing AI-generated content and securing its provenance in the face of increasingly sophisticated generative models.

What Problem Does This Paper Address?

The rapid advancement of generative AI, particularly diffusion models, has blurred the lines between natural and synthetic images. This poses significant societal risks, from misinformation to intellectual property theft. Robust watermarking is essential to identify AI-generated content. Existing methods often embed watermarks in the initial noise of diffusion models, offering some resilience against removal. However, these methods are vulnerable to sophisticated attacks, such as attackers stealing the watermark and applying it to unrelated images (forgery) or subtly altering the watermarked image to be offensive or misleading while preserving the watermark (e.g., the "CAT ATTACK"). Furthermore, many existing techniques rely on maintaining large databases of watermark keys, which are challenging to manage and secure.

Methods

SEAL tackles these challenges by introducing a semantic-aware approach to watermarking. The core idea is to encode the meaning of the generated image into the watermark itself.

Here's a breakdown of their method:

  • Semantic Embedding: Instead of just using a random noise pattern, SEAL first generates a proxy image from the input prompt and then extracts its semantic meaning using a captioning model (BLIP-2) and a sentence embedding model (Paraphrase Mpnet Base V2). This semantic vector captures the high-level content of the image.
  • SimHash Encoding: This semantic vector is then fed into a SimHash algorithm. SimHash is a locality-sensitive hashing technique that maps similar inputs to similar hash values. For each patch of the initial noise, SimHash generates a unique seed based on the semantic vector and a secret salt. This ensures that similar semantic vectors produce similar noise patterns.
  • Distortion-Free Watermarking: The generated noise is then used as the initial noise for the diffusion model. Because the noise is sampled from a standard Gaussian distribution and is designed to be similar to non-watermarked noise, the generated images are distortion-free.
  • Detection: At detection time, the suspect image is re-captioned to obtain its semantic vector. This vector is then used with SimHash to generate an estimated initial noise. Simultaneously, the initial noise is reconstructed from the image using inverse diffusion (DDIM). The watermark is detected if the estimated noise (derived from semantics) closely matches the reconstructed noise, and importantly, if the semantic embedding of the suspect image is close to the original semantic embedding. This semantic correlation is key to preventing forgery.
  • Tampering Detection: SEAL also incorporates a spatial test to detect localized edits. By analyzing the difference between expected and reconstructed noise patches, it can identify regions that have been tampered with, even if the overall semantic similarity remains high.

Datasets

The paper mentions using prompts sourced from [27] for evaluation. They also mention fine-tuning their embedding model using "10k pairs of related captions" to improve semantic correlation. No new datasets were introduced.

Key Insights and Ideas

  • Semantics are Key: The most significant insight is that embedding the meaning of an image into its watermark, rather than just a random pattern, is crucial for robust watermarking. This semantic link makes the watermark inherently tied to the image's content.
  • Database-Free Watermarking: SEAL eliminates the need for a database of watermark keys. The key is derived from the image's semantics, making the system more scalable and secure.
  • The "CAT ATTACK" is Real: The paper highlights a critical, previously overlooked attack vector where an adversary subtly modifies an image (e.g., adding an object) to be offensive or damaging, while the original watermark remains detectable. SEAL's semantic awareness and spatial testing are designed to counter this.
  • Sharp Semantic Thresholds: The use of SimHash and semantic embeddings leads to a sharp detection threshold. This means that even small shifts in semantic meaning can invalidate the watermark, preventing forgeries with unrelated prompts.

Key Results

  • Robustness to Forgery: SEAL demonstrates significant robustness against private model-based forgery attacks, achieving an AUC of 0.708, compared to 0.000 for other methods.
  • CAT Attack Detection: SEAL achieves an AUC of 0.551 for detecting the "CAT ATTACK," which significantly improves to 0.982 when combined with their spatial test. Other methods show 0.000 AUC.
  • Distortion-Free Generation: The watermarking process is distortion-free, meaning watermarked images are visually indistinguishable from non-watermarked ones.
  • Semantic Similarity: The method shows a clear separation between related and unrelated semantic embeddings, with detection probabilities dropping sharply as the semantic angle increases.

Limitations and Future Work

  • Stronger Forgery Attacks: While SEAL is robust, the authors acknowledge that highly persistent attackers might still find ways to compromise the watermark, especially if they have access to extensive information about the watermark generation process.
  • Removal vs. Forgery Trade-off: The paper notes that their method might be more vulnerable to removal attacks than some existing methods, though they argue that sufficiently persistent attackers can remove most watermarks. They emphasize that improving robustness against forgery attacks is a critical societal need.
  • Future Work: The authors suggest further enhancements such as incorporating rotation search or sliding-window search during detection to improve robustness against removal attempts. They also point to the need for continued research into semantic-aware watermarking.

Summary updated

BibTeX
@inproceedings{arabi2025seal,
  author = {Kasra Arabi and R. Teal Witter and Chinmay Hegde and Niv Cohen},
  title = {{SEAL: Semantic Aware Image Watermarking}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure