SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1909.04630 · 2019

Meta-Learning with Implicit Gradients

arXiv · PDF · Open in the Atlas

Code that ran

27 of 36 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (4 of them constructed an object rather than computing a result; 3 honoured the contract we drafted, 1 violated it and 4 have no contract verdict; 19 failures of our instrument; 9 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/1909.04630.json · badge: /api/ran/1909.04630.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
aravindr93/imaml_dev canonical (classifier label)
classifier basis: classifier_2025
7 ran · 0 no recorded run
dbaranchuk/memory-efficient-maml extension (classifier label)
classifier basis: classifier_2025
8 ran · 4 no recorded run
prolearner/hypertorch reimplementation (classifier label)
classifier basis: classifier_2025
6 ran · 0 no recorded run
spiglerg/pyMeta reimplementation (classifier label)
classifier basis: classifier_2025
4 ran · 5 no recorded run
prolearner/hypergrad alias (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
bojianhou/oagd application (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
ClipGradNorm Ran
ran on a synthesized input · constructed an object; no result was computed
dbaranchuk/memory-efficient-maml/torch_maml/maml.py
code served (permissive licence) · get_code("9cf41b1fd2f938db")
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, ClipGradNorm: 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

torch.manual_seed(0)

# ClipGradNorm is a custom autograd Function that:
# 1. forward(): takes *inputs where the last element is max_norm (a scalar tensor)
#    returns all inputs except the last one
# 2. backward(): takes *grad_outputs, clips them by global norm, returns grad_inputs + (None,)

# We need to construct inputs for the forward pass
# The last input should be a scalar tensor representing max_norm
# The previous inputs should be tensors that will have gradients

tensor1 = torch.randn(2, 4, requires_grad=True)
tensor2 = torch.randn(2, 3, requires_grad=True)
max_norm_tensor = torch.tensor(1.0)  # scalar tensor for max_norm

# Create inputs tuple: all tensors + max_norm at the end
inputs = (tensor1, tensor2, max_norm_tensor)

ARGS = {
    "inputs": inputs
}
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 ClipGradNorm — 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 ClipGradNorm 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
IngraphGradientDescent Ran
ran on a synthesized input · constructed an object; no result was computed
dbaranchuk/memory-efficient-maml/torch_maml/maml.py
code served (permissive licence) · get_code("15ad46d31a457fbd")
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, IngraphGradientDescent: 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)

# Create a simple model for testing
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

# Instantiate the model
model = SimpleModel()

# Create sample data
x = torch.randn(2, 4)
y = torch.randn(2, 3)

# Define the ARGS dictionary for IngraphGradientDescent.__init__
ARGS = {
    'learning_rate': 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 IngraphGradientDescent — 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 IngraphGradientDescent 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
Learner Ran
ran on a synthesized input · constructed an object; no result was computed
aravindr93/imaml_dev/implicit_maml/learner_model.py
code served (permissive licence) · get_code("973d52f05dd6e23a")
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, Learner: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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)

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

model = SimpleModel()

# Create a loss function
loss_function = nn.MSELoss()

# Build arguments dict
ARGS = {
    'model': model,
    'loss_function': loss_function,
    'inner_lr': 0.001,
    'outer_lr': 0.01,
    'GPU': False,
    'inner_alg': 'gradient',
    'outer_alg': 'adam'
}
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 Learner — 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 Learner 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
TaskAsSequenceOfTasks Ran
ran on a synthesized input · constructed an object; no result was computed
spiglerg/pyMeta/pyMeta/metalearners/implicit_maml.py
pointer only (licence: NONE) · get_code("50268c702c3160f7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, spiglerg/pyMeta 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.

copy_and_replace Ran
ran; our contract draft was wrong, not the code
dbaranchuk/memory-efficient-maml/torch_maml/maml.py
code served (permissive licence) · get_code("90253eecd694ad99")
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
import torch.nn as nn
from copy import deepcopy

torch.manual_seed(0)

# Create a simple object to be used in replacement
class SimpleObject:
    def __init__(self, value):
        self.value = value

# Create test objects
original_obj = SimpleObject(42)
old_obj = SimpleObject(10)
new_obj = SimpleObject(20)
do_not_copy_obj = SimpleObject(30)

# Create a nested structure to demonstrate copying
original = {
    'tensor': torch.randn(2, 4),
    'list': [1, 2, 3, old_obj],
    'nested': {
        'value': old_obj,
        'shared': do_not_copy_obj
    },
    'object': original_obj
}

# Define arguments for copy_and_replace function
ARGS = {
    'original': original,
    'replace': {old_obj: new_obj},
    'do_not_copy': [do_not_copy_obj]
}
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
disable_batchnorm_stats Ran
ran; our contract draft was wrong, not the code
dbaranchuk/memory-efficient-maml/torch_maml/maml.py
code served (permissive licence) · get_code("ad022c385193f969")
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 _GeneratorContextManager. 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)

# Create a model with BatchNorm layers
model = nn.Sequential(
    nn.Linear(4, 8),
    nn.BatchNorm1d(8),
    nn.ReLU(),
    nn.Linear(8, 3),
    nn.BatchNorm1d(3)
)

# Set model to training mode (required by the function's assertion)
model.train()

ARGS = {
    "model": model
}
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 _GeneratorContextManager — a _GeneratorContextManager output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a _GeneratorContextManager 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
f1 Ran
ran, honoured the contract we drafted
spiglerg/pyMeta/pyMeta/metalearners/implicit_maml.py
pointer only (licence: NONE) · get_code("878503c8b4732592")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, spiglerg/pyMeta 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.

f2 Ran
ran; our contract draft was wrong, not the code
spiglerg/pyMeta/pyMeta/metalearners/implicit_maml.py
pointer only (licence: NONE) · get_code("63a920c05cd66bfd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, spiglerg/pyMeta 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.

fixed_point Ran
ran; our contract draft was wrong, not the code
prolearner/hypertorch/hypergrad/hypergradients.py
code served (permissive licence) · get_code("a283594886b8397a")
How it ran

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

torch.manual_seed(0)

# Create simple parameters and hyperparameters
# params: output of inner solver (e.g., model weights)
params = [
    torch.randn(4, 3, requires_grad=True),
    torch.randn(3, requires_grad=True)
]

# hparams: outer variables/hyperparameters that need gradients
hparams = [
    torch.randn(2, requires_grad=True),
    torch.randn(5, requires_grad=True)
]

# K: maximum number of fixed point iterations
K = 3

# fp_map: fixed point map defining the inner problem
# Takes params and hparams, returns updated params (same structure)
def fp_map(params: List[Tensor], hparams: List[Tensor]) -> List[Tensor]:
    # Simple fixed point map: apply some transformation involving hparams
    # Must return list of tensors with same shapes as params
    p0 = params[0] - 0.1 * params[0] + 0.01 * hparams[0].sum()
    p1 = params[1] - 0.1 * params[1] + 0.01 * hparams[1].sum()
    return [p0, p1]

# outer_loss: computes outer objective from params and hparams
def outer_loss(params: List[Tensor], hparams: List[Tensor]) -> Tensor:
    # Simple outer loss combining params and hparams
    loss = (params[0] ** 2).sum() + (params[1] ** 2).sum()
    loss = loss + 0.1 * (hparams[0] ** 2).sum() + 0.1 * (hparams[1] ** 2).sum()
    return loss

# tol: tolerance for early stopping
tol = 1e-10

# set_grad: whether to set .grad on hparams
set_grad = True

# stochastic: whether fp_map is stochastic
stochastic = False

ARGS = {
    'params': params,
    'hparams': hparams,
    'K': K,
    'fp_map': fp_map,
    'outer_loss': outer_loss,
    'tol': tol,
    'set_grad': set_grad,
    'stochastic': stochastic
}
Setup block drafted by
a language model, Claude Sonnet 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 list — a list 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
fixed_point Ran
ran; our contract draft was wrong, not the code
prolearner/hypergrad/hypergrad/hypergradients.py
code served (permissive licence) · get_code("1248bd4de1408eff")
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 list. 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)

# Create small parameter tensors
params = [
    torch.randn(4, 3, requires_grad=True),
    torch.randn(3, 2, requires_grad=True)
]

# Create small hyperparameter tensors
hparams = [
    torch.randn(2, requires_grad=True),
    torch.randn(1, requires_grad=True)
]

# Define a fixed point map that takes params and hparams and returns updated params
def fp_map(params_list, hparams_list):
    # Simple fixed point map: apply a linear transformation
    result = []
    for p in params_list:
        # Use hparams to scale the parameters slightly
        scaled = p * (1.0 + hparams_list[0].mean() * 0.1)
        result.append(scaled)
    return result

# Define an outer loss function
def outer_loss(params_list, hparams_list):
    # Simple loss: sum of squared parameters weighted by hparams
    loss = torch.tensor(0.0, requires_grad=True)
    for p in params_list:
        loss = loss + (p ** 2).sum()
    # Weight by hparams
    for h in hparams_list:
        loss = loss + (h ** 2).sum()
    return loss

# Build the ARGS dictionary
ARGS = {
    'params': params,
    'hparams': hparams,
    'K': 5,
    'fp_map': fp_map,
    'outer_loss': outer_loss,
    'tol': 1e-10,
    'set_grad': True,
    'stochastic': False
}
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 list — a list 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
fixed_point Ran
ran; our contract draft was wrong, not the code
bojianhou/oagd/Meta-Learning/hypergrad/hypergradients.py
pointer only (licence: NONE) · get_code("ce8a310ec44f2617")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, bojianhou/oagd 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.

get_cnn_omniglot Ran
ran; our contract draft was wrong, not the code
prolearner/hypertorch/examples/iMAML.py
code served (permissive licence) · get_code("2b7ea8d2c1a114db")
How it ran

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

torch.manual_seed(0)

# The function get_cnn_omniglot takes two parameters:
# - hidden_size: an integer for the number of hidden units in conv layers
# - n_classes: an integer for the number of output classes

hidden_size = 8
n_classes = 5

ARGS = {
    'hidden_size': hidden_size,
    'n_classes': n_classes
}
Setup block drafted by
a language model, Claude Sonnet 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 Sequential — a Sequential 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_updated_model Ran
ran; our contract draft was wrong, not the code
dbaranchuk/memory-efficient-maml/torch_maml/maml.py
code served (permissive licence) · get_code("79cbcc7d66c3e96b")
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 SimpleModel. 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)

# Create a simple model
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 1)
    
    def forward(self, x):
        x = torch.relu(self.linear1(x))
        x = self.linear2(x)
        return x

model = SimpleModel()

# Create input and target tensors
x = torch.randn(2, 4)
target = torch.randn(2, 1)

# Compute loss
output = model(x)
loss = nn.MSELoss()(output, target)

# Alternative: pre-computed gradients
parameters = list(model.parameters())
gradients = torch.autograd.grad(loss, parameters, create_graph=True, allow_unused=False)

ARGS = {
    "model": model,
    "loss": loss,
    "gradients": None,
    "parameters": None,
    "detach": False,
    "learning_rate": 0.1,
    "allow_unused": False,
    "max_grad_grad_norm": None,
}
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 SimpleModel — a SimpleModel output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleModel 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
inner_loop Ran
ran; our contract draft was wrong, not the code
prolearner/hypertorch/examples/iMAML.py
code served (permissive licence) · get_code("67807e9ca0f086f6")
How it ran

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

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a simple optimizer class that matches the interface used in inner_loop
class SimpleOptimizer:
    def __init__(self):
        self.curr_loss = torch.tensor(0.5)
    
    def get_opt_params(self, params):
        # Return the params as-is or a copy
        if isinstance(params, dict):
            return {k: v.clone() if isinstance(v, torch.Tensor) else v for k, v in params.items()}
        elif isinstance(params, torch.Tensor):
            return params.clone()
        return params
    
    def __call__(self, params, hparams, create_graph=False):
        # Simulate an optimization step
        # Update curr_loss to simulate progress
        self.curr_loss = self.curr_loss * 0.9
        
        if isinstance(params, dict):
            new_params = {}
            for k, v in params.items():
                if isinstance(v, torch.Tensor):
                    # Simple gradient descent-like update
                    new_params[k] = v - 0.01 * torch.randn_like(v)
                else:
                    new_params[k] = v
            return new_params
        elif isinstance(params, torch.Tensor):
            return params - 0.01 * torch.randn_like(params)
        return params

# Create hparams (hyperparameters) - can be a dict or simple object
hparams = {
    'lr': 0.01,
    'momentum': 0.9
}

# Create params - typically model parameters
params = {
    'weight': torch.randn(4, 3),
    'bias': torch.randn(3)
}

# Create optimizer instance
optim = SimpleOptimizer()

# Number of steps
n_steps = 5

# Log interval
log_interval = 2

# Create graph flag
create_graph = False

ARGS = {
    'hparams': hparams,
    'params': params,
    'optim': optim,
    'n_steps': n_steps,
    'log_interval': log_interval,
    'create_graph': create_graph
}
Setup block drafted by
a language model, Claude Sonnet 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 list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
is_namedtuple Ran
ran, violated the contract we drafted
dbaranchuk/memory-efficient-maml/torch_maml/maml.py
code served (permissive licence) · get_code("639811fcfbb1e7a8")
How it ran

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

from collections import namedtuple

# Create a valid namedtuple instance
Point = namedtuple('Point', ['x', 'y'])
valid_namedtuple = Point(1, 2)

# Create an invalid namedtuple-like object (regular tuple)
regular_tuple = (1, 2)

# Create another invalid object (regular class instance)
class RegularClass:
    pass

regular_instance = RegularClass()

# The function takes a single parameter 'x' which can be any object
# We'll test it with a valid namedtuple instance
ARGS = {
    'x': valid_namedtuple
}
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 bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
make_conv_network Ran
ran; our contract draft was wrong, not the code
aravindr93/imaml_dev/implicit_maml/learner_model.py
code served (permissive licence) · get_code("706bb24c4aec6c01")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Sequential. 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 make_conv_network takes:
# - in_channels: number of input channels for the first conv layer
# - out_dim: output dimension for the final linear layer
# - task: string, either 'Omniglot' or 'MiniImageNet'
# - filter_size: number of filters (not used in Omniglot path)

# For Omniglot task (which is implemented), we need:
# - in_channels: typically 1 for grayscale images
# - out_dim: number of output classes
# - task: 'Omniglot'
# - filter_size: any value (not used in Omniglot path)

ARGS = {
    'in_channels': 1,
    'out_dim': 5,
    'task': 'Omniglot',
    'filter_size': 32
}
Setup block drafted by
a language model, Claude Sonnet 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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
make_fc_network Ran
ran; our contract draft was wrong, not the code
aravindr93/imaml_dev/implicit_maml/learner_model.py
code served (permissive licence) · get_code("7f3e1e88acd582cb")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Sequential. 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_dim': 5,
    'out_dim': 3,
    'hidden_sizes': (8, 6),
    'float16': False
}
Setup block drafted by
a language model, Claude Sonnet 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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
nested_flatten Ran
ran; our contract draft was wrong, not the code
dbaranchuk/memory-efficient-maml/torch_maml/maml.py
code served (permissive licence) · get_code("ef358865b0254efe")
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 generator. 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)

# The function nested_flatten takes a single parameter 't' which can be
# a nested structure of lists, tuples, dicts, or scalar values.
# It recursively flattens them into an iterator of scalar values.

# Test with a deeply nested structure containing various types
t = {
    "a": [1, 2, {"nested": [3, 4]}],
    "b": (5, [6, 7]),
    "c": 8
}

ARGS = {
    "t": t
}
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 generator — a generator output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a generator 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
nested_pack Ran
ran; our contract draft was wrong, not the code
dbaranchuk/memory-efficient-maml/torch_maml/maml.py
code served (permissive licence) · get_code("eabcf3817110a345")
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 Point. 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.

from collections import namedtuple
import torch

torch.manual_seed(0)

# Create a simple namedtuple for testing
Point = namedtuple('Point', ['x', 'y'])

# Create flat list with various types of values
flat = [
    torch.tensor([1.0, 2.0, 3.0, 4.0]),
    torch.tensor([5.0, 6.0, 7.0, 8.0]),
    torch.tensor([9.0, 10.0, 11.0, 12.0]),
    torch.tensor([13.0, 14.0, 15.0, 16.0]),
    torch.tensor([17.0, 18.0, 19.0, 20.0]),
    42,
    "hello"
]

# Create a nested structure to match against
structure = Point(
    x=[
        torch.zeros(4),
        {'a': torch.zeros(4), 'b': torch.zeros(4)}
    ],
    y=(torch.zeros(4), 42, "test")
)

ARGS = {
    'flat': flat,
    'structure': structure
}
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 Point — a Point 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
reverse Ran
ran; our contract draft was wrong, not the code
prolearner/hypertorch/hypergrad/hypergradients.py
code served (permissive licence) · get_code("0d5e60bd446341fb")
How it ran

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

torch.manual_seed(0)

# Create a simple inner problem: 2 parameters of different sizes
param1 = torch.randn(3, 2, requires_grad=True)
param2 = torch.randn(4, requires_grad=True)

# Create hyperparameters (outer variables)
hparam1 = torch.randn(3, 2, requires_grad=True)
hparam2 = torch.randn(4, requires_grad=True)

# Create a history of 3 inner iterates (initial + 2 updates)
params_history = [
    [param1.clone().detach(), param2.clone().detach()],
    [param1.clone().detach() + 0.1, param2.clone().detach() + 0.1],
    [param1.clone().detach() + 0.2, param2.clone().detach() + 0.2],
]

hparams = [hparam1, hparam2]

# Define update maps: each takes params and hparams, returns updated params
def update_map_1(params, hparams):
    # Simple update: params + learning_rate * hparams
    lr = 0.1
    return [params[0] + lr * hparams[0], params[1] + lr * hparams[1]]

def update_map_2(params, hparams):
    # Another simple update
    lr = 0.05
    return [params[0] + lr * hparams[0], params[1] + lr * hparams[1]]

update_map_history = [update_map_1, update_map_2]

# Define outer loss: takes final params and hparams, returns scalar
def outer_loss(params, hparams):
    # Simple outer loss: sum of squared norms
    loss = torch.sum(params[0] ** 2) + torch.sum(params[1] ** 2)
    loss = loss + 0.1 * (torch.sum(hparams[0] ** 2) + torch.sum(hparams[1] ** 2))
    return loss

ARGS = {
    'params_history': params_history,
    'hparams': hparams,
    'update_map_history': update_map_history,
    'outer_loss': outer_loss,
    'set_grad': True
}
Setup block drafted by
a language model, Claude Sonnet 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 list — a list 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
reverse_unroll Ran
ran; our contract draft was wrong, not the code
prolearner/hypertorch/hypergrad/hypergradients.py
code served (permissive licence) · get_code("729450e798657a96")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned 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
from torch import Tensor
from typing import List, Callable

torch.manual_seed(0)

# Create a simple inner solver that produces params depending on hparams
# We'll simulate this by creating params that are computed from hparams
hparams = [
    torch.randn(3, 4, requires_grad=True),
    torch.randn(5, requires_grad=True)
]

# Simulate an inner solver output: params that depend on hparams in the computation graph
# For example, params could be the result of some optimization that depends on hparams
params = [
    hparams[0] * 2.0 + 1.0,  # This creates a dependency on hparams[0]
    hparams[1].sum().expand(6) * 0.5  # This creates a dependency on hparams[1]
]

# Define outer_loss function that takes params and hparams
def outer_loss(params: List[Tensor], hparams: List[Tensor]) -> Tensor:
    # A simple outer loss that uses both params and hparams
    loss = (params[0] ** 2).sum() + (params[1] ** 2).sum()
    loss = loss + (hparams[0] ** 2).sum() * 0.1
    loss = loss + (hparams[1] ** 2).sum() * 0.1
    return loss

set_grad = True

ARGS = {
    'params': params,
    'hparams': hparams,
    'outer_loss': outer_loss,
    'set_grad': set_grad
}
Setup block drafted by
a language model, Claude Sonnet 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 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
steepest_descent Ran
ran; our contract draft was wrong, not the code
spiglerg/pyMeta/pyMeta/metalearners/implicit_maml.py
pointer only (licence: NONE) · get_code("02e3849d39eb6ee7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, spiglerg/pyMeta 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.

stoch_AID Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
prolearner/hypertorch/hypergrad/hypergradients.py
code served (permissive licence) · get_code("38aac91c527d23aa")
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 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
from torch.optim import SGD

torch.manual_seed(0)

# Define small tensors for params and hparams
params = [torch.randn(2, 4, requires_grad=True) for _ in range(2)]
hparams = [torch.randn(3, requires_grad=True) for _ in range(2)]

# Define a simple outer loss function
def outer_loss(params, hparams):
    # Simple quadratic loss combining params and hparams
    loss = sum((p ** 2).sum() for p in params) + sum((h ** 2).sum() for h in hparams)
    return loss

# Define a simple fixed point map (fp_map)
def fp_map(params, hparams):
    # Returns updated params based on hparams
    return [p * 0.9 + h.mean() * 0.1 for p, h in zip(params, hparams)]

# Define a simple inner loss function
def inner_loss(params, hparams):
    # Simple loss for inner problem
    loss = sum((p ** 2).sum() for p in params) + sum((h ** 2).sum() for h in hparams)
    return loss

# Define optim_build function that returns optimizer and scheduler
def optim_build(params, **opt_params):
    optimizer = SGD(params, lr=opt_params.get('lr', 0.01))
    scheduler = None  # Simple case with no scheduler
    return optimizer, scheduler

# Define opt_params
opt_params = {'lr': 0.01}

# Starting point for linear system
linsys_start = [torch.zeros_like(p) for p in params]

ARGS = {
    'params': params,
    'hparams': hparams,
    'outer_loss': outer_loss,
    'K': 2,
    'J_inner': 1,
    'J_outer': 1,
    'fp_map': fp_map,
    'inner_loss': None,
    'linsys_start': linsys_start,
    'stoch_outer': False,
    'stoch_inner': False,
    'optim_build': optim_build,
    'opt_params': opt_params,
    'set_grad': True,
    'verbose': False,
}
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 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
to_cuda Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
aravindr93/imaml_dev/implicit_maml/learner_model.py
code served (permissive licence) · get_code("b6491973ad8364e5")
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; no output shape is stated. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 numpy as np

torch.manual_seed(0)

# The function to_cuda takes one parameter 'x' which can be:
# 1. A torch tensor with a .cuda() method, OR
# 2. A numpy array that needs to be converted to a torch tensor

# Test case 1: torch tensor
test_tensor = torch.randn(2, 4)

# Test case 2: numpy array
test_numpy = np.random.randn(2, 4).astype(np.float32)

# We'll use the torch tensor as the primary test case
ARGS = {
    "x": test_tensor
}
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 Tensor, ndim 2, dtype family float — no output shape is stated: observe_signature.py could not observe it (call:TypeError)
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
to_device Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
aravindr93/imaml_dev/implicit_maml/learner_model.py
code served (permissive licence) · get_code("902012dfacde484f")
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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import torch

torch.manual_seed(0)

# Create test data - a small numpy array
test_array = np.array([[1.0, 2.0, 3.0, 4.0],
                        [5.0, 6.0, 7.0, 8.0]], dtype=np.float32)

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

ARGS = {
    'x': test_array,
    'GPU': False
}
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 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
to_numpy Ran
ran, honoured the contract we drafted
aravindr93/imaml_dev/implicit_maml/learner_model.py
code served (permissive licence) · get_code("4e11fa374508129f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family 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
import numpy as np

torch.manual_seed(0)

# Test case 1: numpy array
numpy_array = np.array([1, 2, 3, 4])

# Test case 2: torch tensor on CPU
torch_tensor = torch.randn(2, 4)

# We'll use the torch tensor as the primary test case
x = torch_tensor

ARGS = {
    "x": x
}
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 ndarray, 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
to_tensor Ran
ran, honoured the contract we drafted
aravindr93/imaml_dev/implicit_maml/learner_model.py
code served (permissive licence) · get_code("c5c66678ce4d5e06")
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 numpy as np
import torch

torch.manual_seed(0)

# Test with numpy array
numpy_array = np.array([[1.0, 2.0, 3.0, 4.0],
                        [5.0, 6.0, 7.0, 8.0]], dtype=np.float32)

ARGS = {
    'x': numpy_array
}
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 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
GradBasedMetaLearner Not yet run
unverified (harvested, no recorded run)
spiglerg/pyMeta/pyMeta/metalearners/implicit_maml.py
pointer only (licence: NONE) · get_code("7e872f029aaf816a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, spiglerg/pyMeta 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. No invocation recorded.

GradientCheckpointMAML Not yet run
unverified (harvested, no recorded run)
dbaranchuk/memory-efficient-maml/torch_maml/maml.py
code served (permissive licence) · get_code("6901e9808bfb8df0")
How it ran

no invocation recorded.

Hvp Not yet run
unverified (harvested, no recorded run)
spiglerg/pyMeta/pyMeta/metalearners/implicit_maml.py
pointer only (licence: NONE) · get_code("b665a79811957562")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, spiglerg/pyMeta 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. No invocation recorded.

NaiveMAML Not yet run
unverified (harvested, no recorded run)
dbaranchuk/memory-efficient-maml/torch_maml/maml.py
code served (permissive licence) · get_code("3c24eaee08990b03")
How it ran

no invocation recorded.

Task Not yet run
unverified (harvested, no recorded run)
spiglerg/pyMeta/pyMeta/metalearners/implicit_maml.py
pointer only (licence: NONE) · get_code("ca574f805c91d123")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, spiglerg/pyMeta 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. No invocation recorded.

_nested_pack Not yet run
unverified (harvested, no recorded run)
dbaranchuk/memory-efficient-maml/torch_maml/maml.py
code served (permissive licence) · get_code("7f93a8de5e9255d0")
How it ran

no invocation recorded.

do_not_copy Not yet run
unverified (harvested, no recorded run)
dbaranchuk/memory-efficient-maml/torch_maml/maml.py
code served (permissive licence) · get_code("866ceb16f029bf5d")
How it ran

no invocation recorded.

grads_on_batch Not yet run
unverified (harvested, no recorded run)
spiglerg/pyMeta/pyMeta/metalearners/implicit_maml.py
pointer only (licence: NONE) · get_code("04a97a435d9b70d9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, spiglerg/pyMeta 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. No invocation recorded.

iMAMLMetaLearner Not yet run
unverified (harvested, no recorded run)
spiglerg/pyMeta/pyMeta/metalearners/implicit_maml.py
pointer only (licence: NONE) · get_code("d1abea6ef957cede")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, spiglerg/pyMeta 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. No invocation recorded.

Also present in other papers' code

Of 36 samples lifted from this paper's linked repositories, 36 carry a function identity and 0 do not. Of the 35 distinct functions with an identity, 11 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 11 later) and 24 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
fixed_point
brick of this paper's assembly: entry
4 other papers
4 later
2006.16218 (2020-06)
On the Iteration Complexity of Hypergradient Computation
2010.07962 (2020-10)
Bilevel Optimization: Convergence Analysis and Enhanced Design
2106.04692 (2021-06)
Provably Faster Algorithms for Bilevel Optimization
and 1 more not named here
reverse 3 other papers
3 later
2006.16218 (2020-06)
On the Iteration Complexity of Hypergradient Computation
2010.07962 (2020-10)
Bilevel Optimization: Convergence Analysis and Enhanced Design
2106.04692 (2021-06)
Provably Faster Algorithms for Bilevel Optimization
reverse_unroll 3 other papers
3 later
2006.16218 (2020-06)
On the Iteration Complexity of Hypergradient Computation
2010.07962 (2020-10)
Bilevel Optimization: Convergence Analysis and Enhanced Design
2106.04692 (2021-06)
Provably Faster Algorithms for Bilevel Optimization
is_namedtuple
brick of this paper's assembly: helper
2 other papers
2 later
1911.00176 (2019-11)
Sequence Modeling with Unconstrained Generation Order
2312.17238 (2023-12)
Fast Inference of Mixture-of-Experts Language Models with Offloading
nested_pack
brick of this paper's assembly: helper
2 other papers
2 later
1911.00176 (2019-11)
Sequence Modeling with Unconstrained Generation Order
2312.17238 (2023-12)
Fast Inference of Mixture-of-Experts Language Models with Offloading
copy_and_replace
brick of this paper's assembly: helper
1 other paper
1 later
2004.00345 (2020-04)
Editable Neural Networks
get_cnn_omniglot 1 other paper
1 later
2006.14606 (2020-06)
Global Convergence and Generalization Bound of Gradient-Based Meta-Learning with Deep Neural Nets
inner_loop 1 other paper
1 later
2006.14606 (2020-06)
Global Convergence and Generalization Bound of Gradient-Based Meta-Learning with Deep Neural Nets
to_cuda
brick of this paper's assembly: helper
1 other paper
1 later
2201.10777 (2022-01)
Meta-learning Spiking Neural Networks with Surrogate Gradient Descent
to_numpy
brick of this paper's assembly: helper
1 other paper
1 later
2601.21048 (2026-01)
Test-Time Adaptation for Unsupervised Combinatorial Optimization
to_tensor
brick of this paper's assembly: helper
1 other paper
1 later
2601.21048 (2026-01)
Test-Time Adaptation for Unsupervised Combinatorial Optimization

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

A core capability of intelligent systems is the ability to quickly learn new tasks by drawing on prior experience. Gradient (or optimization) based meta-learning has recently emerged as an effective approach for few-shot learning. In this formulation, meta-parameters are learned in the outer loop, while task-specific models are learned in the inner-loop, by using only a small amount of data from the current task. A key challenge in scaling these approaches is the need to differentiate through the inner loop learning process, which can impose considerable computational and memory burdens. By drawing upon implicit differentiation, we develop the implicit MAML algorithm, which depends only on the solution to the inner level optimization and not the path taken by the inner loop optimizer. This effectively decouples the meta-gradient computation from the choice of inner loop optimizer. As a result, our approach is agnostic to the choice of inner loop optimizer and can gracefully handle many gradient steps without vanishing gradients or memory constraints. Theoretically, we prove that implicit MAML can compute accurate meta-gradients with a memory footprint that is, up to small constant factors, no more than that which is required to compute a single inner loop gradient and at no overall increase in the total computational cost. Experimentally, we show that these benefits of implicit MAML translate into empirical gains on few-shot image recognition benchmarks.

For agents

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

get_harvested_code_for_paper("1909.04630")
get_code_for_paper("1909.04630")
have("1909.04630")

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

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

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

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

Connect an agent — have() is free.