LLaMEA-BO: A Large Language Model Evolutionary Algorithm for Automatically Generating Bayesian Optimization Algorithms
Not on the map. Why?
Abstract (arXiv)
Bayesian optimization (BO) is a powerful class of algorithms for optimizing expensive black-box functions, but designing effective BO algorithms remains a manual, expertise-driven task. Recent advancements in Large Language Models (LLMs) have opened new avenues for automating scientific discovery, including the automatic design of optimization algorithms. While prior work has used LLMs within optimization loops or to generate non-BO algorithms, we tackle a new challenge: Using LLMs to automatically generate full BO algorithm code. Our framework uses an evolution strategy to guide an LLM in generating Python code that preserves the key components of BO algorithms: An initial design, a surrogate model, and an acquisition function. The LLM is prompted to produce multiple candidate algorithms, which are evaluated on the established Black-Box Optimization Benchmarking (BBOB) test suite from the COmparing Continuous Optimizers (COCO) platform. Based on their performance, top candidates are selected, combined, and mutated via controlled prompt variations, enabling iterative refinement. Despite no additional fine-tuning, the LLM-generated algorithms outperform state-of-the-art BO baselines in 19 (out of 24) BBOB functions in dimension 5 and generalize well to higher dimensions, and different tasks (from the Bayesmark framework). This work demonstrates that LLMs can serve as algorithmic co-designers, offering a new paradigm for automating BO development and accelerating the discovery of novel algorithmic combinations. The source code is provided at https://github.com/Ewendawi/LLaMEA-BO.
Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). Builds on 33 of its 55 references that are in the map. First posted on arXiv 27 May 2025.
Builds on
33 of 55 references.
References · 33
- 2018A Tutorial on Bayesian Optimizationcited by 744
- 2016The CMA Evolution Strategy: A Tutorialcited by 377
- 2019Scalable Global Optimization via Local Bayesian Optimizationcited by 374
- 2024Evolution of Heuristics: Towards Efficient Automatic Algorithm Design Using Large Language Modelcited by 268
- 2021SMAC3: A Versatile Bayesian Optimization Package for Hyperparameter Optimizationcited by 230
- 2021Bayesian Optimization is Superior to Random Search for Machine Learning Hyperparameter Tuning: Analysis of the Black-Box Optimization Challenge 2020cited by 148
- 2023Tree-Structured Parzen Estimator: Understanding Its Algorithm Components and Their Roles for Better Empirical Performancecited by 147
- 2021High-Dimensional Bayesian Optimization with Sparse Axis-Aligned Subspacescited by 141
- 2016COCO: A Platform for Comparing Continuous Optimizers in a Black-Box Settingcited by 138
- 2024Large Language Models to Enhance Bayesian Optimizationcited by 135
- 2015Batch Bayesian Optimization via Local Penalizationcited by 104
- 2024LLaMEA: A Large Language Model Evolutionary Algorithm for Automatically Generating Metaheuristicscited by 97
21 more
- 2020Scalable Constrained Bayesian Optimizationcited by 84
- 2020HEBO Pushing The Limits of Sample-Efficient Hyperparameter Optimisationcited by 83
- 2022πBO: Augmenting Acquisition Functions with User Beliefs for Bayesian Optimizationcited by 70
- 2024A Systematic Survey on Large Language Models for Algorithm Designcited by 69
- 2022Joint Entropy Search for Maximally-Informed Bayesian Optimizationcited by 55
- 2023Algorithm Evolution Using Large Language Modelcited by 53
- 2023Increasing the Scope as You Learn: Adaptive Bayesian Optimization in Nested Subspacescited by 52
- 2019Greed is Good: Exploration and Exploitation Trade-offs in Bayesian Optimisationcited by 51
- 2015A General Framework for Constrained Bayesian Optimization using Information-based Searchcited by 50
- 2024ADO-LLM: Analog Design Bayesian Optimization with In-Context Learning of Large Language Modelscited by 44
- 2023Are Random Decompositions all we need in High Dimensional Bayesian Optimisation?cited by 36
- 2024In-the-loop Hyper-Parameter Optimization for LLM-Based Automated Design of Heuristicscited by 28
- 2021IOHexperimenter: Benchmarking Platform for Iterative Optimization Heuristicscited by 24
- 2024Understanding the Importance of Evolutionary Search in Automated Heuristic Design with Large Language Modelscited by 22
- 2023Comparison of High-Dimensional Bayesian Optimization Algorithms on BBOBcited by 19
- 2019Asynchronous Batch Bayesian Optimisation with Improved Local Penalisationcited by 17
- 2024Evolve Cost-aware Acquisition Functions Using Large Language Modelscited by 17
- 2015Differentiating the multipoint Expected Improvement for optimal batch designcited by 13
- 2022BBOB Instance Analysis: Landscape Properties and Algorithm Performance across Problem Instancescited by 10
- 2021Bayesian Optimisation for Constrained Problemscited by 9
- 2021Hyperboost: Hyperparameter Optimization by Gradient Boosting surrogate modelscited by 4
Built on by
Citing papers per year: 2025: 2; 2026: 8.
10 papers.
- 2025A Systematic Survey on Large Language Models for Evolutionary Optimization: From Modeling to Solvingcited by 11
- 2026From Heuristic Selection to Automated Algorithm Design: LLMs Benefit from Strong Priorscited by 2
- 2026Automated Kernel Discovery Towards Understanding High-dimensional Bayesian Optimizationcited by 1
- 2025MALBO: Optimizing LLM-Based Multi-Agent Teams via Multi-Objective Bayesian Optimizationcited by 0
- 2026CliffSearch: Structured Agentic Co-Evolution over Theory and Code for Scientific Algorithm Discoverycited by 0
- 2026An Open-Source Training Dataset for Foundation Models for Black-box Optimizationcited by 0
- 2026AutoSG: LLM-Driven Solver Generation Solely from Task Prompts for Expensive Optimizationcited by 0
- 2026LLM-Driven Evolutionary Generation of Multi-Objective Bayesian Optimization Algorithmscited by 0
- 2026Code-to-Harness: Distilling Black-Box Optimizers from Self-Playcited by 0
- 2026Hyper Algorithm Design Agent: Evolving Learnable Optimizer from Zerocited by 0
- 2026Hyper Algorithm Design Agent: Evolving Learnable Optimizer from Zero28 Sep 2026
- 2026Code-to-Harness: Distilling Black-Box Optimizers from Self-Play8 Sep 2026
- 2026LLM-Driven Evolutionary Generation of Multi-Objective Bayesian Optimization Algorithms6 Jul 2026
- 2026AutoSG: LLM-Driven Solver Generation Solely from Task Prompts for Expensive Optimization25 May 2026
- 2026An Open-Source Training Dataset for Foundation Models for Black-box Optimization22 May 2026
- 2026Automated Kernel Discovery Towards Understanding High-dimensional Bayesian Optimization18 May 2026
- 2026CliffSearch: Structured Agentic Co-Evolution over Theory and Code for Scientific Algorithm Discovery1 Apr 2026
- 2026From Heuristic Selection to Automated Algorithm Design: LLMs Benefit from Strong Priors3 Mar 2026
- 2025MALBO: Optimizing LLM-Based Multi-Agent Teams via Multi-Objective Bayesian Optimization14 Nov 2025
- 2025A Systematic Survey on Large Language Models for Evolutionary Optimization: From Modeling to Solving10 Sep 2025