SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1901.11390 · 2019

MONet: Unsupervised Scene Decomposition and Representation

arXiv · PDF · Open in the Atlas

Code that ran

7 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; 0 honoured the contract we drafted, 0 violated it and 6 have no contract verdict; 1 failure of our instrument; 0 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/1901.11390.json · badge: /api/ran/1901.11390.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
JohannesTheo/multi_object_datasets_torch community (classifier label)
classifier basis not recorded on the link
3 ran · 0 no recorded run
Michedev/MONet-pytorch community (classifier label)
classifier basis not recorded on the link
3 ran · 0 no recorded run
stelzner/monet reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
adjusted_rand_index Ran
ran on a synthesized input
JohannesTheo/multi_object_datasets_torch/segmentation_metrics.py
code served (permissive licence) · get_code("4278b4b72fbcd18d")
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
import torch.nn.functional as F

torch.manual_seed(0)

# Create small tensors for testing adjusted_rand_index
batch_size = 2
n_points = 6
n_true_groups = 3
n_pred_groups = 4

# true_mask: [batch_size, n_points, n_true_groups] one-hot encoded
true_mask = torch.zeros(batch_size, n_points, n_true_groups)
true_mask[0, 0:2, 0] = 1
true_mask[0, 2:4, 1] = 1
true_mask[0, 4:6, 2] = 1
true_mask[1, 0:2, 0] = 1
true_mask[1, 2:4, 1] = 1
true_mask[1, 4:6, 2] = 1

# pred_mask: [batch_size, n_points, n_pred_groups] categorical probabilities
pred_mask = torch.zeros(batch_size, n_points, n_pred_groups)
pred_mask[0, 0:2, 0] = 0.9
pred_mask[0, 0:2, 1:] = 0.1 / (n_pred_groups - 1)
pred_mask[0, 2:4, 1] = 0.9
pred_mask[0, 2:4, [0, 2, 3]] = 0.1 / (n_pred_groups - 1)
pred_mask[0, 4:6, 2] = 0.9
pred_mask[0, 4:6, [0, 1, 3]] = 0.1 / (n_pred_groups - 1)
pred_mask[1, 0:2, 0] = 0.8
pred_mask[1, 0:2, 1:] = 0.2 / (n_pred_groups - 1)
pred_mask[1, 2:4, 1] = 0.8
pred_mask[1, 2:4, [0, 2, 3]] = 0.2 / (n_pred_groups - 1)
pred_mask[1, 4:6, 2] = 0.8
pred_mask[1, 4:6, [0, 1, 3]] = 0.2 / (n_pred_groups - 1)

ARGS = {
    'true_mask': true_mask,
    'pred_mask': pred_mask,
    'ignore_background': False,
    'name': 'ari_score'
}
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
calc_output_shape_conv Ran
ran on a synthesized input
Michedev/MONet-pytorch/monet_pytorch/nn_utils.py
code served (permissive licence) · get_code("ba8e0e813053eb4b")
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 1, 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)

# Analyze the function:
# - width: int - input width dimension
# - height: int - input height dimension
# - kernels: List[int] - list of kernel sizes for each conv layer
# - paddings: List[int] - list of padding values for each conv layer
# - strides: List[int] - list of stride values for each conv layer

# The function iterates through these lists and applies convolution output shape calculations
# We need valid, matching-length lists with reasonable conv parameters

ARGS = {
    "width": 32,
    "height": 28,
    "kernels": [3, 3, 5],
    "paddings": [1, 1, 2],
    "strides": [1, 2, 1],
}
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 tuple, ndim 1, 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
double_conv Ran
ran; our contract draft was wrong, not the code
stelzner/monet/model.py
code served (permissive licence) · get_code("6197a19b88fb1aed")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Sequential. 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 torch.nn as nn

torch.manual_seed(0)

# The function double_conv takes in_channels and out_channels as parameters
# and returns a Sequential module with Conv2d, BatchNorm2d, and ReLU layers

in_channels = 3
out_channels = 16

ARGS = {
    'in_channels': in_channels,
    'out_channels': out_channels
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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
flatten_and_one_hot Ran
ran on a synthesized input
JohannesTheo/multi_object_datasets_torch/segmentation_metrics.py
code served (permissive licence) · get_code("4628ccf7333c9464")
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 (2, 120, 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

torch.manual_seed(0)

# Construct a valid argument for true_groups
# Expected shape: [batch_size, max_num_entities, channels, height, width]
# Using distinct sizes: batch_size=2, max_num_entities=3, channels=4, height=5, width=6
batch_size = 2
max_num_entities = 3
channels = 4
height = 5
width = 6

true_groups = torch.randn(batch_size, max_num_entities, channels, height, width)

ARGS = {
    "true_groups": true_groups
}
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 3, dtype family float, shape (2, 120, 3) — shape (2, 120, 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_activation_module Ran
ran on a synthesized input
Michedev/MONet-pytorch/monet_pytorch/nn_utils.py
code served (permissive licence) · get_code("b2e2bd230042f9d9")
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 ReLU. 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 = {
    'act_f_name': 'relu',
    'try_inplace': 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 ReLU — a ReLU output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ReLU 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
norm_gradient Ran
ran on a synthesized input
Michedev/MONet-pytorch/monet_pytorch/nn_utils.py
code served (permissive licence) · get_code("b0b63ba660be532e")
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 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 torch
import torch.nn as nn

torch.manual_seed(0)

# Build a small model
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        return self.linear2(self.linear1(x))

# Create model instance
model = SimpleModel()

# Create a small batch of dummy data
x = torch.randn(2, 4)
y = torch.randn(2, 2)

# Forward pass to generate gradients
output = model(x)
loss = ((output - y) ** 2).sum()
loss.backward()

# p_norm parameter (integer or float for norm calculation)
p_norm = 2

ARGS = {
    "model": model,
    "p_norm": p_norm
}
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 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
random_predictions_like Ran
ran on a synthesized input
JohannesTheo/multi_object_datasets_torch/segmentation_metrics.py
code served (permissive licence) · get_code("f293405163eeb8e0")
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 int, shape (2, 30, 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 torch.nn.functional as F

torch.manual_seed(0)

# Construct a tiny batch of true_groups masks
# Shape: [batch_size, max_num_entities, channels, height, width]
batch_size = 2
max_num_entities = 4
channels = 3
height = 5
width = 6

true_groups = torch.randint(0, 2, (batch_size, max_num_entities, channels, height, width)).float()

ARGS = {
    "true_groups": true_groups,
    "encoding": "onehot"
}
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 3, dtype family int, shape (2, 30, 4) — shape (2, 30, 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 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, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 6 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
double_conv 3 other papers
3 later
2112.10098 (2021-12)
Initiative Defense against Facial Manipulation
2302.12758 (2023-02)
Defending Against Backdoor Attacks by Layer-wise Feature Analysis
2312.00833 (2023-12)
Lasagna: Layered Score Distillation for Disentangled Object Relighting

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

The ability to decompose scenes in terms of abstract building blocks is crucial for general intelligence. Where those basic building blocks share meaningful properties, interactions and other regularities across scenes, such decompositions can simplify reasoning and facilitate imagination of novel scenarios. In particular, representing perceptual observations in terms of entities should improve data efficiency and transfer performance on a wide range of tasks. Thus we need models capable of discovering useful decompositions of scenes by identifying units with such regularities and representing them in a common format. To address this problem, we have developed the Multi-Object Network (MONet). In this model, a VAE is trained end-to-end together with a recurrent attention network -- in a purely unsupervised manner -- to provide attention masks around, and reconstructions of, regions of images. We show that this model is capable of learning to decompose and represent challenging 3D scenes into semantically meaningful components, such as objects and background elements.

For agents

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

get_harvested_code_for_paper("1901.11390")
get_code_for_paper("1901.11390")
have("1901.11390")

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

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

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

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

Connect an agent — have() is free.