SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2210.13319 · ICLR · 2023

MARS: Meta-Learning as Score Matching in the Function Space

Jonas Rothfuss, Andreas Krause, Krunoslav Pavasovic

arXiv · PDF · Open in the Atlas

Code that ran

4 of 6 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, 1 violated it and 0 have no contract verdict; 3 failures of our instrument; 2 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/2210.13319.json · badge: /api/ran/2210.13319.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
AGI-Arena/MARS canonical (classifier label)
classifier basis: classifier_2025
2 ran · 1 no recorded run
krunolp/mars canonical (classifier label)
classifier basis: classifier_2025
1 ran · 1 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
FunctionStatusWhere it lives
exists Ran
ran, violated the contract we drafted
AGI-Arena/MARS/MARS/optimizers/mars.py
code served (permissive licence) · get_code("6038e0fc3954038b")
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 bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import math
from torch.optim.optimizer import Optimizer

torch.manual_seed(0)

def exists(val):
    return val is not None

# The function 'exists' takes a single parameter 'val' and checks if it is not None
# We need to provide a value for 'val'

# Test with a non-None value
ARGS = {
    "val": 42
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — 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
get_f Ran
ran; our contract draft was wrong, not the code
krunolp/mars/MARS/modules/score_network/score_network.py
code served (permissive licence) · get_code("c7059fb2b562bebf")
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 Transformed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import jax
import jax.numpy as jnp
import haiku as hk

# Create a small input tensor for the spectral norm function
# The function expects an array-like input that will be passed through SpectralNorm
parameters = jnp.ones((2, 4))  # Small tensor: batch=2, features=4

ARGS = {
    "parameters": parameters,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
haiku, jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Transformed — a Transformed output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Transformed 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
new_gelu Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from aspiaspace/EarthPT
pointer only · get_code("92101b06ecbf1f1e")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

update_fn Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
AGI-Arena/MARS/MARS/optimizers/mars.py
code served (permissive licence) · get_code("2de282511e1a7a18")
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, ndim 3, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import math

torch.manual_seed(0)

# Create small tensors for testing
p = torch.randn(4, 3, requires_grad=True)
grad = torch.randn(4, 3)
exp_avg = torch.zeros(4, 3)
exp_avg_sq = torch.zeros(4, 3)
last_grad = torch.zeros(4, 3)
max_exp_avg_sq = torch.zeros(4, 3)

ARGS = {
    'p': p,
    'grad': grad,
    'exp_avg': exp_avg,
    'exp_avg_sq': exp_avg_sq,
    'lr': 0.001,
    'wd': 0.01,
    'beta1': 0.9,
    'beta2': 0.999,
    'last_grad': last_grad,
    'eps': 1e-8,
    'amsgrad': False,
    'max_exp_avg_sq': max_exp_avg_sq,
    'step': 1,
    'gamma': 0.1,
    'mars_type': 'mars-adamw',
    'is_grad_2d': True,
    'optimize_1d': False,
    'lr_1d_factor': 1.0,
    'betas_1d': (0.9, 0.999),
    'weight_decay_1d': 0.01,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 3, 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
NewtonSchulz Not yet run
unverified (harvested, no recorded run)
AGI-Arena/MARS/MARS/optimizers/mars.py
code served (permissive licence) · get_code("42b6f8e84b53ac68")
How it ran

no invocation recorded.

spectr_norm Not yet run
unverified (harvested, no recorded run)
krunolp/mars/MARS/modules/score_network/score_network.py
code served (permissive licence) · get_code("0e4649395693f712")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 4 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 4 later) and 2 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
exists 486 other papers
116 dated earlier, 9 the same month, 358 later, 1 same year, order not determinable, 2 undated · 78 only as an assembly brick
1603.08155 (2016-03)
Perceptual Losses for Real-Time Style Transfer and Super-Resolution
1611.07004 (2016-11)
Image-to-Image Translation with Conditional Adversarial Networks
1804.04637 (2018-04)
EMBER: An Open Dataset for Training Static PE Malware Machine Learning Models
and 483 more not named here
new_gelu 9 other papers
9 later
2307.03381 (2023-07)
Teaching Arithmetic to Small Transformers
2309.07207 (2023-09)
EarthPT: a time series foundation model for Earth Observation
2403.01801 (2024-03)
COLA: Cross-city Mobility Transformer for Human Trajectory Simulation
and 6 more not named here
NewtonSchulz 1 other paper
1 later
2411.10438 (2024-11)
MARS: Unleashing the Power of Variance Reduction for Training Large Models
update_fn 1 other paper
1 later
2411.10438 (2024-11)
MARS: Unleashing the Power of Variance Reduction for Training Large Models

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

Meta-learning aims to extract useful inductive biases from a set of related datasets. In Bayesian meta-learning, this is typically achieved by constructing a prior distribution over neural network parameters. However, specifying families of computationally viable prior distributions over the high-dimensional neural network parameters is difficult. As a result, existing approaches resort to meta-learning restrictive diagonal Gaussian priors, severely limiting their expressiveness and performance. To circumvent these issues, we approach meta-learning through the lens of functional Bayesian neural network inference, which views the prior as a stochastic process and performs inference in the function space. Specifically, we view the meta-training tasks as samples from the data-generating process and formalize meta-learning as empirically estimating the law of this stochastic process. Our approach can seamlessly acquire and represent complex prior knowledge by meta-learning the score function of the data-generating process marginals instead of parameter space priors. In a comprehensive benchmark, we demonstrate that our method achieves state-of-the-art performance in terms of predictive accuracy and substantial improvements in the quality of uncertainty estimates.

For agents

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

get_harvested_code_for_paper("2210.13319")
get_code_for_paper("2210.13319")
have("2210.13319")

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

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

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

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

Connect an agent — have() is free.