SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1912.05783 · 2019

CLOSURE: Assessing Systematic Generalization of CLEVR Models

arXiv · PDF · Open in the Atlas

Code that ran

10 of 10 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; 2 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 3 failures 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/1912.05783.json · badge: /api/ran/1912.05783.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
rizar/CLOSURE canonical (classifier label)
classifier basis: classifier_2025
2 ran · 0 no recorded run
raeidsaqur/mgn community (classifier label)
classifier basis not recorded on the link
5 ran · 0 no recorded run
vanessadamario/understanding_reasoning extension (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
FunctionStatusWhere it lives
get_index Ran
ran; our contract draft was wrong, not the code
rizar/CLOSURE/scripts/run_model.py
pointer only (licence: NOASSERTION) · get_code("3fcd91b7695dd7e6")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, rizar/CLOSURE (NOASSERTION). 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.

logical_not Ran
ran on a synthesized input
raeidsaqur/mgn/mgn/models/decoder.py
code served (permissive licence) · get_code("8fc4042c8274c184")
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 (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

torch.manual_seed(0)

# The function logical_not(x) checks if x == 0
# It takes a single parameter x that supports equality comparison
# We'll provide a tensor as x

x = torch.tensor([0, 1, 0, 1], dtype=torch.int32)

ARGS = {
    "x": x
}
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 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
logical_or Ran
ran on a synthesized input
raeidsaqur/mgn/mgn/models/decoder.py
code served (permissive licence) · get_code("454f9b451952228a")
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

torch.manual_seed(0)

# The function performs logical_or on two tensors
# It adds them and clamps to [0, 1]
# Both x and y should be tensors

x = torch.tensor([[0.0, 1.0, 0.0, 1.0],
                   [1.0, 0.0, 1.0, 0.0]])

y = torch.tensor([[0.0, 0.0, 1.0, 1.0],
                   [0.0, 1.0, 0.0, 1.0]])

ARGS = {
    'x': x,
    'y': y
}
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 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
masked_softmax Ran
ran on a synthesized input
raeidsaqur/mgn/mgn/models/graph_matcher.py
code served (permissive licence) · get_code("7ef9429bb1707360")
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

torch.manual_seed(0)

# Create a small source tensor (batch=2, features=4)
src = torch.randn(2, 4)

# Create a boolean mask tensor with same shape as src
# True indicates positions to keep, False indicates positions to mask
mask = torch.tensor([
    [True, True, False, True],
    [True, False, True, False]
])

# dim parameter for softmax
dim = -1

ARGS = {
    "src": src,
    "mask": mask,
    "dim": dim
}
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 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
one_or_list Ran
ran; our contract draft was wrong, not the code
vanessadamario/understanding_reasoning/original_library/systematic-generalization-sqoop/scripts/train_model.py
code served (permissive licence) · get_code("08cd6598ccb1e857")
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) and returned function. 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 argparse
import torch

torch.manual_seed(0)

# Create a simple parser function that takes a string input and returns a list
def simple_parser(input_):
    """A simple parser that splits input and returns a list"""
    if isinstance(input_, str):
        return input_.split(',')
    return [input_]

# Create the ARGS dictionary with the required parameter
ARGS = {
    'parser': simple_parser
}
Setup block drafted by
a language model, Claude Haiku 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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
parse_float_list Ran
ran, honoured the contract we drafted
vanessadamario/understanding_reasoning/original_library/systematic-generalization-sqoop/scripts/train_model.py
code served (permissive licence) · get_code("e7d281257c225992")
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) and returned list, ndim 1, 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 torch

ARGS = {
    'input_': "1.5,2.3,3.7,4.2"
}
Setup block drafted by
a language model, Claude Haiku 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 list, ndim 1, dtype family float — a list 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
parse_int_list Ran
ran, honoured the contract we drafted
vanessadamario/understanding_reasoning/original_library/systematic-generalization-sqoop/scripts/train_model.py
code served (permissive licence) · get_code("db09fab2902ef1f9")
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) and returned list, 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

ARGS = {
    'input_': '1,2,3,4,5'
}
Setup block drafted by
a language model, Claude Haiku 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 list, ndim 1, dtype family int — a list 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
save_grad Ran
ran; our contract draft was wrong, not the code
rizar/CLOSURE/scripts/run_model.py
pointer only (licence: NOASSERTION) · get_code("4d6893e38a989635")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, rizar/CLOSURE (NOASSERTION). 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.

to_dense Ran
ran on a synthesized input
raeidsaqur/mgn/mgn/models/graph_matcher.py
code served (permissive licence) · get_code("4d89c0ece4ba3159")
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 (5, 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

torch.manual_seed(0)

# x should be a 1D or higher tensor with sparse/masked elements
# The function uses x.new_zeros() and x.size(-1), so x needs to be a tensor
# mask should be a boolean tensor that determines which elements of x to place in output
# The output shape will be mask.size() + (x.size(-1),)

# Create a simple sparse representation:
# x will be a 2D tensor of shape (3, 4) - 3 sparse elements, each of dimension 4
x = torch.randn(3, 4)

# mask will be a 1D boolean tensor of shape (5,) - we'll place 3 true values
# This represents a sparse vector of length 5 with 3 non-zero entries
mask = torch.tensor([True, False, True, False, True])

ARGS = {
    "x": x,
    "mask": mask,
}
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 2, dtype family float, shape (5, 4) — shape (5, 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
to_sparse Ran
ran on a synthesized input
raeidsaqur/mgn/mgn/models/graph_matcher.py
code served (permissive licence) · get_code("2bf75d6c18b35a77")
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 (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

torch.manual_seed(0)

# Create a small tensor x with shape (2, 4)
x = torch.randn(2, 4)

# Create a boolean mask with shape (2, 4) to select elements
mask = torch.tensor([[True, False, True, False],
                     [False, True, False, True]])

ARGS = {
    "x": x,
    "mask": mask
}
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 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

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 7 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 0 the same month, 1 later) and 3 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
save_grad 3 other papers
2 dated earlier, 1 later
1805.08095 (2018-05)
Small steps and giant leaps: Minimal Newton solvers for Deep Learning
1811.12889 (2018-11)
Systematic Generalization: What Is Required and Can It Be Learned?
2007.16041 (2020-07)
Whole MILC: generalizing learned dynamics across tasks, datasets, and populations
get_index 1 other paper
1 dated earlier
1811.12889 (2018-11)
Systematic Generalization: What Is Required and Can It Be Learned?
logical_not 1 other paper
1 dated earlier
1803.05268 (2018-03)
Transparency by Design: Closing the Gap Between Performance and Interpretability in Visual Reasoning
logical_or 1 other paper
1 dated earlier
1803.05268 (2018-03)
Transparency by Design: Closing the Gap Between Performance and Interpretability in Visual Reasoning
one_or_list 1 other paper
1 dated earlier
1811.12889 (2018-11)
Systematic Generalization: What Is Required and Can It Be Learned?
parse_float_list 1 other paper
1 dated earlier
1811.12889 (2018-11)
Systematic Generalization: What Is Required and Can It Be Learned?
parse_int_list 1 other paper
1 dated earlier
1811.12889 (2018-11)
Systematic Generalization: What Is Required and Can It Be Learned?

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 CLEVR dataset of natural-looking questions about 3D-rendered scenes has recently received much attention from the research community. A number of models have been proposed for this task, many of which achieved very high accuracies of around 97-99%. In this work, we study how systematic the generalization of such models is, that is to which extent they are capable of handling novel combinations of known linguistic constructs. To this end, we test models' understanding of referring expressions based on matching object properties (such as e.g. "another cube that is the same size as the brown cube") in novel contexts. Our experiments on the thereby constructed CLOSURE benchmark show that state-of-the-art models often do not exhibit systematicity after being trained on CLEVR. Surprisingly, we find that an explicitly compositional Neural Module Network model also generalizes badly on CLOSURE, even when it has access to the ground-truth programs at test time. We improve the NMN's systematic generalization by developing a novel Vector-NMN module architecture with vector-valued inputs and outputs. Lastly, we investigate how much few-shot transfer learning can help models that are pretrained on CLEVR to adapt to CLOSURE. Our few-shot learning experiments contrast the adaptation behavior of the models with intermediate discrete programs with that of the end-to-end continuous models.

For agents

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

get_harvested_code_for_paper("1912.05783")
get_code_for_paper("1912.05783")
have("1912.05783")

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

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

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

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

Connect an agent — have() is free.