SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2205.10772 · NeurIPS · 2022

Fast Instrument Learning with Faster Rates

Jun Zhu, Yuhao Zhou, Ziyu Wang

arXiv · PDF · Open in the Atlas

Code that ran

11 of 18 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 10 have no contract verdict; 1 failure of our instrument; 7 no recorded run), measured 2026-11-23; 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/2205.10772.json · badge: /api/ran/2205.10772.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
meta-inf/fil canonical (classifier label)
classifier basis not recorded on the link
11 ran · 7 no recorded run
FunctionStatusWhere it lives
add_intercept Ran
ran on a synthesized input
meta-inf/fil/utils.py
code served (permissive licence) · get_code("3b5896f3247c3b48")
How it ran

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

import jax.numpy as np

# Create a 2D array with shape (2, 4)
# The function expects a 2D array and will concatenate a column of ones
a = np.array([[1.0, 2.0, 3.0, 4.0],
              [5.0, 6.0, 7.0, 8.0]])

ARGS = {
    "a": a
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 2, dtype family float, shape (2, 5) — shape (2, 5) 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
add_jitter Ran
ran on a synthesized input
meta-inf/fil/iv.py
code served (permissive licence) · get_code("50ff421581969f23")
How it ran

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

import jax.numpy as np

# Create a small symmetric positive definite matrix
# The function computes eigenvalues and adds jitter to the diagonal
A = np.array([
    [4.0, 1.0, 0.5],
    [1.0, 3.0, 0.2],
    [0.5, 0.2, 2.0]
], dtype=np.float32)

jitter_value = 0.1

ARGS = {
    "A": A,
    "jitter": jitter_value
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 2, dtype family float, shape (3, 3) — shape (3, 3) 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_activation Ran
ran on a synthesized input
meta-inf/fil/layers.py
code served (permissive licence) · get_code("42d872c5f623095f")
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 custom_jvp. 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.numpy as jnp
from flax import linen as nn

# Test the function with a simple activation name
ARGS = {
    'a': 'relu'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type custom_jvp — a custom_jvp output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a custom_jvp 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_sqdist Ran
ran on a synthesized input
meta-inf/fil/kernels.py
code served (permissive licence) · get_code("523f9f1e8987c481")
How it ran

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

import jax
import jax.numpy as jnp

# Seed for reproducibility
import numpy as np
np.random.seed(0)

# Create small test arrays
x1 = jnp.array([[1.0, 2.0, 3.0, 4.0],
                  [5.0, 6.0, 7.0, 8.0]])  # shape (2, 4)

x2 = jnp.array([[0.5, 1.5, 2.5, 3.5],
                  [4.5, 5.5, 6.5, 7.5],
                  [8.5, 9.5, 10.5, 11.5]])  # shape (3, 4)

h = jnp.array(1.0)  # scalar bandwidth parameter

ARGS = {
    "x1": x1,
    "x2": x2,
    "h": h,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) 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
load_mnist_realval Ran
ran on a synthesized input
meta-inf/fil/hllt_data/mnist.py
code served (permissive licence) · get_code("34e176c11852baed")
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 os
import gzip
import numpy as onp
import pickle
import tempfile

# Create a temporary directory for the mock dataset
temp_dir = tempfile.mkdtemp()
temp_path = os.path.join(temp_dir, 'mnist.pkl.gz')

# Create a minimal mock MNIST dataset
train_set = (onp.random.rand(100, 784).astype('float32'), onp.random.randint(0, 10, 100))
valid_set = (onp.random.rand(20, 784).astype('float32'), onp.random.randint(0, 10, 20))
test_set = (onp.random.rand(20, 784).astype('float32'), onp.random.randint(0, 10, 20))

# Write the mock dataset to a gzip pickle file
with gzip.open(temp_path, 'wb') as f:
    pickle.dump((train_set, valid_set, test_set), f)

ARGS = {
    'path': temp_path,
    'one_hot': True,
    'dequantify': False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — 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
median_sqdist Ran
ran on a synthesized input
meta-inf/fil/kernels.py
code served (permissive licence) · get_code("52612e4ee1026be2")
How it ran

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

# Analyze the function:
# - x: needs to be indexable with [:n_max], support [:, None, i] and [None, :, i] indexing
#       must have shape[1] accessible (number of dimensions/features)
# - n_max: integer parameter, defaults to 2500
# The function computes median squared distances along each feature dimension

# Create a small JAX array with shape (batch=2, features=4)
x = np.array([
    [1.0, 2.0, 3.0, 4.0],
    [5.0, 6.0, 7.0, 8.0]
])

ARGS = {
    "x": x,
    "n_max": 2500
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 1, dtype family float, shape (4,) — shape (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
parameterize Ran
ran on a synthesized input
meta-inf/fil/layers.py
code served (permissive licence) · get_code("943a9a0d996276a5")
How it ran

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

# Create test data
# For 'sph' manifold: eps should be shape (batch, dim)
# For 'cube' manifold: eps should be shape (batch, dim)
eps_sph = jnp.array([[1.0, 2.0, 3.0, 4.0],
                      [5.0, 6.0, 7.0, 8.0]], dtype=jnp.float32)

eps_cube = jnp.array([[0.1, 0.2, 0.3, 0.4],
                       [0.5, 0.6, 0.7, 0.8]], dtype=jnp.float32)

# Test cases for different manifold types
ARGS = {
    'manif_type': 'sph',
    'eps': eps_sph
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 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
parser Ran
ran; our contract draft was wrong, not the code
meta-inf/fil/exputils.py
code served (permissive licence) · get_code("71234fd59ed06c65")
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 ArgumentParser. 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 argparse

def _get_timestr():
    import datetime
    dt = datetime.datetime.now()
    return '{}-{}-{}-{}'.format(dt.month, dt.day, dt.hour, dt.minute)

def _with_default_args(parser, file_name):
    default_path = '/tmp/{}/last_{}'.format(file_name, _get_timestr())
    parser.add_argument('-dir', default=default_path, type=str)
    parser.add_argument('-resume', dest='resume', action='store_true')
    parser.set_defaults(resume=False)
    parser.add_argument('-production', dest='production', action='store_true')
    parser.set_defaults(production=False)
    return parser

def parser(file_name) -> argparse.ArgumentParser:
    """
    Add arguments needed by the framework
    """
    return _with_default_args(argparse.ArgumentParser(), file_name)

# Setup code
ARGS = {
    'file_name': 'test_model'
}
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 ArgumentParser — a ArgumentParser output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ArgumentParser 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
poly_expand Ran
ran on a synthesized input
meta-inf/fil/kernels.py
code served (permissive licence) · get_code("ad507f3550cd8bda")
How it ran

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

import jax.numpy as np

# Create input tensor with shape (batch_size, 1)
# The function requires inp.shape[-1] == 1
inp = np.array([[2.0], [3.0]], dtype=np.float32)

# Create polynomial expansion degree parameter
k = 3

ARGS = {
    "inp": inp,
    "k": k,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) 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
split_pkey Ran
ran on a synthesized input
meta-inf/fil/utils.py
code served (permissive licence) · get_code("a01b5700cadbf34c")
How it ran

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

import jax
import jax.random

# Create a valid PRNGKey for JAX
key = jax.random.PRNGKey(0)

# Define ARGS dict with all parameters
ARGS = {
    "k": key,
    "num": 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 2, dtype family int, shape (2, 2) — shape (2, 2) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
to_one_hot Ran
ran on a synthesized input
meta-inf/fil/hllt_data/mnist.py
code served (permissive licence) · get_code("e725fda2b58f394d")
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 (5, 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 onp

# x should be a 1-D numpy array of integers
x = onp.array([0, 2, 1, 3, 1])

# depth should be an int representing the number of classes
depth = 4

ARGS = {
    "x": x,
    "depth": depth,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — 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 (5, 4) — shape (5, 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
batched_apply Not yet run
unverified (harvested, no recorded run)
meta-inf/fil/utils.py
code served (permissive licence) · get_code("30fdb3611b786215")
How it ran

no invocation recorded.

compute_prob Not yet run
unverified (harvested, no recorded run)
meta-inf/fil/imq_rf.py
code served (permissive licence) · get_code("9ae008f30647fdde")
How it ran

no invocation recorded.

gen_dgmm_data Not yet run
unverified (harvested, no recorded run)
meta-inf/fil/data.py
code served (permissive licence) · get_code("23fa1c23c02e747d")
How it ran

no invocation recorded.

get_linear_L_sqrt Not yet run
unverified (harvested, no recorded run)
meta-inf/fil/iv.py
code served (permissive licence) · get_code("1c6e3164e7dd7c07")
How it ran

no invocation recorded.

imq_amplitude_frequency_and_probs Not yet run
unverified (harvested, no recorded run)
meta-inf/fil/imq_rf.py
code served (permissive licence) · get_code("2285a8b658fd2dcc")
How it ran

no invocation recorded.

load_image_data Not yet run
unverified (harvested, no recorded run)
meta-inf/fil/data.py
code served (permissive licence) · get_code("bd8539514c038323")
How it ran

no invocation recorded.

preflight Not yet run
unverified (harvested, no recorded run)
meta-inf/fil/exputils.py
code served (permissive licence) · get_code("c6f235974b03ba76")
How it ran

no invocation recorded.

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 distinct functions with an identity, 2 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 2 later) and 16 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
parser 2 other papers
2 later
2403.19381 (2024-03)
On Uncertainty Quantification for Near-Bayes Optimal Algorithms
2406.05213 (2024-06)
On Subjective Uncertainty Quantification and Calibration in Natural Language Generation
preflight 2 other papers
2 later
2403.19381 (2024-03)
On Uncertainty Quantification for Near-Bayes Optimal Algorithms
2406.05213 (2024-06)
On Subjective Uncertainty Quantification and Calibration in Natural Language Generation

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

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

Abstract

We investigate nonlinear instrumental variable (IV) regression given highdimensional instruments. We propose a simple algorithm which combines kernelized IV methods and an arbitrary, adaptive regression algorithm, accessed as a black box. Our algorithm enjoys faster-rate convergence and adapts to the dimensionality of informative latent features, while avoiding an expensive minimax optimization procedure, which has been necessary to establish similar guarantees. It further brings the benefit of flexible machine learning models to quasi-Bayesian uncertainty quantification, likelihood-based model selection, and model averaging. Simulation studies demonstrate the competitive performance of our method.

For agents

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

get_harvested_code_for_paper("2205.10772")
get_code_for_paper("2205.10772")
have("2205.10772")

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

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

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

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

Connect an agent — have() is free.