SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2106.03630 · ICML · 2021

Efficient Iterative Amortized Inference for Learning Symmetric and Disentangled Multi-Object Representations

Patrick Emami, Pan He, Sanjay Ranka, Anand Rangarajan

arXiv · PDF · Open in the Atlas

Code that ran

9 of 9 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, 2 violated it and 7 have no contract verdict; 0 failures of our instrument; 0 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/2106.03630.json · badge: /api/ran/2106.03630.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/EfficientMORL canonical (classifier label)
classifier basis: census
9 ran · 0 no recorded run
FunctionStatusWhere it lives
adjusted_rand_index Ran
ran on a synthesized input
pemami4911/EfficientMORL/lib/metrics.py
code served (permissive licence) · get_code("541dc5b4ae07fd63")
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 tiny tensors for testing
# true_mask: LongTensor of shape [N, num_entities, 1, H, W]
# N=2 (batch), num_entities=3, H=4, W=4
N = 2
num_entities = 3
H = 4
W = 4
K = 3  # number of predicted groups

# Create true_mask: background=0, object1=1, object2=2, etc.
true_mask = torch.zeros(N, num_entities, 1, H, W, dtype=torch.long)
# Set some pixels to different entity IDs
true_mask[0, 0, 0, :2, :2] = 1  # entity 0 in top-left
true_mask[0, 1, 0, 2:, 2:] = 1  # entity 1 in bottom-right
true_mask[1, 0, 0, :, :2] = 1   # entity 0 on left
true_mask[1, 2, 0, :, 2:] = 1   # entity 2 on right

# Create pred_mask: FloatTensor of shape [N, K, 1, H, W]
# These are mask probabilities - we'll create logit-like values
pred_mask = torch.randn(N, K, 1, H, W, dtype=torch.float32)
# Make some predictions more confident by increasing certain values
pred_mask[0, 0, 0, :2, :2] += 2.0
pred_mask[0, 1, 0, 2:, 2:] += 2.0
pred_mask[1, 0, 0, :, :2] += 2.0
pred_mask[1, 2, 0, :, 2:] += 2.0

ARGS = {
    'true_mask': true_mask,
    'pred_mask': pred_mask,
    'exclude_background': True,
}
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
compute_importance Ran
ran on a synthesized input
pemami4911/EfficientMORL/lib/dci.py
code served (permissive licence) · get_code("805f21804621c710")
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 numpy as np
from sklearn import ensemble

np.random.seed(0)

# Create small sample data
# x_train shape: (num_codes, num_samples) - transposed for sklearn
# y_train shape: (num_factors, num_samples)
num_codes = 4
num_factors = 3
num_samples_train = 8
num_samples_test = 6

x_train = np.random.randn(num_codes, num_samples_train)
y_train = np.random.randint(0, 2, size=(num_factors, num_samples_train))

x_test = np.random.randn(num_codes, num_samples_test)
y_test = np.random.randint(0, 2, size=(num_factors, num_samples_test))

# factor_types: one type per factor (row in y_train)
# Mix of 'discrete' and 'continuous'
factor_types = ['discrete', 'discrete', 'continuous']

ARGS = {
    'x_train': x_train,
    'y_train': y_train,
    'x_test': x_test,
    'y_test': y_test,
    'factor_types': factor_types,
    'model': 'gbt'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, six, sklearn — 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
disentanglement Ran
ran, violated the contract we drafted
pemami4911/EfficientMORL/lib/dci.py
code served (permissive licence) · get_code("9036466b82f32c46")
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 float32, 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 numpy as np
import scipy

# Create a small importance matrix
# Shape: (num_codes, num_factors)
# The function uses:
# - importance_matrix.T for transpose
# - importance_matrix.shape[1] for number of codes
# - importance_matrix.sum() for total sum
# - importance_matrix.sum(axis=1) for per-code importance
importance_matrix = np.array([
    [0.8, 0.1, 0.05, 0.05],
    [0.1, 0.7, 0.1, 0.1],
    [0.05, 0.2, 0.6, 0.15],
    [0.05, 0.0, 0.25, 0.7]
], dtype=np.float32)

ARGS = {
    "importance_matrix": importance_matrix
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float32, 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
disentanglement_per_code Ran
ran, violated the contract we drafted
pemami4911/EfficientMORL/lib/dci.py
code served (permissive licence) · get_code("4549dd9ced62ede6")
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 (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 numpy as np
import scipy.stats

# Create a small importance matrix
# This represents importance scores for each code across different factors
# Shape: (n_codes, n_factors) - using 4 codes and 3 factors for distinct dimensions
importance_matrix = np.array([
    [0.8, 0.1, 0.05],
    [0.05, 0.9, 0.02],
    [0.1, 0.05, 0.85],
    [0.05, 0.05, 0.1]
], dtype=np.float32)

ARGS = {
    "importance_matrix": importance_matrix
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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 (4,) — shape (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
matching_iou Ran
ran on a synthesized input
pemami4911/EfficientMORL/lib/metrics.py
code served (permissive licence) · get_code("20d9d7494743e9bc")
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 2, dtype family int; 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 numpy as np

torch.manual_seed(0)

# Create small tensors with distinct dimensions
H, W = 4, 3
num_entities = 2
K = 2

# true_mask: [num_entities, 1, H, W]
# Each entity gets a unique ID (0 is background, 1, 2, etc.)
true_mask = torch.zeros(num_entities, 1, H, W, dtype=torch.long)
# Entity 0 (background) stays 0
# Entity 1 gets some pixels with value 1
true_mask[1, 0, 0:2, 0:2] = 1

# pred_mask: [K, 1, H, W]
# This will be converted to argmax, so we need K channels
pred_mask = torch.zeros(K, 1, H, W, dtype=torch.float32)
# Channel 0 (background-like) has some probability
pred_mask[0, 0, :, :] = 0.3
# Channel 1 (object) has higher probability in some regions
pred_mask[1, 0, 0:2, 0:2] = 0.8
pred_mask[0, 0, 0:2, 0:2] = 0.2

# presence: binary mask indicating which objects are present
# First index is for background (always included but ignored)
# We have num_entities, so presence needs that many entries
# Set to all 1s to indicate all entities are present
presence = torch.ones(num_entities, dtype=torch.long)

ARGS = {
    "true_mask": true_mask,
    "pred_mask": pred_mask,
    "presence": presence,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family int — 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
mvn Ran
ran on a synthesized input
pemami4911/EfficientMORL/lib/utils.py
code served (permissive licence) · get_code("59431095f0631f85")
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 (batch_size, dim)
# softplus: pre-softplus std parameter, shape (batch_size, dim)
loc = torch.randn(2, 4)
softplus = torch.randn(2, 4)
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/EfficientMORL/lib/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/EfficientMORL/lib/utils.py
code served (permissive licence) · get_code("dbbbca9a6ee4050e")
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'
}
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
truncated_normal_initializer Ran
ran on a synthesized input
pemami4911/EfficientMORL/lib/utils.py
code served (permissive licence) · get_code("f063d80ee3c977d0")
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
from scipy.stats import truncnorm

torch.manual_seed(0)

ARGS = {
    "shape": (2, 4),
    "mean": 0.0,
    "stddev": 1.0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, 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

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 5 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 3 later) and 4 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
disentanglement 1 other paper
1 later
2210.00364 (2022-10)
DCI-ES: An Extended Disentanglement Framework with Connections to Identifiability
disentanglement_per_code 1 other paper
1 later
2210.00364 (2022-10)
DCI-ES: An Extended Disentanglement Framework with Connections to Identifiability
pixel_mse 1 other paper
1 later
2206.01370 (2022-06)
Towards Improving the Generation Quality of Autoregressive Slot VAEs
std_mvn 1 other paper
1 dated earlier
1903.00450 (2019-03)
Multi-Object Representation Learning with Iterative Variational Inference
truncated_normal_initializer 1 other paper
1 dated earlier
1903.00450 (2019-03)
Multi-Object Representation Learning with Iterative Variational Inference

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

Unsupervised multi-object representation learning depends on inductive biases to guide the discovery of object-centric representations that generalize. However, we observe that methods for learning these representations are either impractical due to long training times and large memory consumption or forego key inductive biases. In this work, we introduce EfficientMORL, an efficient framework for the unsupervised learning of object-centric representations. We show that optimization challenges caused by requiring both symmetry and disentanglement can in fact be addressed by high-cost iterative amortized inference by designing the framework to minimize its dependence on it. We take a two-stage approach to inference: first, a hierarchical variational autoencoder extracts symmetric and disentangled representations through bottom-up inference, and second, a lightweight network refines the representations with top-down feedback. The number of refinement steps taken during training is reduced following a curriculum, so that at test time with zero steps the model achieves 99.1% of the refined decomposition performance. We demonstrate strong object decomposition and disentanglement on the standard multi-object benchmark while achieving nearly an order of magnitude faster training and test time inference over the previous state-of-theart model.

For agents

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

get_harvested_code_for_paper("2106.03630")
get_code_for_paper("2106.03630")
have("2106.03630")

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

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

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

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

Connect an agent — have() is free.