SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2607.26680 · 2026

Efficient Heteroscedastic Bayesian Optimization for Risk-Aware AutoRL

Marius Lindauer, Alexander Von Rohr, Theresa Eimer, Mingxuan Che, Tsung-Yuan Tseng, L3s Research Center, Cariad Se

arXiv · PDF · Open in the Atlas

Code that ran

8 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; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 7 failures of our instrument; 1 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/2607.26680.json · badge: /api/ran/2607.26680.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
LUH-AI/Efficient-Risk-Averse-BO canonical (classifier label)
classifier basis: census
8 ran · 1 no recorded run
FunctionStatusWhere it lives
compute_statistics Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
LUH-AI/Efficient-Risk-Averse-BO/dataset/plot_dataset_analysis.py
code served (permissive licence) · get_code("1ed1175f8ce698c7")
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 pandas as pd

# Create sample data for testing compute_statistics
sample_data = [1.5, 2.3, 3.1, 4.2, 5.8, 6.1, 7.4, 8.9, 9.2, 10.5]

ARGS = {
    'data': sample_data,
    'name': 'TestDataset'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — 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
get_latest_run_tag Ran
ran; our contract draft was wrong, not the code
LUH-AI/Efficient-Risk-Averse-BO/experiments/plot_results.py
code served (permissive licence) · get_code("e368948319ab7ebd")
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 tempfile
from pathlib import Path
import os

# Create a temporary directory structure with run_ directories
temp_dir = tempfile.mkdtemp()
results_dir = Path(temp_dir) / "results"
results_dir.mkdir(exist_ok=True)

# Create some mock run directories with different modification times
run_1 = results_dir / "run_001"
run_1.mkdir(exist_ok=True)
os.utime(str(run_1), (1000, 1000))

run_2 = results_dir / "run_002"
run_2.mkdir(exist_ok=True)
os.utime(str(run_2), (2000, 2000))

run_3 = results_dir / "run_003"
run_3.mkdir(exist_ok=True)
os.utime(str(run_3), (3000, 3000))

# Also create a non-run directory to ensure it's filtered out
other_dir = results_dir / "other_folder"
other_dir.mkdir(exist_ok=True)

ARGS = {
    "output_dir": str(results_dir)
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
load_and_analyze_csv Ran
ran; our contract draft was wrong, not the code
LUH-AI/Efficient-Risk-Averse-BO/dataset/plot_dataset_analysis.py
code served (permissive licence) · get_code("d7a918ab8f1ace7f")
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 tempfile
import os
import pandas as pd
import numpy as np

# Create a temporary CSV file with performance data
temp_dir = tempfile.mkdtemp()
csv_path = os.path.join(temp_dir, "test_performance.csv")

# Create sample data with performance arrays in string format
data = {
    'config_id': [1, 2, 3],
    'performance': [
        '[0.85, 0.87, 0.89, 0.88]',
        '[0.92, 0.91, nan, 0.93]',
        '[0.75, 0.76, 0.77, 0.78, 0.79]'
    ],
    'other_col': ['a', 'b', 'c']
}

df = pd.DataFrame(data)
df.to_csv(csv_path, index=False)

ARGS = {
    'csv_path': csv_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — 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
parse_algo_name Ran
ran; our contract draft was wrong, not the code
LUH-AI/Efficient-Risk-Averse-BO/experiments/run_experiment.py
code served (permissive licence) · get_code("c1202b3dfe839be5")
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 Args. 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 re
from copy import deepcopy


class Args:
    def __init__(self, bo_algo, repeat_eval=1):
        self.bo_algo = bo_algo
        self.repeat_eval = repeat_eval


# Test case 1: algo name with repeat count
args1 = Args(bo_algo='acq_ei_5')

# Test case 2: algo name without repeat count (no match)
args2 = Args(bo_algo='random_search')

# Test case 3: algo name with single digit repeat
args3 = Args(bo_algo='gp_ucb_3')

ARGS = {'args': args1}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Args — a Args output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Args 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
parse_performance_array Ran
ran, honoured the contract we drafted
LUH-AI/Efficient-Risk-Averse-BO/dataset/plot_dataset_analysis.py
code served (permissive licence) · get_code("4d280edd7fce223a")
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 ndarray, ndim 1, dtype family float, shape (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 ast
import re
import numpy as np
import pandas as pd

# Test case 1: Valid array string
perf_str_1 = "[1.0, 2.5, 3.7]"

# Test case 2: Array string with whitespace
perf_str_2 = "[ 0.5 , 1.2 , 3.3 ]"

# Test case 3: Array string with some invalid values
perf_str_3 = "[1.0, nan, 3.5]"

# Test case 4: NaN input (pandas NaN)
perf_str_4 = pd.NA

# Test case 5: Empty string
perf_str_5 = ""

# Test case 6: String without brackets
perf_str_6 = "not_an_array"

# Test case 7: Valid single element array
perf_str_7 = "[42.0]"

# Test case 8: Array with extra whitespace
perf_str_8 = "[  1.0  ,  2.0  ,  3.0  ]"

ARGS = {
    "perf_str": "[1.5, 2.3, 3.9, 4.1]"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (4,) — shape (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
plot_f_rho Ran
ran; our contract draft was wrong, not the code
LUH-AI/Efficient-Risk-Averse-BO/erahbo/erahbo_utils.py
code served (permissive licence) · get_code("061bd22a02258678")
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 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 numpy as np
import matplotlib.pyplot as plt
import matplotlib.cm as cm

# Create sample data matching the expected structure
df = {
    'ucb': {
        'fs': np.array([-1.0, -4.0, -2.5, -3.1]),
        'rhos': np.array([0.1, 0.3, 0.2, 0.25])
    },
    'thompson': {
        'fs': np.array([-1.5, -3.8, -2.2, -3.0]),
        'rhos': np.array([0.12, 0.32, 0.22, 0.28])
    },
    'epsilon': {
        'fs': np.array([-1.2, -3.9, -2.4, -2.9]),
        'rhos': np.array([0.11, 0.31, 0.21, 0.26])
    }
}

# Create color array
colors = cm.Dark2(np.linspace(0, 1, 8))

# Create linestyles
linestyles = ['-', '--', '-.', 'dotted']

# Create linewidths
linewidths = [3, 3, 3]

# Create labels
labels = {
    'ucb': 'UCB Algorithm',
    'thompson': 'Thompson Sampling',
    'epsilon': 'Epsilon Greedy'
}

ARGS = {
    'df': df,
    'errorbar_mode': True,
    'title': 'F-Rho Performance Comparison',
    'path_to_save': None,
    'color': colors,
    'linestyles': linestyles,
    'flims': [-5.0, 0.0],
    'rholims': [0.0, 0.4],
    'labels': labels,
    'if_legend': True,
    'linewidths': linewidths,
    'log_scale': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, 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
plot_objectives_mean_std Ran
ran; our contract draft was wrong, not the code
LUH-AI/Efficient-Risk-Averse-BO/erahbo/erahbo_utils.py
code served (permissive licence) · get_code("33a104c762241b8d")
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 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 numpy as np
import matplotlib.pyplot as plt

# Create sample objectives data
# objectives is a dict where keys are method names and values are 2D arrays
# Each array has shape (num_iterations, num_runs) containing objective values
np.random.seed(0)

objectives = {
    'Method A': np.random.randn(10, 5) + np.arange(10)[:, None] * 0.5,
    'Method B': np.random.randn(10, 5) + np.arange(10)[:, None] * 0.3,
    'Method C': np.random.randn(10, 5) + np.arange(10)[:, None] * 0.7,
}

# Create thresholds dict
thresholds = {
    'Method A': 0,
    'Method B': 1,
    'Method C': 2,
}

# Create linestyles dict
linestyles = {
    'Method A': '-',
    'Method B': '--',
    'Method C': '-.',
}

# Create color array
color = np.array([
    [0.1, 0.2, 0.3, 1.0],
    [0.4, 0.5, 0.6, 1.0],
    [0.7, 0.8, 0.9, 1.0],
])

ARGS = {
    'objectives': objectives,
    'path_to_save': None,
    'thresholds': thresholds,
    'objective_name': 'Performance Score',
    'x_label': 'BO iterations',
    'title': 'Objective Optimization Results',
    'color': color,
    'linestyles': linestyles,
    'legend': True,
    'yscale': None,
    'ylim': None,
    'xlim': None,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, 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
process_raw_file Ran
ran; our contract draft was wrong, not the code
LUH-AI/Efficient-Risk-Averse-BO/dataset/dataset_preprocessing.py
code served (permissive licence) · get_code("d1af34409b9c0481")
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 os
import pandas as pd
import tempfile

# Create a temporary directory for test files
temp_dir = tempfile.mkdtemp()

# Create a sample raw CSV file for testing
raw_csv_path = os.path.join(temp_dir, 'dqn_test_raw.csv')
sample_data = {
    'config_id': [0, 1, 2, 3],
    'hp_config.use_target_network': [True, True, True, True],
    'hp_config.buffer_prio_sampling': [True, True, True, True],
    'learning_rate': [0.001, 0.0001, 0.01, 0.0005],
    'mean_performance': [100.5, 200.3, 150.7, 175.2]
}
df = pd.DataFrame(sample_data)
df.to_csv(raw_csv_path, index=False)

ARGS = {
    'raw_path': raw_csv_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — 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
plot_ranking_mean_std Not yet run
unverified (harvested, no recorded run)
LUH-AI/Efficient-Risk-Averse-BO/erahbo/erahbo_utils.py
code served (permissive licence) · get_code("d262b540aa6f41d2")
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

Reinforcement learning (RL) learning outcomes can be highly stochastic, and both expected performance and variability often depend strongly on hyperparameter (HP) configurations. This makes HP optimization (HPO) brittle: outcome variability translates into a practical risk of unsuccessful training after HPO. We propose risk-aware HPO through a mean-variance objective, dubbed efficient and riskaverse heteroscedastic Bayesian optimization (ERAHBO). It models both mean and variance, and improves sample efficiency via adaptive re-sampling rather than a fixed replication budget per HP configuration. We show that our adaptive strategy improves efficiency and HPO performance across a wide range of RL environments. We additionally provide an offline dataset of RL learning outcomes mapping HP configurations to post-training policy returns across 50 repeated runs per HP configuration to evaluate risk-aware HPO methods. 1. We propose efficient and risk-averse heteroscedastic Bayesian optimization (ERAHBO), an adaptive re-sampling formulation of RAHBO (Makarova et al., 2021) that improves practical sample efficiency in HPO for RL. We provide sublinear regret guarantees along with an empirical comparison to common Bayesian optimization (BO) baselines. Context: To integrate risk into the optimization process, we need to repeatedly evaluate each hyperparameter configuration. RAHBO sets a fixed number of evaluations for each configuration, which makes it computationally expensive on a runtime-intense domain like reinforcement learning. 2. We provide a dataset of RL learning outcomes mapping hyperparameters to post-training policy returns for 50 runs, enabling reproducible benchmarking of risk-aware hyperparameter optimization methods. Context: Recent HPO performance datasets such as those provided in HPO-RL-Bench (Shala et al., 2024) and ARLBench (Becktepe et al., 2026) include repeated evaluations for each configuration, but the number of seeds (up to ten) per hyperparameter configuration can be insufficient for a reliable estimation of heteroscedastic variance across the hyperparameter space. Our dataset addresses this by providing 50 seeds per configuration.

For agents

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

get_harvested_code_for_paper("2607.26680")
get_code_for_paper("2607.26680")
have("2607.26680")

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

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

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

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

Connect an agent — have() is free.