Watermarking Autoregressive Image Generation
Nikola Jovanović, Ismail Labiad, Tomáš Souček, Martin Vechev, Pierre Fernandez
TL;DR
This work addresses the challenge of watermarking autoregressive image generation at the token level, where reverse-cycle-consistency (RCC) can erode embedded signals during re-tokenization. It adapts generation-time LLM watermarks (KGW) to image tokens and introduces a lightweight RCC finetuning procedure for the detokenizer and an encoder replica, plus a post-hoc watermark synchronization layer to counter geometric transformations. The approach yields robust, provable-watermark detection (via $p$-values) without harming generation quality, and extends to interleaved modalities and a preliminary audio case study. Overall, the method advances provenance tracing for multimodal autoregressive generation, offering stronger robustness than post-hoc baselines and enabling joint detection across modalities with scalable computation.
Abstract
Watermarking the outputs of generative models has emerged as a promising approach for tracking their provenance. Despite significant interest in autoregressive image generation models and their potential for misuse, no prior work has attempted to watermark their outputs at the token level. In this work, we present the first such approach by adapting language model watermarking techniques to this setting. We identify a key challenge: the lack of reverse cycle-consistency (RCC), wherein re-tokenizing generated image tokens significantly alters the token sequence, effectively erasing the watermark. To address this and to make our method robust to common image transformations, neural compression, and removal attacks, we introduce (i) a custom tokenizer-detokenizer finetuning procedure that improves RCC, and (ii) a complementary watermark synchronization layer. As our experiments demonstrate, our approach enables reliable and robust watermark detection with theoretically grounded p-values. Code and models are available at https://github.com/facebookresearch/wmar.
