SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.15618 · ICLR · 2025

MLPs Learn In-Context on Regression and Classification Tasks

Cengiz Pehlevan, William Tong

arXiv · PDF · Open in the Atlas

Code that ran

15 of 16 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, 0 violated it and 13 have no contract verdict; 2 failures of our instrument; 1 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/2405.15618.json · badge: /api/ran/2405.15618.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
wtong98/mlp-icl canonical (classifier label)
classifier basis: classifier_2025
2 ran · 0 no recorded run
wtong98/equality-reasoning community (classifier label)
classifier basis not recorded on the link
13 ran · 1 no recorded run
FunctionStatusWhere it lives
batch_choice Ran
ran on a synthesized input
wtong98/equality-reasoning/task/same_different.py
code served (permissive licence) · get_code("319a98623566a232")
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 int, shape (3, 5) 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

# Set random seed for reproducibility
np.random.seed(42)

# Define arguments for batch_choice function
a = 10  # integer, will be converted to np.arange(10)
n_elem = 5  # number of elements to choose from each batch element
batch_size = 3  # number of batches
rng = np.random.default_rng(42)  # random number generator

ARGS = {
    'a': a,
    'n_elem': n_elem,
    'batch_size': batch_size,
    'rng': rng
}
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 int, shape (3, 5) — shape (3, 5) 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
extract_plot_vals Ran
ran; our contract draft was wrong, not the code
wtong98/mlp-icl/experiment/12_1_varlen.py
code served (permissive licence) · get_code("f61ae07d4631d9b1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Series. 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 numpy as np
import pandas as pd
import torch

torch.manual_seed(0)

class StandInTask:
    def __init__(self):
        self.ws = [1, 2, 3]
        self.n_dims = 10
        self.n_points = 50

class StandInRow:
    def __init__(self):
        self.train_task = StandInTask()
        # Create a history with test results
        hist_length = 100
        self.data = {
            'name': 'test_model',
            'train_task': self.train_task,
            'hist': {
                'test': [{'loss': torch.tensor(1.0 / (i + 1))} for i in range(hist_length)]
            },
            'info': {
                'size': 10000,
                'flops': 5000000
            },
            'config': {
                'n_layers': 3,
                'n_hidden': 128
            }
        }
    
    def __getitem__(self, key):
        return self.data[key]
    
    def __getattr__(self, name):
        if name == 'data':
            return object.__getattribute__(self, 'data')
        if name in self.data:
            return self.data[name]
        raise AttributeError(f"'{type(self).__name__}' object has no attribute '{name}'")

row = StandInRow()

ARGS = {'row': row}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
numpy, pandas, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Series — a Series output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Series 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
extract_plot_vals Ran
ran on a synthesized input
wtong98/equality-reasoning/experiment/16_vision_clean.py
code served (permissive licence) · get_code("b5f3a19b7ce47734")
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 Series. 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 pandas as pd
import torch

torch.manual_seed(0)

# Create a minimal train_task object with inc_set attribute
class TrainTask:
    def __init__(self):
        self.inc_set = [1, 2, 3, 4, 5]  # List of 5 elements

train_task = TrainTask()

# Create tensors for accuracy metrics
acc_seen_tensor = torch.tensor(0.85)
acc_unseen_tensor = torch.tensor(0.72)

# Create the row dictionary with all required fields
row = {
    'name': 'experiment_1',
    'train_task': train_task,
    'info': {
        'log10_gamma0': 0.5,
        'acc_seen': acc_seen_tensor,
        'acc_unseen': acc_unseen_tensor,
        'acc_best': 0.88
    }
}

ARGS = {
    'row': row
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Series — a Series output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Series 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
extract_plot_vals Ran
ran on a synthesized input
wtong98/equality-reasoning/experiment/16_vision_clean.py
code served (permissive licence) · get_code("b5e9a9e2ffa64603")
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 Series. 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 pandas as pd

torch.manual_seed(0)

# Create a minimal train_task object with required attributes
class TrainTask:
    def __init__(self):
        self.inc_set = [1, 2, 3, 4, 5]  # list with length 5
        self.n_patches = 7

train_task = TrainTask()

# Create a row dictionary that matches the expected structure
row = {
    'name': 'test_experiment',
    'train_task': train_task,
    'info': {
        'log10_gamma0': 2.5,
        'acc_seen': torch.tensor(0.85),
        'acc_unseen': torch.tensor(0.78),
        'acc_best': 0.88
    }
}

ARGS = {
    'row': row
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Series — a Series output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Series 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
extract_plot_vals Ran
ran on a synthesized input
wtong98/equality-reasoning/experiment/16_vision_clean.py
code served (permissive licence) · get_code("ffb78190c259516d")
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 Series. 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 pandas as pd
import torch

torch.manual_seed(0)

class MockTrainTask:
    def __init__(self):
        self.pieces = [1, 2, 3, 4, 5]

row = {
    'name': 'test_model',
    'train_task': MockTrainTask(),
    'info': {
        'log10_gamma0': 2.5,
        'acc_seen': torch.tensor(0.85),
        'acc_unseen': torch.tensor(0.75),
        'acc_best': 0.88
    }
}

ARGS = {
    'row': row
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Series — a Series output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Series 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
extract_plot_vals Ran
ran on a synthesized input
wtong98/equality-reasoning/experiment/17_misc_clean.py
code served (permissive licence) · get_code("90313b609b4c6424")
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 Series. 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 numpy as np
import pandas as pd

# Construct a minimal row dict that satisfies extract_plot_vals
row = {
    'name': 'test_model',
    'info': {
        'params': {
            'weight': np.array([1.0, 2.0, 3.0]),
            'bias': np.array([0.5])
        },
        'n_classes': 10,
        'log10_gamma0': 2.5,
        'acc_seen': np.array(0.95),
        'acc_unseen': np.array(0.87),
        'preprocess': 'normalize',
        'actv': 'relu',
        'acc_best': 0.92
    }
}

ARGS = {
    'row': row
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Series — a Series output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Series 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
extract_plot_vals Ran
ran on a synthesized input
wtong98/equality-reasoning/experiment/17_misc_clean.py
code served (permissive licence) · get_code("16f5d571b9bf0cb4")
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 Series. 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 pandas as pd
import torch

torch.manual_seed(0)

class MockTask:
    def __init__(self, n_dims):
        self.n_dims = n_dims

class MockRow:
    def __init__(self):
        self.data = {
            'name': 'test_model',
            'train_task': MockTask(n_dims=5),
            'info': {
                'norm_change': 0.015,
                'log10_gamma0': 2.0,
                'acc_seen': torch.tensor(0.95),
                'acc_unseen': torch.tensor(0.87),
                'root_d': 3.2
            }
        }
    
    def __getitem__(self, key):
        return self.data[key]

row = MockRow()

ARGS = {
    'row': row
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Series — a Series output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Series 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
gen_patches Ran
ran on a synthesized input
wtong98/equality-reasoning/task/same_different.py
code served (permissive licence) · get_code("7b4ee056d6210466")
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 3, dtype family int, shape (2, 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

# Set random seed for reproducibility
np.random.seed(0)

# Create a small random number generator
rng = np.random.default_rng(42)

# Define arguments for gen_patches
ARGS = {
    "patch_size": 4,
    "n_examples": 2,
    "rng": rng
}
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 3, dtype family int, shape (2, 4, 4) — shape (2, 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
is_match Ran
ran on a synthesized input
wtong98/equality-reasoning/experiment/18_rich_val_clean.py
code served (permissive licence) · get_code("da15b3a0a1c5d885")
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 bool, ndim 0, dtype family float, shape () 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

# Set random seed for reproducibility
np.random.seed(0)

# Create simple array arguments
# w1 and w2 are arrays that will be indexed by z1 and z2
w1 = np.array([1.5, -2.0, 0.5, 3.0])
w2 = np.array([0.5, 1.0, -1.5, 2.0])

# z1 and z2 are indices into w1 and w2
z1 = 1
z2 = 2

ARGS = {
    "w1": w1,
    "w2": w2,
    "z1": z1,
    "z2": z2
}
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 bool, ndim 0, dtype family float, shape () — shape () 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
parse_act_fn Ran
ran; our contract draft was wrong, not the code
wtong98/mlp-icl/model/mlp.py
code served (permissive licence) · get_code("d4db75712f9f1fac")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned custom_jvp. 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.

ARGS = {
    'fn': 'relu'
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type custom_jvp — a custom_jvp output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a custom_jvp 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_act_fn Ran
ran on a synthesized input
wtong98/equality-reasoning/model/mlp.py
code served (permissive licence) · get_code("1f826f6239ea4963")
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 custom_jvp. 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.nn

def parse_act_fn(fn: str):
    if fn == 'relu':
        return jax.nn.relu
    elif fn == 'linear':
        return lambda x: x
    elif fn == 'gelu':
        return jax.nn.gelu
    elif fn == 'quadratic':
        return lambda x: x ** 2
    else:
        raise ValueError(f'function not recognized: {fn}')

ARGS = {
    'fn': 'relu'
}
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 custom_jvp — a custom_jvp output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a custom_jvp 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
pred_rich_acc Ran
ran on a synthesized input
wtong98/equality-reasoning/experiment/15_sd_clean.py
code served (permissive licence) · get_code("1740a9257cba0423")
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
from scipy.stats import norm

# Set random seed for reproducibility
np.random.seed(0)

# Define the arguments dictionary
ARGS = {
    'n_points': 10,
    'a_raw': 1.5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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
split_cases Ran
ran on a synthesized input
wtong98/equality-reasoning/common.py
code served (permissive licence) · get_code("56b5496fff97f2a9")
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 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 numpy as np
import sys

# Mock sys.argv to control the run_idx parameter
sys.argv = ['script.py', '0']

# Create sample cases - can be any array-like that numpy.array_split can handle
all_cases = np.array([
    {'id': 0, 'data': 'case_0'},
    {'id': 1, 'data': 'case_1'},
    {'id': 2, 'data': 'case_2'},
    {'id': 3, 'data': 'case_3'},
    {'id': 4, 'data': 'case_4'},
    {'id': 5, 'data': 'case_5'},
])

# Define run_split parameter
run_split = 3

ARGS = {
    'all_cases': all_cases,
    'run_split': run_split
}
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 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
summon_dir Ran
ran on a synthesized input
wtong98/equality-reasoning/common.py
code served (permissive licence) · get_code("7664f6068e128909")
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 PosixPath. 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 tempfile
import os

ARGS = {
    "path": os.path.join(tempfile.gettempdir(), "test_summon_dir_12345"),
    "clear_if_exists": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PosixPath — a PosixPath output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PosixPath 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
t Ran
ran on a synthesized input
wtong98/equality-reasoning/common.py
code served (permissive licence) · get_code("15eb159df9aef8e0")
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 4, dtype family int, shape (2, 4, 5, 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 numpy as np

# The function t() takes a single parameter xs and swaps axes -2 and -1
# It expects a numpy array or array-like object with at least 2 dimensions

# Create a small test array with distinct dimensions to probe shapes later
# Using shape (2, 4, 3, 5) - batch=2, some intermediate dims with distinct sizes
xs_test = np.arange(2 * 4 * 3 * 5).reshape(2, 4, 3, 5)

ARGS = {
    'xs': xs_test
}
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 4, dtype family int, shape (2, 4, 5, 3) — shape (2, 4, 5, 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
extract_plot_vals Not yet run
unverified (harvested, no recorded run)
wtong98/equality-reasoning/experiment/15_sd_clean.py
code served (permissive licence) · get_code("5fa631733bb450dd")
How it ran

no invocation recorded.

Also present in other papers' code

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

In-context learning (ICL), the remarkable ability to solve a task from only input exemplars, is often assumed to be a unique hallmark of Transformer models. By examining commonly employed synthetic ICL tasks, we demonstrate that multi-layer perceptrons (MLPs) can also learn in-context. Moreover, MLPs, and the closely related MLP-Mixer models, learn in-context comparably with Transformers under the same compute budget in this setting. We further show that MLPs outperform Transformers on a series of classical tasks from psychology designed to test relational reasoning, which are closely related to in-context classification. These results underscore a need for studying in-context learning beyond attention-based architectures, while also challenging prior arguments against MLPs' ability to solve relational tasks. Altogether, our results highlight the unexpected competence of MLPs in a synthetic setting, and support the growing interest in all-MLP alternatives to Transformer architectures. It remains unclear how MLPs perform against Transformers at scale on real-world tasks, and where a performance gap may originate. We encourage further exploration of these architectures in more complex settings to better understand the potential comparative advantage of attention-based schemes.

For agents

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

get_harvested_code_for_paper("2405.15618")
get_code_for_paper("2405.15618")
have("2405.15618")

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

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

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

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

Connect an agent — have() is free.