SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2206.01370 · 2022

Towards Improving the Generation Quality of Autoregressive Slot VAEs

arXiv · PDF · Open in the Atlas

Code that ran

7 of 8 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, 0 violated it and 7 have no contract verdict; 0 failures of our instrument; 1 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/2206.01370.json · badge: /api/ran/2206.01370.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
pemami4911/segregate-relate-imagine canonical (classifier label)
classifier basis not recorded on the link
7 ran · 1 no recorded run
FunctionStatusWhere it lives
adjusted_rand_index Ran
ran on a synthesized input
pemami4911/segregate-relate-imagine/sri/metrics.py
code served (permissive licence) · get_code("bb452191fb5c6d51")
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 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 torch

torch.manual_seed(0)

# Create small test tensors
# true_mask: LongTensor of shape [N, num_entities, 1, H, W]
# Background is 0, objects are 1, 2, etc.
N = 2
num_entities = 3
H = 4
W = 4

true_mask = torch.zeros((N, num_entities, 1, H, W), dtype=torch.long)
# Set some entity masks
true_mask[0, 0, 0, :2, :2] = 0  # background
true_mask[0, 1, 0, 2:, :2] = 1  # object 1
true_mask[0, 2, 0, :2, 2:] = 2  # object 2
true_mask[1, 0, 0, :, :] = 0    # background
true_mask[1, 1, 0, 1:3, 1:3] = 1  # object 1
true_mask[1, 2, 0, 3:, 3:] = 2    # object 2

# pred_mask: FloatTensor of shape [N, K, 1, H, W] (mask probabilities)
K = 4
pred_mask = torch.rand((N, K, 1, H, W), dtype=torch.float32)
# Make predictions more reasonable by setting higher values where objects should be
pred_mask[0, 0, 0, :2, :2] = 0.8   # background
pred_mask[0, 1, 0, 2:, :2] = 0.7   # object 1
pred_mask[0, 2, 0, :2, 2:] = 0.6   # object 2
pred_mask[1, 0, 0, :, :] = 0.5     # background
pred_mask[1, 1, 0, 1:3, 1:3] = 0.8  # object 1
pred_mask[1, 2, 0, 3:, 3:] = 0.7    # object 2

ARGS = {
    "true_mask": true_mask,
    "pred_mask": pred_mask,
    "exclude_background": True,
    "max_num_entities": 7,
    "background_idxs": [0]
}
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 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
create_mask_image Ran
ran on a synthesized input
pemami4911/segregate-relate-imagine/sri/visualization.py
code served (permissive licence) · get_code("26004642f3667955")
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

torch.manual_seed(0)

# Create a small mask tensor of shape [K, 1, H, W]
# K=2 masks, 1 channel, H=4, W=3
masks = torch.rand(2, 1, 4, 3)

ARGS = {
    "masks": masks
}
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 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
get_mask_plot_colors Ran
ran on a synthesized input
pemami4911/segregate-relate-imagine/sri/visualization.py
code served (permissive licence) · get_code("607c63ed17c02704")
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 2, dtype family float, 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 numpy as np

ARGS = {
    "nr_colors": 5
}
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 2, dtype family float, 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
mvn Ran
ran on a synthesized input
pemami4911/segregate-relate-imagine/sri/utils.py
code served (permissive licence) · get_code("8439bd65f5ac1c20")
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 Independent. 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 small tensors for loc and softplus
# loc: mean of the distribution, shape (2, 4)
loc = torch.randn(2, 4)

# softplus: pre-transformed standard deviation, shape (2, 4)
softplus = torch.randn(2, 4) * 0.5

# temperature: scalar controlling the scale
temperature = 1.0

ARGS = {
    "loc": loc,
    "softplus": softplus,
    "temperature": temperature,
}
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 Independent — a Independent output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Independent 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
pixel_mse Ran
ran on a synthesized input
pemami4911/segregate-relate-imagine/sri/metrics.py
code served (permissive licence) · get_code("1e58c4d04b02b286")
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 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 torch

torch.manual_seed(0)

# Parameters based on function signature and docstring
N = 2  # batch size
C = 3  # channels
H = 4  # height
W = 5  # width
K = 2  # number of components/masks

# true_image: [N, C, H, W]
true_image = torch.randn(N, C, H, W)

# colors: [N, K, C, H, W]
colors = torch.randn(N, K, C, H, W)

# masks: [N, K, 1, H, W]
masks = torch.randn(N, K, 1, H, W)

ARGS = {
    "true_image": true_image,
    "colors": colors,
    "masks": masks,
}
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 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
std_mvn Ran
ran on a synthesized input
pemami4911/segregate-relate-imagine/sri/utils.py
code served (permissive licence) · get_code("15315189e1f1c9db")
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 Independent. 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)

ARGS = {
    "shape": (2, 4),
    "device": "cpu",
    "temperature": 1.0,
}
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 Independent — a Independent output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Independent 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
tensor_to_png Ran
ran on a synthesized input
pemami4911/segregate-relate-imagine/compute_fid.py
code served (permissive licence) · get_code("aacd6f716b035290")
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
import tempfile

torch.manual_seed(0)

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

# Create a tensor with shape (batch_size=2, channels=3, height=4, width=5)
# The function expects moveaxis to work, moving axis 1 to axis 3
# So shape should be (batch, channels, height, width)
tensor = torch.rand(2, 3, 4, 5)

# count parameter - starting count
count = 0

# stop parameter - when to stop saving
stop = 5

ARGS = {
    "tensor": tensor,
    "save_dir": save_dir,
    "count": count,
    "stop": stop
}
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 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
colour_seg_masks Not yet run
unverified (harvested, no recorded run)
pemami4911/segregate-relate-imagine/sri/visualization.py
code served (permissive licence) · get_code("e89ddfc78bb6017c")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 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 7 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
pixel_mse 1 other paper
1 dated earlier
2106.03630 (2021-06)
Efficient Iterative Amortized Inference for Learning Symmetric and Disentangled Multi-Object Representations

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

Unconditional scene inference and generation are challenging to learn jointly with a single compositional model. Despite encouraging progress on models that extract object-centric representations (''slots'') from images, unconditional generation of scenes from slots has received less attention. This is primarily because learning the multi-object relations necessary to imagine coherent scenes is difficult. We hypothesize that most existing slot-based models have a limited ability to learn object correlations. We propose two improvements that strengthen object correlation learning. The first is to condition the slots on a global, scene-level variable that captures higher-order correlations between slots. Second, we address the fundamental lack of a canonical order for objects in images by proposing to learn a consistent order to use for the autoregressive generation of scene objects. Specifically, we train an autoregressive slot prior to sequentially generate scene objects following a learned order. Ordered slot inference entails first estimating a randomly ordered set of slots using existing approaches for extracting slots from images, then aligning those slots to ordered slots generated autoregressively with the slot prior. Our experiments across three multi-object environments demonstrate clear gains in unconditional scene generation quality. Detailed ablation studies are also provided that validate the two proposed improvements.

For agents

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

get_harvested_code_for_paper("2206.01370")
get_code_for_paper("2206.01370")
have("2206.01370")

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

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

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

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

Connect an agent — have() is free.