As generative AI becomes increasingly ubiquitous, tracking the provenance of AI-generated content is critical for mitigating misuse, such as deepfakes or copyright infringement. While "post-hoc" watermarking—adding a hidden signal to a finished image—is common, "generation-time" watermarking is often preferred because it is mathematically grounded and significantly harder to remove without degrading the image quality.
In the text domain, Large Language Models (LLMs) are successfully watermarked by subtly biasing the model's choice of next tokens during generation. However, applying this token-level approach to autoregressive image models (which treat image patches as discrete tokens, similar to words) faces a unique and significant hurdle: a lack of Reverse Cycle-Consistency (RCC).
The Challenge: Reverse Cycle-Consistency (RCC)
When an LLM generates a word, that word remains identical when read back by a detector. Image generation, however, requires an extra translation step. When an image model generates a sequence of tokens, those tokens must be converted into pixels (detokenized) to form the final image.
If a detector later tries to turn those pixels back into tokens (re-tokenize) to check for a watermark, the new tokens often do not match the originals. This "token drift" effectively erases the watermark. Researchers found that for standard models, about one-third of tokens change during this round-trip, even without any image editing or compression. This occurs because VQ-VAE encoders are trained for "Forward Consistency" (pixels $\to$ tokens $\to$ pixels) but not "Reverse Consistency" (tokens $\to$ pixels $\to$ tokens).
Proposed Solution
To overcome this, the authors adapt the well-known KGW (Kirchenbauer et al.) watermarking scheme, which partitions the vocabulary into "green" and "red" tokens at each step, biasing the model to pick green ones. To make this viable for images, they introduce two primary innovations:
- RCC Finetuning: They introduce a lightweight procedure to finetune the image decoder and a replica of the encoder. The goal is to minimize the difference between the original generated tokens and the tokens extracted after the image has been rendered. Crucially, the original encoder is kept fixed so the generative model’s underlying performance isn't compromised.
- Watermark Synchronization Layer: Geometric transforms (like flipping or rotating an image) completely scramble token sequences. To fix this, the authors embed a secondary, localized "synchronization signal." Before the watermark detector runs, it uses this signal to detect and "undo" any rotations or flips, restoring the image to its original orientation for the token-level detector.
Key Insights and Multimodal Synergy
Interestingly, the researchers found that image tokens generally have higher entropy than text tokens. This actually makes them easier to watermark reliably, as there is more "room" to bias the token selection without hurting visual quality.
Furthermore, when evaluating mixed-modal models like CHAMELEON (which generates interleaved text and images), they discovered a powerful Joint Modality Strength. You can watermark the text and image tokens simultaneously. Even if an attacker "paraphrases" the text to remove its watermark, the associated image tokens can provide enough statistical evidence to confirm the content is AI-generated.
Key Results
The proposed method was evaluated across state-of-the-art models including TAMING, RAR-XL, and CHAMELEON, yielding impressive results:
- Improved Consistency: The RCC finetuning increased the "Token Match" (the percentage of tokens that survive the round-trip) from roughly 0.66 to over 0.80.
- Detection Power: The method achieved a True Positive Rate (TPR) of ~1.0 at a very low False Positive Rate (FPR) of $10^{-2}$.
- Robustness: The watermark proved highly resilient to common attacks, including JPEG compression, Gaussian noise, and "diffusion purification" (slightly re-noising and de-noising the image).
As seen in the comparison above, the watermarked generation maintains high visual fidelity while exhibiting a massive statistical shift toward "green" tokens, resulting in a highly confident detection p-value ($10^{-11}$).
Limitations and Future Work
While groundbreaking, this method is specifically tailored for autoregressive models using discrete tokenizers (VQ-based) and does not directly apply to continuous diffusion models like Stable Diffusion. Additionally, while the synchronization layer handles simple geometric transforms, it remains vulnerable to "combined" attacks, such as a heavy crop followed by a rotation. Future research may focus on more integrated, "learned" synchronization layers and expanding these techniques to high-fidelity audio watermarking, where tokens are even more sensitive to transformations.
Summary updated