Bayesian optimization (BO) is a sequential decision-making tool widely used for optimizing expensive black-box functions. Recently, Large Language Models (LLMs) have shown remarkable adaptability in low-data regimes, making them promising tools for black-box optimization by leveraging contextual knowledge to propose high-quality query points. However, LLMs lack explicit surrogate modeling and calibrated uncertainty, and their internal mechanisms remain opaque. This structural opacity can result in unnecessary experiments, which are costly in BO and may prevent the search from approaching the optimum. To address this, we propose LLINBO: LLM-in-the-Loop BO, a general framework that wraps existing LLM-based BO approaches, deciding when and how to act on their suggestions and when to revert to classical BO. We introduce three mechanisms for this interaction, each accompanied by a no-harm theoretical guarantee that ensures sublinear cumulative regret for common kernels while requiring no performance assumptions on the LLM. Beyond these theoretical guarantees, we show through simulation studies that LLINBO makes existing LLM-based BO more reliable while still exploiting the LLM's few-shot learning ability to outperform classical BO. We further demonstrate its practical use on a real-world, expensive 3D printing experiment. Code is available at https://github.com/UMDataScienceLab/LLM-in-the-Loop-BO.
Institute of Data Science, National University of Singapore(新加坡国立大学数据科学研究院);Department of Industrial Systems Engineering and Management, National University of Singapore(新加坡国立大学工业系统工程与管理系)
Explainable Artificial Intelligence for Bayesian Neural Networks: Towards trustworthy predictions of ocean dynamics
Imperial College London(伦敦帝国理工学院);Princeton University(普林斯顿大学);NOAA/Geophysical Fluid Dynamics Laboratory(美国国家海洋和大气管理局/地球物理流体动力学实验室);University of Washington(华盛顿大学);Institut Pierre-Simon Laplace(皮埃尔-西蒙·拉普拉斯研究所);IRD(法国发展研究院);Sorbonne Université(索邦大学);LOCEAN-IPSL(皮埃尔-西蒙·拉普拉斯环境研究所海洋学与气候实验室);CNRS(法国国家科学研究中心);Laboratoire des Sciences du Climat et de l’Environnement(气候与环境科学实验室);CEA Saclay(法国原子能和替代能源委员会萨克雷中心)
An uncertainty-aware Bayesian framework for machine learning classification models: A case study in land cover classification
National Physical Laboratory, Teddington, UK(英国国家物理实验室,Teddington);Department of Data Science(数据科学系);Department of Thermal & Radiometric Metrology(热学与辐射计量学系);School of Geography, Geology & the Environment(地理、地质与环境学院)