Watermarking Autoregressive Image Generation

Nikola Jovanović, Ismail Labiad, Tomáš Souček, Martin Vechev, Pierre Fernandez
6/19/2025
cs.LGcs.AIcs.CR

Official code: facebookresearch/wmar (70 stars, MIT, last commit 2026-04-13).

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.

View on arXivView PDF

Code Implementations(1)

MIT

Official implementation of the paper "Watermarking Autoregressive Image Generation" (NeurIPS'25)

708Shell, PythonJun 13, 20256 months agoMIT
autoregressivewatermarking

Similar Papers

Cite this paper

@article{jovanovi2025watermarking,
  title  = {Watermarking Autoregressive Image Generation},
  author = {Nikola Jovanović and Ismail Labiad and Tomáš Souček and Martin Vechev and Pierre Fernandez},
  year   = {2025},
  eprint = {2506.16349},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.16349v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.16349.svg)](https://codeofpaper.com/paper/2506.16349)

Discussion