SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1611.04488 · 2016

Generative Models and Model Criticism via Optimized Maximum Mean Discrepancy

arXiv · PDF · Open in the Atlas

Code that ran

2 of 10 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; 0 honoured the contract we drafted, 1 violated it and 1 has no contract verdict; 0 failures of our instrument; 8 no recorded run), measured 2026-11-22; 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/1611.04488.json · badge: /api/ran/1611.04488.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
dougalsutherland/opt-mmd canonical (classifier label)
classifier basis: census
2 ran · 8 no recorded run
FunctionStatusWhere it lives
inverse_transform Ran
ran, violated the contract we drafted
dougalsutherland/opt-mmd/gan/utils.py
pointer only (licence: BSD-3-Clause); the stored copy get_code serves, from longyin880815/STCNN, is pointer only (licence: NONE) · get_code("e47297b1db7138e9")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (BSD-3-Clause), but get_code serves the stored copy, first harvested from longyin880815/STCNN, 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.

merge Ran
ran on a synthesized input
dougalsutherland/opt-mmd/gan/utils.py
code served (permissive licence) · get_code("086f34a9a161bd00")
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 3, dtype family float, shape (4, 10, 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

# Create a small batch of RGB images
# Shape: (batch_size, height, width, channels)
# Using distinct sizes: batch=2, height=4, width=5, channels=3
images = np.random.rand(2, 4, 5, 3).astype(np.float32)

# Grid size for merging: 2 images arranged in a 1x2 grid (1 row, 2 columns)
size = (1, 2)

ARGS = {
    "images": images,
    "size": size
}
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 3, dtype family float, shape (4, 10, 3) — shape (4, 10, 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
binary_cross_entropy Not yet run
unverified (harvested, no recorded run)
dougalsutherland/opt-mmd/gan/ops.py
code served (permissive licence) · get_code("cd4e6d34bb9ba789")
How it ran

no invocation recorded.

conv2d Not yet run
unverified (harvested, no recorded run)
dougalsutherland/opt-mmd/gan/ops.py
code served (permissive licence) · get_code("f0cb37d52c4b56e2")
How it ran

no invocation recorded.

conv_cond_concat Not yet run
unverified (harvested, no recorded run)
dougalsutherland/opt-mmd/gan/ops.py
code served (permissive licence) · get_code("f62556c1124a15ae")
How it ran

no invocation recorded.

dot Not yet run
unverified (harvested, no recorded run)
dougalsutherland/opt-mmd/gan/tf_ops.py
code served (permissive licence) · get_code("1bb085aab9eafe21")
How it ran

no invocation recorded.

mix_rbf_mmd2 Not yet run
unverified (harvested, no recorded run)
dougalsutherland/opt-mmd/gan/mmd.py
code served (permissive licence) · get_code("d24c683b6cd29a6a")
How it ran

no invocation recorded.

rbf_mmd2 Not yet run
unverified (harvested, no recorded run)
dougalsutherland/opt-mmd/gan/mmd.py
code served (permissive licence) · get_code("4075bf1103e8be13")
How it ran

no invocation recorded.

save_images Not yet run
unverified (harvested, no recorded run)
dougalsutherland/opt-mmd/gan/utils.py
code served (permissive licence) · get_code("2f2d81eff705fc69")
How it ran

no invocation recorded.

sq_sum Not yet run
unverified (harvested, no recorded run)
dougalsutherland/opt-mmd/gan/tf_ops.py
code served (permissive licence) · get_code("3b455641d13093a1")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 7 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 2 the same month, 6 later) and 3 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
conv2d 4 other papers
1 dated earlier, 1 the same month, 2 later
1609.07009 (2016-09)
Is the deconvolution layer the same as a convolutional layer?
1611.07004 (2016-11)
Image-to-Image Translation with Conditional Adversarial Networks
1703.05921 (2017-03)
Unsupervised Anomaly Detection with Generative Adversarial Networks to Guide Marker Discovery
and 1 more not named here
binary_cross_entropy 3 other papers
1 dated earlier, 1 the same month, 1 later
1609.07009 (2016-09)
Is the deconvolution layer the same as a convolutional layer?
1611.07004 (2016-11)
Image-to-Image Translation with Conditional Adversarial Networks
1808.09560 (2018-08)
On Learning 3D Face Morphable Model from In-the-wild Images
inverse_transform 2 other papers
2 later
1904.02363 (2019-04)
Spatiotemporal CNN for Video Object Segmentation
1910.11030 (2019-10)
Spatiotemporal Tile-based Attention-guided LSTMs for Traffic Video Prediction
conv_cond_concat 1 other paper
1 dated earlier
1609.07009 (2016-09)
Is the deconvolution layer the same as a convolutional layer?
dot 1 other paper
1 later
2010.09546 (2020-10)
Model-based Policy Optimization with Unsupervised Model Adaptation
mix_rbf_mmd2 1 other paper
1 later
2112.12047 (2021-12)
Generating Synthetic Mixed-type Longitudinal Electronic Health Records for Artificial Intelligent Applications
sq_sum 1 other paper
1 later
2010.09546 (2020-10)
Model-based Policy Optimization with Unsupervised Model Adaptation

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

Repositories linked to this paper

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

Abstract

We propose a method to optimize the representation and distinguishability of samples from two probability distributions, by maximizing the estimated power of a statistical test based on the maximum mean discrepancy (MMD). This optimized MMD is applied to the setting of unsupervised learning by generative adversarial networks (GAN), in which a model attempts to generate realistic samples, and a discriminator attempts to tell these apart from data samples. In this context, the MMD may be used in two roles: first, as a discriminator, either directly on the samples, or on features of the samples. Second, the MMD can be used to evaluate the performance of a generative model, by testing the model's samples against a reference data set. In the latter role, the optimized MMD is particularly helpful, as it gives an interpretable indication of how the model and data distributions differ, even in cases where individual model samples are not easily distinguished either by eye or by classifier.

For agents

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

get_harvested_code_for_paper("1611.04488")
get_code_for_paper("1611.04488")
have("1611.04488")

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

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

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

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

Connect an agent — have() is free.