SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2210.10960 · 2022

Diffusion Models already have a Semantic Latent Space

arXiv · PDF · Open in the Atlas

Code that ran

5 of 7 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; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 2 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, 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/2210.10960.json · badge: /api/ran/2210.10960.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
kwonminki/Asyrp_official canonical (classifier label)
classifier basis not recorded on the link
5 ran · 2 no recorded run
FunctionStatusWhere it lives
center_crop_arr Ran
ran; our contract draft was wrong, not the code
kwonminki/Asyrp_official/datasets/IMAGENET_dataset.py
code served (permissive licence) · get_code("8ab9a97df8161f31")
How it ran

Ran in Syntology's jail on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned ndarray, ndim 3, dtype family int, shape (64, 64, 3) as a later run recorded it. The image it ran in was not recorded. The comparison behind this sample's level is a different run: the peer-agreement lane ran it again on the host, not in the jail (report dated 2026-09-05T00:51:18Z). 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.

from PIL import Image
import numpy as np

# Create a small PIL Image for testing
# Make it larger than 2 * image_size so we can test the resizing logic
pil_image = Image.new('RGB', (256, 256), color='red')

# Define image_size parameter
image_size = 64

# Construct ARGS dictionary
ARGS = {
    'pil_image': pil_image,
    'image_size': image_size
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
PIL, 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 int, shape (64, 64, 3) — shape (64, 64, 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
conv3x3 Ran
ran; our contract draft was wrong, not the code
kwonminki/Asyrp_official/losses/resnet.py
pointer only (licence: MIT); the stored copy get_code serves, from lixiaotong97/DSU, is pointer only (licence: NONE) · get_code("fac5364e2f53c6db")
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 lixiaotong97/DSU, 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.

create_layer_basic Ran
ran; our contract draft was wrong, not the code
kwonminki/Asyrp_official/losses/resnet.py
pointer only (licence: MIT); the stored copy get_code serves, from vladhondru25/DF-MoE, is pointer only (licence: NOASSERTION) · get_code("325b8d54f52e2421")
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 vladhondru25/DF-MoE, and GitHub could not classify the licence of that repository (NOASSERTION). 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_afhq_dataset Ran
ran, honoured the contract we drafted
kwonminki/Asyrp_official/datasets/AFHQ_dataset.py
code served (permissive licence) · get_code("599135e129c4056e")
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 5, 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 os
import tempfile
from PIL import Image
import torch
import torchvision.transforms as tfs

torch.manual_seed(0)

# Create a temporary directory structure with mock images
temp_dir = tempfile.mkdtemp()
for mode in ['train', 'test']:
    for animal_class in ['dog']:
        dir_path = os.path.join(temp_dir, mode, animal_class)
        os.makedirs(dir_path, exist_ok=True)
        # Create 2 small mock PNG images
        for i in range(2):
            img = Image.new('RGB', (256, 256), color=(73, 109, 137))
            img.save(os.path.join(dir_path, f'image_{i}.png'))

# Create a config object with the required attributes
class Config:
    def __init__(self):
        self.data = DataConfig()

class DataConfig:
    def __init__(self):
        self.image_size = 256

config = Config()

ARGS = {
    'data_root': temp_dir,
    'config': config
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, 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 5, 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
random_crop_arr Ran
ran; our contract draft was wrong, not the code
kwonminki/Asyrp_official/datasets/IMAGENET_dataset.py
code served (permissive licence) · get_code("9aa64be32dcfd7ca")
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 int, shape (64, 64, 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
from PIL import Image
import random
import math

# Set seed for reproducibility
random.seed(42)

# Create a small test PIL image
# Make it larger than what we'll request to allow for cropping
pil_image = Image.new('RGB', (256, 256), color='red')

# Define arguments for the function
ARGS = {
    'pil_image': pil_image,
    'image_size': 64,
    'min_crop_frac': 0.8,
    'max_crop_frac': 1.0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, 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 int, shape (64, 64, 3) — shape (64, 64, 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
get_celeba_dialog_dataset Not yet run
unverified (harvested, no recorded run)
kwonminki/Asyrp_official/datasets/CelebA_HQ_dataset_dialog.py
code served (permissive licence) · get_code("d43a24d992531304")
How it ran

no invocation recorded.

get_imagenet_dataset Not yet run
unverified (harvested, no recorded run)
kwonminki/Asyrp_official/datasets/IMAGENET_dataset.py
code served (permissive licence) · get_code("40341a2f1fe9456e")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 7 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 3 the same month, 7 later) and 0 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
conv3x3 686 other papers
415 dated earlier, 9 the same month, 251 later, 11 same year, order not determinable · 31 only as an assembly brick
1406.2661 (2014-06)
Generative Adversarial Networks
1409.0575 (2014-09)
ImageNet Large Scale Visual Recognition Challenge
1412.6572 (2014-12)
Explaining and Harnessing Adversarial Examples
and 683 more not named here
center_crop_arr 33 other papers
5 dated earlier, 1 the same month, 27 later
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
2111.14818 (2021-11)
Blended Diffusion for Text-driven Editing of Natural Images
2203.15636 (2022-03)
Diffusion Models for Counterfactual Explanations
and 30 more not named here
random_crop_arr 32 other papers
6 dated earlier, 1 the same month, 25 later
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
2111.14818 (2021-11)
Blended Diffusion for Text-driven Editing of Natural Images
2203.04306 (2022-03)
Diffusion Models for Medical Anomaly Detection
and 29 more not named here
create_layer_basic 18 other papers
7 dated earlier, 11 later
1904.07399 (2019-04)
Adaptive Wing Loss for Robust Face Alignment via Heatmap Regression
1911.09070 (2019-11)
EfficientDet: Scalable and Efficient Object Detection
2011.00844 (2020-11)
Do 2D GANs Know 3D Shape? Unsupervised 3D shape reconstruction from 2D Image GANs
and 15 more not named here
get_afhq_dataset 1 other paper
1 later
2601.17927 (2026-01)
RemEdit: Efficient Diffusion Editing with Riemannian Geometry
get_celeba_dialog_dataset 1 other paper
1 later
2601.17927 (2026-01)
RemEdit: Efficient Diffusion Editing with Riemannian Geometry
get_imagenet_dataset 1 other paper
1 later
2601.17927 (2026-01)
RemEdit: Efficient Diffusion Editing with Riemannian Geometry

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

Diffusion models achieve outstanding generative performance in various domains. Despite their great success, they lack semantic latent space which is essential for controlling the generative process. To address the problem, we propose asymmetric reverse process (Asyrp) which discovers the semantic latent space in frozen pretrained diffusion models. Our semantic latent space, named h-space, has nice properties for accommodating semantic image manipulation: homogeneity, linearity, robustness, and consistency across timesteps. In addition, we introduce a principled design of the generative process for versatile editing and quality boost ing by quantifiable measures: editing strength of an interval and quality deficiency at a timestep. Our method is applicable to various architectures (DDPM++, iD- DPM, and ADM) and datasets (CelebA-HQ, AFHQ-dog, LSUN-church, LSUN- bedroom, and METFACES). Project page: https://kwonminki.github.io/Asyrp/

For agents

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

get_harvested_code_for_paper("2210.10960")
get_code_for_paper("2210.10960")
have("2210.10960")

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

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

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

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

Connect an agent — have() is free.