TL;DR
When you release an open-weights image generation model into the wild, standard watermarks are practically useless—users can simply delete the watermarking code or swap out modular components to erase your signature. IntriMark solves this by embedding invisible watermarks directly into the latent space of the training data, teaching the core neural network to treat the watermark as a fundamental law of how images look. Because the watermark becomes an intrinsic part of the model's learned universe, it survives pipeline tampering, component swapping, and lightweight fine-tuning.
What Problem Does This Paper Address?
Training a Latent Diffusion Model (LDM)—like Stable Diffusion—requires mountains of compute and curated data, making the final weights valuable intellectual property. If a creator hosts the model behind a closed API, watermarking generated images is easy.
The headache begins in model distribution scenarios, where you hand the actual weights and code over to downstream users. Existing watermarking methods fail here because they bolt the watermark onto the outside of the core model:
- Post-processing stamps a watermark onto the final image. A user can comment out two lines of Python to disable it.
- Input-control methods hide signals in the starting noise or require secret trigger words in the prompt—easily bypassed when the user controls the inference pipeline.
- Auxiliary component methods bake the watermark into add-on LoRA adapters (like AquaLoRA) or the final image decoder (like Stable Signature). Users can strip the unmerged LoRA, fine-tune it away, or swap the modified decoder for a standard open-source one.
How do you watermark a model so deeply that a user with full root access to the weights and pipeline still can't easily scrub it out?
Methods
Instead of modifying the architecture or inference code, the authors take a data-centric approach called IntriMark.
Recall that LDMs don't generate pixels directly; they generate compressed mathematical representations called latents, which a Variational Autoencoder (VAE) decoder then translates into pixels. IntriMark unfolds in three stages:
- Latent Watermark Pre-training: The authors train a dedicated watermark encoder ($\mathcal{W}_E$) and decoder ($\mathcal{W}_D$). Crucially, $\mathcal{W}_E$ operates in latent space—it takes a 48-bit binary signature and turns it into a subtle residual pattern added directly to an image's latent representation. The resulting watermarked latent is decoded into pixels, passed through a simulated distortion layer (crops, blurs, JPEG compression) to build toughness, and fed to $\mathcal{W}_D$, which learns to read the 48 bits back out while perceptual losses keep the image looking natural.
- Watermarking the Diffusion Model: Using the frozen $\mathcal{W}_E$, the authors inject a fixed 48-bit watermark into the latents of the entire training dataset, leaving text captions untouched. They then train (or fine-tune) the diffusion model's core denoising U-Net using a completely standard training pipeline and loss function.
- Verification: Given a suspect image in the wild, the provider runs it through $\mathcal{W}_D$ to extract the 48 bits and uses a statistical hypothesis test on the bit-match rate to verify ownership.
Datasets
No new benchmarks were introduced; the authors relied on established image-text datasets:
- COCO2017: 10,000 training images were sampled to pre-train the watermark encoder/decoder; the full ~118k training split was used to fine-tune Stable Diffusion v2.1, and 5,000 validation captions were used for evaluation.
- CC3M & Naruto: Used to test full-model fine-tuning attacks, representing an in-distribution natural image dataset (CC3M) and a heavily out-of-distribution anime dataset (Naruto).
Key Insights and Ideas
- Why naive data poisoning fails (The VAE Bottleneck): The most intuitive way to teach a model a watermark is to stamp watermarks onto pixel-space training images and train on them. The authors tried this first, and it flopped—bit detection accuracy was 56.1% (barely above a 50% coin flip). Why? When the VAE compresses pixel images into latent space, it acts like a lossy filter, crushing the watermark accuracy from 98.51% down to 61.46% before the diffusion model ever sees it. Moving the injection directly into latent space bypasses this bottleneck completely.
- Intrinsic vs. Bolted-On: Merging a watermarked LoRA (like AquaLoRA) also puts the watermark into the core weights, yet IntriMark is much harder to erase via subsequent LoRA fine-tuning. Because IntriMark learns image generation and watermark reproduction jointly across all parameters—rather than as a post-hoc, low-rank patch—low-rank fine-tuning can't easily overwrite it.
- Decoder Independence: Even though IntriMark's pre-training uses a specific VAE decoder, the learned latent signal is robust enough that if a user swaps in a completely different open-source VAE decoder at generation time (like OpenAI's Consistency Decoder), the watermark still survives intact (~97% bit accuracy).
Key Results
Tested on Stable Diffusion v2.1, IntriMark improves image quality while delivering strong durability:
- Fidelity & Detection: IntriMark achieves a 0.995 True Positive Rate (at a tiny $10^{-6}$ False Positive Rate) and 97.39% bit accuracy, while improving image quality (FID of 24.42 vs. 26.87 unwatermarked baseline; CLIP score of 0.320).
- Image Attacks: Across heavy distortions (noise, blur, JPEG, cropping), IntriMark averages 95.78% bit accuracy (0.982 TPR), outperforming Stable Signature (92.49%) and AquaLoRA (95.22%). Under VAE and diffusion-based regeneration attacks, Stable Signature collapses (~48.6% bit accuracy), while IntriMark holds at 77.89%.
- Model-Level Attacks: Swapping the VAE decoder or removing unmerged LoRAs drops baseline methods to random guessing (~46% bit accuracy, 0 TPR). When subjected to 30 steps of malicious LoRA fine-tuning, merged AquaLoRA degrades to 49.37%, whereas IntriMark holds steady at 97.36%.
- Full Fine-Tuning: Adversaries can weaken IntriMark via expensive full-model fine-tuning (dropping bit accuracy to ~53–55%), but if they don't have the original proprietary training data and use out-of-distribution data like Naruto, generation quality noticeably degrades (FID jumps from 24.55 to 38.45).
Limitations and Future Work
- Multi-User Scaling: IntriMark is great for proving you made a model, but tough for tracing which specific customer leaked it. Embedding a unique 48-bit ID per user would naively require fine-tuning a separate diffusion model per user. (The authors include a faster provider-side "watermark overwriting" workaround in the appendix to help mitigate this overhead, though no broader future work directions are discussed in the main text.)
Summary updated