SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2312.03682 · NeurIPS · 2023

What Planning Problems Can A Relational Neural Network Solve?

Jiayuan Mao, Joshua Tenenbaum, Tomás Lozano-Pérez, Leslie Pack

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; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 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/2312.03682.json · badge: /api/ran/2312.03682.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
concepts-ai/goal-regression-width canonical (classifier label)
classifier basis: census
6 ran · 2 no recorded run
FunctionStatusWhere it lives
differentiable_less Ran
ran; our contract draft was wrong, not the code
concepts-ai/goal-regression-width/gregress_theory/nn/neural_logic/modules/_utils.py
code served (permissive licence) · get_code("56e43a03e4c17cbb")
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 torch.autograd as ag

torch.manual_seed(0)

# Create small test tensors
lhs = torch.tensor([[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0]], requires_grad=True)
rhs = torch.tensor([[1.5, 2.5, 3.5, 4.5], [5.5, 6.5, 7.5, 8.5]], requires_grad=True)
eps = 1e-06

ARGS = {
    "lhs": lhs,
    "rhs": rhs,
    "eps": eps
}
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
exclude_mask Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
concepts-ai/goal-regression-width/gregress_theory/nn/neural_logic/modules/_utils.py
code served (permissive licence) · get_code("70af23bab509259e")
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 Tensor, ndim 4, dtype family float, shape (2, 4, 4, 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)

# Create a small tensor with shape (2, 4, 4, 3)
# The function operates over [dim, dim+cnt) axes
# For dim=1, cnt=2, it will use axes 1 and 2 (both size 4)
# Batch dimension is 2, trailing dimension is 3
input_tensor = torch.randn(2, 4, 4, 3)

ARGS = {
    "input": input_tensor,
    "cnt": 2,
    "dim": 1
}
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 Tensor, ndim 4, dtype family float, shape (2, 4, 4, 3) — shape (2, 4, 4, 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_on_relation Ran
ran, honoured the contract we drafted
concepts-ai/goal-regression-width/gregress_theory/envs/represent.py
code served (permissive licence) · get_code("63319f394ed7b6b9")
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 2, dtype family float, shape (4, 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

class Block:
    def __init__(self, index, is_ground=False):
        self.index = index
        self.is_ground = is_ground
        self.children = []

class BlocksContainer:
    def __init__(self, blocks):
        self.raw = blocks

class World:
    def __init__(self, size, blocks_container):
        self.size = size
        self.blocks = blocks_container

# Build a small world with blocks in a hierarchy
# Block 0 is ground, blocks 1 and 2 are children of 0, block 3 is child of 1
block_0 = Block(index=0, is_ground=True)
block_1 = Block(index=1, is_ground=False)
block_2 = Block(index=2, is_ground=False)
block_3 = Block(index=3, is_ground=False)

block_0.children = [block_1, block_2]
block_1.children = [block_3]
block_2.children = []
block_3.children = []

blocks_container = BlocksContainer([block_0, block_1, block_2, block_3])
world = World(size=4, blocks_container=blocks_container)

ARGS = {
    'world': world
}
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 ndarray, ndim 2, dtype family float, shape (4, 4) — shape (4, 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
get_world_string Ran
ran; our contract draft was wrong, not the code
concepts-ai/goal-regression-width/gregress_theory/envs/represent.py
code served (permissive licence) · get_code("6806ad17be1d09b3")
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 str. 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

class Block:
    def __init__(self, index, is_ground=False, moveable=False, placeable=False):
        self.index = index
        self.is_ground = is_ground
        self.moveable = moveable
        self.placeable = placeable
        self.children = []

class BlockCollection:
    def __init__(self, blocks):
        self.raw = blocks
    
    def __iter__(self):
        return iter(self.raw)

class World:
    def __init__(self, blocks):
        self.blocks = BlockCollection(blocks)

# Create a simple block hierarchy
block_0 = Block(index=0, is_ground=True, moveable=False, placeable=False)
block_1 = Block(index=1, is_ground=False, moveable=True, placeable=True)
block_2 = Block(index=2, is_ground=False, moveable=True, placeable=False)
block_3 = Block(index=3, is_ground=False, moveable=False, placeable=True)

# Build hierarchy: block_0 has children block_1 and block_2
# block_1 has child block_3
block_0.children = [block_1, block_2]
block_1.children = [block_3]
block_2.children = []
block_3.children = []

# Create blocks collection and world
blocks_list = [block_0, block_1, block_2, block_3]
world = World(blocks_list)

ARGS = {
    'world': world
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
mask_value Ran
ran; our contract draft was wrong, not the code
concepts-ai/goal-regression-width/gregress_theory/nn/neural_logic/modules/_utils.py
code served (permissive licence) · get_code("dbb922152c1e332c")
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 small tensors with distinct sizes
# input: shape (2, 4) - batch of 2, dimension 4
input_tensor = torch.randn(2, 4)

# mask: same shape as input (2, 4), with values in [0, 1]
mask_tensor = torch.randint(0, 2, (2, 4)).float()

# value: scalar or tensor that will be broadcast
value_scalar = 0.5

ARGS = {
    "input": input_tensor,
    "mask": mask_tensor,
    "value": value_scalar
}
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
monitor_saturation Ran
ran; our contract draft was wrong, not the code
concepts-ai/goal-regression-width/gregress_theory/thutils.py
code served (permissive licence) · get_code("8f2f5a8fd8122726")
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 dict. 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)

# Build a minimal model that has named_parameters()
class MinimalModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

model = MinimalModel()

ARGS = {
    'model': model
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
get_coordinates Not yet run
unverified (harvested, no recorded run)
concepts-ai/goal-regression-width/gregress_theory/envs/represent.py
code served (permissive licence) · get_code("d051b31002622cf5")
How it ran

no invocation recorded.

get_curriculum_blocks Not yet run
unverified (harvested, no recorded run)
concepts-ai/goal-regression-width/learn_policy_reinforce_blocks.py
code served (permissive licence) · get_code("8cf47eeef136bf3e")
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, 3 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 2 later) and 5 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
exclude_mask 1 other paper
1 later
2502.01989 (2025-02)
VFScale: Intrinsic Reasoning through Verifier-Free Test-time Scalable Diffusion Model
mask_value 1 other paper
1 later
2502.01989 (2025-02)
VFScale: Intrinsic Reasoning through Verifier-Free Test-time Scalable Diffusion Model
monitor_saturation 1 other paper
1 dated earlier
1904.11694 (2019-04)
Neural Logic Machines

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

Goal-conditioned policies are generally understood to be "feed-forward" circuits, in the form of neural networks that map from the current state and the goal specification to the next action to take. However, under what circumstances such a policy can be learned and how efficient the policy will be are not well understood. In this paper, we present a circuit complexity analysis for relational neural networks (such as graph neural networks and transformers) representing policies for planning problems, by drawing connections with serialized goal regression search (S-GRS). We show that there are three general classes of planning problems, in terms of the growth of circuit width and depth as a function of the number of objects and planning horizon, providing constructive proofs. We also illustrate the utility of this analysis for designing neural networks for policy learning. * For simplicity, throughout the paper, we will be focusing on Boolean state variables.

For agents

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

get_harvested_code_for_paper("2312.03682")
get_code_for_paper("2312.03682")
have("2312.03682")

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

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

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

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

Connect an agent — have() is free.