SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2111.15640 · 2021

Diffusion Autoencoders: Toward a Meaningful and Decodable Representation

arXiv · PDF · Open in the Atlas

Code that ran

13 of 15 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, 1 violated it and 2 have no contract verdict; 9 failures of our instrument; 2 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/2111.15640.json · badge: /api/ran/2111.15640.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
phizaz/diffae canonical (classifier label)
classifier basis not recorded on the link
13 ran · 2 no recorded run
FunctionStatusWhere it lives
chunk_size Ran
ran, honoured the contract we drafted
phizaz/diffae/dist_utils.py
code served (permissive licence) · get_code("235265a7a3a652fb")
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

torch.manual_seed(0)

ARGS = {
    "size": 10,
    "rank": 2,
    "world_size": 4
}
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 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
jsonable Ran
ran, violated the contract we drafted
phizaz/diffae/config_base.py
code served (permissive licence) · get_code("3436fefeb3a4b49a")
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 bool, 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 json
import torch
import numpy as np

def jsonable(x):
    try:
        json.dumps(x)
        return True
    except TypeError:
        return False

# Test with a simple JSON-serializable value
ARGS = {
    "x": {"key": "value", "number": 42, "list": [1, 2, 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 bool, 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
make_transform Ran
ran; our contract draft was wrong, not the code
phizaz/diffae/dataset.py
code served (permissive licence) · get_code("7b0f30c49d628c72")
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 Compose. 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 torchvision.transforms as transforms
import torchvision.transforms.functional as Ftrans
from PIL import Image
import numpy as np

torch.manual_seed(0)

# Define the Crop class and helper functions as provided
class Crop:
    def __init__(self, x1, x2, y1, y2):
        self.x1 = x1
        self.x2 = x2
        self.y1 = y1
        self.y2 = y2

    def __call__(self, img):
        return Ftrans.crop(img, self.x1, self.y1, self.x2 - self.x1, self.y2 - self.y1)

    def __repr__(self):
        return self.__class__.__name__ + '(x1={}, x2={}, y1={}, y2={})'.format(self.x1, self.x2, self.y1, self.y2)

def d2c_crop():
    cx = 89
    cy = 121
    x1 = cy - 64
    x2 = cy + 64
    y1 = cx - 64
    y2 = cx + 64
    return Crop(x1, x2, y1, y2)

def make_transform(image_size, flip_prob=0.5, crop_d2c=False):
    if crop_d2c:
        transform = [d2c_crop(), transforms.Resize(image_size)]
    else:
        transform = [transforms.Resize(image_size), transforms.CenterCrop(image_size)]
    transform.append(transforms.RandomHorizontalFlip(p=flip_prob))
    transform.append(transforms.ToTensor())
    transform.append(transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5)))
    transform = transforms.Compose(transform)
    return transform

# Create test arguments
ARGS = {
    'image_size': 224,
    'flip_prob': 0.5,
    'crop_d2c': False
}
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 Compose — a Compose output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Compose 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
resize_and_convert Ran
ran; our contract draft was wrong, not the code
phizaz/diffae/data_resize_bedroom.py
code served (permissive licence) · get_code("f36fb3b9b1239da0")
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 bytes. 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.

from io import BytesIO
from PIL import Image
import torch

torch.manual_seed(0)

# Create a small PIL Image object
# The function expects a PIL Image since it calls .save() on it
img = Image.new('RGB', (100, 100), color='red')

# size parameter: tuple of (height, width) for resize
size = (64, 64)

# resample parameter: PIL resampling filter
# Common choices are Image.BILINEAR, Image.NEAREST, etc.
resample = Image.BILINEAR

# quality parameter: JPEG/WebP quality (default 100)
quality = 95

ARGS = {
    'img': img,
    'size': size,
    'resample': resample,
    'quality': quality
}
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 bytes — a bytes output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a bytes 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
resize_and_convert Ran
ran; our contract draft was wrong, not the code
phizaz/diffae/data_resize_celebahq.py
pointer only (licence: MIT); the stored copy get_code serves, from mlpc-ucsd/patch-dm, is pointer only (licence: NONE) · get_code("89da1a2395b0d0d9")
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 mlpc-ucsd/patch-dm, 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.

resize_and_convert Ran
ran on a synthesized input
phizaz/diffae/data_resize_celeba.py
code served (permissive licence) · get_code("f5b22953cffc5be7")
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 bytes. 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.

from PIL import Image
import torch

# Create a small PIL Image object
img = Image.new('RGB', (64, 48), color='red')

# Define parameters
size = (32, 32)  # Target size for resize and center_crop
resample = Image.BILINEAR  # Resample method
quality = 95  # JPEG quality

ARGS = {
    'img': img,
    'size': size,
    'resample': resample,
    'quality': quality
}
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 bytes — a bytes output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a bytes 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
resize_multiple Ran
ran; our contract draft was wrong, not the code
phizaz/diffae/data_resize_bedroom.py
code served (permissive licence) · get_code("b6e307e73df01911")
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 list, 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.

from PIL import Image
import torch

# Create a small test image
img = Image.new('RGB', (256, 256), color='red')

# Define ARGS dictionary with all parameters for resize_multiple
ARGS = {
    'img': img,
    'sizes': (128, 256, 512),
    'resample': Image.LANCZOS,
    'quality': 85
}
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 list, ndim 1, dtype family float — a list 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
resize_multiple Ran
ran; our contract draft was wrong, not the code
phizaz/diffae/data_resize_celebahq.py
pointer only (licence: MIT); the stored copy get_code serves, from mlpc-ucsd/patch-dm, is pointer only (licence: NONE) · get_code("2a2ae041586bbc78")
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 mlpc-ucsd/patch-dm, 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.

resize_multiple Ran
ran; our contract draft was wrong, not the code
phizaz/diffae/data_resize_celeba.py
code served (permissive licence) · get_code("43751210df99f10f")
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 list, 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.

from io import BytesIO
from PIL import Image
from torchvision.transforms import functional as trans_fn

# Create a small test image
img = Image.new('RGB', (256, 256), color='red')

# Define ARGS with all parameters for resize_multiple
ARGS = {
    'img': img,
    'sizes': (128, 256, 512),
    'resample': Image.LANCZOS,
    'quality': 85
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list 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
resize_worker Ran
ran; our contract draft was wrong, not the code
phizaz/diffae/data_resize_bedroom.py
code served (permissive licence) · get_code("a046145c828624ad")
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.

from PIL import Image
import torch

torch.manual_seed(0)

# Create a small RGB image for testing
img = Image.new('RGBA', (256, 256), color=(255, 0, 0, 255))

# Define the arguments dictionary for resize_worker
ARGS = {
    'idx': 0,
    'img': img,
    'sizes': (128, 256, 512),
    'resample': Image.LANCZOS
}
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 — 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
resize_worker Ran
ran; our contract draft was wrong, not the code
phizaz/diffae/data_resize_celeba.py
code served (permissive licence) · get_code("0cf07ac3798b588b")
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
from PIL import Image
import numpy as np

torch.manual_seed(0)

# Create a small test image
img_array = np.random.randint(0, 256, (64, 48, 3), dtype=np.uint8)
img = Image.fromarray(img_array, mode='RGB')

# Define ARGS
ARGS = {
    'idx': 0,
    'img': img,
    'sizes': (128, 256),
    'resample': Image.LANCZOS
}
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 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
resize_worker Ran
ran on a synthesized input
phizaz/diffae/data_resize_celebahq.py
code served (permissive licence) · get_code("4d7a82e3c9b47997")
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 tempfile
import os
from PIL import Image
import io

# Create a temporary directory for test files
temp_dir = tempfile.mkdtemp()

# Create a simple test image file
test_image_path = os.path.join(temp_dir, "test.jpg")
test_img = Image.new('RGB', (512, 512), color='red')
test_img.save(test_image_path)

# Construct arguments for resize_worker
ARGS = {
    'img_file': (0, (test_image_path, 'idx_001')),
    'sizes': (128, 256, 512),
    'resample': Image.LANCZOS
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, torchvision — 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
unpack_bz2 Ran
ran; our contract draft was wrong, not the code
phizaz/diffae/align.py
code served (permissive licence) · get_code("8b346c500755d6bc")
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 bz2
import os
import tempfile

# Create a temporary directory for testing
temp_dir = tempfile.mkdtemp()

# Create a test bz2 file
test_content = b"This is test data for unpacking"
src_path = os.path.join(temp_dir, "test_file.bz2")
with bz2.BZ2File(src_path, 'wb') as f:
    f.write(test_content)

ARGS = {
    'src_path': src_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 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
get_file Not yet run
unverified (harvested, no recorded run)
phizaz/diffae/align.py
code served (permissive licence) · get_code("f93f74df8c200466")
How it ran

no invocation recorded.

use_cached_dataset_path Not yet run
unverified (harvested, no recorded run)
phizaz/diffae/dataset_util.py
code served (permissive licence) · get_code("96226a66ab62eb91")
How it ran

no invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 10 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 10 later) and 2 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
jsonable 5 other papers
5 later
2211.12500 (2022-11)
Person Image Synthesis via Denoising Diffusion Model
2308.01316 (2023-08)
Patched Denoising Diffusion Models For High-Resolution Image Synthesis
2308.09223 (2023-08)
DMCVR: Morphology-Guided Diffusion Model for 3D Cardiac Volume Reconstruction
and 2 more not named here
resize_multiple 5 other papers
5 later
2203.14954 (2022-03)
GIRAFFE HD: A High-Resolution 3D-aware Generative Model
2210.16559 (2022-10)
Few-shot Image Generation via Adaptation-Aware Kernel Modulation
2304.07574 (2023-04)
Exploring Incompatible Knowledge Transfer in Few-shot Image Generation
and 2 more not named here
chunk_size 2 other papers
2 later
2308.09223 (2023-08)
DMCVR: Morphology-Guided Diffusion Model for 3D Cardiac Volume Reconstruction
2410.23091 (2024-10)
CausalDiff: Causality-Inspired Disentanglement via Diffusion Model for Adversarial Defense
get_file 2 other papers
2 later
2308.09223 (2023-08)
DMCVR: Morphology-Guided Diffusion Model for 3D Cardiac Volume Reconstruction
2402.19009 (2024-02)
Unified Generation, Reconstruction, and Representation: Generalized Diffusion with Adaptive Latent Encoding-Decoding
make_transform 2 other papers
2 later
2308.09223 (2023-08)
DMCVR: Morphology-Guided Diffusion Model for 3D Cardiac Volume Reconstruction
2410.23091 (2024-10)
CausalDiff: Causality-Inspired Disentanglement via Diffusion Model for Adversarial Defense
resize_and_convert 2 other papers
2 later
2203.14954 (2022-03)
GIRAFFE HD: A High-Resolution 3D-aware Generative Model
2308.01316 (2023-08)
Patched Denoising Diffusion Models For High-Resolution Image Synthesis
unpack_bz2 2 other papers
2 later
2308.09223 (2023-08)
DMCVR: Morphology-Guided Diffusion Model for 3D Cardiac Volume Reconstruction
2402.19009 (2024-02)
Unified Generation, Reconstruction, and Representation: Generalized Diffusion with Adaptive Latent Encoding-Decoding
use_cached_dataset_path 2 other papers
2 later
2308.09223 (2023-08)
DMCVR: Morphology-Guided Diffusion Model for 3D Cardiac Volume Reconstruction
2410.23091 (2024-10)
CausalDiff: Causality-Inspired Disentanglement via Diffusion Model for Adversarial Defense
resize_and_convert 1 other paper
1 later
2402.19009 (2024-02)
Unified Generation, Reconstruction, and Representation: Generalized Diffusion with Adaptive Latent Encoding-Decoding
resize_worker 1 other paper
1 later
2402.19009 (2024-02)
Unified Generation, Reconstruction, and Representation: Generalized Diffusion with Adaptive Latent Encoding-Decoding

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 probabilistic models (DPMs) have achieved remarkable quality in image generation that rivals GANs'. But unlike GANs, DPMs use a set of latent variables that lack semantic meaning and cannot serve as a useful representation for other tasks. This paper explores the possibility of using DPMs for representation learning and seeks to extract a meaningful and decodable representation of an input image via autoencoding. Our key idea is to use a learnable encoder for discovering the high-level semantics, and a DPM as the decoder for modeling the remaining stochastic variations. Our method can encode any image into a two-part latent code, where the first part is semantically meaningful and linear, and the second part captures stochastic details, allowing near-exact reconstruction. This capability enables challenging applications that currently foil GAN-based methods, such as attribute manipulation on real images. We also show that this two-level encoding improves denoising efficiency and naturally facilitates various downstream tasks including few-shot conditional sampling. Please visit our project page: https://Diff-AE.github.io/

For agents

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

get_harvested_code_for_paper("2111.15640")
get_code_for_paper("2111.15640")
have("2111.15640")

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

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

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

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

Connect an agent — have() is free.