SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2411.08706 · NeurIPS · 2025

Searching Latent Program Spaces

Clément Bonnet, Matthew Macfarlane

arXiv · PDF · Open in the Atlas

Code that ran

4 of 9 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (3 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 1 failure of our instrument; 5 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/2411.08706.json · badge: /api/ran/2411.08706.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
clement-bonnet/lpn canonical (classifier label)
classifier basis: classifier_2025
4 ran · 5 no recorded run
FunctionStatusWhere it lives
DecoderTransformerConfig Ran
ran on a synthesized input · constructed an object; no result was computed
clement-bonnet/lpn/src/models/lpn.py
code served (permissive licence) · get_code("0f531f57807295b0")
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, DecoderTransformerConfig: 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 flax.struct import dataclass, field
from typing import Any, Optional

@dataclass
class TransformerLayerConfig:
    """Global hyperparameters used to minimize obnoxious kwarg plumbing."""
    num_heads: int = 8
    emb_dim_per_head: int = 16
    mlp_dim_factor: float = 4.0
    dropout_rate: float = 0.0
    attention_dropout_rate: float = 0.0
    use_bias: bool = False
    activation: str = 'silu'
    dtype: Any = jnp.float32
    emb_dim: int = field(default=None)

    def __post_init__(self):
        object.__setattr__(self, 'emb_dim', self.num_heads * self.emb_dim_per_head)

@dataclass
class DecoderTransformerConfig:
    """Global hyperparameters used to minimize obnoxious kwarg plumbing."""
    transformer_layer: TransformerLayerConfig = TransformerLayerConfig()
    vocab_size: int = 10
    output_vocab_size: int = 10
    num_layers: int = 2
    max_rows: int = 30
    max_cols: int = 30
    scaled_position_embeddings: bool = False
    next_position_embeddings: bool = True
    next_position_embeddings_new_input_embeds: bool = False
    logits_projection_bias: bool = False
    dtype: jnp.dtype = field(default=None)
    emb_dim: int = field(default=None)
    max_len: int = field(default=None)

    def __post_init__(self):
        object.__setattr__(self, 'dtype', self.transformer_layer.dtype)
        object.__setattr__(self, 'emb_dim', self.transformer_layer.emb_dim)
        object.__setattr__(self, 'max_len', self.max_rows * self.max_cols)

transformer_layer_config = TransformerLayerConfig(
    num_heads=4,
    emb_dim_per_head=8,
    mlp_dim_factor=4.0,
    dropout_rate=0.1,
    attention_dropout_rate=0.1,
    use_bias=False,
    activation='silu',
    dtype=jnp.float32
)

ARGS = {
    'transformer_layer': transformer_layer_config,
    'vocab_size': 256,
    'output_vocab_size': 256,
    'num_layers': 2,
    'max_rows': 16,
    'max_cols': 16,
    'scaled_position_embeddings': False,
    'next_position_embeddings': True,
    'next_position_embeddings_new_input_embeds': False,
    'logits_projection_bias': False,
    'dtype': jnp.float32,
    'emb_dim': 32,
    'max_len': 256
}
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 DecoderTransformerConfig — 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 DecoderTransformerConfig 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
EncoderTransformerConfig Ran
ran on a synthesized input · constructed an object; no result was computed
clement-bonnet/lpn/src/models/lpn.py
code served (permissive licence) · get_code("3318937578858691")
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, EncoderTransformerConfig: 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 flax.struct import dataclass

# First, define the TransformerLayerConfig
transformer_layer_config = {
    'num_heads': 8,
    'emb_dim_per_head': 16,
    'mlp_dim_factor': 4.0,
    'dropout_rate': 0.0,
    'attention_dropout_rate': 0.0,
    'use_bias': False,
    'activation': 'silu',
    'dtype': jnp.float32,
}

# Create a TransformerLayerConfig instance
from flax.struct import dataclass, field

@dataclass
class TransformerLayerConfig:
    """Global hyperparameters used to minimize obnoxious kwarg plumbing."""
    num_heads: int = 8
    emb_dim_per_head: int = 16
    mlp_dim_factor: float = 4.0
    dropout_rate: float = 0.0
    attention_dropout_rate: float = 0.0
    use_bias: bool = False
    activation: str = 'silu'
    dtype: type = jnp.float32
    emb_dim: int = field(default=None)

    def __post_init__(self):
        object.__setattr__(self, 'emb_dim', self.num_heads * self.emb_dim_per_head)

@dataclass
class EncoderTransformerConfig:
    """Global hyperparameters used to minimize obnoxious kwarg plumbing."""
    transformer_layer: TransformerLayerConfig = TransformerLayerConfig()
    vocab_size: int = 10
    output_vocab_size: int = 10
    num_layers: int = 2
    latent_dim: int = 32
    variational: bool = False
    max_rows: int = 30
    max_cols: int = 30
    latent_projection_bias: bool = False
    scaled_position_embeddings: bool = False
    dtype: type = field(default=None)
    emb_dim: int = field(default=None)
    max_len: int = field(default=None)

    def __post_init__(self):
        object.__setattr__(self, 'dtype', self.transformer_layer.dtype)
        object.__setattr__(self, 'emb_dim', self.transformer_layer.emb_dim)
        object.__setattr__(self, 'max_len', self.max_rows * self.max_cols)

# Create instances
transformer_layer = TransformerLayerConfig(
    num_heads=8,
    emb_dim_per_head=16,
    mlp_dim_factor=4.0,
    dropout_rate=0.0,
    attention_dropout_rate=0.0,
    use_bias=False,
    activation='silu',
    dtype=jnp.float32,
)

ARGS = {
    'transformer_layer': transformer_layer,
    'vocab_size': 10,
    'output_vocab_size': 10,
    'num_layers': 2,
    'latent_dim': 32,
    'variational': False,
    'max_rows': 30,
    'max_cols': 30,
    'latent_projection_bias': False,
    'scaled_position_embeddings': False,
    'dtype': jnp.float32,
    'emb_dim': 128,
    'max_len': 900,
}
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 EncoderTransformerConfig — 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 EncoderTransformerConfig 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
TransformerLayerConfig Ran
ran on a synthesized input · constructed an object; no result was computed
clement-bonnet/lpn/src/models/lpn.py
code served (permissive licence) · get_code("7fec010592e488d3")
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, TransformerLayerConfig: 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 flax.struct import dataclass, field
from typing import Any, Optional

# Set up the configuration dataclass
ARGS = {
    'num_heads': 8,
    'emb_dim_per_head': 16,
    'mlp_dim_factor': 4.0,
    'dropout_rate': 0.1,
    'attention_dropout_rate': 0.1,
    'use_bias': False,
    'activation': 'silu',
    'dtype': jnp.float32,
    'emb_dim': None,
}
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 TransformerLayerConfig — 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 TransformerLayerConfig 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
make_leave_one_out Ran
ran; our contract draft was wrong, not the code
clement-bonnet/lpn/src/models/lpn.py
code served (permissive licence) · get_code("fc57a1ab0def3cdd")
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 ArrayImpl, ndim 4, dtype family int, shape (2, 4, 3, 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 jax
import jax.numpy as jnp
import chex

# Set random seed for reproducibility
jax.config.update('jax_platform_name', 'cpu')

# Create a small test array with distinct dimensions
# Shape: (*B, N, *H) where B=2, N=4, H=3
# This gives shape (2, 4, 3)
array = jnp.arange(24).reshape(2, 4, 3)

# The axis parameter specifies where N appears
# In our case, N is at axis=1 (middle dimension)
axis = 1

ARGS = {
    "array": array,
    "axis": axis,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
chex, jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 4, dtype family int, shape (2, 4, 3, 3) — shape (2, 4, 3, 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
DecoderTransformer Not yet run
unverified (harvested, no recorded run)
clement-bonnet/lpn/src/models/lpn.py
code served (permissive licence) · get_code("67bab420e1ea8aba")
How it ran

no invocation recorded.

EncoderTransformer Not yet run
unverified (harvested, no recorded run)
clement-bonnet/lpn/src/models/lpn.py
code served (permissive licence) · get_code("778e4c65122f1271")
How it ran

no invocation recorded.

LPN Not yet run
unverified (harvested, no recorded run)
clement-bonnet/lpn/src/models/lpn.py
code served (permissive licence) · get_code("958ab1b5d4ea8b60")
How it ran

no invocation recorded.

MlpBlock Not yet run
unverified (harvested, no recorded run)
clement-bonnet/lpn/src/models/lpn.py
code served (permissive licence) · get_code("105ac46cb40d3715")
How it ran

no invocation recorded.

TransformerLayer Not yet run
unverified (harvested, no recorded run)
clement-bonnet/lpn/src/models/lpn.py
code served (permissive licence) · get_code("5bdc653acd891cd4")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 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 9 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

General intelligence requires systems that acquire new skills efficiently and generalize beyond their training distributions. Although program synthesis approaches have strong generalization power, they face scaling issues due to the large combinatorial spaces that quickly render them impractical, requiring human-generated DSLs or pre-trained priors to narrow this search space. On the other hand, deep learning methods have had high successes, but they lack structured test-time adaptation and rely on heavy stochastic sampling or expensive gradient updates for fine-tuning. In this work, we propose the Latent Program Network (LPN), a novel architecture that builds in test-time search directly into neural models. LPN learns a latent space of implicit programs-neurally mapping inputs to outputs-through which it can search using gradients at test time. LPN combines the adaptability of symbolic approaches and the scalability of neural methods. It searches through a compact latent space at test time and bypasses the need for pre-defined domainspecific languages. On a range of programming-by-examples tasks, LPN either outperforms or matches performance compared to in-context learning and test-time training methods. Tested on the ARC-AGI benchmark, we demonstrate that LPN can both learn a compact program space and search through it at test time to adapt to novel tasks. LPN doubles its performance on out-of-distribution tasks when test-time search is switched on. By controlling for prior knowledge and experience, the Abstraction and Reasoning Corpus (ARC-AGI) [Chollet, 2019] is a benchmark that measures skill acquisition efficiency rather than pure skills.

For agents

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

get_harvested_code_for_paper("2411.08706")
get_code_for_paper("2411.08706")
have("2411.08706")

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

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

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

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

Connect an agent — have() is free.