SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.30642 · ICML · 2026

Diffusion Models Preferentially Memorize Prototypical Examples or: Why Does My Diffusion Model Love Slop?

Anastasia Borovykh, Daniel Korchinski, Marta Aparicio Rodriguez, Grigorios Pavliotis

arXiv · PDF · Open in the Atlas

Code that ran

13 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; 3 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 9 failures of our instrument; 6 no recorded run), measured 2026-11-23; 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/2605.30642.json · badge: /api/ran/2605.30642.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
martaaparod/memorization-in-diffusion-models canonical (classifier label)
classifier basis: census
13 ran · 6 no recorded run
FunctionStatusWhere it lives
build_training_tensor Ran
ran on a synthesized input
martaaparod/memorization-in-diffusion-models/diffusion_celeba/evals/memorization.py
code served (permissive licence) · get_code("ea9c6216fde96f44")
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 2, dtype family float, shape (2, 12) 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
from torch.utils.data import Dataset

torch.manual_seed(0)

class DummyDataset(Dataset):
    def __init__(self, num_samples=2, img_height=4, img_width=3):
        self.num_samples = num_samples
        self.img_height = img_height
        self.img_width = img_width
    
    def __len__(self):
        return self.num_samples
    
    def __getitem__(self, idx):
        # Return a single image tensor of shape (1, img_height, img_width)
        return torch.randn(1, self.img_height, self.img_width)

dataset = DummyDataset(num_samples=2, img_height=4, img_width=3)

ARGS = {
    'dataset': dataset,
    'device': 'cpu',
    'batch_size': 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, tqdm — 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, 12) — shape (2, 12) 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
compare_with_trainset Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
martaaparod/memorization-in-diffusion-models/diffusion_rhm/diffusion/evaluate_model.py
code served (permissive licence) · get_code("ed2b679e56cc65e3")
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)

# trainset has shape (P, v, d) - P training samples, v variables, d dimensions
# samples has shape (B, v, d) - B generated samples, v variables, d dimensions
# The function reshapes both to (N, v*d) and checks if samples @ trainset.T == d
# This means the dot product should equal d for exact matches

P = 3  # number of training samples
v = 2  # number of variables
d = 4  # dimension per variable

# Create trainset with shape (P, v, d)
trainset = torch.randn(P, v, d)

# Create samples with shape (B, v, d)
B = 2  # number of generated samples
samples = torch.randn(B, v, d)

ARGS = {
    "trainset": trainset,
    "samples": samples,
}
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
compute_knn Ran
ran; our contract draft was wrong, not the code
martaaparod/memorization-in-diffusion-models/diffusion_celeba/evals/memorization.py
code served (permissive licence) · get_code("a3da630747220f19")
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 3, 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 small sample tensors
# samples: (B, C*H*W) - 2 samples, 4 features each
samples = torch.randn(2, 4)

# X: (N, C*H*W) - 3 data points, 4 features each
X = torch.randn(3, 4)

# k: number of nearest neighbors
k = 2

# chunk_size: process X in chunks
chunk_size = 1000

ARGS = {
    "samples": samples,
    "X": X,
    "k": k,
    "chunk_size": chunk_size,
}
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 3, 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
compute_pseudolikelihood Ran
ran, honoured the contract we drafted
martaaparod/memorization-in-diffusion-models/diffusion_celeba/evals/spin_modelling.py
code served (permissive licence) · get_code("cf279b1c29f0f84a")
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 ndarray, ndim 1, dtype family float, shape (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 numpy as np

np.random.seed(0)

# Create small test data
n_samples = 2
n_attributes = 4

# spins: shape (n_samples, n_attributes), values ±1
spins = np.random.choice([-1, 1], size=(n_samples, n_attributes))

# h: external magnetic field, shape (n_attributes,)
h = np.random.randn(n_attributes)

# J: pairwise interaction matrix, shape (n_attributes, n_attributes)
# Should have zeros on diagonal (no self-interactions)
J = np.random.randn(n_attributes, n_attributes)
np.fill_diagonal(J, 0)

ARGS = {
    "spins": spins,
    "h": h,
    "J": J,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (2,) — shape (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
convert_labels_to_spins Ran
ran, honoured the contract we drafted
martaaparod/memorization-in-diffusion-models/diffusion_celeba/evals/spin_modelling.py
code served (permissive licence) · get_code("e48a6e99e136f221")
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 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
import numpy as np

torch.manual_seed(0)

# The function convert_labels_to_spins takes binary labels in {0, 1}
# and converts them to spin configurations in {-1, +1}
# It performs: labels * 2 - 1
# So 0 -> -1 and 1 -> +1

# Create a small tensor with binary labels
labels = torch.tensor([[0, 1, 0, 1],
                       [1, 0, 1, 0]], dtype=torch.float32)

ARGS = {
    "labels": labels
}
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 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
create_temp_image_dir Ran
ran; our contract draft was wrong, not the code
martaaparod/memorization-in-diffusion-models/diffusion_celeba/evals/compute_fid.py
code served (permissive licence) · get_code("537d6f0f1026e237")
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 str. 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 tempfile
import os

ARGS = {
    "base_dir": tempfile.gettempdir()
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float 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
fit_ising_to_spins Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
martaaparod/memorization-in-diffusion-models/diffusion_celeba/evals/spin_modelling.py
code served (permissive licence) · get_code("8fc6eff3b3ddc322")
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 numpy as np

torch.manual_seed(0)

# Create small spin array with shape (n_samples=2, d=4)
# Values must be in {-1, +1}
spins_np = np.array([
    [1, -1, 1, -1],
    [-1, 1, -1, 1]
], dtype=np.int32)

# Create equivalent torch tensor
spins_torch = torch.tensor(spins_np, dtype=torch.int32)

# Define log regression kwargs
log_reg_kwargs = {
    'solver': 'lbfgs',
    'penalty': 'l2',
    'C': 10.0,
    'max_iter': 1000
}

ARGS = {
    'spins': spins_np,
    'log_reg_kwargs': log_reg_kwargs
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn, 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
generate_labels Ran
ran, honoured the contract we drafted
martaaparod/memorization-in-diffusion-models/diffusion_rhm/datasets/random_hierarchy_model_probability.py
code served (permissive licence) · get_code("23a0f0bfe8bb0faf")
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 1, dtype family int, shape (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 = {
    "size": 5,
    "num_classes": 3
}
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 1, dtype family int, shape (5,) — shape (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
get_compatible_positions Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
martaaparod/memorization-in-diffusion-models/diffusion_rhm/belief_propagation/BP_utils.py
code served (permissive licence) · get_code("1850b19759b64aea")
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 2, dtype family int, shape (5, 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

torch.manual_seed(0)

# proba_rules is a tensor of shape (v, m, B, S_l)
# v = number of rule types
# m = number of rules per type
# B = batch size
# S_l = number of positions in sample
v, m, B, S_l = 3, 4, 2, 5

# Create a sparse tensor with some non-zero values
# This will give us compatible positions to extract
proba_rules = torch.zeros(v, m, B, S_l)

# Add some non-zero probabilities at specific positions
proba_rules[0, 1, 0, 2] = 0.5
proba_rules[0, 1, 1, 3] = 0.3
proba_rules[1, 2, 0, 1] = 0.7
proba_rules[2, 0, 1, 4] = 0.9
proba_rules[1, 3, 0, 0] = 0.4

ARGS = {
    'proba_rules': proba_rules
}
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 2, dtype family int, shape (5, 3) — shape (5, 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
hierarhical_copies Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
martaaparod/memorization-in-diffusion-models/diffusion_rhm/diffusion/evaluate_model.py
code served (permissive licence) · get_code("8e8cc463ce85db65")
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 dict. 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)

# The function expects:
# - samples: a tensor with shape (batch_size, seq_len, d)
# - dataset: a tensor with shape (batch_size, seq_len, d)
# - num_layers: an integer
# - tuple_size: an integer

# The function reshapes dimension 2 (d) into num_strings and size_string
# where size_string = tuple_size ** layer
# For this to work: d must be divisible by tuple_size ** num_layers

# Let's use:
# - batch_size = 2
# - seq_len = 3
# - d = 8 (divisible by 2^3 = 8)
# - num_layers = 2
# - tuple_size = 2

batch_size = 2
seq_len = 3
d = 8
num_layers = 2
tuple_size = 2

samples = torch.randn(batch_size, seq_len, d)
dataset = torch.randn(batch_size, seq_len, d)

ARGS = {
    "samples": samples,
    "dataset": dataset,
    "num_layers": num_layers,
    "tuple_size": tuple_size,
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float 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
init_optimizer Ran
ran; our contract draft was wrong, not the code
martaaparod/memorization-in-diffusion-models/diffusion_rhm/init.py
code served (permissive licence) · get_code("bf5065959dbc94ef")
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 1, 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
import torch.nn as nn

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

class ArgsConfig:
    def __init__(self, optim='adam', lr=0.001, momentum=0.9, warmup_steps=0):
        self.optim = optim
        self.lr = lr
        self.momentum = momentum
        self.warmup_steps = warmup_steps

model = SimpleModel()

ARGS = {
    'model': model,
    'args': ArgsConfig(optim='adam', lr=0.001, momentum=0.9, warmup_steps=100)
}
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 1, 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
predict_attributes Ran
ran; our contract draft was wrong, not the code
martaaparod/memorization-in-diffusion-models/diffusion_celeba/evals/classifier.py
code served (permissive licence) · get_code("56e2bee4fcc76b15")
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 3, dtype family float; no output shape is stated. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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
import torch.nn as nn
import torchvision.transforms as T
from torchvision.transforms import InterpolationMode

torch.manual_seed(0)

# Create a minimal model that takes image tensor and outputs logits
class MinimalAttributeModel(nn.Module):
    def __init__(self, num_attributes=5):
        super().__init__()
        self.num_attributes = num_attributes
        self.fc = nn.Linear(64 * 64 * 3, num_attributes)
    
    def forward(self, x):
        # x shape: (batch, 3, 64, 64)
        batch_size = x.shape[0]
        x = x.reshape(batch_size, -1)
        logits = self.fc(x)
        return logits

# Instantiate model
model = MinimalAttributeModel(num_attributes=5)
model.eval()

# Create a small image tensor (batch=2, channels=3, height=4, width=4)
# The transform will resize it to 73x73 then crop to 64x64
image_tensor = torch.randn(2, 3, 4, 4)

# Set device to CPU
device = 'cpu'

ARGS = {
    'model': model,
    'image_tensor': image_tensor,
    'device': device
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 3, 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
save_samples_as_images Ran
ran; our contract draft was wrong, not the code
martaaparod/memorization-in-diffusion-models/diffusion_celeba/evals/compute_fid.py
code served (permissive licence) · get_code("a9ce17e0553626bc")
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 tempfile
import os

torch.manual_seed(0)

# Create a temporary directory for saving images
temp_img_dir = tempfile.mkdtemp()

# Create sample images tensor
# Shape: (batch_size=2, channels=3, height=4, width=4)
samples = torch.rand(2, 3, 4, 4)

# Clamp to valid image range [0, 1] for save_image
samples = torch.clamp(samples, 0, 1)

ARGS = {
    'samples': samples,
    'temp_img_dir': temp_img_dir,
    'device': 'cpu'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchvision — 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
BP_countcorrect_upward Not yet run
unverified (harvested, no recorded run)
martaaparod/memorization-in-diffusion-models/diffusion_rhm/belief_propagation/BP_utils.py
code served (permissive licence) · get_code("422c9d116468f228")
How it ran

no invocation recorded.

compute_d3pm_loss_per_time Not yet run
unverified (harvested, no recorded run)
martaaparod/memorization-in-diffusion-models/diffusion_rhm/diffusion/evaluate_model.py
code served (permissive licence) · get_code("b6003bcf7aa4b396")
How it ran

no invocation recorded.

compute_mem Not yet run
unverified (harvested, no recorded run)
martaaparod/memorization-in-diffusion-models/diffusion_celeba/evals/memorization.py
code served (permissive licence) · get_code("50b3dd68a266d4d5")
How it ran

no invocation recorded.

load_multilabel_classifier Not yet run
unverified (harvested, no recorded run)
martaaparod/memorization-in-diffusion-models/diffusion_celeba/evals/classifier.py
code served (permissive licence) · get_code("9989ba91f384f161")
How it ran

no invocation recorded.

sample_data_from_labels Not yet run
unverified (harvested, no recorded run)
martaaparod/memorization-in-diffusion-models/diffusion_rhm/datasets/random_hierarchy_model_probability.py
code served (permissive licence) · get_code("caa0da4ea1171c73")
How it ran

no invocation recorded.

sample_rules Not yet run
unverified (harvested, no recorded run)
martaaparod/memorization-in-diffusion-models/diffusion_rhm/datasets/random_hierarchy_model_probability.py
code served (permissive licence) · get_code("b2239ae7b9eff145")
How it ran

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, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 18 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
sample_rules 1 other paper
1 dated earlier
2410.11767 (2024-10)
Analyzing (In)Abilities of SAEs via Formal Languages

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

Generative models have a persistent limitation: their tendency to memorize training data can create legal liabilities and erode creative diversity. Understanding which samples are memorized in whole or in part, and under what conditions, therefore remains an important open problem. Here we answer the question "Are atypical or rare samples memorized first?" in the negative. We train diffusion models on strings generated according to the production rules of the Random Hierarchy Model (RHM), and find that samples composed of common substrings are preferentially memorized. This holds true even if the training data consists of entirely unique samples, indicating that deduplication at the data point level does not provide a meaningful privacy guarantee. Correspondingly we predict, then observe, delayed memorization for fat-tailed datasets (i.e., those with more atypical samples). This effect is amplified when fat-tails are introduced into high-level production rules. These together suggest that dataset diversity, particularly at higher levels of abstraction, plays an important role in staving off memorization. Finally, we identify an intermediate regime of partial memorization in which common substrings are learned first and subsequently overproduced during generation. If training is stopped in this regime, models will exhibit the reversion-tothe-mean blandness often derided as "slop".

For agents

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

get_harvested_code_for_paper("2605.30642")
get_code_for_paper("2605.30642")
have("2605.30642")

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

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

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

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

Connect an agent — have() is free.