SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.14440 · NeurIPS · 2024

Bayesian Adaptive Calibration and Optimal Design

Rafael Oliveira, Dino Sejdinovic, Edwin Bonilla, David Howard

arXiv · PDF · Open in the Atlas

Code that ran

3 of 7 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 2 have no contract verdict; 1 failure 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.14440.json · badge: /api/ran/2405.14440.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
csiro-funml/bacon canonical (classifier label)
classifier basis: classifier_2025
3 ran · 4 no recorded run
FunctionStatusWhere it lives
BiFiIndexKernel Ran
ran on a synthesized input
csiro-funml/bacon/baed4cal/models/joint_model.py
code served (permissive licence) · get_code("dad6bfdb23eb369b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned LazyEvaluatedKernelTensor. 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
from gpytorch.kernels import Kernel
from linear_operator import LinearOperator
from torch import Tensor
from typing import Callable, Optional, Union

class BiFiIndexKernel(Kernel):
    """
    A Kronecker delta kernel for use within a bi-fidelity kernel, like `BiFiKernel` below.

    .. math::

        k_\\delta (s, s') = s \\cdot s', \\quad s, s' \\in \\{0,1\\}
    """

    def __init__(self, fidelity_coord: int=-1):
        """
        Args:
            fidelity_coord (int, optional): Coordinate corresponding to the fidelity parameter. Defaults to -1.
        """
        self.has_lengthscale = False
        self.fidelity_coord = fidelity_coord
        super().__init__()

    def forward(self, x1: Tensor, x2: Tensor, diag: bool=False, last_dim_is_batch: bool=False, **params) -> Union[Tensor, LinearOperator]:
        return torch.einsum('...n,...m->...nm', x1[..., self.fidelity_coord], x2[..., self.fidelity_coord])


INIT_ARGS = {
    'fidelity_coord': -1
}

ARGS = {
    'x1': torch.randn(2, 4),
    'x2': torch.randn(3, 4),
    'diag': False,
    'last_dim_is_batch': False
}

if __name__ == '__main__':
    kernel = BiFiIndexKernel(**INIT_ARGS)
    output = kernel(**ARGS)
    print("Output shape:", output.shape)
    print("Output:", output)
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
gpytorch, linear_operator, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type LazyEvaluatedKernelTensor — a LazyEvaluatedKernelTensor output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a LazyEvaluatedKernelTensor output the recorded ndim 2 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
ConstantKernel Ran
ran on a synthesized input
csiro-funml/bacon/baed4cal/models/joint_model.py
code served (permissive licence) · get_code("9fbea687d22e08af")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned LazyEvaluatedKernelTensor. 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
from gpytorch.kernels import Kernel
from torch import Tensor

class ConstantKernel(Kernel):
    """A convenience kernel class for problems which use no scaling kernel."""

    def __init__(self, *args, **kwargs):
        """Arguments are passed directly to the base class. This module has no parameters."""
        super().__init__(*args, **kwargs)

    def forward(self, x1: Tensor, x2: Tensor, diag: bool=False, last_dim_is_batch: bool=False, **params) -> torch.Tensor:
        batch_shape = torch.broadcast_shapes(x1.shape[:-2], x2.shape[:-2])
        res = torch.ones([], device=x1.device, dtype=x1.dtype).expand(*batch_shape, x1.shape[-2], x2.shape[-2])
        return res


INIT_ARGS = {}

ARGS = {
    'x1': torch.randn(2, 4),
    'x2': torch.randn(3, 4),
    'diag': False,
    'last_dim_is_batch': False,
}

if __name__ == '__main__':
    kernel = ConstantKernel(**INIT_ARGS)
    output = kernel(**ARGS)
    print(f"Output shape: {output.shape}")
    print(f"Output:\n{output}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
gpytorch, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type LazyEvaluatedKernelTensor — a LazyEvaluatedKernelTensor output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a LazyEvaluatedKernelTensor output the recorded ndim 2 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
get_matern_kernel_with_gamma_prior Ran
ran; our contract draft was wrong, not the code
csiro-funml/bacon/baed4cal/models/joint_model.py
code served (permissive licence) · get_code("794cfc9c68f8de5d")
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 ScaleKernel. 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
from gpytorch.constraints import GreaterThan
from gpytorch.kernels import MaternKernel, ScaleKernel
from gpytorch.priors import GammaPrior

torch.manual_seed(0)

ARGS = {
    "ard_num_dims": 4,
    "batch_shape": torch.Size([2]),
    "active_dims": (0, 1, 2, 3),
    "scale_output": True,
    "nu": 2.5,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
gpytorch, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ScaleKernel — a ScaleKernel output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ScaleKernel 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
BiFiKernel Not yet run
unverified (harvested, no recorded run)
csiro-funml/bacon/baed4cal/models/joint_model.py
code served (permissive licence) · get_code("ba951e9e070bcf29")
How it ran

no invocation recorded.

BiFiScalingKernel Not yet run
unverified (harvested, no recorded run)
csiro-funml/bacon/baed4cal/models/joint_model.py
code served (permissive licence) · get_code("a3c468a04b0d01d4")
How it ran

no invocation recorded.

JointFullGP Not yet run
unverified (harvested, no recorded run)
csiro-funml/bacon/baed4cal/models/joint_model.py
code served (permissive licence) · get_code("3a616cf87539ec05")
How it ran

no invocation recorded.

JointModel Not yet run
unverified (harvested, no recorded run)
csiro-funml/bacon/baed4cal/models/joint_model.py
code served (permissive licence) · get_code("79452e04e96f390c")
How it ran

no invocation recorded.

Also present in other papers' code

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

The process of calibrating computer models of natural phenomena is essential for applications in the physical sciences, where plenty of domain knowledge can be embedded into simulations and then calibrated against real observations. Current machine learning approaches, however, mostly rely on rerunning simulations over a fixed set of designs available in the observed data, potentially neglecting informative correlations across the design space and requiring a large amount of simulations. Instead, we consider the calibration process from the perspective of Bayesian adaptive experimental design and propose a data-efficient algorithm to run maximally informative simulations within a batch-sequential process. At each round, the algorithm jointly estimates the parameters of the posterior distribution and optimal designs by maximising a variational lower bound of the expected information gain. The simulator is modelled as a sample from a Gaussian process, which allows us to correlate simulations and observed data with the unknown calibration parameters. We show the benefits of our method when compared to related approaches across synthetic and real-data problems.

For agents

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

get_harvested_code_for_paper("2405.14440")
get_code_for_paper("2405.14440")
have("2405.14440")

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

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

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

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

Connect an agent — have() is free.