SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.02909 · 2026

Scalable Derivative Gaussian Processes via Exact Gradient Reduction

Matthias Katzfuss, Hyunseok Seung

arXiv · PDF · Open in the Atlas

Code that ran

6 of 9 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 3 no recorded run), measured 2026-11-24; 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/2606.02909.json · badge: /api/ran/2606.02909.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
hseung88/tera canonical (classifier label)
classifier basis: census
6 ran · 3 no recorded run
FunctionStatusWhere it lives
function_covariance Ran
ran; our contract draft was wrong, not the code
hseung88/tera/src/gp_sim_kl/deroos.py
code served (permissive licence) · get_code("1c2d67611de1396b")
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, 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 torch
import math

torch.manual_seed(0)

# Create small tensors with distinct dimension sizes
# X1: shape (2, 4) - 2 samples, 4 dimensions
# X2: shape (3, 4) - 3 samples, 4 dimensions
X1 = torch.randn(2, 4)
X2 = torch.randn(3, 4)

# lengthscale: can be scalar or per-dimension
# Using scalar version (single element tensor)
lengthscale = torch.tensor([1.5])

# outputscale: float
outputscale = 2.0

# kernel: string, either 'rbf' or 'matern52'
kernel = 'rbf'

ARGS = {
    'X1': X1,
    'X2': X2,
    'lengthscale': lengthscale,
    'outputscale': outputscale,
    'kernel': kernel
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 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
get_problem Ran
ran; our contract draft was wrong, not the code
hseung88/tera/src/bo_experiments/benchmarks.py
code served (permissive licence) · get_code("2ab4d3e86172d1ea")
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 SyntheticProblem. 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

torch.manual_seed(0)

ARGS = {
    "name": "ackley_10",
    "device": torch.device("cpu"),
    "dtype": torch.float32,
}
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 SyntheticProblem — a SyntheticProblem output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SyntheticProblem 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
initial_design Ran
ran, honoured the contract we drafted
hseung88/tera/src/bo_experiments/benchmarks.py
code served (permissive licence) · get_code("d1e48973f4f5d7d5")
How it ran

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

import torch

torch.manual_seed(0)

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

torch.manual_seed(0)

# Test case 1: scalar lengthscale
lengthscale_scalar = torch.tensor(2.0)
d_scalar = 4
device_scalar = torch.device('cpu')
dtype_scalar = torch.float32

# Test case 2: vector lengthscale
lengthscale_vector = torch.tensor([1.0, 2.0, 3.0, 4.0])
d_vector = 4
device_vector = torch.device('cpu')
dtype_vector = torch.float32

# Use scalar case for ARGS
ARGS = {
    "lengthscale": lengthscale_scalar,
    "d": d_scalar,
    "device": device_scalar,
    "dtype": dtype_scalar,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 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
k_kp_kpp_from_r Ran
ran; our contract draft was wrong, not the code
hseung88/tera/src/gp_sim_kl/deroos.py
code served (permissive licence) · get_code("d9caefa1bb4a34f4")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 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 a small distance matrix tensor (r parameter)
# The function expects r to be a tensor of squared distances or similar metric
r = torch.tensor([[0.1, 0.5, 1.2, 2.0],
                   [0.3, 0.8, 1.5, 2.5]], dtype=torch.float32)

# kernel parameter - string specifying kernel type
kernel = 'rbf'

# outputscale parameter - a float scaling factor
outputscale = 2.0

ARGS = {
    'r': r,
    'kernel': kernel,
    'outputscale': outputscale
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 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
plot_bo_main_regret Ran
ran; our contract draft was wrong, not the code
hseung88/tera/src/bo_experiments/plotting.py
code served (permissive licence) · get_code("9600a3cb290e1f9d")
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 PosixPath. 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 pandas as pd
import numpy as np
from pathlib import Path
import tempfile

# Create a minimal CSV with the required columns and data structure
def create_test_csv():
    temp_dir = tempfile.gettempdir()
    csv_path = Path(temp_dir) / "test_bo_results.csv"
    
    # Generate test data with the expected structure
    data = []
    benchmarks = ['levy_200', 'ackley_200']
    methods = ['sobol', 'vbo', 'turbo', 'turbo_logei', 'tera']
    seeds = [0, 1]
    eval_indices = range(1, 26)
    
    for benchmark in benchmarks:
        for method in methods:
            for seed in seeds:
                for eval_index in eval_indices:
                    data.append({
                        'benchmark': benchmark,
                        'method': method,
                        'seed': seed,
                        'eval_index': eval_index,
                        'regret': np.random.exponential(scale=2.0, size=1)[0],
                        'best_y': np.random.uniform(-10, 10),
                        'fit_time_sec': np.random.uniform(0.01, 0.5),
                        'acq_time_sec': np.random.uniform(0.001, 0.1),
                        'eval_time_sec': np.random.uniform(0.01, 0.3),
                        'fit_peak_memory_gb': np.random.uniform(0.1, 1.0),
                        'acq_peak_memory_gb': np.random.uniform(0.05, 0.5),
                        'iter_peak_memory_gb': np.random.uniform(0.2, 1.5),
                        'status': 'ok'
                    })
    
    df = pd.DataFrame(data)
    df.to_csv(csv_path, index=False)
    return csv_path

csv_file = create_test_csv()
out_file = Path(tempfile.gettempdir()) / "test_plot_output.png"

ARGS = {
    'csv_path': str(csv_file),
    'out_path': str(out_file),
    'benchmarks': ('levy_200', 'ackley_200'),
    'title': 'Test BO Regret Plot'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PosixPath — a PosixPath output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PosixPath output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_config Not yet run
unverified (harvested, no recorded run)
hseung88/tera/src/bo_experiments/config.py
code served (permissive licence) · get_code("cde0fc6339392bd7")
How it ran

no invocation recorded.

plot_bo_appendix_time_regret Not yet run
unverified (harvested, no recorded run)
hseung88/tera/src/bo_experiments/plotting.py
code served (permissive licence) · get_code("e645fd505836af7b")
How it ran

no invocation recorded.

plot_bo_resource_summary Not yet run
unverified (harvested, no recorded run)
hseung88/tera/src/bo_experiments/plotting.py
code served (permissive licence) · get_code("fd6638b97c989a4a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 9 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.

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-24.

Repositories linked to this paper

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

Abstract

Gradient observations can substantially improve Gaussian process (GP) surrogates, particularly in high-dimensional settings where function evaluations are expensive. However, exact inference with n function values and n full gradients in d dimensions scales cubically in the joint state size, imposing an intractable O(n 3 d 3 ) computational bottleneck. We introduce TERA, a highly scalable derivative GP method based on target-specific exact gradient reduction. We prove that for stationary kernels, the gradient components orthogonal to the directions connecting the target and conditioning points are conditionally independent of the target function value; consequently, the exact conditional density is fully characterized by at most m 2 directional derivatives once a conditioning set of size m is specified. By using these reduced, dimension-free conditionals as local factors in a Vecchia approximation, TERA effectively decouples n and d from the dense matrix inversion. This reduces the per-target evaluation cost to O(dm 2 + m 6 ) time and O(dm 2 + m 4 ) memory, leaving the underlying derivative GP model mathematically unchanged. Empirical evaluations demonstrate that TERA achieves state-of-the-art predictive accuracy while operating orders of magnitude faster than standard derivative GPs. Crucially, both computation time and peak GPU memory remain essentially flat with respect to d, enabling highly scalable inference in high-dimensional spaces. Code is available at https://github.com/hseung88/tera. Derivative GP provide a principled model for such data by coupling function values and input derivatives through kernel derivatives [27,24]. Exact inference with n function values and n full gradients in d dimensions involves a Gaussian state of size n(d+1), which makes dense linear algebra and memory costs prohibitive when either n or d is moderate or large. Existing scalable derivative GP methods reduce this cost through kernel interpolation [10,13], inducing derivative variables [22], and structured derivative covariance decompositions [9]. These methods reduce the cost of inference in derivative GPs while keeping the joint function-gradient state as the main computational object. We instead start from function-value prediction and use the target to determine how the observed gradients enter the relevant conditional distributions.

For agents

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

get_harvested_code_for_paper("2606.02909")
get_code_for_paper("2606.02909")
have("2606.02909")

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

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

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

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

Connect an agent — have() is free.