SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.00855 · 2026

An Efficient Spatial Branch-and-Bound Algorithm for Global Optimization of Gaussian Process Posterior Mean Functions

Calvin Tsay, Joel Paulson, Wei-Ting Tang, Akshay Kudva

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; 0 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 5 failures of our instrument; 3 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/2605.00855.json · badge: /api/ran/2605.00855.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
PaulsonLab/PALM-Mean canonical (classifier label)
classifier basis: census
6 ran · 3 no recorded run
FunctionStatusWhere it lives
RBF_Matrix Ran
ran; our contract draft was wrong, not the code
PaulsonLab/PALM-Mean/src/BuildGP.py
code served (permissive licence) · get_code("64a33005225b9399")
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, 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 torch

torch.manual_seed(0)

# X: Features of GP -- torch tensor n_samples X ndim
# Shape: (2, 4) means 2 samples, 4 dimensions
X = torch.randn(2, 4)

# lengthscale: hyperparameter controlling the length scale of the RBF kernel
lengthscale = torch.tensor(1.0)

# fscale: function scale hyperparameter
fscale = torch.tensor(2.0)

# noise: noise level added to diagonal
# Based on usage: noise.squeeze(0) suggests it should be squeezable to 1D
noise = torch.tensor([0.1])

ARGS = {
    "X": X,
    "lengthscale": lengthscale,
    "fscale": fscale,
    "noise": noise,
}
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, 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
active_corners Ran
ran; our contract draft was wrong, not the code
PaulsonLab/PALM-Mean/src/Analytical_LB.py
code served (permissive licence) · get_code("7a4505ba8f60d5c5")
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 (8, 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

torch.manual_seed(0)

# Create small tensor arguments for the function
# The function expects N-dimensional tensors where N is the number of dimensions
# It will generate 2^N corners of a box constraint
# Let's use N=3 for a reasonable test case

theta_min = torch.tensor([0.0, 1.0, 2.0])
theta_max = torch.tensor([1.0, 2.0, 3.0])

ARGS = {
    'theta_min': theta_min,
    'theta_max': theta_max,
}
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 (8, 3) — shape (8, 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
check_nan Ran
ran; our contract draft was wrong, not the code
PaulsonLab/PALM-Mean/src/PWL_Custom_LB.py
code served (permissive licence) · get_code("dc9970371496cccd")
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 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 torch

torch.manual_seed(0)

# interval_x should be a tensor with shape [2, n_features]
# where row 0 contains lower bounds and row 1 contains upper bounds
interval_x = torch.tensor([
    [0.1, 0.2, 0.3, 0.4],  # lower bounds
    [0.9, 0.8, 0.7, 0.6]   # upper bounds
], dtype=torch.float32)

# dsq_intercept should be a 1D tensor with n_features elements
# Some normal values, some edge cases (nan, inf, outside bounds)
dsq_intercept = torch.tensor([
    0.5,      # normal value in range
    float('nan'),  # nan value
    float('inf'),  # inf value
    0.05      # outside lower bound
], dtype=torch.float32)

ARGS = {
    "interval_x": interval_x,
    "dsq_intercept": dsq_intercept
}
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 2, 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
get_analytic Ran
ran; our contract draft was wrong, not the code
PaulsonLab/PALM-Mean/src/Analytical_LB.py
code served (permissive licence) · get_code("d772ea7e4364016c")
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 torch
import torch.nn as nn

torch.manual_seed(0)

# Create a minimal BO_obj class with required attributes
class BO_Object:
    def __init__(self):
        # hyperparameter: used in comparison with kernel_val_at_proj
        self.hyperparameter = 0.5
        
        # sigma_f: scalar used in kernel computation
        self.sigma_f = 1.0
        
        # alpha: 1D tensor of coefficients, indexed by nonzero indices
        # Make it 3 elements to have some variety in testing
        self.alpha = torch.tensor([[0.2], [-0.3], [0.1]])
        
        # X: 2D tensor of data points (3 points, 4 dimensions)
        self.X = torch.tensor([
            [0.1, 0.2, 0.3, 0.4],
            [0.5, 0.6, 0.7, 0.8],
            [0.9, 1.0, 1.1, 1.2]
        ], dtype=torch.float32)

# Create bounds: min and max for 4 dimensions
bounds_min = torch.tensor([0.0, 0.0, 0.0, 0.0], dtype=torch.float32)
bounds_max = torch.tensor([1.0, 1.0, 1.0, 1.0], dtype=torch.float32)
bounds = (bounds_min, bounds_max)

# Create BO object
bo_obj = BO_Object()

ARGS = {
    'bounds': bounds,
    'BO_obj': bo_obj
}
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 — 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
mean Ran
ran, violated the contract we drafted
PaulsonLab/PALM-Mean/src/UpperBound.py
code served (permissive licence) · get_code("3a3adb1a3bb19e20")
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 float32, 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 numpy as np

# Analyze the function:
# - x: used with np.linalg.norm(x_center - x, axis=1), so it's a 2D array (batch, features)
# - sigma_f: scalar used in sigma_f ** 2
# - alpha: used in np.sum(alpha * ...), so it's an array broadcastable with distance
# - x_center: used in np.linalg.norm(x_center - x, axis=1), so it's a 1D array (features,)

# Create small test data
batch_size = 2
n_features = 4

# x: shape (batch_size, n_features) - the data points
x = np.random.randn(batch_size, n_features).astype(np.float32)

# x_center: shape (n_features,) - the center point
x_center = np.random.randn(n_features).astype(np.float32)

# sigma_f: scalar - length scale parameter
sigma_f = 1.5

# alpha: shape (batch_size,) - weights for each point
alpha = np.array([0.5, 0.8], dtype=np.float32)

ARGS = {
    "x": x,
    "sigma_f": sigma_f,
    "alpha": alpha,
    "x_center": x_center,
}
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 float32, 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
partition_bounds Ran
ran; our contract draft was wrong, not the code
PaulsonLab/PALM-Mean/src/BranchBound1.py
code served (permissive licence) · get_code("617345b9b274b12b")
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

torch.manual_seed(0)

# xL: lower bounds tensor - 1D tensor with dimension size
xL = torch.tensor([0.0, 0.0, 0.0])

# xU: upper bounds tensor - 1D tensor with same dimension size
xU = torch.tensor([1.0, 2.0, 3.0])

# partitions: list/tensor specifying number of partitions per dimension
partitions = [2, 3, 2]

ARGS = {
    "xL": xL,
    "xU": xU,
    "partitions": partitions,
}
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
animate Not yet run
unverified (harvested, no recorded run)
PaulsonLab/PALM-Mean/figure/animate_palm_mean_1d.py
code served (permissive licence) · get_code("fba8c650311dd1bb")
How it ran

no invocation recorded.

get_UB Not yet run
unverified (harvested, no recorded run)
PaulsonLab/PALM-Mean/src/UpperBound.py
code served (permissive licence) · get_code("ffc88144c70b858b")
How it ran

no invocation recorded.

search Not yet run
unverified (harvested, no recorded run)
PaulsonLab/PALM-Mean/figure/animate_palm_mean_1d.py
code served (permissive licence) · get_code("c6f27f8feaa4b784")
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-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 study the deterministic global optimization of trained Gaussian process posterior mean functions over hyperrectangular domains. Although the posterior mean function has a compact closed-form representation, its global optimization is challenging because it remains nonlinear and nonconvex. Existing exact deterministic approaches become increasingly difficult to scale as the number of training data points grows, leading to approximation-based methods that improve tractability by optimizing a modified (inexact) objective. In this work, we propose PALM-Mean, a piecewise-analytic lower-bounding framework embedded in reduced-space spatial branch-and-bound. At each node, kernel terms that are locally important are replaced by a sign-aware piecewise-linear relaxation in an appropriate scalar distance variable, while the remaining terms are bounded analytically in closed form. We show this hybrid approach yields a valid lower bound for the posterior mean, while limiting the size of the branch-and-bound subproblems. We establish validity of the node lower bounds and ε-global convergence of the resulting algorithm. Computational results on synthetic benchmarks and real-world application problems show that PALM-Mean improves scalability relative to representative general-purpose deterministic global solvers, particularly as the number of training data points increases.

For agents

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

get_harvested_code_for_paper("2605.00855")
get_code_for_paper("2605.00855")
have("2605.00855")

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

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

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

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

Connect an agent — have() is free.