SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2506.16349 · NeurIPS · 2025

Watermarking Autoregressive Image Generation

Martin Vechev, Nikola Jovanović, Pierre Fernandez, Tomáš Souček, Ismail Labiad

arXiv · PDF · Open in the Atlas

Code that ran

11 of 11 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 3 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 7 failures of our instrument; 0 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2506.16349.json · badge: /api/ran/2506.16349.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
GAIR-NLP/anole canonical (classifier label)
classifier basis: census
5 ran · 0 no recorded run
facebookresearch/wmar canonical (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
gair-nlp/anole extension (classifier label)
classifier basis: classifier_2025
2 ran · 0 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
FunctionStatusWhere it lives
add_padding Ran
ran; our contract draft was wrong, not the code
GAIR-NLP/anole/facilitating_image_generation/read_parquet.py
pointer only (licence: NONE) · get_code("8ac9f3f8b2e393a5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GAIR-NLP/anole when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

bin_to_pth Ran
ran; our contract draft was wrong, not the code
GAIR-NLP/anole/training/bin_to_pth.py
pointer only (licence: NONE) · get_code("647a4e7ff1436e07")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GAIR-NLP/anole when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

build_causal_mask Ran
ran, violated the contract we drafted
facebookresearch/wmar/deps/rar/modeling/rar.py
code served (permissive licence) · get_code("55d6d0ac8a0884b0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 2, dtype family float, shape (5, 5) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

ARGS = {
    "seq_length": 5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (5, 5) — shape (5, 5) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
chw_to_pillow Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
facebookresearch/wmar/wmar/utils/utils.py
code served (permissive licence) · get_code("6048521ddf44428e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Image. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from PIL import Image

torch.manual_seed(0)

# The function chw_to_pillow takes one parameter: x
# It expects x to be either a torch.Tensor or np.ndarray
# The function transposes it from CHW (channels, height, width) to HWC format
# So we need a 3D array/tensor with shape (C, H, W)

# Create a small tensor in CHW format (3 channels, 4 height, 5 width)
# Values should be in range roughly [-1, 1] for the rescaling to work properly
x_tensor = torch.randn(3, 4, 5)

ARGS = {
    "x": x_tensor
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
PIL, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 3 and dtype family int describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
collate_fn Ran
ran; our contract draft was wrong, not the code
GAIR-NLP/anole/facilitating_image_generation/train_image_head.py
pointer only (licence: NONE) · get_code("abbbb29b34ebbb42")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GAIR-NLP/anole when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_mapped_key Ran
ran; our contract draft was wrong, not the code
GAIR-NLP/anole/training/bin_to_pth.py
pointer only (licence: NONE) · get_code("bb9a7dc1a33f20cf")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GAIR-NLP/anole when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

modulate Ran
ran, honoured the contract we drafted
this paper's copy was not recorded; identical code first harvested from lth14/mar
pointer only · get_code("62fcb3912a967a50")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

simple_rescale Ran
ran, honoured the contract we drafted
facebookresearch/wmar/wmar/utils/utils.py
code served (permissive licence) · get_code("0b5df0bf88f838f9")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function simple_rescale takes a single parameter x
# It performs: (x + 1.0) / 2.0
# This is a simple mathematical operation on a tensor

# Create a small tensor to pass as x
x = torch.randn(2, 4)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
split_token_sequence Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
gair-nlp/anole/interleaved_generation.py
pointer only (licence: NONE) · get_code("f4a1d2fe79620d9e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gair-nlp/anole when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

split_token_sequence Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
gair-nlp/anole/inference.py
pointer only (licence: NONE) · get_code("e8c5dcf9ed1f9f5d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gair-nlp/anole when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

zero_out_gradient Ran
ran, honoured the contract we drafted
GAIR-NLP/anole/facilitating_image_generation/train_image_head.py
pointer only (licence: NONE) · get_code("ea6ed4f31d29224a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, GAIR-NLP/anole when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 1 the same month, 1 later) and 8 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
modulate 27 other papers
19 dated earlier, 1 the same month, 6 later, 1 undated · 2 only as an assembly brick
2312.15736 (2023-12)
Towards Real-World Blind Face Restoration with Generative Diffusion Prior
2404.11199 (2024-04)
RiboDiffusion: Tertiary Structure-based RNA Inverse Folding with Generative Diffusion Models
2405.17527 (2024-05)
Unisolver: PDE-Conditional Transformers Towards Universal Neural PDE Solvers
and 24 more not named here
build_causal_mask 1 other paper
1 dated earlier
2411.00776 (2024-11)
Randomized Autoregressive Visual Generation

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2506.16349")
get_code_for_paper("2506.16349")
have("2506.16349")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2506.16349.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2506.16349.svg)](https://syntology.ai/paper/2506.16349)

Connect an agent — have() is free.