SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.05522 · NeurIPS · 2025

Continuous Thought Machines

Luke Darlow, Sebastian Risi, Jeffrey Seely, Ciaran Regan, Llion Jones

arXiv · PDF · Open in the Atlas

Code that ran

21 of 34 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (9 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 14 have no contract verdict; 7 failures of our instrument; 13 no recorded run), measured 2026-11-24; 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/2505.05522.json · badge: /api/ran/2505.05522.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
huyvnphan/PyTorch_CIFAR10 canonical (classifier label)
classifier basis not recorded on the link
8 ran · 5 no recorded run
SakanaAI/continuous-thought-machines marked official in Papers with Code
Papers with Code archive
13 ran · 8 no recorded run
FunctionStatusWhere it lives
CustomRotationalEmbedding Ran
ran on a synthesized input · constructed an object; no result was computed
SakanaAI/continuous-thought-machines/models/ctm.py
code served (permissive licence) · get_code("baaeda06cd538ee1")
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, CustomRotationalEmbedding: 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 torch
import torch.nn as nn

torch.manual_seed(0)

# Define arguments for CustomRotationalEmbedding
ARGS = {
    'd_model': 8,
}
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 CustomRotationalEmbedding — 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 CustomRotationalEmbedding 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
CustomRotationalEmbedding1D Ran
ran on a synthesized input
SakanaAI/continuous-thought-machines/models/ctm.py
code served (permissive licence) · get_code("47719b9c89739ef5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 3, 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
import torch.nn as nn

# INIT_ARGS: parameters for CustomRotationalEmbedding1D.__init__
INIT_ARGS = {
    'd_model': 8
}

# ARGS: parameters for the forward method
# The forward method expects x with shape (batch, d_model, sequence_length)
# We need to provide an input tensor x
ARGS = {
    'x': torch.randn(2, 8, 5)  # batch=2, d_model=8, sequence_length=5
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 3, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
Identity Ran
ran on a synthesized input · constructed an object; no result was computed
SakanaAI/continuous-thought-machines/models/ctm.py
code served (permissive licence) · get_code("e206223b33cedd14")
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, Identity: 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 torch
import torch.nn as nn

torch.manual_seed(0)

# Identity module takes no parameters in __init__
# The forward method just returns x unchanged
# So we need to test it by calling forward with a tensor

# Create a small test tensor (batch_size=2, features=4)
test_tensor = torch.randn(2, 4)

ARGS = {}
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 Identity — 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 Identity 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
LearnableFourierPositionalEncoding Ran
ran on a synthesized input · constructed an object; no result was computed
SakanaAI/continuous-thought-machines/models/ctm.py
code served (permissive licence) · get_code("e53cf78c38f8573f")
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, LearnableFourierPositionalEncoding: 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 torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'd_model': 64,
    'G': 1,
    'M': 2,
    'F_dim': 256,
    'H_dim': 128,
    'gamma': 1 / 2.5,
}
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 LearnableFourierPositionalEncoding — 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 LearnableFourierPositionalEncoding 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
MultiLearnableFourierPositionalEncoding Ran
ran on a synthesized input · constructed an object; no result was computed
SakanaAI/continuous-thought-machines/models/ctm.py
code served (permissive licence) · get_code("666bb2b770235116")
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, MultiLearnableFourierPositionalEncoding: 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 torch
import torch.nn as nn
import numpy as np

torch.manual_seed(0)

# Define ARGS dictionary with all parameters for MultiLearnableFourierPositionalEncoding
ARGS = {
    'd_model': 64,
    'G': 1,
    'M': 2,
    'F_dim': 256,
    'H_dim': 128,
    'gamma_range': [1.0, 0.1],
    'N': 5
}
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 MultiLearnableFourierPositionalEncoding — 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 MultiLearnableFourierPositionalEncoding 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
ParityBackbone Ran
ran on a synthesized input · constructed an object; no result was computed
SakanaAI/continuous-thought-machines/models/ctm.py
code served (permissive licence) · get_code("90dfef1c76c70aa5")
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, ParityBackbone: 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 torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "n_embeddings": 2,
    "d_embedding": 4,
}
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 ParityBackbone — 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 ParityBackbone 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
ResNet Ran
ran on a synthesized input · constructed an object; no result was computed
SakanaAI/continuous-thought-machines/models/ctm.py
code served (permissive licence) · get_code("c67b98fbc8ea482c")
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, ResNet: 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 torch
import torch.nn as nn

torch.manual_seed(0)

# Helper functions that the ResNet class uses
def conv1x1(in_planes, out_planes, stride=1):
    """1x1 convolution"""
    return nn.Conv2d(in_planes, out_planes, kernel_size=1, stride=stride, bias=False)

def conv3x3(in_planes, out_planes, stride=1, groups=1, dilation=1):
    """3x3 convolution with padding"""
    return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride, padding=dilation, groups=groups, bias=False, dilation=dilation)

class Identity(nn.Module):
    def __init__(self):
        super().__init__()

    def forward(self, x):
        return x

class BasicBlock(nn.Module):
    expansion = 1

    def __init__(self, inplanes, planes, stride=1, downsample=None, groups=1, base_width=64, dilation=1, norm_layer=None):
        super(BasicBlock, self).__init__()
        if norm_layer is None:
            norm_layer = nn.BatchNorm2d
        if groups != 1 or base_width != 64:
            raise ValueError('BasicBlock only supports groups=1 and base_width=64')
        if dilation > 1:
            raise NotImplementedError('Dilation > 1 not supported in BasicBlock')
        self.conv1 = conv3x3(inplanes, planes, stride)
        self.bn1 = norm_layer(planes)
        self.relu = nn.ReLU(inplace=True)
        self.conv2 = conv3x3(planes, planes)
        self.bn2 = norm_layer(planes)
        self.downsample = downsample
        self.stride = stride

    def forward(self, x):
        identity = x
        out = self.conv1(x)
        out = self.bn1(out)
        out = self.relu(out)
        out = self.conv2(out)
        out = self.bn2(out)
        if self.downsample is not None:
            identity = self.downsample(x)
        out += identity
        out = self.relu(out)
        return out

ARGS = {
    'in_channels': 3,
    'feature_scales': [1, 2, 3, 4],
    'stride': 2,
    'block': BasicBlock,
    'layers': [2, 2, 2, 2],
    'num_classes': 10,
    'zero_init_residual': False,
    'groups': 1,
    'width_per_group': 64,
    'replace_stride_with_dilation': None,
    'norm_layer': None,
    'do_initial_max_pool': True,
}
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 ResNet — 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 ResNet 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
ShallowWide Ran
ran on a synthesized input
SakanaAI/continuous-thought-machines/models/ctm.py
code served (permissive licence) · get_code("5f90461b308ff2c7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 4, 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
import torch.nn as nn
import numpy as np

INIT_ARGS = {}

ARGS = {
    'x': torch.randn(2, 4, 8, 6)  # batch=2, channels=4, height=8, width=6
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 4, dtype family float — no output shape is stated: observe_signature.py could not observe it (harness:RuntimeError)
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
Squeeze Ran
ran on a synthesized input · constructed an object; no result was computed
SakanaAI/continuous-thought-machines/models/ctm.py
code served (permissive licence) · get_code("36b1c300669d688d")
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, Squeeze: 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 torch
import torch.nn as nn

torch.manual_seed(0)

# The Squeeze module takes a single parameter: dim (int)
# It removes a dimension of size 1 from the input tensor
# We need to construct a tensor where one dimension has size 1

# Create a tensor with shape (2, 1, 4, 3) where dimension 1 has size 1
x = torch.randn(2, 1, 4, 3)

# The dim parameter should be an integer indicating which dimension to squeeze
# We'll use dim=1 since that's the dimension with size 1 in our tensor
dim = 1

ARGS = {
    "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 Squeeze — 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 Squeeze 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
SuperLinear Ran
ran on a synthesized input · constructed an object; no result was computed
SakanaAI/continuous-thought-machines/models/ctm.py
code served (permissive licence) · get_code("0461be8a70d9e208")
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, SuperLinear: 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 torch
import torch.nn as nn
import math

torch.manual_seed(0)

# SuperLinear expects:
# - in_dims (int): input dimension
# - out_dims (int): output dimension per neuron
# - N (int): number of independent linear models
# - T (float): temperature/scaling factor
# - do_norm (bool): whether to apply layer normalization
# - dropout (float): dropout rate

ARGS = {
    "in_dims": 5,
    "out_dims": 3,
    "N": 4,
    "T": 1.0,
    "do_norm": True,
    "dropout": 0.1,
}
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 SuperLinear — 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 SuperLinear 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
SynapseUNET Ran
ran on a synthesized input · constructed an object; no result was computed
SakanaAI/continuous-thought-machines/models/ctm.py
code served (permissive licence) · get_code("e563747885a2f4ac")
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, SynapseUNET: 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 torch
import torch.nn as nn
import numpy as np

torch.manual_seed(0)

ARGS = {
    "out_dims": 64,
    "depth": 4,
    "minimum_width": 16,
    "dropout": 0.1,
}
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 SynapseUNET — 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 SynapseUNET 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
add_coord_dim Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
SakanaAI/continuous-thought-machines/models/ctm.py
code served (permissive licence) · get_code("73a2570903893c31")
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 4, dtype family float, shape (2, 4, 3, 2) 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 takes a tensor of shape (B, H, W) and a scaled boolean flag
# It creates coordinate tensors and returns them with batch dimension

# Create a small tensor of shape (B, H, W)
# Using distinct sizes: B=2, H=4, W=3
x = torch.randn(2, 4, 3)

ARGS = {
    "x": x,
    "scaled": True,
}
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 4, dtype family float, shape (2, 4, 3, 2) — shape (2, 4, 3, 2) 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
compute_normalized_entropy Ran
ran; our contract draft was wrong, not the code
SakanaAI/continuous-thought-machines/models/ctm.py
code served (permissive licence) · get_code("e9bf59f25bfde7f8")
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 (2,) 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.nn.functional as F

torch.manual_seed(0)

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

# Define ARGS dictionary with all parameters
ARGS = {
    'logits': logits,
    'reduction': 'mean'
}
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 1, dtype family float, shape (2,) — shape (2,) 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
conv1x1 Ran
ran; our contract draft was wrong, not the code
huyvnphan/PyTorch_CIFAR10/cifar10_models/resnet.py
code served (permissive licence) · get_code("d9def42110729a85")
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 Conv2d. 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)

# The function conv1x1 takes in_planes, out_planes, and stride as parameters
# It returns an nn.Conv2d layer configured for 1x1 convolution
# We need to provide valid integer arguments for these parameters

ARGS = {
    "in_planes": 3,
    "out_planes": 64,
    "stride": 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 Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d 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
conv3x3 Ran
ran; our contract draft was wrong, not the code
huyvnphan/PyTorch_CIFAR10/cifar10_models/resnet.py
code served (permissive licence) · get_code("160bb14bd76201b4")
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 Conv2d. 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)

ARGS = {
    "in_planes": 3,
    "out_planes": 64,
    "stride": 1,
    "groups": 1,
    "dilation": 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 Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d 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
densenet169 Ran
ran; our contract draft was wrong, not the code
huyvnphan/PyTorch_CIFAR10/cifar10_models/densenet.py
code served (permissive licence) · get_code("9ee8bc3f789e311e")
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 DenseNet. 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)

ARGS = {
    'pretrained': False,
    'progress': True,
    '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 DenseNet — a DenseNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DenseNet 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_layers Ran
ran; our contract draft was wrong, not the code
huyvnphan/PyTorch_CIFAR10/cifar10_models/vgg.py
pointer only (licence: MIT); the stored copy get_code serves, from s-huu/TurningWeaknessIntoStrength, is pointer only (licence: NONE) · get_code("eba3f5bcc6a06d36")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from s-huu/TurningWeaknessIntoStrength, and GitHub detected no licence in that repository when it was checked. 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.

mobilenet_v2 Ran
ran; our contract draft was wrong, not the code
huyvnphan/PyTorch_CIFAR10/cifar10_models/mobilenetv2.py
code served (permissive licence) · get_code("856759d3dba2362b")
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 MobileNetV2. 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)

ARGS = {
    'pretrained': False,
    'progress': True,
    '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 MobileNetV2 — a MobileNetV2 output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MobileNetV2 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
resnet_orig Ran
ran on a synthesized input
huyvnphan/PyTorch_CIFAR10/cifar10_models/resnet_orig.py
code served (permissive licence) · get_code("cc1974e025ecd3d5")
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 ResNet. 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
import os
from unittest.mock import MagicMock, patch

torch.manual_seed(0)

# The function resnet_orig has two parameters:
# 1. pretrained (bool, default=True)
# 2. device (str, default='cpu')

# When pretrained=True, it tries to load a state dict from a file.
# Since we can't do file I/O, we need to mock torch.load to avoid FileNotFoundError.

# Create a mock state dict that matches the ResNet structure
mock_state_dict = {}

# Build the actual ResNet to get the correct state dict structure
net = nn.Module()

ARGS = {
    'pretrained': False,  # Set to False to avoid file loading
    'device': 'cpu'       # CPU only as per requirements
}
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 ResNet — a ResNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet 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
vgg11_bn Ran
ran on a synthesized input
huyvnphan/PyTorch_CIFAR10/cifar10_models/vgg.py
code served (permissive licence) · get_code("e569c3a2806d4b22")
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 VGG. 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)

ARGS = {
    'pretrained': False,
    'progress': True,
    '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 VGG — a VGG output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a VGG 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
vgg13_bn Ran
ran on a synthesized input
huyvnphan/PyTorch_CIFAR10/cifar10_models/vgg.py
code served (permissive licence) · get_code("baf825f46b658a7e")
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 VGG. 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)

ARGS = {
    'pretrained': False,
    'progress': True,
    '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 VGG — a VGG output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a VGG 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
ContinuousThoughtMachine Not yet run
unverified (harvested, no recorded run)
SakanaAI/continuous-thought-machines/models/ctm.py
code served (permissive licence) · get_code("a6e232630eef5432")
How it ran

no invocation recorded.

_resnet Not yet run
unverified (harvested, no recorded run)
SakanaAI/continuous-thought-machines/models/ctm.py
code served (permissive licence) · get_code("1c32aa10f477a2b4")
How it ran

no invocation recorded.

densenet121 Not yet run
unverified (harvested, no recorded run)
huyvnphan/PyTorch_CIFAR10/cifar10_models/densenet.py
code served (permissive licence) · get_code("d2ef37da818b9f51")
How it ran

no invocation recorded.

densenet161 Not yet run
unverified (harvested, no recorded run)
huyvnphan/PyTorch_CIFAR10/cifar10_models/densenet.py
code served (permissive licence) · get_code("2c599b41c3a242e3")
How it ran

no invocation recorded.

googlenet Not yet run
unverified (harvested, no recorded run)
huyvnphan/PyTorch_CIFAR10/cifar10_models/googlenet.py
code served (permissive licence) · get_code("2603e42da3f6eb7e")
How it ran

no invocation recorded.

inception_v3 Not yet run
unverified (harvested, no recorded run)
huyvnphan/PyTorch_CIFAR10/cifar10_models/inception.py
code served (permissive licence) · get_code("c042be3fa666e8c8")
How it ran

no invocation recorded.

prepare_resnet_backbone Not yet run
unverified (harvested, no recorded run)
SakanaAI/continuous-thought-machines/models/ctm.py
code served (permissive licence) · get_code("213bd7d63b638164")
How it ran

no invocation recorded.

resnet101 Not yet run
unverified (harvested, no recorded run)
SakanaAI/continuous-thought-machines/models/ctm.py
code served (permissive licence) · get_code("388020d20161fcd4")
How it ran

no invocation recorded.

resnet152 Not yet run
unverified (harvested, no recorded run)
SakanaAI/continuous-thought-machines/models/ctm.py
code served (permissive licence) · get_code("09646514ded5cb5c")
How it ran

no invocation recorded.

resnet18 Not yet run
unverified (harvested, no recorded run)
SakanaAI/continuous-thought-machines/models/ctm.py
code served (permissive licence) · get_code("a1f3dac6cc5b08dd")
How it ran

no invocation recorded.

resnet18 Not yet run
unverified (harvested, no recorded run)
huyvnphan/PyTorch_CIFAR10/cifar10_models/resnet.py
code served (permissive licence) · get_code("2615428ce71ead9f")
How it ran

no invocation recorded.

resnet34 Not yet run
unverified (harvested, no recorded run)
SakanaAI/continuous-thought-machines/models/ctm.py
code served (permissive licence) · get_code("4e5521b72233c2ca")
How it ran

no invocation recorded.

resnet50 Not yet run
unverified (harvested, no recorded run)
SakanaAI/continuous-thought-machines/models/ctm.py
code served (permissive licence) · get_code("9abfa1dee1f9d09c")
How it ran

no invocation recorded.

Also present in other papers' code

Of 34 samples lifted from this paper's linked repositories, 34 carry a function identity and 0 do not. Of the 34 distinct functions with an identity, 12 are also present in other papers whose code we hold (12 with at least one paper dated earlier, 2 the same month, 3 later) and 22 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
conv1x1
brick of this paper's assembly: helper
431 other papers
404 dated earlier, 2 the same month, 19 later, 5 same year, order not determinable, 1 undated · 38 only as an assembly brick
1409.1556 (2014-09)
Very Deep Convolutional Networks for Large-Scale Image Recognition
1506.01186 (2015-06)
Cyclical Learning Rates for Training Neural Networks
1507.05717 (2015-07)
An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Application to Scene Text Recognition
and 428 more not named here
conv3x3
brick of this paper's assembly: helper
312 other papers
292 dated earlier, 1 the same month, 14 later, 4 same year, order not determinable, 1 undated · 31 only as an assembly brick
1409.1556 (2014-09)
Very Deep Convolutional Networks for Large-Scale Image Recognition
1507.05717 (2015-07)
An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Application to Scene Text Recognition
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
and 309 more not named here
make_layers 59 other papers
55 dated earlier, 1 later, 3 same year, order not determinable
1411.4038 (2014-11)
Fully Convolutional Networks for Semantic Segmentation
1511.00561 (2015-11)
SegNet: A Deep Convolutional Encoder-Decoder Architecture for Image Segmentation
1511.05950 (2015-11)
Staleness-aware Async-SGD for Distributed Deep Learning
and 56 more not named here
resnet18 6 other papers
6 dated earlier
1802.10026 (2018-02)
Loss Surfaces, Mode Connectivity, and Fast Ensembling of DNNs
2206.07290 (2022-06)
Differentiable Top-k Classification Learning
2301.11578 (2023-01)
Learning to Unlearn: Instance-wise Unlearning for Pre-trained Classifiers
and 3 more not named here
mobilenet_v2 4 other papers
3 dated earlier, 1 same year, order not determinable
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2403.06014 (2024-03)
Hard-label based Small Query Black-box Adversarial Attack
2405.18902 (2024-05)
A Causal Framework for Evaluating Deferring Systems
and 1 more not named here
Identity
brick of this paper's assembly: helper
3 other papers
3 dated earlier · 2 only as an assembly brick
1806.09055 (2018-06)
DARTS: Differentiable Architecture Search
2024.findings-acl.859 (2024 (year only))
Amanda: Adaptively Modality-Balanced Domain Adaptation for Multimodal Emotion Recognition
2411.07231 (2024-11)
Watermark Anything with Localized Messages
densenet121 3 other papers
3 dated earlier
1802.10026 (2018-02)
Loss Surfaces, Mode Connectivity, and Fast Ensembling of DNNs
2204.03714 (2022-04)
ICLR 2022 PAIR 2 Struct Workshop USING MULTIPLE SELF-SUPERVISED TASKS IM-PROVES MODEL ROBUSTNESS
2406.15093 (2024-06)
ECLIPSE: Expunging Clean-label Indiscriminate Poisons via Sparse Diffusion Purification
densenet161 3 other papers
3 dated earlier
1802.10026 (2018-02)
Loss Surfaces, Mode Connectivity, and Fast Ensembling of DNNs
2204.03714 (2022-04)
ICLR 2022 PAIR 2 Struct Workshop USING MULTIPLE SELF-SUPERVISED TASKS IM-PROVES MODEL ROBUSTNESS
2406.15093 (2024-06)
ECLIPSE: Expunging Clean-label Indiscriminate Poisons via Sparse Diffusion Purification
densenet169 3 other papers
3 dated earlier
1802.10026 (2018-02)
Loss Surfaces, Mode Connectivity, and Fast Ensembling of DNNs
2204.03714 (2022-04)
ICLR 2022 PAIR 2 Struct Workshop USING MULTIPLE SELF-SUPERVISED TASKS IM-PROVES MODEL ROBUSTNESS
2406.15093 (2024-06)
ECLIPSE: Expunging Clean-label Indiscriminate Poisons via Sparse Diffusion Purification
inception_v3 1 other paper
1 dated earlier
2304.02786 (2023-04)
UNICORN: A Unified Backdoor Trigger Inversion Framework
vgg11_bn 1 other paper
1 dated earlier
2206.07387 (2022-06)
The Manifold Hypothesis for Gradient-Based Explanations
vgg13_bn 1 other paper
1 dated earlier
2206.07387 (2022-06)
The Manifold Hypothesis for Gradient-Based Explanations

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-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Biological brains demonstrate complex neural activity, where neural dynamics are critical to how brains process information. Most artificial neural networks ignore the complexity of individual neurons . We challenge that paradigm. By incorporating neuron-level processing and synchronization, we reintroduce neural timing as a foundational element. We present the Continuous Thought Machine (CTM), a model designed to leverage neural dynamics as its core representation. The CTM has two innovations: (1) neuron-level temporal processing, where each neuron uses unique weight parameters to process incoming histories; and (2) neural synchronization as a latent representation. The CTM aims to strike a balance between neuron abstractions and biological realism. It operates at a level of abstraction that effectively captures essential temporal dynamics while remaining computationally tractable. We demonstrate the CTM's performance and versatility across a range of tasks, including solving 2D mazes, ImageNet-1K classification, parity computation, and more. Beyond displaying rich internal representations and offering a natural avenue for interpretation owing to its internal process, the CTM is able to perform tasks that require complex sequential reasoning. The CTM can also leverage adaptive compute, where it can stop earlier for simpler tasks, or keep computing when faced with more challenging instances. The goal of this work is to share the CTM and its associated innovations, rather than pushing for new state-of-the-art results. To that end, we believe the CTM represents a significant step toward developing more biologically plausible and powerful artificial intelligence systems. We provide an accompanying interactive online demonstration and an extended technical report. (a) Perfect route solution (trained up to 100 steps). (b) (Emergent) further than the training route. (c) Generalizing to a larger maze. (Section 5), and utilizes its dynamic representations for tasks requiring memory and sequential reasoning (Section 6). These capabilities emerge from the same core architecture applied to different tasks, showcasing its versatility and trainability. We believe that the CTM represents a step towards bridging the gap between powerful modern AI and biological plausibility. The remainder of this paper details related work (Section 2), describes the CTM (Section 3), evaluates core capabilities on 2D mazes, ImageNet-1K classification, and parity computation (Sections 4 to 6), summarizes further experiments and applications (Section 7), and discusses findings (Section 8). The CTM uses neural timing and synchronization as core computational principles. This positions it relative to, yet distinct from, several lines of research. Adaptive Computation. Many approaches achieve adaptive computation via explicit mechanisms. Early-exit networks [16] use intermediate classifiers for early termination. PonderNet [17] and Adaptive Computation Time (ACT) [18] introduce learnable halting modules governing recurrent steps. More recent methods like AdaTape [19] dynamically extend input sequences, while Sparse Universal Transformers (SUT ) [20] combine recurrent weight sharing with dynamic halting and Mixture-of-Experts. In contrast, the CTM's adaptive processing (varying internal ticks per input based on certainty and loss dynamics; Section 3.5) emerges naturally from its core architecture, driven by the unfolding of its internal neural dynamics without dedicated halting components. Iterative and Recurrent Reasoning. The CTM's internal ticks facilitate iterative refinement, akin to models promoting internal computational steps. For instance, Quiet-STaR [21] uses hidden rationale generation in language models, and Recurrent Independent Mechanisms (RIMs) [22] employ modular, asynchronous sub-networks for multi-step reasoning. While Recurrent Models of Visual Attention (RAM) [23] also leveraged recurrence for sequential processing of visual glimpses, the CTM's novelty lies in generating internal neural dynamics from neuron-level histories across a decoupled time dimension and then utilizing the explicit temporal patterns of neural synchronization as its primary representation. This contrasts with RAM's focus on perceptual decision-making from external glimpses or models relying solely on a final recurrent state. Biologically Inspired Neural Dynamics. There is growing interest in more biologically plausible neural computation [24]. Examples include Liquid Time-Constant Networks (LTCNs) [25] with neurons governed by time-varying differential equations, and various Spiking Neural Network (SNN) paradigms that inherently use discrete, timed events, with recent work also exploring synchronization mechanisms [26,27]. The CTM draws inspiration from temporal coding and neural synchrony, but uses: (1) neuron-level models (NLMs) to process a history of continuous-valued pre-activations to generate complex dynamics, and (2) neural synchronization as the primary latent representation for attention and output. While inspired by principles like spike-timing and synchrony, CTM abstracts these-focusing on local temporal integration and population-level synchronization-into a tractable, differentiable framework suitable for gradient-based deep learning, rather than replicating detailed biophysics. This situates the CTM alongside, yet distinct from, extensive work on models such as Liquid State Machines [28], and diverse SNNs that exploit precise spike timing for computation or employ specialized learning rules [29,30,31,32,33]. These latter models often emphasize event-driven dynamics, explore non-differentiable computation, or focus on online learning. The CTM offers a complementary direction, retaining inspiration from biological timing while ensuring compatibility with established deep learning training paradigms. Synchronization. Reichert & Serre [11] proposed a model where synchronization emerges from interactions among complex-valued neurons, serving as a gating mechanism that modulates information flow and enables post-hoc grouping of neurons for tasks like object segmentation. Unlike CTM, however, their model does not use synchrony as a learned latent representation during computation. Other approaches in complex-valued neural networks [12] employ synchronization from a control-theoretic perspective, aiming to stabilize or coordinate networks via externally enforced synchrony. In contrast, CTM integrates synchronization intrinsically, optimizing neural phase relationships during training to encode task-relevant representations. This positions CTM as a computationally grounded model of synchrony, fundamentally distinct from prior works that treat synchrony as a control objective.

For agents

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

get_harvested_code_for_paper("2505.05522")
get_code_for_paper("2505.05522")
have("2505.05522")

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

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

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

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

Connect an agent — have() is free.