mlsanityData to 7 Oct 2026

Harnessing Large Language Models to Compile Task-Relevant Context into Bayesian Optimisation

arXiv 2609.36788 ↗First posted 29 Sep 2026cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Incorporating rich task-relevant context, such as domain knowledge and external observations, is a key capability yet remains challenging for Bayesian optimisation (BO). Recently, practitioners have started to use large language models (LLMs) to generate and execute BO programs through coding harnesses. In such emerging practices, the posterior belief is shaped not only by Bayesian inference but also by LLM-generated model and data artefacts, offering a flexible route for task context to enter BO as executable code. To study whether and how LLMs can be harnessed to compile diverse contextual signals for BO, we formulate LLM-compiled BO as generalised-context decision making. We propose HarBO, a BO-specialised harness that compiles generalised context into the core artefacts of standard BO through a validated multi-stage workflow. Our theory analyses the regret under imperfect compilation and the effect of adding new context. Across synthetic functions and real-world benchmarks, we find that LLM harnesses can effectively compile context into standard BO, achieving competitive performance with specialised LLM-embedding-based and direct LLM-in-the-loop BO methods. General coding harnesses can be effective in familiar domains such as hyperparameter optimisation, but fall short in unfamiliar, context-rich domains. Together, these results establish LLM harnesses as a promising, but not automatically reliable, route for making rich task context usable in BO.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 24 of its 47 references that are in the map. First posted on arXiv 29 Sep 2026.

Builds on

24 of 47 references.

References · 24

  1. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  2. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,628
  3. 2022Code as Policies: Language Model Programs for Embodied Controlcited by 1,172
  4. 2023Large Language Models as Optimizerscited by 830
  5. 2021Bayesian Optimization is Superior to Random Search for Machine Learning Hyperparameter Tuning: Analysis of the Black-Box Optimization Challenge 2020cited by 146
  6. 2024Large Language Models to Enhance Bayesian Optimizationcited by 127
  7. 2021HPOBench: A Collection of Reproducible Multi-Fidelity Benchmark Problems for HPOcited by 111
  8. 2021Misspecified Gaussian Process Bandit Optimizationcited by 52
  9. 2024A Sober Look at LLMs for Material Discovery: Are They Actually Good for Bayesian Optimization Over Molecules?cited by 46
  10. 2024ADO-LLM: Analog Design Bayesian Optimization with In-Context Learning of Large Language Modelscited by 44
  11. 2020Gryffin: An algorithm for Bayesian optimization of categorical variables informed by expert knowledgecited by 30
  12. 2020Olympus: a benchmarking framework for noisy optimization and experiment planningcited by 28
12 more
  1. 2020Incorporating Expert Prior in Bayesian Optimisation via Space Warpingcited by 23
  2. 2023A General Framework for User-Guided Bayesian Optimizationcited by 22
  3. 2016Warm Starting Bayesian Optimizationcited by 21
  4. 2024Exploring the True Potential: Evaluating the Black-box Optimization Capability of Large Language Modelscited by 19
  5. 2025Adaptive Kernel Design for Bayesian Optimization Is a Piece of CAKE with LLMscited by 15
  6. 2024LLM-Enhanced Bayesian Optimization for Efficient Analog Layout Constraint Generationcited by 11
  7. 2025LLMs for Bayesian Optimization in Scientific Domains: Are We There Yet?cited by 10
  8. 2026Unleashing LLMs in Bayesian Optimization: Preference-Guided Framework for Scientific Discoverycited by 5
  9. 2026LABO: LLM-Accelerated Bayesian Optimization through Broad Exploration and Selective Experimentationcited by 4
  10. 2023Domain Knowledge Injection in Bayesian Search for New Materialscited by 3
  11. 2026Efficient and Principled Scientific Discovery through Bayesian Optimization: A Tutorialcited by 2
  12. 2026DASH: Decoupled Adaptive Surrogate - Acquisition Harness for Automated Bayesian Optimizationcited by 1

Built on by

Not cited yet.