SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2111.12594 · ICLR · 2022

Conditional Object-Centric Learning from Video

Aravindh Mahendran, Georg Heigold, Alexey Dosovitskiy, Thomas Kipf, Klaus Greff, Rico Jonschkowski, Sara Sabour, Gamaleldin Elsayed, Austin Stone

arXiv · PDF · Open in the Atlas

Code that ran

11 of 13 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (8 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 11 have no contract verdict; 0 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.12594.json · badge: /api/ran/2111.12594.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
Genera1Z/SAVi-PyTorch community
Papers with Code archive
8 ran · 2 no recorded run
google-research/slot-attention-video marked official in Papers with Code
Papers with Code archive
3 ran · 0 no recorded run
FunctionStatusWhere it lives
BboxEmbedding Ran
ran on a synthesized input · constructed an object; no result was computed
Genera1Z/SAVi-PyTorch/model.py
pointer only (licence: NONE) · get_code("9ac6a4d6ab4ed206")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Genera1Z/SAVi-PyTorch 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.

CorrectorPredictorTuple Ran
ran on a synthesized input · constructed an object; no result was computed
google-research/slot-attention-video/savi/modules/video.py
code served (permissive licence) · get_code("f1be85158b3d9613")
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 an instance of its own class, CorrectorPredictorTuple: the run constructed the object and did not call it, so no result was computed. 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 jax.numpy as jnp
from typing import Any, Callable, Dict, Iterable, Mapping, NamedTuple, Optional, Tuple, Union

Array = jnp.ndarray

ArrayTree = Union[Array, Iterable['ArrayTree'], Mapping[str, 'ArrayTree']]

ProcessorState = ArrayTree

class CorrectorPredictorTuple(NamedTuple):
    corrected: ProcessorState
    predicted: ProcessorState

# Create sample ProcessorState objects as ArrayTree
# Using JAX arrays
corrected_state = {
    'layer1': jnp.array([[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0]]),
    'layer2': jnp.array([[0.1, 0.2], [0.3, 0.4], [0.5, 0.6]])
}

predicted_state = {
    'layer1': jnp.array([[1.1, 2.1, 3.1, 4.1], [5.1, 6.1, 7.1, 8.1]]),
    'layer2': jnp.array([[0.11, 0.21], [0.31, 0.41], [0.51, 0.61]])
}

ARGS = {
    'corrected': corrected_state,
    'predicted': predicted_state
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type CorrectorPredictorTuple — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a CorrectorPredictorTuple 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
GRUCell Ran
ran on a synthesized input
Genera1Z/SAVi-PyTorch/model.py
pointer only (licence: NONE) · get_code("18be91c2b6f9fa44")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Genera1Z/SAVi-PyTorch 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.

MLP Ran
ran on a synthesized input · constructed an object; no result was computed
Genera1Z/SAVi-PyTorch/model.py
pointer only (licence: NONE) · get_code("7fb19e46e2c683c0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Genera1Z/SAVi-PyTorch 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.

MultiheadAttention Ran
ran on a synthesized input
Genera1Z/SAVi-PyTorch/model.py
pointer only (licence: NONE) · get_code("a50cd588d4e75a0a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Genera1Z/SAVi-PyTorch 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.

PositionEmbedding2d Ran
ran on a synthesized input
Genera1Z/SAVi-PyTorch/model.py
pointer only (licence: NONE) · get_code("cd8a7e68afbf24a4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Genera1Z/SAVi-PyTorch 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.

Processor Ran
ran on a synthesized input · constructed an object; no result was computed
google-research/slot-attention-video/savi/modules/video.py
code served (permissive licence) · get_code("b02a7373121b6ba6")
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 an instance of its own class, Processor: the run constructed the object and did not call it, so no result was computed. 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 jax
import jax.numpy as jnp
from flax import linen as nn
from typing import Optional

# Set JAX to use CPU
import jax
jax.config.update('jax_platform_name', 'cpu')

# Define minimal corrector and predictor callables
def minimal_corrector(state, inputs, padding_mask=None, train=False):
    """Minimal corrector that takes state and inputs and returns corrected state."""
    # state is ProcessorState (can be Array or nested structure)
    # inputs is Array
    # Returns corrected state of same structure as input state
    if isinstance(state, dict):
        return {k: v + jnp.zeros_like(inputs[..., :1]) for k, v in state.items()}
    else:
        return state + jnp.zeros_like(inputs[..., :1])

def minimal_predictor(state, train=False):
    """Minimal predictor that takes state and predicts next state."""
    # Takes state (ProcessorState) and returns predicted state of same structure
    if isinstance(state, dict):
        return {k: v * 0.99 for k, v in state.items()}
    else:
        return state * 0.99

# Create sample inputs for the Processor
batch_size = 2
sequence_length = 3
input_dim = 4
state_dim = 5

# Create a simple ProcessorState (can be an Array or nested structure)
initial_state = jnp.ones((batch_size, state_dim))

# Create inputs: shape (batch, time, features)
inputs = jnp.ones((batch_size, sequence_length, input_dim))

# Create padding mask: shape (batch, time)
padding_mask = jnp.ones((batch_size, sequence_length), dtype=jnp.bool_)

ARGS = {
    'corrector': minimal_corrector,
    'predictor': minimal_predictor,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Processor — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Processor 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
SAVi Ran
ran on a synthesized input · constructed an object; no result was computed
google-research/slot-attention-video/savi/modules/video.py
code served (permissive licence) · get_code("6e838b3b41544e46")
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 an instance of its own class, SAVi: the run constructed the object and did not call it, so no result was computed. 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 jax
import jax.numpy as jnp
from flax import linen as nn
from typing import Optional, Callable
import functools

# Define the Array and ArrayTree types
Array = jnp.ndarray
ArrayTree = Array

# Define CorrectorPredictorTuple
class CorrectorPredictorTuple:
    def __init__(self, corrected, predicted):
        self.corrected = corrected
        self.predicted = predicted

# Define minimal Processor
class Processor(nn.Module):
    corrector: Callable
    predictor: Callable

    @functools.partial(nn.scan, in_axes=(1, 1, nn.broadcast), out_axes=1, variable_axes={'intermediates': 1}, variable_broadcast='params', split_rngs={'params': False, 'dropout': True})
    @nn.compact
    def __call__(self, state, inputs, padding_mask, train):
        if inputs is not None:
            corrected_state = self.corrector(state, inputs, padding_mask, train=train)
        else:
            corrected_state = state
        predicted_state = self.predictor(corrected_state, train=train)
        new_state = predicted_state
        outputs = CorrectorPredictorTuple(corrected=corrected_state, predicted=predicted_state)
        return (new_state, outputs)

# Define SAVi
class SAVi(nn.Module):
    encoder: Callable[[], nn.Module]
    decoder: Callable[[], nn.Module]
    corrector: Callable[[], nn.Module]
    predictor: Callable[[], nn.Module]
    initializer: Callable[[], nn.Module]
    decode_corrected: bool = True
    decode_predicted: bool = True

    @nn.compact
    def __call__(self, video, conditioning=None, continue_from_previous_state=False, padding_mask=None, train=False):
        processor = Processor(corrector=self.corrector(), predictor=self.predictor())
        if padding_mask is None:
            padding_mask = jnp.ones(video.shape[:-1], jnp.int32)
        encoded_inputs = self.encoder()(video, padding_mask, train)
        if continue_from_previous_state:
            assert conditioning is not None, 'When continuing from a previous state, the state has to be passed via the `conditioning` variable, which cannot be `None`.'
            init_state = conditioning[:, -1]
        else:
            init_state = self.initializer()(conditioning, batch_size=video.shape[0], train=train)
        _, states = processor(init_state, encoded_inputs, padding_mask, train)
        decoder = self.decoder()
        outputs = decoder(states.corrected, train) if self.decode_corrected else None
        outputs_pred = decoder(states.predicted, train) if self.decode_predicted else None
        return {'states': states.corrected, 'states_pred': states.predicted, 'outputs': outputs, 'outputs_pred': outputs_pred}

# Define minimal encoder module
class MinimalEncoder(nn.Module):
    def __call__(self, video, padding_mask, train):
        # video shape: [batch_size, n_frames, height, width, n_channels]
        # Return encoded_inputs with shape [batch_size, n_frames, latent_dim]
        batch_size, n_frames = video.shape[0], video.shape[1]
        return jnp.ones((batch_size, n_frames, 4), dtype=jnp.float32)

# Define minimal decoder module
class MinimalDecoder(nn.Module):
    def __call__(self, states, train):
        # states shape: [batch_size, n_frames, state_dim]
        # Return decoded outputs
        batch_size, n_frames = states.shape[0], states.shape[1]
        return jnp.ones((batch_size, n_frames, 3), dtype=jnp.float32)

# Define minimal corrector module
class MinimalCorrector(nn.Module):
    def __call__(self, state, inputs, padding_mask, train):
        # state and inputs should have compatible shapes
        return state

# Define minimal predictor module
class MinimalPredictor(nn.Module):
    def __call__(self, state, train):
        # Predict next state
        return state

# Define minimal initializer module
class MinimalInitializer(nn.Module):
    def __call__(self, conditioning, batch_size, train):
        # Initialize state for the processor
        return jnp.ones((batch_size, 4), dtype=jnp.float32)

# Construct ARGS
ARGS = {
    'encoder': lambda: MinimalEncoder(),
    'decoder': lambda: MinimalDecoder(),
    'corrector': lambda: MinimalCorrector(),
    'predictor': lambda: MinimalPredictor(),
    'initializer': lambda: MinimalInitializer(),
    'decode_corrected': True,
    'decode_predicted': True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SAVi — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a SAVi 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
SimpleCnn Ran
ran on a synthesized input · constructed an object; no result was computed
Genera1Z/SAVi-PyTorch/model.py
pointer only (licence: NONE) · get_code("495a44630f8fac14")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Genera1Z/SAVi-PyTorch 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.

SlotAttention Ran
ran on a synthesized input · constructed an object; no result was computed
Genera1Z/SAVi-PyTorch/model.py
pointer only (licence: NONE) · get_code("9350a1846d302769")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Genera1Z/SAVi-PyTorch 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.

TransformBlock Ran
ran on a synthesized input · constructed an object; no result was computed
Genera1Z/SAVi-PyTorch/model.py
pointer only (licence: NONE) · get_code("3d0d67682d50f148")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Genera1Z/SAVi-PyTorch 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.

Savi Not yet run
unverified (harvested, no recorded run)
Genera1Z/SAVi-PyTorch/model.py
pointer only (licence: NONE) · get_code("e3d84f21fbbdff63")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Genera1Z/SAVi-PyTorch 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. No invocation recorded.

lecun_normal_ Not yet run
unverified (harvested, no recorded run)
Genera1Z/SAVi-PyTorch/model.py
pointer only (licence: NONE) · get_code("ca0021be69127472")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Genera1Z/SAVi-PyTorch 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. No invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 13 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.

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

Object-centric representations are a promising path toward more systematic generalization by providing flexible abstractions upon which compositional world models can be built. Recent work on simple 2D and 3D datasets has shown that models with object-centric inductive biases can learn to segment and represent meaningful objects from the statistical structure of the data alone without the need for any supervision. However, such fully-unsupervised methods still fail to scale to diverse realistic data, despite the use of increasingly complex inductive biases such as priors for the size of objects or the 3D geometry of the scene. In this paper, we instead take a weakly-supervised approach and focus on how 1) using the temporal dynamics of video data in the form of optical flow and 2) conditioning the model on simple object location cues can be used to enable segmenting and tracking objects in significantly more realistic synthetic data. We introduce a sequential extension to Slot Attention which we train to predict optical flow for realistic looking synthetic scenes and show that conditioning the initial state of this model on a small set of hints, such as center of mass of objects in the first frame, is sufficient to significantly improve instance segmentation. These benefits generalize beyond the training distribution to novel objects, novel backgrounds, and to longer video sequences. We also find that such initial-state-conditioning can be used during inference as a flexible interface to query the model for specific objects or parts of objects, which could pave the way for a range of weakly-supervised approaches and allow more effective interaction with trained models. Project page: https://slot-attention-video.github.io/

For agents

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

get_harvested_code_for_paper("2111.12594")
get_code_for_paper("2111.12594")
have("2111.12594")

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

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

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

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

Connect an agent — have() is free.