SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1812.01054 · 2018

Transferring Knowledge across Learning Processes

arXiv · PDF · Open in the Atlas

Code that ran

11 of 14 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 11 have no contract verdict; 0 failures of our instrument; 3 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/1812.01054.json · badge: /api/ran/1812.01054.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
amzn/metalearn-leap community (classifier label)
classifier basis not recorded on the link
11 ran · 3 no recorded run
FunctionStatusWhere it lives
build_kwargs Ran
ran on a synthesized input
amzn/metalearn-leap/src/omniglot/utils.py
code served (permissive licence) · get_code("62b6e465c6d6a88f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Analyzing the function:
# - build_kwargs takes 'args' parameter which should be a list
# - It processes pairs of key-value strings
# - convert_arg converts strings to appropriate types (None, bool, int, float, or keeps as string)
# - The function handles tuples separated by ':' in values

# Test case 1: Simple key-value pairs
test_args_1 = ['key1', 'value1', 'key2', '42', 'key3', '3.14']

# Test case 2: With None, True, False
test_args_2 = ['flag1', 'true', 'flag2', 'false', 'nullval', 'none']

# Test case 3: With tuple values (colon-separated)
test_args_3 = ['dims', '2:4:8', 'flags', 'true:false:none']

# Test case 4: Mixed types
test_args_4 = ['name', 'model', 'layers', '3', 'lr', '0.001', 'enabled', 'true']

# Test case 5: Edge case - empty list
test_args_5 = []

# For the ARGS dict, we need to map every parameter of build_kwargs
# build_kwargs has one parameter: args (list of strings)
ARGS = {
    'args': ['key1', 'value1', 'key2', '42', 'key3', '3.14', 'flag', 'true', 'ratio', '0.5', 'config', 'dims:2:4: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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
clone Ran
ran on a synthesized input
amzn/metalearn-leap/src/leap/leap/utils.py
code served (permissive licence) · get_code("b016a00e52862126")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a tensor with requires_grad=True
tensor = torch.randn(2, 4, requires_grad=True)

# Compute some gradients so tensor.grad is not None
loss = tensor.sum()
loss.backward()

ARGS = {
    "tensor": tensor
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
clone_state_dict Ran
ran on a synthesized input
amzn/metalearn-leap/src/leap/leap/utils.py
code served (permissive licence) · get_code("b29d217be0622622")
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 OrderedDict. 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
from collections import OrderedDict

torch.manual_seed(0)

# Create a simple state_dict with tensors that have various properties
# The function iterates over items and calls clone() on each parameter
state_dict = OrderedDict()

# Create tensors with different properties to test the clone function
param1 = torch.randn(2, 4, requires_grad=True)
param1.grad = torch.randn(2, 4)  # Add gradient to test grad cloning

param2 = torch.randn(3, 5, requires_grad=False)

param3 = torch.randn(4, 6, requires_grad=True)
# param3 has no grad (None case)

state_dict['layer1.weight'] = param1
state_dict['layer1.bias'] = param2
state_dict['layer2.weight'] = param3

ARGS = {
    'state_dict': state_dict
}
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 OrderedDict — a OrderedDict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a OrderedDict 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
compute_global_norm Ran
ran on a synthesized input
amzn/metalearn-leap/src/leap/leap/utils.py
code served (permissive licence) · get_code("c3e4c7df918ea77f")
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 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 torch
from collections import OrderedDict

torch.manual_seed(0)

# Create small state dicts with trainable parameters
curr_state = OrderedDict([
    ('param1', torch.randn(2, 3, requires_grad=True)),
    ('param2', torch.randn(4, requires_grad=True)),
])

prev_state = OrderedDict([
    ('param1', torch.randn(2, 3, requires_grad=True)),
    ('param2', torch.randn(4, requires_grad=True)),
])

d_loss = torch.tensor(0.5)

ARGS = {
    'curr_state': curr_state,
    'prev_state': prev_state,
    'd_loss': d_loss,
}
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 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
compute_ncorrect Ran
ran on a synthesized input
amzn/metalearn-leap/src/omniglot/utils.py
code served (permissive licence) · get_code("e96d229a005e9d51")
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 int, ndim 0, dtype family int, 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 torch

torch.manual_seed(0)

# p is expected to be a tensor with logits/scores
# The function calls p.max(1) which returns (values, indices)
# So p should be 2D: (batch_size, num_classes)
p = torch.randn(2, 4)

# y is expected to be a 1D tensor of class indices for comparison
# Should have length matching batch size of p
y = torch.tensor([0, 2])

ARGS = {
    "p": p,
    "y": y,
}
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 int, ndim 0, dtype family int, 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
gen_job Ran
ran on a synthesized input
amzn/metalearn-leap/src/omniglot/run_multi.py
code served (permissive licence) · get_code("27f9b277cad68406")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

ARGS = {
    'npre': 5,
    'inner_lr': 0.001,
    'outer_lr': 0.01,
    'train_steps': 100,
    'model': SimpleModel(),
    'gpx': 'cpu',
    'seed': 42
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_async Ran
ran on a synthesized input
amzn/metalearn-leap/src/omniglot/run_multi.py
code served (permissive licence) · get_code("55501ab84bac6947")
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 int, ndim 0, dtype family int, 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 torch
from unittest.mock import Mock

torch.manual_seed(0)

# Create mock AsyncResult objects that track ready state
class MockAsyncResult:
    def __init__(self, ready_state=False):
        self._ready = ready_state
    
    def ready(self):
        return self._ready
    
    def get(self):
        return "result"

# Create results list with tuples of (AsyncResult, index)
# Some results are ready, some are not
result1 = MockAsyncResult(ready_state=True)
result2 = MockAsyncResult(ready_state=False)
result3 = MockAsyncResult(ready_state=True)

results = [
    (result1, 0),
    (result2, 1),
    (result3, 2),
]

# Create a pool list to hold indices of completed jobs
pool = []

ARGS = {
    "results": results,
    "pool": pool,
}
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 int, ndim 0, dtype family int, 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
get_model_config Ran
ran on a synthesized input
amzn/metalearn-leap/src/omniglot/run_multi.py
code served (permissive licence) · get_code("747bb1ba3659822e")
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 tuple, 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 torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'model': 'maml'
}
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 tuple, ndim 1, dtype family float — a tuple 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
load_args Ran
ran on a synthesized input
amzn/metalearn-leap/src/omniglot/monitor.py
code served (permissive licence) · get_code("b677d9dfa8aa5ea4")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import tempfile
import torch

# Create a temporary directory to serve as log_path
temp_dir = tempfile.mkdtemp()

# Create an args.log file with some content
args_log_path = os.path.join(temp_dir, 'args.log')
with open(args_log_path, 'w') as f:
    f.write("sample arguments content for testing")

ARGS = {
    'log_path': temp_dir
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_results Ran
ran on a synthesized input
amzn/metalearn-leap/src/omniglot/monitor.py
code served (permissive licence) · get_code("fe0761d80f06cb62")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import os

# Create a temporary log file with valid data
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt')
temp_file.write("0,0.5,0.1,0.95,0.05;0.15;,0.92;0.97;\n")
temp_file.write("1,0.45,0.08,0.96,0.06;0.10;,0.94;0.98;\n")
temp_file.write("2,0.40,0.07,0.97,0.04;0.09;,0.95;0.99;\n")
temp_file.close()

ARGS = {
    'file': temp_file.name
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
maml_inner_step Ran
ran on a synthesized input
amzn/metalearn-leap/src/maml/maml/maml.py
code served (permissive licence) · get_code("17f4cb94fa9187ff")
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 tuple. 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)

# Simple model that takes input and produces output
class SimpleModel(nn.Module):
    def __init__(self, input_size, output_size):
        super().__init__()
        self.linear = nn.Linear(input_size, output_size)
    
    def forward(self, x):
        return self.linear(x)

# Simple MAML-style optimizer that supports step with retain_graph
class MAMLOptimizer:
    def __init__(self, model, lr=0.01):
        self.model = model
        self.lr = lr
        self.param_groups = [{'params': model.parameters(), 'lr': lr}]
    
    def step(self, retain_graph=False):
        new_params = []
        for param_group in self.param_groups:
            for param in param_group['params']:
                if param.grad is not None:
                    new_param = param - param_group['lr'] * param.grad
                    new_params.append(new_param)
        return None, new_params

# Create model
input_size = 4
output_size = 3
model = SimpleModel(input_size, output_size)

# Create input and output tensors
input_tensor = torch.randn(2, input_size)  # batch_size=2, input_dim=4
output_tensor = torch.randn(2, output_size)  # batch_size=2, output_dim=3

# Create optimizer
optimizer = MAMLOptimizer(model, lr=0.01)

# Create criterion (loss function)
criterion = nn.MSELoss()

# Boolean flag for creating computation graph
create_graph = True

ARGS = {
    'input': input_tensor,
    'output': output_tensor,
    'model': model,
    'optimizer': optimizer,
    'criterion': criterion,
    'create_graph': create_graph
}
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 tuple — a tuple 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
convert_arg Not yet run
unverified (harvested, no recorded run)
amzn/metalearn-leap/src/omniglot/utils.py
code served (permissive licence) · get_code("fc9694f7c4cfc1dc")
How it ran

no invocation recorded.

maml_outer_step Not yet run
unverified (harvested, no recorded run)
amzn/metalearn-leap/src/maml/maml/maml.py
code served (permissive licence) · get_code("9457ff7823852fb8")
How it ran

no invocation recorded.

maml_task Not yet run
unverified (harvested, no recorded run)
amzn/metalearn-leap/src/maml/maml/maml.py
code served (permissive licence) · get_code("457509c42a86d6ed")
How it ran

no invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 7 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 7 later) and 7 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
build_kwargs 1 other paper
1 later
1909.00025 (2019-09)
Meta-Learning with Warped Gradient Descent
compute_ncorrect 1 other paper
1 later
1909.00025 (2019-09)
Meta-Learning with Warped Gradient Descent
convert_arg 1 other paper
1 later
1909.00025 (2019-09)
Meta-Learning with Warped Gradient Descent
get_async 1 other paper
1 later
1909.00025 (2019-09)
Meta-Learning with Warped Gradient Descent
get_model_config 1 other paper
1 later
1909.00025 (2019-09)
Meta-Learning with Warped Gradient Descent
load_args 1 other paper
1 later
1909.00025 (2019-09)
Meta-Learning with Warped Gradient Descent
load_results 1 other paper
1 later
1909.00025 (2019-09)
Meta-Learning with Warped Gradient Descent

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 complex transfer learning scenarios new tasks might not be tightly linked to previous tasks. Approaches that transfer information contained only in the final parameters of a source model will therefore struggle. Instead, transfer learning at a higher level of abstraction is needed. We propose Leap, a framework that achieves this by transferring knowledge across learning processes. We associate each task with a manifold on which the training process travels from initialization to final parameters and construct a meta-learning objective that minimizes the expected length of this path. Our framework leverages only information obtained during training and can be computed on the fly at negligible cost. We demonstrate that our framework outperforms competing methods, both in meta-learning and transfer learning, on a set of computer vision tasks. Finally, we demonstrate that Leap can transfer knowledge across learning processes in demanding reinforcement learning environments (Atari) that involve millions of gradient steps.

For agents

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

get_harvested_code_for_paper("1812.01054")
get_code_for_paper("1812.01054")
have("1812.01054")

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

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

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

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

Connect an agent — have() is free.