GPTOpt: Towards Efficient LLM-Based Black-Box Optimization

Jamison Meindl, Yunsheng Tian, Tony Cui, Veronika Thost, Zhang-Wei Hong, Jie Chen, Wojciech Matusik, Mina Konakovic-Lukovic · DOI

Abstract

GPTOpt is a fine-tuned Large Language Model (Llama 3.1 8B) designed for sample-efficient continuous black-box optimization. By training the model to predict both action proposals and their associated probabilistic distributions (mean and standard deviation), GPTOpt internalizes the mechanics of Bayesian Optimization. Evaluated on standard benchmarks like BBOB and VLSE, GPTOpt demonstrates state-of-the-art performance, outperforming existing transformer-based and classical optimizers in low-budget regimes.

Introduction

Black-box optimization is critical in scientific discovery and engineering, where objective functions are unknown and evaluations are expensive. While Bayesian Optimization (BO) is the standard approach, it often requires expert tuning. Large Language Models (LLMs) offer vast prior knowledge but typically struggle with the numerical precision and exploration-exploitation balance required for continuous optimization. GPTOpt bridges this gap by fine-tuning an LLM to act as a calibrated probabilistic surrogate model.

Methods

GPTOpt utilizes a Llama 3.1 8B base model fine-tuned via Low-Rank Adaptation (LoRA) on 2 million optimization trajectories generated by expert BO algorithms (e.g., HEBO and TuRBO).

The GPTOpt workflow: conversational history is used by the LLM to propose actions and predict output distributions, which are then selected via Expected Improvement.

The framework follows a structured iterative process:

  1. Probabilistic Output: Instead of simple coordinates, the model generates JSON objects containing a proposed action, a predicted mean, and a standard deviation. This forces the LLM to function as a probabilistic surrogate.
  2. Selection via Expected Improvement (EI): The model generates multiple candidates ($k=4$) and selects the best one based on its own predicted uncertainty, mimicking the acquisition function of a Gaussian Process.
  3. Semantic Integration: GPTOpt can process natural language descriptions of the optimization task, leveraging its pre-trained knowledge of physics or chemistry to guide the search before data is even observed.

Evaluation and Results

The model was evaluated on the Black-Box Optimization Benchmark (BBOB), the Virtual Library of Simulation Experiments (VLSE), and real-world hyperparameter tuning tasks for Scikit-Learn models.

Performance comparison on BBOB functions across different dimensions. GPTOpt shows superior sample efficiency and final normalized scores compared to baselines.

GPTOpt consistently outperformed other transformer-based optimizers such as LLAMBO and PFNs4BO. Notably, it remained competitive with specialized classical algorithms like HEBO and CMA-ES, particularly in ultra-low budget scenarios (under 50 trials). A key finding was the model's calibration; it provides uncertainty estimates nearly as accurate as a formal Gaussian Process, avoiding the common LLM pitfall of overconfidence.

Conclusion and Future Work

GPTOpt demonstrates that LLMs can be effectively taught to perform as calibrated Bayesian optimizers. By combining probabilistic reasoning with semantic context, it achieves high sample efficiency and provides interpretable natural language explanations for its decisions. Future work will focus on scaling the approach to higher-dimensional spaces (beyond 10D) and incorporating support for discrete or categorical variables.

Summary updated

BibTeX
@misc{meindl2025gptopt,
  author = {Jamison Meindl and Yunsheng Tian and Tony Cui and Veronika Thost and Zhang-Wei Hong and Jie Chen and Wojciech Matusik and Mina Konakovic-Lukovic},
  title = {{GPTOpt: Towards Efficient LLM-Based Black-Box Optimization}},
  year = {2025},
  eprint = {2510.25404},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.25404},
}
Figure