SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.13807 · 2023

Learning to (Learn at Test Time)

arXiv · PDF · Open in the Atlas

Code that ran

6 of 7 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 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/2310.13807.json · badge: /api/ran/2310.13807.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
test-time-training/mttt canonical (classifier label)
classifier basis: census
6 ran · 1 no recorded run
FunctionStatusWhere it lives
blend Ran
ran; our contract draft was wrong, not the code
test-time-training/mttt/pp/autoaugment.py
code served (permissive licence) · get_code("8fa1f6dea89abe40")
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 SymbolicTensor. 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 tensorflow.compat.v1 as tf
import numpy as np

tf.disable_v2_behavior()

# Create small uint8 image tensors
# Using distinct dimensions: 2x4 for height x width, 3 for RGB channels
image1_data = np.array([[[100, 150, 200],
                         [50, 75, 125],
                         [200, 100, 50],
                         [25, 75, 150]],
                        [[120, 160, 210],
                         [60, 85, 135],
                         [210, 110, 60],
                         [35, 85, 160]]], dtype=np.uint8)

image2_data = np.array([[[200, 200, 255],
                         [100, 125, 175],
                         [255, 150, 100],
                         [75, 125, 200]],
                        [[220, 220, 255],
                         [110, 135, 185],
                         [255, 160, 110],
                         [85, 135, 210]]], dtype=np.uint8)

image1 = tf.constant(image1_data, dtype=tf.uint8)
image2 = tf.constant(image2_data, dtype=tf.uint8)
factor = 0.5

ARGS = {
    "image1": image1,
    "image2": image2,
    "factor": factor
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SymbolicTensor — a SymbolicTensor output has no array shape of its own; none is 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
cutout Ran
ran; our contract draft was wrong, not the code
test-time-training/mttt/pp/autoaugment.py
code served (permissive licence) · get_code("a1146beffdc1b587")
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 SymbolicTensor. 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 tensorflow.compat.v1 as tf
import numpy as np

# Disable eager execution for TF v1 compatibility
tf.disable_eager_execution()

# Create a small test image: 4x3 with 3 channels (RGB), uint8 type
image_data = np.random.randint(0, 256, size=(4, 3, 3), dtype=np.uint8)
image_tensor = tf.constant(image_data, dtype=tf.uint8)

ARGS = {
    "image": image_tensor,
    "pad_size": 1,
    "replace": 0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SymbolicTensor — a SymbolicTensor output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_posemb Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
test-time-training/mttt/model.py
code served (permissive licence) · get_code("f66ba180f0c3270b")
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 3, dtype family float, shape (1, 12, 8) 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 flax.linen as nn
import jax.numpy as jnp
import numpy as np

class MockModule(nn.Module):
    """Mock Flax module with param method for testing get_posemb"""
    
    def param(self, name, init_fn, shape, dtype):
        """Mock param method that returns a learnable positional embedding"""
        key = jax.random.PRNGKey(0)
        return init_fn(key, shape, dtype)

import jax
import jax.random

# Create a mock self object
mock_self = MockModule()

# Test with 'sincos2d' type - this is simpler and doesn't require the param method
ARGS = {
    'self': mock_self,
    'typ': 'sincos2d',
    'seqshape': (4, 3),  # height=4, width=3
    'width': 8,
    'name': 'posemb',
    'dtype': jnp.float32
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 3, dtype family float, shape (1, 12, 8) — shape (1, 12, 8) 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
make_for_train Ran
ran; our contract draft was wrong, not the code
test-time-training/mttt/datasets/input_pipeline.py
code served (permissive licence) · get_code("7f6da8b96ca3fb1e")
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 _PrefetchDataset. 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 tensorflow as tf
import numpy as np

# Create a simple tf.data.Dataset for training
def create_dummy_dataset():
    # Create simple numpy arrays
    images = np.random.randn(10, 4).astype(np.float32)
    labels = np.random.randint(0, 2, 10).astype(np.int32)
    
    # Create tf.data.Dataset
    dataset = tf.data.Dataset.from_tensor_slices((images, labels))
    return dataset

# Define a simple preprocessing function
def preprocess_fn(x, y):
    # Simple preprocessing: normalize image and one-hot encode label
    x = x / 255.0
    y = tf.one_hot(y, 2)
    return x, y

# Define a simple filter function
def filter_fn(x, y):
    # Keep all samples (simple filter that always returns True)
    return True

# Create the arguments
ARGS = {
    "data": create_dummy_dataset(),
    "preprocess_fn": preprocess_fn,
    "batch_size": 4,
    "shuffle_buffer_size": 8,
    "cache_raw": False,
    "filter_fn": filter_fn,
    "num_parallel_calls": 2,
    "prefetch": 2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type _PrefetchDataset — a _PrefetchDataset output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a _PrefetchDataset 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
posemb_sincos_2d Ran
ran, honoured the contract we drafted
test-time-training/mttt/model.py
code served (permissive licence) · get_code("a9b79a3fcbad18af")
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 3, dtype family float, shape (1, 12, 8) 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.numpy as jnp

# Define the arguments for posemb_sincos_2d
h = 4  # height dimension
w = 3  # width dimension (distinct from h)
width = 8  # must be multiple of 4
temperature = 10000.0
dtype = jnp.float32

ARGS = {
    'h': h,
    'w': w,
    'width': width,
    'temperature': temperature,
    'dtype': dtype,
}
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 ArrayImpl, ndim 3, dtype family float, shape (1, 12, 8) — shape (1, 12, 8) 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
solarize Ran
ran; our contract draft was wrong, not the code
test-time-training/mttt/pp/autoaugment.py
code served (permissive licence) · get_code("2f023d4690a70195")
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 SymbolicTensor. 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 tensorflow.compat.v1 as tf
import numpy as np

# Disable v2 behavior for TensorFlow v1 compatibility
tf.disable_v2_behavior()

# Create a small test image as a TensorFlow constant
# Using values in range [0, 255] typical for image data
# Shape: (2, 4, 3) - batch of 2, spatial dims 4x3
image_data = np.array([
    [[10, 20, 30], [40, 50, 60], [70, 80, 90], [100, 110, 120]],
    [[130, 140, 150], [160, 170, 180], [190, 200, 210], [220, 230, 240]]
], dtype=np.uint8)

image = tf.constant(image_data)

ARGS = {
    "image": image,
    "threshold": 128
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SymbolicTensor — a SymbolicTensor output has no array shape of its own; none is 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_for_inference Not yet run
unverified (harvested, no recorded run)
test-time-training/mttt/datasets/input_pipeline.py
code served (permissive licence) · get_code("474c43c3ad6f28e3")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 1 later) and 3 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
posemb_sincos_2d 5 other papers
3 dated earlier, 2 later
2205.01580 (2022-05)
Better plain ViT baselines for ImageNet-1k
2305.07011 (2023-05)
Region-Aware Pretraining for Open-Vocabulary Object Detection with Vision Transformers
2309.16588 (2023-09)
Vision Transformers Need Registers
and 2 more not named here
solarize 4 other papers
4 dated earlier
1911.04252 (2019-11)
Self-training with Noisy Student improves ImageNet classification
2006.14536 (2020-06)
Smooth Adversarial Training
2103.16201 (2021-03)
MT3: Meta Test-Time Training for Self-Supervised Test-Time Adaption
and 1 more not named here
cutout 3 other papers
3 dated earlier
1911.04252 (2019-11)
Self-training with Noisy Student improves ImageNet classification
2006.14536 (2020-06)
Smooth Adversarial Training
2103.16201 (2021-03)
MT3: Meta Test-Time Training for Self-Supervised Test-Time Adaption
blend 2 other papers
2 dated earlier
1911.04252 (2019-11)
Self-training with Noisy Student improves ImageNet classification
2006.14536 (2020-06)
Smooth Adversarial Training

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

We reformulate the problem of supervised learning as learning to learn with two nested loops (i.e. learning problems). The inner loop learns on each individual instance with self-supervision before final prediction. The outer loop learns the self-supervised task used by the inner loop, such that its final prediction improves. Our inner loop turns out to be equivalent to linear attention when the inner-loop learner is only a linear model, and to self-attention when it is a kernel estimator. For practical comparison with linear or self-attention layers, we replace each of them in a transformer with an inner loop, so our outer loop is equivalent to training the architecture. When each inner-loop learner is a neural network, our approach vastly outperforms transformers with linear attention on ImageNet from 224 x 224 raw pixels in both accuracy and FLOPs, while (regular) transformers cannot run.

For agents

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

get_harvested_code_for_paper("2310.13807")
get_code_for_paper("2310.13807")
have("2310.13807")

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

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

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

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

Connect an agent — have() is free.