Benchmarks¶
BLADE includes a collection of benchmarks ranging from BBOB to Google DeepMind–inspired tasks derived from the AlphaEvolve paper. These instances are available in two complementary forms:
run_benchmarks/provides standalone reference scripts for running each task directly.iohblade/benchmarkspackages the same tasks for programmatic use in experiments and pipelines.
The packaged benchmarks are grouped by domain.
Methodology Taxonomy¶
The benchmark families in iohblade/benchmarks can also be grouped by
optimization structure.
Black-box Continuous¶
BBOBmabbobphotonics
Black-box Discrete/Mixed-Integer¶
combinatoricslogisticspackingkerneltuner
Structured Scientific Program/Search¶
analysisfouriernumber_theorymatrix_multiplicationgeometry
ML Pipeline Optimization¶
automl
Default Suites¶
Default suites are named sets of problems with fixed settings, defined in
iohblade.benchmarks.suites. Use them in a YAML experiment with
suite:; their params apply to every problem in the suite.
Suite |
Problems |
Settings (defaults) |
|---|---|---|
|
5: one per BBOB function group ( |
|
|
24: one per BBOB function f1-f24 ( |
|
|
1 ( |
|
|
30: |
|
|
17: auto-correlation inequalities, Erdős minimum overlap, the uncertainty inequality, hexagon/rectangle/unit-square packing, Heilbronn problems, kissing number 11-D, min/max distance ratios, sums versus differences |
|
|
6: Euclidean Steiner trees (50, 100, 250 points), graph colouring,
TSP and CVRP ( |
|
|
28: |
|
|
5: BBOB groups 1 and 4, circle packing, Heilbronn triangle, TSP |
|
|
55: |
|
Evaluation timeouts. Every problem takes eval_timeout (seconds per
evaluation, at least 120). The defaults are 600 s for the mathematical
problems, 300 s for the combinatorial ones, and for bbob_groups,
bbob and ma_bbob 1 ms per function evaluation of the training runs
(500 s for a 5-function group or MA-BBOB, 200 s for a single function, in
10-D with budget factor 2000), at least 120 s. Set eval_timeout in
params to change it.
Suite keys use underscores; bbob-groups with a hyphen works as well.
The AlphaEvolve suites (auto_correlation, hexagon_packing, …)
all take use_best (default false) and eval_timeout; the packing
suites still accept the old name get_best.
problems:
- suite: continuous_bbo
params: {dim: 10, budget_factor: 2000}
- suite: alphaevolve_math
params: {use_best: false}
What the LLM is told¶
The prompts describe each task without naming the benchmark suite or the instance (no “BBOB”, function ids, instance names or literature constants), so that a method cannot rely on what the LLM remembers about the benchmark.
Continuous problems (BBOB, MA-BBOB, photonics) pass the generated algorithm a
BlackBoxFunction(iohblade.benchmarks.blackbox) instead of the IOH problem itself. It offersfunc(x),func.bounds.lb/func.bounds.ub,func.meta_data.n_variablesandfunc.state(evaluations,current_best), but notfunc.optimum, the function’s name and id, orreset().Best known scores are not mentioned in the feedback of an evaluation (which the LLM sees in the next prompt). To include them, set
problem.show_best_known = Trueon a problem in Python.BBOB with
specific_fidstill tells the LLM the function’s name, on purpose;use_best=Truegives the generated code the best known solution, also on purpose.
Running time¶
Approximate wall-clock time of one run of one method on each default
suite with budget: 100. With budget: 100, a method such as LLaMEA or
random search makes 100 LLM calls and 100 evaluations per problem, and the
problems of a suite run one after the other. Multiply by the number of
methods and runs (seeds), and divide by n_jobs.
Suite |
Problems |
LLM calls and evaluations |
LLM time only |
Typical total |
Upper bound (every evaluation times out) |
|---|---|---|---|---|---|
|
5 |
500 |
3 h |
6-10 h |
70 h |
|
24 |
2,400 |
14 h |
20-28 h |
135 h |
|
1 |
100 |
0.6 h |
2-4 h |
14 h |
|
30 |
3,000 |
17 h |
28-42 h |
220 h |
|
17 |
1,700 |
9 h |
13-39 h |
290 h |
|
6 |
600 |
3 h |
4-9 h |
54 h |
|
28 |
2,800 |
15 h |
23-58 h |
415 h |
|
5 |
500 |
3 h |
4-9 h |
35 h |
|
55 |
5,500 |
31 h |
45-95 h |
605 h |
Per problem, one run takes about 1-2 h for a BBOB group in 10-D, about 1 h for a single BBOB function, 2-4 h for MA-BBOB in 10-D, 0.7-2.3 h for a mathematical problem and 0.6-1.4 h for a combinatorial problem.
How these numbers are estimated:
LLM: 20 s per call, typical for a hosted model writing a full algorithm. Local models (for example a 14B model with Ollama) often take 30-90 s, which roughly doubles the totals.
Harness: about 1.5 s per evaluation for the isolated evaluation subprocess (measured), once the evaluation environment is cached. The first run builds the environment once, which takes a few minutes.
Evaluation of the generated code, measured with the example solutions and scaled for typical LLM-written algorithms:
BBOB group, 10-D, budget factor 2000: 25 runs of 20,000 function evaluations. Random search takes 8-11 s; LLM-written optimisers (for example CMA-ES or DE variants in NumPy) typically take 2-5 times longer, so 20-50 s.
MA-BBOB, 10-D: random search takes 26 s, so 50-130 s.
Mathematical and combinatorial problems: the example constructions take milliseconds, but generated code usually runs its own search until it is satisfied, so 5-60 s and 1-30 s.
Upper bound: every evaluation runs until its
eval_timeout. This is useful for planning the worst case on a cluster, not as an expectation.
Ways to shorten a run:
Use
quick(5-D BBOB, budget factor 1000) or a lowerdimandbudget_factorfor the continuous suites. Evaluation time scales withdim * budget_factor.Lower
eval_timeoutso that slow candidates fail early.Run problems, seeds and methods in parallel with
experiment.n_jobs.Methods that make extra LLM calls per evaluation take longer: MCTS-AHD’s description calls, and ShinkaEvolve with novelty rejection or meta recommendations.
List of Benchmarks¶
Analysis¶
Methodology class: Structured Scientific Program/Search.
Perform auto-correlation on a time series using the following configuration:
The domain size
Ndefines the discretisation of \([-\tfrac{1}{4}, \tfrac{1}{4}]\).Step size: \(dx = \frac{0.5}{N}\)
Auto-convolution: \(g = dx \cdot \mathrm{conv}(f, f, \text{mode='full'})\)
Riemann sum analogues:
\(I = dx \sum_i f[i]\)
\(L_1 = dx \sum_j |g[j]|\)
\(L_{2}^{2} = dx \sum_j g[j]^2\)
\(L_{\infty} = \max_j |g[j]|\)
\(\max_g = \max_j g[j]\)
\(\max_{\text{abs}_g} = \max_j |g[j]|\)
Auto-Correlation 1¶
Score: \(\frac{\max_g}{I^2}\)
Constraints: \(f \ge 0\), \(I > 0\)
Optimisation direction: minimisation
Default: \(N = 600\)
Auto-Correlation 2¶
Score: \(\frac{L_{2}^{2}}{L_1 \cdot L_{\infty}}\)
Constraints: \(f \ge 0\)
Optimisation direction: maximisation
Default: \(N = 50\)
Auto-Correlation 3¶
Score: \(\frac{|\max_g|}{I^2}\) (the constant \(C_3\); the absolute value is taken outside the maximum, as in the AlphaEvolve paper)
Constraints: \(f\) real-valued, \(I \ne 0\)
Optimisation direction: minimisation
Default: \(N = 400\)
AutoML¶
Methodology class: ML Pipeline Optimization.
The AutoML benchmark evaluates LLM-generated scikit-learn pipelines on supervised learning tasks hosted on the OpenML platform.
Task source: OpenML tasks (either individual task IDs or suites such as
amlb-classification-allfrom the AutoML Benchmark).What is optimized: a single Python class implementing a pipeline with:
__init__(self, X, y, **hyperparameters)(fit once) and__call__(self, X)(predict), using only standard ML libraries (primarilyscikit-learn).Evaluation protocol: uses the official OpenML split definition (repeat/fold/sample) and the task’s default evaluation measure (e.g., accuracy, AUC, RMSE/MAE). Scores are aggregated across all official splits.
Hyperparameter tuning (optional): with
hpo=True(enabled automatically for methods that sample withHPO, e.g. LLaMEA withHPO=True), a solution’s configuration space is tuned with SMAC on up to 12 of the search splits before it is scored. smac is only installed in the evaluation environment when tuning is enabled; see “Hyperparameter tuning (HPO)” in Experiments from YAML.Dependencies:
openml(uv sync --group extraproblems) to load the tasks.
Black Box and Photonics Optimisation (BBO & Photonics)¶
Methodology class: Black-box Continuous.
Contains a set of Black Box Optimisation problems from the ioh benchmarks library.
Includes both
BBOBandmabbobbenchmark families.Hyperparameter tuning (optional) for
BBOB_SBOX(bbob_sbox) andMA_BBOB(ma_bbob): withhpo=True(enabled automatically for methods that sample withHPO, e.g. LLaMEA withHPO=True), a solution’s configuration space is tuned with SMAC before it is scored. Each SMAC trial runs the algorithm once, with the configuration as constructor keyword arguments, on one (function, instance, dimension) of a fixed, seeded subset ofhpo_instances(default 12) training combinations; its cost is1 - AOCC. The incumbent is then scored like any solution (mean AOCC on all training instances), stored in the solution’s metadata (incumbent) and named in the feedback;test()uses it on the test instances without tuning again. The budget ishpo_trials: 100 forbbob_sbox(about 0.4 of a default training evaluation, 240 runs) and 50 forma_bbob(about 1.25 of a default training evaluation, 40 runs), plus SMAC’s overhead, so consider a largereval_timeout. See “Hyperparameter tuning (HPO)” in Experiments from YAML.
Also contains a set of photonics problems, supported by black bock optimisation.
Combinatorics¶
Methodology class: Black-box Discrete/Mixed-Integer.
Erdős Minimum-Overlap Problem¶
The continuous Erdős minimum-overlap problem seeks to find measurable functions \(f, g: [-1,1] \rightarrow [0,1]\) that satisfy:
Complementarity: \(f(x) + g(x) = 1\) for all \(x \in [-1,1]\)
Unit mass: \(\int_{-1}^{1} f(x) \, dx = \int_{-1}^{1} g(x) \, dx = 1\)
Bounds: \(f(x), g(x) \in [0,1]\) for all \(x \in [-1,1]\)
And minimize the maximum overlap integral:
\[C := \sup_{x \in [-2,2]} \int_{-1}^{1} f(t) g(x+t) \, dt\]where g is extended by zero outside [-1,1].
A candidate returns the heights of a step function \(f\) on \(N\) equal bins of \([-1, 1]\) (\(dx = 2/N\)). Any length \(1 \le N \le\)
max_bins(default 100,000) is accepted;n_bins(default 800) is only the suggested resolution.
Euclidean Steiner Tree Problem¶
Given an undirected graph, the Euclidean Steiner Tree algorithm optimises the minimum spanning tree by adding extra nodes (Steiner points) to the graph.
Adding these nodes allows for a shorter MST.
This benchmark takes a set of points, runs MST on the original points and on the points combined with Steiner points, and returns their ratio.
Optimisation goal:
\(\min \frac{\text{mst(points + steiner_points)}}{\text{mst(points)}}\)
Graph Colouring Problem¶
The Graph Colouring benchmark focuses on assigning colours to the vertices of a graph such that no two adjacent vertices share the same colour.
Input: a graph \(G = (V, E)\) with vertices \(V\) and edges \(E\).
Objective: minimise the number of colours used while ensuring a valid colouring.
- Constraints:
Each vertex receives exactly one colour.
Adjacent vertices must not share the same colour.
- Fitness:
- \[\text{fitness} = |C| \quad \text{where } C \text{ is the set of colours used}\]
Fourier¶
Methodology class: Structured Scientific Program/Search.
Fourier Uncertainty Inequality¶
This benchmark minimises the Fourier Uncertainty Inequality bound \(r_{\max}^2 / (2\pi)\) for \(f(x) = P(x) e^{-\pi x^2}\), where \(r_{\max}\) is the largest positive sign change of \(P(x)/x^2\) (AlphaEvolve notebook, section B.4).
Function Class:
\[f(x) = P(x) \, e^{-\pi x^2}, \quad P(x) = \sum_{k=0}^{K} c[k] \, H_{4k}(x)\]\(H_n\) are (unscaled) physicists’ Hermite polynomials.
The candidate returns \(K\) (default 3) coefficients \(c[0..K-1]\); the evaluator appends \(c[K]\) so that \(P(0) = 0\). For \(K = 3\): \(c[3] = -(c_0 + 12 c_1 + 1680 c_2) / 665280\).
Evenness holds by construction (degrees 0,4,8,…).
Scoring:
If the leading coefficient of \(P\) is negative, \(P\) is replaced by \(-P\).
\(r_{\max}\) is the largest positive sign change of \(P(x)/x^2\); a candidate without one is invalid.
Scale invariant: any nonzero scaling of \(c\) leaves the score unchanged.
Geometry¶
Methodology class: Structured Scientific Program/Search.
Heilbronn Problem on a Unit-Area Triangle¶
This benchmark finds \(n = 11\) points inside a triangle of area 1 that maximize the minimum area of any triangle formed by these points.
- Score:
- \[\text{Score} = \min_{a,b,c} \Big( \max \sqrt{s (s-a)(s-b)(s-c)} \Big)\]
- where:
\(a,b,c \in \text{points}\)
\(s = \frac{a+b+c}{2}\)
\(a \ne b \ne c\)
Heilbronn Problem on a Unit-Area Convex Region¶
This benchmark finds \(n \in \{13, 14\}\) points inside a convex region of area 1 that maximize the minimum area of any triangle formed by these points.
The convex hull of the points defines the region, which is then rescaled to have area 1.
- Score:
- \[\text{Score} = \min_{a,b,c} \Big( \max \sqrt{s (s-a)(s-b)(s-c)} \Big)\]
- where:
\(a,b,c \in \text{points}\)
\(s = \frac{a + b + c}2\)
\(a \ne b \ne c\)
Kissing Number in 11 Dimensions¶
- This benchmark maximises the count of integer vectors
\(C \subset \mathbb{Z}^{11} \setminus \{0\}\)
that satisfies the kissing configuration constraint:
\[\min_{x \ne y} \|x - y\| \ge \max_{x \in C} \|x\|\]
- Score:
- \[\text{Score} = |C|\]
Min/Max Distance Ratio¶
This benchmark finds a configuration of points that minimizes the squared ratio of the maximum to minimum pairwise distances.
- Fitness function:
- \[\text{Fitness} = \left( \frac{\max_{i<j} d(i,j)}{\min_{i<j} d(i,j)} \right)^2\]
- Variants:
2D space with \(n = 16\) points
3D space with \(n = 14\) points
Spherical Code¶
This benchmark is a maximisation problem where \(n=30\) distinct points are arranged on the surface of a unit sphere.
Objective: maximize the minimum pairwise angle between any two points.
Score:
\[\text{f} = \min_{i \ne j} \theta(i,j)\]where \(\theta(i,j)\) is the angle between points \(i\) and \(j\).
Kernel Tuner¶
Methodology class: Black-box Discrete/Mixed-Integer.
This benchmark evaluates metaheuristic algorithms for hardware kernel tuning across integer and variable-dimensional search spaces with constraints.
- The algorithm is scored based on performance of the kernel using metrices like:
runtime
throughput
custom matrices.
Hyperparameter tuning (optional): with
hpo=True(or a method that samples withHPO), a solution’s configuration space is tuned with SMAC on a fixed subset ofhpo_instances(default 12) training kernel-GPU pairs,hpo_trials(default 50) autotuning-methodology runs of one pair each, with cost1 - score. The configuration is passed to the strategy as itssearch_method_hyperparameters; the incumbent is then scored on all kernels and GPUs and recorded in the metadata (incumbent).
Logistics¶
Methodology class: Black-box Discrete/Mixed-Integer.
Travelling Salesman Problem¶
Given a set of 2-D points \((x, y)\), find the sortest path connecting those points.
Optimisation Direction: Minimisation.
- Fitness:
- \[\text{Minimise} \quad \sum_{i \in V} \sum_{j \in V, j \ne i} d(i,j) \, x_{ij}\]
- Constraints:
Each customer is served exactly once.
Vehicle Routing Problem¶
Given a set of 2-D points with their weights as, \((x, y, w)\) and a count \(n\) of similar vehicles, with capacity \(c\), and a depot point \((x,y, 0)\) find the minimum travel distance.
Optimisation Direction: Minimisation
- Fitness:
- \[\text{Minimise} \quad \sum_{i \in V} \sum_{j \in V, j \ne i} d(i,j) \, x_{ij}\]
- Constraints:
Each customer is only serviced once.
For each vehicle: \(sum_{i \in v_j} w_i \le c\) where \(v_j\) is a vehicle, and \(j \in \{0,\ldots,n\}\).
Matrix Multiplication via Tensor Decomposition¶
Methodology class: Structured Scientific Program/Search.
- Given matrix dimensions:
- \[n \times m \ \cdot \ m \times p \ \longrightarrow \ n \times p\]
define a tensor
\[T \in \mathbb{R}^{(n \cdot m) \times (m \cdot p) \times (p \cdot n)}\]that encodes ordinary matrix multiplication.
- Factorisation:
- A rank-\(r\) CP decomposition of \(T\):
- \[T[i,j,k] = \sum_{\ell=1}^{r} F_1[i,\ell] \cdot F_2[j,\ell] \cdot F_3[k,\ell]\]
yields a matrix multiplication algorithm requiring only \(r\) scalar multiplications.
- Objective:
Find the smallest rank :math:`r` that allows exact reconstruction (zero error).
- Constraints:
- All entries of the factor matrices \(F_1, F_2, F_3\) must lie on a quantisation grid:
grid = 0.5, 1.0, 1.5, ...
Number Theory¶
Methodology class: Structured Scientific Program/Search.
Sums vs Differences (Single-Set Formulation)¶
This benchmark searches for a finite set
\(U \subset \mathbb{Z}^+ \cup \{0\}\)
that maximizes the following quantity:
\[c(U) = 1 + \frac{\log|U-U| - \log|U+U|}{\log(2 \max(U) + 1)}\]Purpose:
\(c(U)\) lower-bounds the exponent \(C_6\) in the inequality
\[|A-B| \gtrsim |A+B|^{C_6}\]A larger \(c(U)\) corresponds to a better lower bound on \(C_6\).
Evaluation:
The evaluator computes \(|U+U|\) and \(|U-U|\) exactly.
Implementation uses FFT convolution/correlation on the indicator function of \(U\) over the domain \([0, \max(U)]\).
Constraints: \(0 \in U\), \(|U| \le\)
max_set_size(default 2048) and \(\max(U) \le 2^{21}\). The seed (AlphaEvolve’s 2,003-element set) scores \(c(U) = 1.147989\).
Packing¶
Methodology class: Black-box Discrete/Mixed-Integer.
Contains a set of packing problems, ranging from Hexagonal Packing to Circle Packing.
Circle Packing¶
This benchmark selects and places candidate circles inside a circular container to maximize total packed area under non-overlap constraints.
Input parameters:
A circular container \(c = (x, y, r) \in \mathbb{R}^3\)
Candidate radii \(r_i \; \forall i \in \{1, \ldots, n\}\)
Tolerance \(\epsilon > 0\) (default \(10^{-12}\))
Optimisation objective:
\[O = \max \sum_{i=1}^{n} \alpha_i \, \pi r_i^2\]where:
\(\alpha_i \in \{0,1\}\) indicates whether circle \(i\) is included.
Non-overlap constraint:
\[\| (x_i, y_i) - (x_j, y_j) \| \ge r_i + r_j + \epsilon \quad \forall i \ne j \text{ with } \alpha_i = \alpha_j = 1\]Containment constraint:
\[\| (x_i, y_i) - (x, y) \| + r_i \le r + \epsilon \quad \forall i \text{ with } \alpha_i = 1\]
Only circles satisfying both constraints contribute to the objective.
Hexagonal Packing¶
- This benchmark generates \(n\) disjoint regular hexagons parameterised by
- \[(x_i, y_i, \theta_i) \quad \forall i \in \{1, \ldots, n\}\]
where \((x_i, y_i)\) is the center and \(\theta_i\) the orientation.
Disjointness condition:
Any two hexagons must be separated by at least tolerance \(\epsilon\).
- Optimisation objective:
- The evaluator computes the smallest enclosing regular hexagon
\(h\) that contains all generated hexagons.
- Goal:
- \[\text{minimise } \text{Area}(h)\]
Rectangle Packing¶
This benchmark requires the algorithm to generate \(n\) disjoint circles inside a rectangular container of perimeter \(4\), respecting a specified tolerance \(\epsilon\).
- Generated circles:
- \[(x_i, y_i, r_i) \quad \forall i \in \{1, \ldots, n\}\]
- Constraints:
- Non-overlap:
- \[\| (x_i, y_i) - (x_j, y_j) \| \ge r_i + r_j + \epsilon \quad \forall i \ne j\]
- Containment:
- \[(x - x_i)^2 + (y - y_i) = r_i^2 \text{ must lie entirely within the rectangle} \quad \forall i\]
Unit Square Packing¶
This benchmark requires the algorithm to generate \(n\) disjoint circles inside a unit-square, respecting a specified tolerance \(\epsilon\).
- Generated circles:
- \[(x_i, y_i, r_i) \quad \forall i \in \{1, \ldots, n\}\]
- Constraints:
- Non-overlap:
- \[\| (x_i, y_i) - (x_j, y_j) \| \ge r_i + r_j + \epsilon \quad \forall i \ne j\]
- Containment:
- \[(x - x_i)^2 + (y - y_i) = r_i^2 \text{ must lie entirely within the square} \quad \forall i\]