SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2204.11051 · ICLR · 2022

πBO: AUGMENTING ACQUISITION FUNCTIONS WITH USER BELIEFS FOR BAYESIAN OPTIMIZATION

Frank Hutter, Marius Lindauer, Carl Hvarfner, Danny Stoll, Artur Souza, Luigi Nardi

arXiv · PDF · Open in the Atlas

Code that ran

1 of 4 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; 1 failure of our instrument; 3 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/2204.11051.json · badge: /api/ran/2204.11051.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
luinardi/hypermapper community
Papers with Code archive
1 ran · 1 no recorded run
piboauthors/PiBO-Spearmint community
Papers with Code archive
0 ran · 2 no recorded run
FunctionStatusWhere it lives
run_pibo Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
luinardi/hypermapper/hypermapper/pibo.py
code served (permissive licence) · get_code("fcf21be4f2ede536")
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 dict. 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
import torch
import torch.nn as nn
from unittest.mock import Mock, MagicMock

torch.manual_seed(0)

# Mock parameter space
class MockParamSpace:
    def __init__(self):
        self.params = {
            'x': {'type': 'continuous', 'bounds': [0, 1]},
            'y': {'type': 'continuous', 'bounds': [0, 1]}
        }
    
    def get_optimization_parameters(self):
        return ['objective_1']
    
    def get_random_configurations(self, n):
        return [{'x': np.random.rand(), 'y': np.random.rand()} for _ in range(n)]

# Mock regression models
class MockRegressionModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(2, 1)
    
    def forward(self, x):
        return self.linear(x)

# Mock classification model
class MockClassificationModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(2, 1)
    
    def forward(self, x):
        return torch.sigmoid(self.linear(x))

# Mock acquisition function wrapper
def mock_acquisition_function_wrapper(acq_func, configs, obj_weights, reg_models, 
                                      param_space, scalarization_method, obj_limits, 
                                      iteration_num, data_array, model_type, 
                                      classification_model=None, number_of_cpus=0):
    acq_values = np.random.rand(len(configs))
    feasibility = np.ones(len(configs))
    return acq_values, feasibility

# Mock local search function
def mock_local_search(starting_points, random_points, param_space, fast_addr, 
                     skip_duplicates, acq_func, func_params, scalarization_key, 
                     num_cpus, previous_points=None, profiling=None):
    best_config = {'x': 0.5, 'y': 0.5}
    return None, best_config

# Mock CMA-ES function
def mock_cma_es(param_space, data_array, fast_addr, scalarization_key, logfile, 
               acq_func, func_params, cma_es_random_points=0, cma_es_starting_points=0, 
               sigma=0.3):
    return {'x': 0.5, 'y': 0.5}

# Mock prior computation
def mock_compute_probability_from_prior(configurations, param_space, objective_weights):
    return np.random.rand(len(configurations))

# Monkey patch the required functions
import sys
current_module = sys.modules[__name__]
setattr(current_module, 'local_search', mock_local_search)
setattr(current_module, 'cma_es', mock_cma_es)
setattr(current_module, 'compute_probability_from_prior', mock_compute_probability_from_prior)
setattr(current_module, 'run_acquisition_function', mock_acquisition_function_wrapper)
setattr(current_module, 'deal_with_relative_and_absolute_path', lambda x, y: '/tmp/log.txt')

# Setup test data
param_space = MockParamSpace()
configurations = [{'x': 0.1, 'y': 0.2}, {'x': 0.3, 'y': 0.4}]
data_array = {
    'points': [np.array([0.1, 0.2]), np.array([0.3, 0.4])],
    'values': [1.0, 2.0]
}
fast_addressing = {}
regression_models = [MockRegressionModel()]
classification_model = MockClassificationModel()

config = {
    'scalarization_key': 'test',
    'number_of_cpus': 1,
    'scalarization_method': 'linear',
    'models': {'model': 'gp'},
    'acquisition_function': 'EI',
    'prior_beta': 10,
    'optimization_iterations': 100,
    'prior_floor': 1e-6,
    'local_search_starting_points': 5,
    'local_search_random_points': 5,
    'run_directory': '/tmp',
    'log_file': 'log.txt',
    'cma_es_sigma': 0.3,
    'cma_es_starting_points': 3,
    'cma_es_random_points': 5
}

objective_weights = np.array([1.0])
objective_limits = [0.0, 10.0]

ARGS = {
    'config': config,
    'data_array': data_array,
    'param_space': param_space,
    'fast_addressing_of_data_array': fast_addressing,
    'regression_models': regression_models,
    'iteration_number': 5,
    'objective_weights': objective_weights,
    'objective_limits': objective_limits,
    'classification_model': classification_model,
    'profiling': None,
    'acquisition_function_optimizer': 'local_search'
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
PriorEI Not yet run
unverified (harvested, no recorded run)
piboauthors/PiBO-Spearmint/spearmint/prior_acq.py
pointer only (licence: NOASSERTION) · get_code("74695f9d110cb622")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, piboauthors/PiBO-Spearmint (NOASSERTION). 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.

compute_ei Not yet run
unverified (harvested, no recorded run)
piboauthors/PiBO-Spearmint/spearmint/prior_acq.py
pointer only (licence: NOASSERTION) · get_code("e4a2e85851036c8d")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, piboauthors/PiBO-Spearmint (NOASSERTION). 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.

prior_weighted_acquisition_function Not yet run
unverified (harvested, no recorded run)
luinardi/hypermapper/hypermapper/pibo.py
code served (permissive licence) · get_code("a5c7f6541e759afe")
How it ran

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 optimization (BO) has become an established framework and popular tool for hyperparameter optimization (HPO) of machine learning (ML) algorithms. While known for its sample-efficiency, vanilla BO can not utilize readily available prior beliefs the practitioner has on the potential location of the optimum. Thus, BO disregards a valuable source of information, reducing its appeal to ML practitioners. To address this issue, we propose πBO, an acquisition function generalization which incorporates prior beliefs about the location of the optimum in the form of a probability distribution, provided by the user. In contrast to previous approaches, πBO is conceptually simple and can easily be integrated with existing libraries and many acquisition functions. We provide regret bounds when πBO is applied to the common Expected Improvement acquisition function and prove convergence at regular rates independently of the prior. Further, our experiments show that πBO outperforms competing approaches across a wide suite of benchmarks and prior characteristics. We also demonstrate that πBO improves on the state-of-theart performance for a popular deep learning task, with a 12.5× time-to-accuracy speedup over prominent BO approaches.

For agents

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

get_harvested_code_for_paper("2204.11051")
get_code_for_paper("2204.11051")
have("2204.11051")

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

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

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

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

Connect an agent — have() is free.