SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.14673 · 2025

Training-Free Watermarking for Autoregressive Image Generation

arXiv · PDF · Open in the Atlas

Code that ran

16 of 19 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; 2 honoured the contract we drafted, 0 violated it and 10 have no contract verdict; 4 failures of our instrument; 3 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2505.14673.json · badge: /api/ran/2505.14673.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
maifoundations/indexmark canonical (classifier label)
classifier basis not recorded on the link
16 ran · 3 no recorded run
FunctionStatusWhere it lives
build_imagenet Ran
ran; our contract draft was wrong, not the code
maifoundations/indexmark/dataset/imagenet.py
pointer only (licence: MIT); the stored copy get_code serves, from ThisisBillhe/ZipAR, is pointer only (licence: NONE) · get_code("5cceaa9d0edbce06")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from ThisisBillhe/ZipAR, and GitHub detected no licence in that repository 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_imagenet_code Ran
ran; our contract draft was wrong, not the code
maifoundations/indexmark/dataset/imagenet.py
pointer only (licence: MIT); the stored copy get_code serves, from ThisisBillhe/ZipAR, is pointer only (licence: NONE) · get_code("b6635606f35f6a1a")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from ThisisBillhe/ZipAR, and GitHub detected no licence in that repository 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.

collate_fn Ran
ran on a synthesized input
maifoundations/indexmark/Index_encoder/ft2_2loss.py
code served (permissive licence) · get_code("9780feca2753ce85")
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, through the batch API) and returned tuple, ndim 4, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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)

# Create sample batch items
# Each item is a tuple of (recon_tensor, target_tensor)
item1 = (torch.randn(4, 3), torch.randn(4, 3))
item2 = (torch.randn(4, 3), torch.randn(4, 3))
item3 = (torch.randn(4, 3), torch.randn(4, 3))

# Create a batch with some valid items and some None values to test filtering
batch = [item1, item2, (None, torch.randn(4, 3)), item3, None]

ARGS = {
    "batch": batch
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 4, dtype family float — a tuple output has no array shape of its own; none is stated
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
find_multiple Ran
ran, honoured the contract we drafted
maifoundations/indexmark/autoregressive/models/gpt.py
code served (permissive licence) · get_code("f6ff7671338c9c92")
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, through the batch API) and returned int, ndim 0, dtype family int, shape () 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
import numpy as np

torch.manual_seed(0)

# Analyze the function: find_multiple(n: int, k: int)
# The function takes two integers and returns an integer
# It checks if n is divisible by k, and if not, rounds n up to the next multiple of k

ARGS = {
    "n": 10,
    "k": 3
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () 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
green_check Ran
ran on a synthesized input
maifoundations/indexmark/attack_val.py
code served (permissive licence) · get_code("f4971cc46e80bbe7")
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, through the batch API) and returned float, ndim 0, dtype family float, shape () 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
import torch.nn as nn

torch.manual_seed(0)

# Create a small stand-in class for hc that has a green_list attribute
class MockHC:
    def __init__(self, green_list):
        self.green_list = green_list

# Create hc with a green_list containing some integer values
hc = MockHC(green_list={0, 2, 5, 7})

# Create indices_orig as a tensor with small integer values
# Some should be in green_list, some should not be
indices_orig = torch.tensor([0, 1, 2, 3])

ARGS = {
    "hc": hc,
    "indices_orig": indices_orig,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () 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
image_distortion Ran
ran on a synthesized input
maifoundations/indexmark/attack_val.py
code served (permissive licence) · get_code("392c601621077a9c")
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, through the batch API) and returned JpegImageFile. 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 io
import random
import numpy as np
import torch
from PIL import Image, ImageFilter
import torchvision.transforms as transforms

# Create a small PIL Image for testing
def create_test_image():
    """Create a small test PIL Image"""
    img_array = np.random.randint(0, 256, (64, 64, 3), dtype=np.uint8)
    img_pil = Image.fromarray(img_array, mode='RGB')
    return img_pil

# Set seed for reproducibility
torch.manual_seed(0)
np.random.seed(0)
random.seed(0)

# Create test arguments
img_pil = create_test_image()
seed = 42
attack = 'jpeg'  # Can be 'jpeg', 'cropping', 'blurring', 'noise', 'color_jitter', 'random_erase', or None
jpeg_quality = 70

ARGS = {
    'img_pil': img_pil,
    'seed': seed,
    'attack': attack,
    'jpeg_quality': jpeg_quality
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type JpegImageFile — a JpegImageFile output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a JpegImageFile 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
load_image_to_tensor Ran
ran on a synthesized input
maifoundations/indexmark/Index_encoder/preprocess_for_finetuning_zq.py
code served (permissive licence) · get_code("013417e3304262ee")
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, through the batch API) and returned Tensor, ndim 3, dtype family float, shape (3, 4, 3) 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
import numpy as np
from PIL import Image
import io

torch.manual_seed(0)

# Create a small test image and save it to a BytesIO object
# Then we'll create a temporary file-like path
test_image_array = np.random.randint(0, 256, (4, 3, 3), dtype=np.uint8)
pil_img = Image.fromarray(test_image_array)

# Save to a temporary location in memory and then to disk
import tempfile
import os

temp_dir = tempfile.mkdtemp()
image_path = os.path.join(temp_dir, "test_image.png")
pil_img.save(image_path)

ARGS = {
    'image_path': image_path,
    'target_device': 'cpu'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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 Tensor, ndim 3, dtype family float, shape (3, 4, 3) — shape (3, 4, 3) 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
load_image_to_tensor Ran
ran on a synthesized input
maifoundations/indexmark/verification.py
code served (permissive licence) · get_code("52d6aa62b8ee01d3")
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, through the batch API) and returned Tensor, ndim 4, dtype family float, shape (1, 3, 4, 3) 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
import numpy as np
from PIL import Image
import io

torch.manual_seed(0)

# Create a small test image in memory
img_array = np.random.randint(0, 256, (4, 3, 3), dtype=np.uint8)
pil_img = Image.fromarray(img_array, mode='RGB')

# Save to a BytesIO buffer to simulate a file path
img_buffer = io.BytesIO()
pil_img.save(img_buffer, format='PNG')
img_buffer.seek(0)

# Write to a temporary file-like path using a workaround
import tempfile
import os

temp_dir = tempfile.gettempdir()
test_image_path = os.path.join(temp_dir, 'test_image_setup.png')
pil_img.save(test_image_path)

ARGS = {
    'image_path': test_image_path,
    'target_device': 'cpu'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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 Tensor, ndim 4, dtype family float, shape (1, 3, 4, 3) — shape (1, 3, 4, 3) 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
load_pil_image_to_tensor Ran
ran on a synthesized input
maifoundations/indexmark/attack_val.py
code served (permissive licence) · get_code("551428d47bce5e23")
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, through the batch API) and returned Tensor, ndim 4, dtype family float, shape (1, 3, 4, 3) 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 numpy as np
import torch
from PIL import Image

torch.manual_seed(0)

# Create a small test PIL image (4x3 RGB)
img_array = np.random.randint(0, 256, (4, 3, 3), dtype=np.uint8)
pil_image = Image.fromarray(img_array, mode='RGB')

ARGS = {
    'pil_image': pil_image,
    'target_device': 'cpu'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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 Tensor, ndim 4, dtype family float, shape (1, 3, 4, 3) — shape (1, 3, 4, 3) 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
mscocojson2list Ran
ran on a synthesized input
maifoundations/indexmark/generation.py
code served (permissive licence) · get_code("ebbba64af32405e0")
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, through the batch API) and returned tuple, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 json
import tempfile
import os

# Create a temporary JSON file in MSCOCO format
temp_dir = tempfile.mkdtemp()
file_path = os.path.join(temp_dir, 'test_captions.json')

# Create sample MSCOCO-formatted data
mscoco_data = [
    {
        'caption': 'A dog running in the park',
        'image_id': 1
    },
    {
        'caption': 'A cat sitting on a windowsill',
        'image_id': 2
    },
    {
        'caption': 'Two birds flying in the sky',
        'image_id': 3
    }
]

# Write the data to the temporary file
with open(file_path, 'w', encoding='utf-8') as f:
    json.dump(mscoco_data, f, ensure_ascii=False)

ARGS = {
    'file_path': file_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
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
precompute_freqs_cis_2d Ran
ran, honoured the contract we drafted
maifoundations/indexmark/autoregressive/models/gpt.py
code served (permissive licence) · get_code("7f53b2cdcd16fad9")
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, through the batch API) and returned Tensor, ndim 3, dtype family float, shape (18, 4, 2) 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 = {
    "grid_size": 4,
    "n_elem": 8,
    "base": 10000,
    "cls_token_num": 2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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 3, dtype family float, shape (18, 4, 2) — shape (18, 4, 2) 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
sample Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
maifoundations/indexmark/autoregressive/models/generate.py
pointer only (licence: MIT); the stored copy get_code serves, from ThisisBillhe/ZipAR, is pointer only (licence: NONE) · get_code("de8908ac0f302419")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from ThisisBillhe/ZipAR, and GitHub detected no licence in that repository 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.

sample Ran
ran on a synthesized input
maifoundations/indexmark/autoregressive/models/generatearcon.py
code served (permissive licence) · get_code("a3052bf4fc15d6da")
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, through the batch API) and returned tuple. 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 torch.nn.functional as F

torch.manual_seed(0)

# Create a small logits tensor: (batch_size=2, seq_len=3, vocab_size=4)
logits = torch.randn(2, 3, 4)

# Create a simple index_mapping dict
# Maps vocabulary indices to other vocabulary indices
index_mapping = {0: 1, 1: 0, 2: 3}

ARGS = {
    "logits": logits,
    "temperature": 1.0,
    "top_k": 2,
    "top_p": 0.9,
    "sample_logits": True,
    "index_mapping": index_mapping,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is 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
top_k_top_p_filtering Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
maifoundations/indexmark/autoregressive/models/generate.py
pointer only (licence: MIT); the stored copy get_code serves, from ThisisBillhe/ZipAR, is pointer only (licence: NONE) · get_code("f2fea48028c7ae80")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from ThisisBillhe/ZipAR, and GitHub detected no licence in that repository 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.

vectorized_replacement_process Ran
ran on a synthesized input
maifoundations/indexmark/generation.py
code served (permissive licence) · get_code("72fe1f0d7fd26e7b")
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, through the batch API) and returned tuple. 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

torch.manual_seed(0)

class MockHCInstance:
    def __init__(self):
        # red_list_tensor: a tensor of token IDs that are "red" (eligible for replacement)
        self.red_list_tensor = torch.tensor([5, 7, 9], dtype=torch.long)
        # index_mapping: maps token IDs to their replacements
        self.index_mapping = {5: 10, 7: 12, 9: 9}  # 9 maps to itself (no change)

# Create arguments
index_sample = torch.tensor([[5, 7, 2, 3], [9, 1, 5, 4]], dtype=torch.long)
log_ratio_flat = torch.tensor([-2.5, -1.8, -3.2, -0.5, -4.1, 0.2, -1.9, -0.3], dtype=torch.float32)
log_threshold = -1.0
hc_instance = MockHCInstance()

ARGS = {
    "index_sample": index_sample,
    "log_ratio_flat": log_ratio_flat,
    "log_threshold": log_threshold,
    "hc_instance": hc_instance
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is 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
vectorized_replacement_process Ran
ran on a synthesized input
maifoundations/indexmark/generation_c2i.py
code served (permissive licence) · get_code("723170b20751a59f")
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, through the batch API) and returned tuple. 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

torch.manual_seed(0)

# Create a stand-in class for hc_instance that has the required attributes
class HCInstance:
    def __init__(self):
        # red_list_tensor: tensor of token IDs that should be replaced
        self.red_list_tensor = torch.tensor([1, 3], dtype=torch.long)
        # index_mapping: dict mapping original token IDs to replacement token IDs
        self.index_mapping = {1: 10, 3: 30}

# Create arguments for the function
index_sample = torch.tensor([[1, 2, 3, 4], [5, 1, 3, 2]], dtype=torch.long)
log_ratio_flat = torch.tensor([-2.0, -1.5, -0.5, 0.2, 1.0, -2.5, -0.3, 0.1], dtype=torch.float32)
log_threshold = -1.0
hc_instance = HCInstance()

ARGS = {
    "index_sample": index_sample,
    "log_ratio_flat": log_ratio_flat,
    "log_threshold": log_threshold,
    "hc_instance": hc_instance
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is 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
load_prompts_from_csv Not yet run
unverified (harvested, no recorded run)
maifoundations/indexmark/generation.py
code served (permissive licence) · get_code("4a1df45063de3ec2")
How it ran

no invocation recorded.

logits_to_probs Not yet run
unverified (harvested, no recorded run)
maifoundations/indexmark/autoregressive/models/generate.py
pointer only (licence: MIT); the stored copy get_code serves, from ThisisBillhe/ZipAR, is pointer only (licence: NONE) · get_code("9dac59261197935f")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from ThisisBillhe/ZipAR, and GitHub detected no licence in that repository 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. No invocation recorded.

precompute_freqs_cis Not yet run
unverified (harvested, no recorded run)
maifoundations/indexmark/autoregressive/models/gpt.py
pointer only (licence: MIT); the stored copy get_code serves, from ThisisBillhe/ZipAR, is pointer only (licence: NONE) · get_code("0f0ff4e443413018")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from ThisisBillhe/ZipAR, and GitHub detected no licence in that repository 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. No invocation recorded.

Also present in other papers' code

Of 19 samples lifted from this paper's linked repositories, 19 carry a function identity and 0 do not. Of the 19 distinct functions with an identity, 8 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 8 the same month, 1 later) and 11 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
find_multiple 13 other papers
11 dated earlier, 1 the same month, 1 undated · 2 only as an assembly brick
2406.06525 (2024-06)
Autoregressive Model Beats Diffusion: Llama for Scalable Image Generation
2409.13689 (2024-09)
Temporally Aligned Audio for Video with Autoregression
2410.02705 (2024-10)
ControlAR: Controllable Image Generation with Autoregressive Models
and 10 more not named here
precompute_freqs_cis_2d 9 other papers
7 dated earlier, 1 the same month, 1 undated · 2 only as an assembly brick
2406.06525 (2024-06)
Autoregressive Model Beats Diffusion: Llama for Scalable Image Generation
2409.13689 (2024-09)
Temporally Aligned Audio for Video with Autoregression
2410.02705 (2024-10)
ControlAR: Controllable Image Generation with Autoregressive Models
and 6 more not named here
top_k_top_p_filtering 8 other papers
5 dated earlier, 1 the same month, 1 later, 1 undated
2106.13219 (2021-06)
Towards Understanding and Mitigating Social Biases in Language Models
2406.06525 (2024-06)
Autoregressive Model Beats Diffusion: Llama for Scalable Image Generation
2410.02705 (2024-10)
ControlAR: Controllable Image Generation with Autoregressive Models
and 5 more not named here
precompute_freqs_cis 7 other papers
5 dated earlier, 1 the same month, 1 undated
2406.06525 (2024-06)
Autoregressive Model Beats Diffusion: Llama for Scalable Image Generation
2410.02705 (2024-10)
ControlAR: Controllable Image Generation with Autoregressive Models
2411.15867 (2024-11)
PanoLlama: Generating Endless and Coherent Panoramas with Next-Token-Prediction LLMs
and 4 more not named here
logits_to_probs 6 other papers
4 dated earlier, 1 the same month, 1 undated
2406.06525 (2024-06)
Autoregressive Model Beats Diffusion: Llama for Scalable Image Generation
2410.02705 (2024-10)
ControlAR: Controllable Image Generation with Autoregressive Models
2411.15867 (2024-11)
PanoLlama: Generating Endless and Coherent Panoramas with Next-Token-Prediction LLMs
and 3 more not named here
build_imagenet 5 other papers
4 dated earlier, 1 the same month
2406.06525 (2024-06)
Autoregressive Model Beats Diffusion: Llama for Scalable Image Generation
2410.02705 (2024-10)
ControlAR: Controllable Image Generation with Autoregressive Models
2412.03069 (2024-12)
TokenFlow: Unified Image Tokenizer for Multimodal Understanding and Generation
and 2 more not named here
sample 5 other papers
3 dated earlier, 1 the same month, 1 undated
2406.06525 (2024-06)
Autoregressive Model Beats Diffusion: Llama for Scalable Image Generation
2411.15867 (2024-11)
PanoLlama: Generating Endless and Coherent Panoramas with Next-Token-Prediction LLMs
2412.04062 (2024-12)
ZipAR: Parallel Auto-regressive Image Generation through Spatial Locality
and 2 more not named here
build_imagenet_code 3 other papers
2 dated earlier, 1 the same month
2406.06525 (2024-06)
Autoregressive Model Beats Diffusion: Llama for Scalable Image Generation
2412.04062 (2024-12)
ZipAR: Parallel Auto-regressive Image Generation through Spatial Locality
2505.23660 (2025-05)
D-AR: Diffusion via Autoregressive Models

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-23.

Repositories linked to this paper

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

Abstract

Invisible image watermarking can protect image ownership and prevent malicious misuse of visual generative models. However, existing generative watermarking methods are mainly designed for diffusion models while watermarking for autoregressive image generation models remains largely underexplored. We propose IndexMark, a training-free watermarking framework for autoregressive image generation models. IndexMark is inspired by the redundancy property of the codebook: replacing autoregressively generated indices with similar indices produces negligible visual differences. The core component in IndexMark is a simple yet effective match-then-replace method, which carefully selects watermark tokens from the codebook based on token similarity, and promotes the use of watermark tokens through token replacement, thereby embedding the watermark without affecting the image quality. Watermark verification is achieved by calculating the proportion of watermark tokens in generated images, with precision further improved by an Index Encoder. Furthermore, we introduce an auxiliary validation scheme to enhance robustness against cropping attacks. Experiments demonstrate that IndexMark achieves state-of-the-art performance in terms of image quality and verification accuracy, and exhibits robustness against various perturbations, including cropping, noises, Gaussian blur, random erasing, color jittering, and JPEG compression.

For agents

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

get_harvested_code_for_paper("2505.14673")
get_code_for_paper("2505.14673")
have("2505.14673")

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

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

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

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

Connect an agent — have() is free.