SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.05327 · ICLR · 2024

Provable Compositional Generalization for Object-Centric Learning

Matthias Bethge, Wieland Brendel, Jack Brady, Thaddäus Wiedemer, Alexander Panfilov, Attila Juhos

arXiv · PDF · Open in the Atlas

Code that ran

6 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, 1 violated it and 0 have no contract verdict; 5 failures of our instrument; 2 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/2310.05327.json · badge: /api/ran/2310.05327.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
brendel-group/objects-compositional-generalization canonical (classifier label)
classifier basis: census
6 ran · 2 no recorded run
FunctionStatusWhere it lives
collate_fn_normalizer Ran
ran; our contract draft was wrong, not the code
brendel-group/objects-compositional-generalization/src/datasets/utils.py
code served (permissive licence) · get_code("7d33f028f090984d")
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

torch.manual_seed(0)

# Create a small batch of (image, latent) tuples
# Images: shape (2, 3, 4, 4) - 2 items, 3 channels, 4x4 spatial
# Latents: shape (2, 8) - 2 items, 8-dim latent vectors
batch = [
    (torch.randn(3, 4, 4), torch.randn(8)),
    (torch.randn(3, 4, 4), torch.randn(8)),
]

ARGS = {
    'batch': batch,
    'bias': 0.5,
    'scale': 2.0,
    'mixed': False,
    '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 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
compute_relative_performance Ran
ran, violated the contract we drafted
brendel-group/objects-compositional-generalization/src/identifiability_evaluation/evaluation.py
code served (permissive licence) · get_code("b2afa78cdfd900a4")
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 float64, ndim 0, 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.

import numpy as np

ARGS = {
    "scores": (0.85, 0.45),
    "baseline_scores": (0.75, 0.35),
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
hungarian_algorithm Ran
ran; our contract draft was wrong, not the code
brendel-group/objects-compositional-generalization/src/identifiability_evaluation/matching.py
code served (permissive licence) · get_code("70d1c9fdb7ec7bdd")
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
import numpy as np

torch.manual_seed(0)

# Create a small cost matrix with shape (batch_size, num_objects, num_slots)
# Using batch_size=2, num_objects=4, num_slots=3 for distinct dimensions
cost_matrix = torch.tensor([
    [[4.0, 1.0, 3.0],
     [2.0, 0.0, 5.0],
     [3.0, 2.0, 2.0],
     [4.0, 0.0, 6.0]],
    [[1.0, 2.0, 3.0],
     [4.0, 5.0, 6.0],
     [7.0, 8.0, 9.0],
     [2.0, 3.0, 4.0]]
], dtype=torch.float32)

ARGS = {
    "cost_matrix": cost_matrix
}
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 — 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
hungarian_slots_loss Ran
ran; our contract draft was wrong, not the code
brendel-group/objects-compositional-generalization/src/metrics.py
code served (permissive licence) · get_code("d41764f3d957a830")
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
import numpy as np

torch.manual_seed(0)

# Create small tensors with distinct dimensions
batch_size = 2
n_slots = 3
n_latents = 4

true_latents = torch.randn(batch_size, n_slots, n_latents)
predicted_latents = torch.randn(batch_size, n_slots, n_latents)

ARGS = {
    'true_latents': true_latents,
    'predicted_latents': predicted_latents,
    'device': 'cpu',
    'p': 2,
    'reduction': 'mean'
}
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 — 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
r2_score Ran
ran; our contract draft was wrong, not the code
brendel-group/objects-compositional-generalization/src/metrics.py
code served (permissive licence) · get_code("aec878a7da0179b8")
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
import numpy as np
from torchmetrics import R2Score

torch.manual_seed(0)

batch_size = 2
n_slots = 3
n_latents = 4

true_latents = torch.randn(batch_size, n_slots, n_latents)
predicted_latents = torch.randn(batch_size, n_slots, n_latents)

# Create indices tensor of shape (batch_size, n_slots, 2)
# Each row contains [true_slot_idx, predicted_slot_idx]
indices = torch.tensor([
    [[0, 1], [1, 0], [2, 2]],
    [[0, 0], [1, 2], [2, 1]]
], dtype=torch.long)

ARGS = {
    "true_latents": true_latents,
    "predicted_latents": predicted_latents,
    "indices": indices
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch, torchmetrics — 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
stochastic_hungarian_algorithm Ran
ran; our contract draft was wrong, not the code
brendel-group/objects-compositional-generalization/src/identifiability_evaluation/matching.py
code served (permissive licence) · get_code("104057979a24878a")
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
import numpy as np

torch.manual_seed(0)

# Create a cost matrix with shape (batch_size=2, num_objects=4, num_slots=3)
# This represents matching costs between 4 objects and 3 slots for 2 batch items
cost_matrix = torch.tensor([
    [[1.0, 2.0, 3.0],
     [4.0, 5.0, 6.0],
     [7.0, 8.0, 9.0],
     [10.0, 11.0, 12.0]],
    [[2.0, 3.0, 4.0],
     [5.0, 6.0, 7.0],
     [8.0, 9.0, 10.0],
     [11.0, 12.0, 13.0]]
], dtype=torch.float32)

relative_perturbation_strength = 1.0

ARGS = {
    "cost_matrix": cost_matrix,
    "relative_perturbation_strength": relative_perturbation_strength,
}
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 — 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
categorical_loss Not yet run
unverified (harvested, no recorded run)
brendel-group/objects-compositional-generalization/src/identifiability_evaluation/matching.py
code served (permissive licence) · get_code("84d74bb02b56abeb")
How it ran

no invocation recorded.

image_r2_score Not yet run
unverified (harvested, no recorded run)
brendel-group/objects-compositional-generalization/src/metrics.py
code served (permissive licence) · get_code("9b0db5db94c4144b")
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, 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 8 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

Learning representations that generalize to novel compositions of known concepts is crucial for bridging the gap between human and machine perception. One prominent effort is learning object-centric representations, which are widely conjectured to enable compositional generalization. Yet, it remains unclear when this conjecture will be true, as a principled theoretical or empirical understanding of compositional generalization is lacking. In this work, we investigate when compositional generalization is guaranteed for object-centric representations through the lens of identifiability theory. We show that autoencoders that satisfy structural assumptions on the decoder and enforce encoder-decoder consistency will learn object-centric representations that provably generalize compositionally. We validate our theoretical result and highlight the practical relevance of our assumptions through experiments on synthetic image data. * Equal contribution, order decided by dice roll. Code at github.com/brendel-group/objects-compositional-generalization

For agents

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

get_harvested_code_for_paper("2310.05327")
get_code_for_paper("2310.05327")
have("2310.05327")

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

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

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

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

Connect an agent — have() is free.