SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.16972 · NeurIPS · 2024

Sample-efficient Bayesian Optimisation Using Known Invariances

Ilija Bogunovic, Theodore Brown, Alexandru Cioba

arXiv · PDF · Open in the Atlas

Code that ran

3 of 4 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 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; 2 failures of our instrument; 1 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/2410.16972.json · badge: /api/ran/2410.16972.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
theo-brown/invariantkernels canonical (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
theo-brown/bayesopt_with_invariances canonical (classifier label)
classifier basis: classifier_2025
0 ran · 1 no recorded run
FunctionStatusWhere it lives
GroupInvariantKernel Ran
ran on a synthesized input · constructed an object; no result was computed
theo-brown/invariantkernels/invariantkernels/group_invariant_kernel.py
code served (permissive licence) · get_code("2e884741e3cb6419")
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 an instance of its own class, GroupInvariantKernel: the run constructed the object and did not call it, so no result was computed. 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 gpytorch
import math

torch.manual_seed(0)

# Create a simple base kernel
base_kernel = gpytorch.kernels.RBFKernel()

# Create a simple transformation function that applies group transformations
# This should take input of shape (..., n, d) and return (..., |G|, n, d)
# where |G| is the size of the group
def transformations(x):
    # x shape: (..., n, d)
    # Return shape: (..., 3, n, d) where 3 is the group size
    # Simple transformations: identity, scale by 1.1, scale by 0.9
    batch_shape = x.shape[:-2]
    n = x.shape[-2]
    d = x.shape[-1]
    
    identity = x.unsqueeze(-3)  # (..., 1, n, d)
    scaled_up = (x * 1.1).unsqueeze(-3)  # (..., 1, n, d)
    scaled_down = (x * 0.9).unsqueeze(-3)  # (..., 1, n, d)
    
    result = torch.cat([identity, scaled_up, scaled_down], dim=-3)  # (..., 3, n, d)
    return result

# Create small test tensors
x1 = torch.randn(2, 4)  # batch_size=2, dim=4
x2 = torch.randn(3, 4)  # batch_size=3, dim=4

ARGS = {
    'base_kernel': base_kernel,
    'transformations': transformations,
    'isotropic': False,
    'normalize': False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
gpytorch, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type GroupInvariantKernel — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a GroupInvariantKernel 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
block_permutation_group Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
theo-brown/invariantkernels/invariantkernels/transformation_groups.py
code served (permissive licence) · get_code("5b2ffae7f1c781b8")
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) and returned Tensor, ndim 3, dtype family float, shape (2, 2, 8) 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 itertools

torch.manual_seed(0)

# Create a small tensor with shape (batch=2, feature_dim=8)
# Last dimension must be a multiple of block_size
x = torch.randn(2, 8)

# block_size must divide evenly into the last dimension
block_size = 4

ARGS = {
    "x": x,
    "block_size": block_size,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 3, dtype family float, shape (2, 2, 8) — shape (2, 2, 8) 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
permutation_group Ran
ran; our contract draft was wrong, not the code
theo-brown/invariantkernels/invariantkernels/transformation_groups.py
code served (permissive licence) · get_code("f353317f327e7a3d")
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) and returned Tensor, ndim 4, dtype family float, shape (2, 24, 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 torch
import itertools

torch.manual_seed(0)

# Create a small tensor with distinct dimensions
# Shape: (batch=2, height=3, width=4)
# The function uses x.shape[-1] to get the last dimension
x = torch.randn(2, 3, 4)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 4, dtype family float, shape (2, 24, 3, 4) — shape (2, 24, 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
InvariantKernel Not yet run
unverified (harvested, no recorded run)
theo-brown/bayesopt_with_invariances/src_py/invariant_kernel.py
pointer only (licence: NONE) · get_code("a28b6130765074f5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, theo-brown/bayesopt_with_invariances when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

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

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

Bayesian optimisation (BO) is a powerful framework for global optimisation of costly functions, using predictions from Gaussian process models (GPs). In this work, we apply BO to functions that exhibit invariance to a known group of transformations. We show that vanilla and constrained BO algorithms are inefficient when optimising such invariant objectives, and provide a method for incorporating group invariances into the kernel of the GP to produce invariance-aware algorithms that achieve significant improvements in sample efficiency. We derive a bound on the maximum information gain of these invariant kernels, and provide novel upper and lower bounds on the number of observations required for invariance-aware BO algorithms to achieve ϵ-optimality. We demonstrate our method's improved performance on a range of synthetic invariant and quasi-invariant functions. We also apply our method in the case where only some of the invariance is incorporated into the kernel, and find that these kernels achieve similar gains in sample efficiency at significantly reduced computational cost. Finally, we use invariant BO to design a current drive system for a nuclear fusion reactor, finding a high-performance solution where non-invariant methods failed.

For agents

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

get_harvested_code_for_paper("2410.16972")
get_code_for_paper("2410.16972")
have("2410.16972")

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

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

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

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

Connect an agent — have() is free.