SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.12182 · 2024

Nearest Neighbors GParareal: Improving Scalability of Gaussian Processes for Parallel-in-Time Solvers

arXiv · PDF · Open in the Atlas

Code that ran

7 of 11 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 0 have no contract verdict; 7 failures of our instrument; 4 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/2405.12182.json · badge: /api/ran/2405.12182.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
Parallel-in-Time-Differential-Equations/Nearest-Neighbors-GParareal canonical (classifier label)
classifier basis: census
7 ran · 4 no recorded run
FunctionStatusWhere it lives
gen_full_traj Ran
ran; our contract draft was wrong, not the code
Parallel-in-Time-Differential-Equations/Nearest-Neighbors-GParareal/Figure_1.py
code served (permissive licence) · get_code("c2e47487d3faa61d")
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 numpy as np

def solver_func(t_start, t_end, init_cond):
    """Mock solver that integrates from t_start to t_end starting from init_cond"""
    # Return a solution array with shape (num_steps, init_cond.shape[0])
    num_steps = 5
    return np.random.randn(num_steps, init_cond.shape[0])

# Create time array with 3 time points
t = np.array([0.0, 1.0, 2.0])

# Create initial conditions with shape (2, 4) - 2 time steps, 4 dimensions
init_cond = np.array([[1.0, 2.0, 3.0, 4.0],
                      [5.0, 6.0, 7.0, 8.0]])

ARGS = {
    'solver': solver_func,
    't': t,
    'init_cond': init_cond
}
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
get_bin_lab Ran
ran; our contract draft was wrong, not the code
Parallel-in-Time-Differential-Equations/Nearest-Neighbors-GParareal/Burgers_perf_across_m.py
code served (permissive licence) · get_code("0a8be6b5e9a74265")
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 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 numpy as np

# Analyze the function to understand what it needs:
# - bins: a list/array of numeric values used for indexing and string formatting
# - gp: appears to be unused in the function body

# Create a simple bins list with numeric values
bins = [10.5, 20.3, 30.8, 50.0]

# gp is not used in the function, so any value works
gp = None

ARGS = {
    'bins': bins,
    'gp': gp
}
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 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
get_bin_lab_speed Ran
ran; our contract draft was wrong, not the code
Parallel-in-Time-Differential-Equations/Nearest-Neighbors-GParareal/Burgers_perf_across_m.py
code served (permissive licence) · get_code("590a680c4101e0ea")
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 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 numpy as np

torch.manual_seed(0)

# Analyzing the function:
# - bins: used as a list/sequence with indexing (bins[0], bins[i-1], bins[i], bins[-1])
#         and len() is called on it
# - gp: the function body doesn't actually use gp at all, but it's a parameter
#       so we need to provide it

bins = [0.5, 1.0, 1.5, 2.0]
gp = None  # gp is not used in the function body

ARGS = {
    'bins': bins,
    'gp': gp
}
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 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
tr Ran
ran; our contract draft was wrong, not the code
Parallel-in-Time-Differential-Equations/Nearest-Neighbors-GParareal/Figure_2.py
code served (permissive licence) · get_code("79bcc1f1236b551d")
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 str. 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

def tr(lbl):
    if lbl == '1-NN':
        return '1-nn'
    elif lbl == '2-NN':
        return '2-nn'
    elif lbl == '3-NN':
        return '3-nn'
    elif lbl == '4-NN':
        return '4-nn'
    else:
        raise Exception(3)

ARGS = {
    'lbl': '1-NN'
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
tr_key Ran
ran; our contract draft was wrong, not the code
Parallel-in-Time-Differential-Equations/Nearest-Neighbors-GParareal/FHN_PDE.py
code served (permissive licence) · get_code("d4b8ac4be129a21f")
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 str. 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)

ARGS = {
    'key': 'gp_exp'
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
tr_key Ran
ran; our contract draft was wrong, not the code
Parallel-in-Time-Differential-Equations/Nearest-Neighbors-GParareal/FHN_PDE.py
code served (permissive licence) · get_code("2588d6bf896a8f2c")
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 str. 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 tr_key takes a single parameter 'key' which is a string
# It splits the key by '_' into mdl and typ components
# Valid mdl values: 'gp', 'para', 'nngp'
# Valid typ values: 'exp', 'act', 'exprough', 'ub'

ARGS = {
    'key': 'gp_exp'
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
tr_key Ran
ran; our contract draft was wrong, not the code
Parallel-in-Time-Differential-Equations/Nearest-Neighbors-GParareal/TomLab.py
code served (permissive licence) · get_code("ba2c375ead3713ef")
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 str. 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

# Analyze the function: tr_key takes a single parameter 'key'
# The function expects 'key' to be a string containing an underscore
# that splits into 'mdl' and 'typ'
# Valid mdl values: 'gp', 'para', 'nngp'
# Valid typ values: 'exp', 'act', 'exprough', 'ub'

# Test with a few different valid combinations
key_1 = 'gp_exp'
key_2 = 'para_act'
key_3 = 'nngp_exprough'
key_4 = 'gp_ub'

# We'll use the first one as the primary test case
ARGS = {
    'key': 'gp_exp'
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
build_bins Not yet run
unverified (harvested, no recorded run)
Parallel-in-Time-Differential-Equations/Nearest-Neighbors-GParareal/Burgers_perf_across_m.py
code served (permissive licence) · get_code("3dc67bd47d53dbbf")
How it ran

no invocation recorded.

do_one_plot Not yet run
unverified (harvested, no recorded run)
Parallel-in-Time-Differential-Equations/Nearest-Neighbors-GParareal/Figure_1.py
code served (permissive licence) · get_code("83ade885fc8fc58a")
How it ran

no invocation recorded.

get_colors Not yet run
unverified (harvested, no recorded run)
Parallel-in-Time-Differential-Equations/Nearest-Neighbors-GParareal/Figure_1.py
code served (permissive licence) · get_code("3b7dc7e3ead52d15")
How it ran

no invocation recorded.

get_exp_serial_c Not yet run
unverified (harvested, no recorded run)
Parallel-in-Time-Differential-Equations/Nearest-Neighbors-GParareal/FHN_PDE.py
code served (permissive licence) · get_code("23491a877b098603")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 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 11 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-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

With the advent of supercomputers, multi-processor environments and parallel-in-time (PinT) algorithms offer ways to solve initial value problems for ordinary and partial differential equations (ODEs and PDEs) over long time intervals, a task often unfeasible with sequential solvers within realistic time frames. A recent approach, GParareal, combines Gaussian Processes with traditional PinT methodology (Parareal) to achieve faster parallel speed-ups. The method is known to outperform Parareal for low-dimensional ODEs and a limited number of computer cores. Here, we present Nearest Neighbors GParareal (nnGParareal), a novel data-enriched PinT integration algorithm. nnGParareal builds upon GParareal by improving its scalability properties for higher-dimensional systems and increased processor count. Through data reduction, the model complexity is reduced from cubic to log-linear in the sample size, yielding a fast and automated procedure to integrate initial value problems over long time intervals. First, we provide both an upper bound for the error and theoretical details on the speed-up benefits. Then, we empirically illustrate the superior performance of nnGParareal, compared to GParareal and Parareal, on nine different systems with unique features (e.g., stiff, chaotic, high-dimensional, or challenging-to-learn systems).

For agents

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

get_harvested_code_for_paper("2405.12182")
get_code_for_paper("2405.12182")
have("2405.12182")

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

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

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

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

Connect an agent — have() is free.