⭐ If you like this, please give the repo a star – it helps!
Table of Contents
- News
- Introduction
- Installation
- Quick Start
- Webapp
- AlphaEvolve Benchmarks
- Contributing
- License
- Citation
🔥 News
- 2026.11 ✨✨ BLADE v1.2.0: define experiments in YAML, use your own problems and methods without writing an experiment script, and check an experiment before spending LLM time (
iohblade init / validate / check / run). New built-in methods FunSearch and ShinkaEvolve, reimplemented to run with any supported LLM. - 2025.03 ✨✨ BLADE v0.0.1 released!
Introduction
BLADE (Benchmark suite for LLM-driven Automated Design and Evolution) provides a standardized benchmark suite for evaluating automatic algorithm design algorithms, particularly those generating metaheuristics by large language models (LLMs). It focuses on continuous black-box optimization and integrates a diverse set of problems and methods, facilitating fair and comprehensive benchmarking.
The recommended way to use BLADE is a YAML experiment file and the iohblade command. You describe which LLMs, methods and problems to use (built-in ones by name, your own as a Python file), and BLADE validates the file, smoke-tests it without LLM calls, and runs it:
uv run iohblade init my-exp # starter experiment.yml
uv run iohblade validate my-exp/experiment.yml # every mistake, with its line number
uv run iohblade check my-exp/experiment.yml # smoke test, no LLM calls
uv run iohblade run my-exp/experiment.yml # run (rerun to resume)
The Python API remains available for scripting and for building new methods and problems.
Features
- Experiments as configuration: a YAML file and the
iohbladecommand (init,validate,check,run) replace experiment scripts, including for your own problems and methods. - Agent-ready: a bundled skill (
iohblade skill) lets coding agents such as Claude Code set up and run experiments for you. - Comprehensive Benchmark Suite: Covers various classes of black-box optimization problems.
- LLM-Driven Evaluation: Supports algorithm evolution and design using large language models.
- Built-In Baselines: Includes state-of-the-art metaheuristics for comparison.
- Automatic Logging & Visualization: Integrated with IOHprofiler for performance tracking.
Feature Coverage Map
To make feature discovery easier, this table maps the main BLADE features to the implementation location and corresponding documentation entry.
| Feature | Implementation | Documentation |
|---|---|---|
Experiments from YAML, iohblade command |
iohblade/config/, iohblade/cli.py |
docs/yaml_experiments.rst |
| Experiment orchestration | iohblade/experiment.py |
docs/experiment.rst |
| Problems and benchmark wrapping | iohblade/problem.py, iohblade/benchmarks/ |
docs/problem.rst, docs/benchmarks.rst |
| Search methods (LLaMEA, LHNS, MCTS-AHD, EoH, ReEvo, Random Search, FunSearch, ShinkaEvolve) | iohblade/methods/ |
docs/method.rst, docs/methods.rst |
| LLM provider integration | iohblade/llm.py |
docs/llm.rst |
| Loggers (local, MLflow, Trackio) | iohblade/loggers/ |
docs/loggers.rst |
| Baselines | iohblade/baselines/ |
docs/baselines.rst |
| Plotting and analysis helpers | iohblade/plots.py, iohblade/behaviour_metrics.py |
docs/plots.rst, docs/behaviour_metrics.rst |
| Streamlit result browser | iohblade/webapp.py |
docs/webapp.rst |
| Component registry (names of built-in problems, methods, LLMs, loggers) | iohblade/registry.py |
docs/registry.rst |
| Cached evaluation environments | iohblade/envs.py |
docs/yaml_experiments.rst |
| Utility helpers and exceptions | iohblade/utils.py |
docs/utils.rst |
Included Benchmark Function Sets
BLADE incorporates several benchmark function sets to provide a comprehensive evaluation environment:
| Name | Short Description | Number of Functions | Multiple Instances |
|---|---|---|---|
| BBOB (Black-Box Optimization Benchmarking) | A suite of 24 noiseless functions designed for benchmarking continuous optimization algorithms. Reference | 24 | Yes |
| SBOX-COST | A set of 24 boundary-constrained functions focusing on strict box-constraint optimization scenarios. Reference | 24 | Yes |
| MA-BBOB (Many-Affine BBOB) | An extension of the BBOB suite, generating functions through affine combinations and shifts. Reference | Generator-Based | Yes |
| GECCO MA-BBOB Competition Instances | A collection of 1,000 pre-defined instances from the GECCO MA-BBOB competition, evaluating algorithm performance on diverse affine-combined functions. Reference | 1,000 | Yes |
| HLP (High-Level Properties) | Generated benchmarks guided by high-level property combinations (e.g., separable, multimodality). | Generator-Based | Yes |
In addition, several real-world applications are included.
Default suites. Named sets of problems with fixed settings, for YAML
experiments (- suite: <name>): bbob (one problem per BBOB function group,
10-D, instances 1-5 for training and 6-15 for testing), ma_bbob,
continuous_bbo, alphaevolve_math, combinatorial, quick and full.
dim and budget_factor apply to a whole suite. See the
Default Suites
documentation and examples/configs/default_suites.yml.
Real World Benchmarks
| Name | Description |
|---|---|
| Analysis | |
| Auto-Correlation 1 | Minimise $\max(g) / I^2$ for non-negative signals under fixed discretisation of $[-1/4, 1/4]$. |
| Auto-Correlation 2 | Maximise $L_2^2 / (L_1 · L_\infty)$ for non-negative signals using discrete auto-convolution. |
| Auto-Correlation 3 | Minimise $\max(|g|) / I^2$ for real-valued signals with non-zero integral. |
| AutoML | |
| AutoML Pipelines | Generate and evaluate machine learning pipelines using scikit-learn. |
| Combinatorics | |
| Erdős Minimum-Overlap Problem | Minimise the suprenum overlap integral between complementary measurable functions. |
| Euclidean Steiner Tree Problem | Minimise MST(points + Steiner points) / MST(points) ratio by adding optimal Steiner nodes. |
| Graph Colouring Problem | Minimise the number of colours needed for a colouring nodes of a graph, s.t. no adjacent nodes share same colour. |
| Fourier | |
| Fourier Uncertainty Inequality | Minimise uncertainty bound for functions of form $P(x)e^{-πx²}$ under Hermite constraints. |
| Geometry | |
| Heilbronn (Unit Triangle) | Maximise the area of smallest triangle formed by 11 points in a unit-area triangle. |
| Heilbronn (Unit Convex Region) | Maximise the area of smallest triangle formed by 13–14 points in a unit-area convex region. |
| Kissing Number (11D) | Maximise number of integer vectors satisfying high-dimensional kissing constraints. |
| Min/Max Distance Ratio | Minimise squared ratio of maximum to minimum pairwise distances (2D/3D variants). |
| Spherical Code | Maximise the minimum pairwise angle among 30 points on a unit sphere. |
| Kernel Tuner | |
| Kernel Tuning Benchmark | Evaluate metaheuristics for hardware kernel optimisation under constraints. |
| Logistics | |
| Travelling Salesman Problem | Minimise total tour distance visiting each 2D point exactly once. |
| Vehicle Routing Problem | Minimise total travel distance for capacitated vehicles serving weighted customers. |
| Matrix Multiplication via Tensor Decomposition | |
| Tensor CP Factorisation | Find smallest CP rank enabling exact matrix multiplication under quantised factors. |
| Number Theory | |
| Sums vs Differences | Maximise c(U) measuring imbalance between sumsets and difference sets. |
| Packing | |
| Circle Packing | Maximise total packed circle area inside a circular container without overlap. |
| Hexagonal Packing | Minimise area of smallest enclosing hexagon containing disjoint regular hexagons. |
| Rectangle Packing | Pack disjoint circles inside a fixed-perimeter rectangle under containment constraints. |
| Unit Square Packing | Pack disjoint circles inside a unit square while satisfying non-overlap constraints. |
These benchmarks are provided with ready to run instances in
run_benchmarks/, while the reusable benchmark
definitions are organized under iohblade/benchmarks
by domain (analysis, combinatorics, geometry, matrix multiplication, number
theory, packing, and Fourier). Each domain folder includes a short README that
summarizes the task and instances.
Included Search Methods
The suite contains the state-of-the-art LLM-assisted search algorithms:
| Algorithm | Description | Link |
|---|---|---|
| LLaMEA | Large Langugage Model Evolutionary Algorithm | code paper |
| EoH | Evolution of Heuristics | code paper |
| FunSearch | Island-based evolution with best-shot prompts (reimplemented in BLADE, after the LLM4AD port) | code paper |
| ReEvo | Large Language Models as Hyper-Heuristics with Reflective Evolution | code paper |
| LLM-Driven Heuristics Neighbourhood Search | LLM-Driven Neighborhood Search for Efficient Heuristic Design | code paper |
| Monte Carlo Tree Search | Monte Carlo Tree Search for Comprehensive Exploration in LLM-Based Automatic Heuristic Design | code paper |
| ShinkaEvolve | Sample-efficient program evolution: islands, weighted parent selection, diff/full/crossover patches, novelty rejection, LLM bandit (reimplemented in BLADE) | code paper |
Supported LLM APIs
BLADE supports integration with various LLM APIs to facilitate automated design of algorithms:
| LLM Provider | Description | Integration Notes |
|---|---|---|
| Gemini | Google's multimodal LLM designed to process text, images, audio, and more. Reference | Accessible via the Gemini API, compatible with OpenAI libraries. Reference |
| OpenAI | Developer of GPT series models, including GPT-4, widely used for natural language understanding and generation. Reference | Integration through OpenAI's REST API and client libraries. |
| Ollama | A platform offering access to various LLMs, enabling local and cloud-based model deployment. Reference | Integration details can be found in their official documentation. |
| Claude | Anthropic's Claude models for safe and capable language generation. Reference | Claude_LLM, via the official anthropic Python SDK (2.x). Supports effort and server-side refusal fallbacks; see docs/llm.rst. |
| DeepSeek | Developer of the DeepSeek family of models for code and chat. Reference | Access via OpenAI compatible API at https://api.deepseek.com. |
| LMStudio | A hardware specialised platform for Apple Silicon, helping you run massive LLMs locally on M1 or better Macs. Reference | Provides a local OpenAI-compatible server, allowing integration via standard OpenAI client libraries pointed at a localhost endpoint. |
MLX_LM (Beta) |
A hardware specialised python package for Apple Silicon, helping you run massive LLMs locally on M1 or better Macs. Reference | Used via Python APIs and CLI tools, often integrated into local inference workflows and Apple MLX pipelines. |
Evaluating against Human Designed baselines
An important part of BLADE is the final evaluation of generated algorithms against state-of-the-art human designed algorithms.
In the iohblade.baselines part of the package, several well known SOTA black-box optimizers are imolemented to compare against.
Including but not limited to CMA-ES and DE variants.
For the final validation BLADE uses IOHprofiler, providing detailed tracking and visualization of performance metrics.
🎁 Installation
It is the easiest to use BLADE from the pypi package (iohblade).
pip install iohblade
You can also install the package from source using uv (0.7.19).
make sure you have uv installed.
-
Clone the repository:
git clone https://github.com/XAI-liacs/BLADE.git cd BLADE
-
Install the required dependencies via uv:
uv sync -
(Optional) Install additional packages:
uv sync --group kerneltuner --group dev --group docs
This will install additional dependencies for development and building documentation. The (experimental) auto-kernel application is also under a separate group for now.
-
(Optional) Intall Support for MLX optimised LLMs:
uv sync --group dev --group apple-silicon --prerelease=allow
Select all the groups required, and append it with
--group apple-silicon --prerelease=allow, to install libraries that enable MLX Optimised LLMs support throughmlx-lmandLMStudio.
💻 Quick Start
-
Choose an LLM:
-
Define and run an experiment in YAML (recommended)
uv run iohblade init my-exp # starter experiment.yml (+ --template custom-problem / custom-method) uv run iohblade validate my-exp/experiment.yml # checks the configuration, runs nothing uv run iohblade check my-exp/experiment.yml # smoke test without LLM calls uv run iohblade run my-exp/experiment.yml # run (rerun to resume)
A configuration names the LLMs, methods and problems. This one uses the local Ollama model from step 1; to use OpenAI instead, uncomment the
gptentry and setllm: gptin the methods:experiment: {output_dir: results/SBOX, runs: 5, budget: 50} llms: qwen: {provider: ollama, model: "qwen2.5-coder:14b"} # gpt: {provider: openai, model: gpt-4o, api_key: "${env:OPENAI_API_KEY}"} methods: - {type: random_search, name: "RS-{llm}", llm: qwen} - {type: llamea, name: "LLaMEA-{llm}", llm: qwen, params: {n_parents: 4, n_offspring: 12, elitism: false}} problems: - type: bbob_sbox name: SBOX_COST params: {dims: [5], budget_factor: 2000, specific_group: 1}
Your own problems and methods are linked with
type: custom,source:andclass:. See the YAML guide, the tutorials, andexamples/configs/. -
Or use the Python API (for scripting)
The same experiment written in Python:
import os from iohblade.experiment import Experiment from iohblade.llm import Ollama_LLM from iohblade.methods import LLaMEA, RandomSearch from iohblade.benchmarks import BBOB_SBOX from iohblade.loggers import ExperimentLogger llm = Ollama_LLM("qwen2.5-coder:14b") #qwen2.5-coder:14b, deepseek-coder-v2:16b budget = 50 #short budget for testing RS = RandomSearch(llm, budget=budget) #Random Search baseline LLaMEA_method = LLaMEA(llm, budget=budget, name="LLaMEA", n_parents=4, n_offspring=12, elitism=False) #LLamEA with 4,12 strategy methods = [RS, LLaMEA_method] problems = [] # include all SBOX_COST functions with 5 instances for training and 10 for final validation as the benchmark problem. training_instances = [(f, i) for f in range(1,25) for i in range(1, 6)] test_instances = [(f, i) for f in range(1,25) for i in range(6, 16)] problems.append(BBOB_SBOX(training_instances=training_instances, test_instances=test_instances, dims=[5], budget_factor=2000, name=f"SBOX_COST")) # Set up the experiment object with 5 independent runs per method/problem. (in this case 1 problem) logger = ExperimentLogger("results/SBOX") experiment = Experiment(methods=methods, problems=problems, runs=5, show_stdout=True, exp_logger=logger) #normal run experiment() #run the experiment, all data is logged in the folder results/SBOX/
The same experiment can also be loaded from YAML in Python:
Experiment.from_yaml("experiment.yml").
Using BLADE with a coding agent
BLADE ships a skill that teaches coding agents (Claude Code and other agents
that read SKILL.md skills) to set up, check and run experiments. Install it
into your project and ask, for example, "Set up a BLADE experiment that
compares LLaMEA and random search on my problem in my_problem.py":
uv run iohblade skill # writes .claude/skills/blade/
uv run iohblade skill .agents/skills # or the skills folder of another agent
In a clone of this repository the skill is already available in
.claude/skills/blade/.
Trackio logging
To mirror results to a Trackio dashboard,
install the optional dependency and use TrackioExperimentLogger:
uv sync --group trackio
from iohblade.loggers import TrackioExperimentLogger
logger = TrackioExperimentLogger("my-project")
experiment = Experiment(methods=methods, problems=problems, runs=5, exp_logger=logger)
🌐 Webapp
After running experiments you can browse them using the built-in Streamlit app:
uv run iohblade-webapp
The app lists available experiments from the results directory and shows,
per experiment, the status of every run (best fitness, failed evaluations),
the resolved configuration, the experiment log and convergence plots.
💻 Examples
Start with examples/configs/: YAML experiments on built-in benchmarks and with a custom
problem (uv run iohblade validate examples/configs/custom_problem.yml). The examples
folder also has Python scripts and notebooks for experiments and visualisations.
🤖 Contributing
Contributions to BLADE are welcome! Here are a few ways you can help:
- Report Bugs: Use GitHub Issues to report bugs.
- Feature Requests: Suggest new features or improvements.
- Pull Requests: Submit PRs for bug fixes or feature additions.
Please refer to CONTRIBUTING.md for more details on contributing guidelines.
🪪 License
Distributed under the MIT License. See LICENSE for more information.
✨ Citation
If you use BLADE in your research, please cite the following work:
@inproceedings{vanstein2025blade,
author = {Niki van Stein and Anna V. Kononova and Haoran Yin and Thomas B{\"a}ck},
title = {BLADE: Benchmark suite for LLM-driven Automated Design and Evolution of iterative optimisation heuristics},
booktitle = {Proceedings of the Genetic and Evolutionary Computation Conference Companion},
series = {GECCO '25 Companion'},
year = {2025},
pages = {2336--2344},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
doi = {10.1145/3712255.3734347},
url = {https://doi.org/10.1145/3712255.3734347}
}
The repository also provides a CITATION.cff file for use with GitHub's citation feature.
Happy Benchmarking with IOH-BLADE! 🚀
Metadata
Release files for iohblade 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| iohblade-1.2.0.tar.gz | 9.9 MB | Without provenance | Details for iohblade-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| iohblade-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for iohblade-1.2.0-py3-none-any.whl |
Total release size: 11.1 MB
Release files / iohblade-1.2.0.tar.gz
| Download URL | iohblade-1.2.0.tar.gz |
|---|---|
| Size | 9.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
891b91babd3db54a9e8d7fa88c34eea0ddd7579da034ad45fd7413a2b3e9455d
|
|
BLAKE2b-256 checksum How to use checksums |
1aeab8c1a5b0499480bf17f6866163eead1f71c93870750d9265933cb8d7c976
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.7.19
|
Release files / iohblade-1.2.0-py3-none-any.whl
| Download URL | iohblade-1.2.0-py3-none-any.whl |
|---|---|
| Size | 1.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e97174821604d4d3c4440d6dc022fd4e39211c3fb75c4f3ff541d578d48c41a
|
|
BLAKE2b-256 checksum How to use checksums |
468a6032c6a16f62596f615c5b5eed0007ba69f1662f3287f6d6a0d346856acf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.7.19
|
Security for iohblade 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.