SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1807.08912 · 2018

Meta-Learning Priors for Efficient Online Bayesian Regression

arXiv · PDF · Open in the Atlas

Code that ran

2 of 5 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 1 has no contract verdict; 1 failure of our instrument; 3 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/1807.08912.json · badge: /api/ran/1807.08912.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
StanfordASL/ALPaCA canonical (classifier label)
classifier basis: census
2 ran · 3 no recorded run
FunctionStatusWhere it lives
get_images Ran
ran; our contract draft was wrong, not the code
StanfordASL/ALPaCA/maml/utils.py
code served (permissive licence) · get_code("980919fe451414a1")
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 list, ndim 2, 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 os
import random
import tempfile
import shutil

# Create temporary directories with dummy image files
temp_dir = tempfile.mkdtemp()

# Create subdirectories to simulate image paths
path1 = os.path.join(temp_dir, "class_1")
path2 = os.path.join(temp_dir, "class_2")
os.makedirs(path1, exist_ok=True)
os.makedirs(path2, exist_ok=True)

# Create dummy image files
for i in range(3):
    open(os.path.join(path1, f"image_{i}.jpg"), 'w').close()
    open(os.path.join(path2, f"image_{i}.jpg"), 'w').close()

# Set up arguments for get_images function
ARGS = {
    'paths': [path1, path2],
    'labels': [0, 1],
    'nb_samples': 2,
    'shuffle': True
}
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 list, ndim 2, 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
sampleMN Ran
ran on a synthesized input
StanfordASL/ALPaCA/main/dataViz.py
code served (permissive licence) · get_code("862681552bf70681")
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 (3, 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

# Analyze the function:
# - K: used as K.T, then reshaped and returned with .T, so it's a 2D array
# - L_inv: used in np.kron(Sig, L_inv), so it's a 2D array (matrix)
# - Sig: used in np.kron(Sig, L_inv), so it's a 2D array (matrix)
# The function samples from a multivariate normal and reshapes it

np.random.seed(0)

# Create small distinct-sized matrices
# K will be 3x4 (so K.T is 4x3, mean is flattened to 12 elements)
K = np.random.randn(3, 4)

# L_inv will be 2x2
L_inv = np.random.randn(2, 2)

# Sig will be 2x2
Sig = np.random.randn(2, 2)

# Verify shapes work with np.kron
# np.kron(Sig, L_inv) will produce a 4x4 matrix
# mean will be 12 elements
# cov will be 4x4, but mean is 12-dimensional - this will fail at runtime
# We need to adjust so that np.kron(Sig, L_inv) produces a 12x12 matrix

# If K is 3x4, then K.T is 4x3, flattened mean is 12D
# np.kron(Sig, L_inv) should be 12x12
# If Sig is 3x3 and L_inv is 4x4, then kron gives 12x12

K = np.random.randn(3, 4)
L_inv = np.random.randn(4, 4)
Sig = np.random.randn(3, 3)

ARGS = {
    "K": K,
    "L_inv": L_inv,
    "Sig": Sig
}
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 (3, 4) — shape (3, 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
batch_2d_jacobian Not yet run
unverified (harvested, no recorded run)
StanfordASL/ALPaCA/main/alpaca.py
code served (permissive licence) · get_code("3a5e3f59e2505adf")
How it ran

no invocation recorded.

batch_matmul Not yet run
unverified (harvested, no recorded run)
StanfordASL/ALPaCA/main/alpaca.py
code served (permissive licence) · get_code("fc23d0729287acca")
How it ran

no invocation recorded.

batch_quadform Not yet run
unverified (harvested, no recorded run)
StanfordASL/ALPaCA/main/alpaca.py
code served (permissive licence) · get_code("7aaf1834fd048170")
How it ran

no invocation recorded.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 later) and 4 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
get_images 3 other papers
2 dated earlier, 1 later
1703.03400 (2017-03)
Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networks
1806.03836 (2018-06)
Bayesian Model-Agnostic Meta-Learning
2105.05757 (2021-05)
Exploring the Similarity of Representations in Model-Agnostic Meta-Learning

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

Gaussian Process (GP) regression has seen widespread use in robotics due to its generality, simplicity of use, and the utility of Bayesian predictions. The predominant implementation of GP regression is a nonparameteric kernel-based approach, as it enables fitting of arbitrary nonlinear functions. However, this approach suffers from two main drawbacks: (1) it is computationally inefficient, as computation scales poorly with the number of samples; and (2) it can be data inefficient, as encoding prior knowledge that can aid the model through the choice of kernel and associated hyperparameters is often challenging and unintuitive. In this work, we propose ALPaCA, an algorithm for efficient Bayesian regression which addresses these issues. ALPaCA uses a dataset of sample functions to learn a domain-specific, finite-dimensional feature encoding, as well as a prior over the associated weights, such that Bayesian linear regression in this feature space yields accurate online predictions of the posterior predictive density. These features are neural networks, which are trained via a meta-learning (or "learning-to-learn") approach. ALPaCA extracts all prior information directly from the dataset, rather than restricting prior information to the choice of kernel hyperparameters. Furthermore, by operating in the weight space, it substantially reduces sample complexity. We investigate the performance of ALPaCA on two simple regression problems, two simulated robotic systems, and on a lane-change driving task performed by humans. We find our approach outperforms kernel-based GP regression, as well as state of the art meta-learning approaches, thereby providing a promising plug-in tool for many regression tasks in robotics where scalability and data-efficiency are important.

For agents

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

get_harvested_code_for_paper("1807.08912")
get_code_for_paper("1807.08912")
have("1807.08912")

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

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

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

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

Connect an agent — have() is free.