LILO: Bayesian Optimization with Natural Language Feedback

Kasia Kobalczyk, Zhiyuan Jerry Lin, Benjamin Letham, Zhuokai Zhao, Maximilian Balandat, Eytan Bakshy

Abstract Many real-world optimization problems are guided by complex, subjective preferences that are difficult to express as explicit closed-form objectives. Language-in-the-Loop Optimization (LILO) is a novel Bayesian optimization (BO) framework that employs a large language model (LLM) to translate free-form natural language feedback and prior knowledge into structured preference signals. By placing the LLM in a supporting role rather than as the optimizer itself, LILO preserves the sample efficiency and stability of BO while providing a flexible and expressive feedback interface.

The Challenge of Subjective Optimization

Traditional Bayesian Optimization (BO) excels at finding the optimal settings for expensive "black-box" systems, such as tuning a vehicle's safety features or a machine learning model's hyperparameters. However, BO typically requires a clear, explicit numerical score to maximize. In real-world scenarios, defining "the best" outcome is often highly subjective and difficult to quantify.

Existing "preferential BO" methods attempt to circumvent this by asking human decision-makers to choose between two options (A vs. B). Unfortunately, humans find it tedious to perform hundreds of these pairwise comparisons, and simple binary choices discard a wealth of contextual information. Conversely, using an LLM as the primary optimizer often leads to hallucinations, poor exploration of the search space, and a lack of mathematical guarantees. LILO addresses this gap by utilizing natural language as an information-dense bridge between human intuition and probabilistic modeling.

The LILO Framework

LILO introduces a hybrid architecture that strategically places the LLM in a supporting translation role, leaving the mathematical rigor of optimization to a Gaussian Process (GP). The framework operates through four primary mechanisms:

  1. Candidate Generation: LILO relies on a standard GP surrogate model and an acquisition function (such as Expected Improvement) to suggest the next batch of experimental points to evaluate.
  2. Feedback Acquisition: Instead of requesting a simple numerical rating or binary choice, the system engages the user in a dialogue. The LLM agent generates targeted questions for the Decision Maker, who responds in natural language (e.g., "I like the high accuracy of the last run, but the memory usage is a dealbreaker").
  3. Utility Estimation: LILO leverages the LLM to analyze the history of text feedback and label pairs of experimental outcomes with preferences. These structured labels are then used to fit a Pairwise Gaussian Process, effectively translating subjective text into a mathematical signal.
  4. Information-Dense Priors: The framework can ingest "textual priors"—domain knowledge provided in text at the onset—to warm-start the optimization process. This is a significant advantage over traditional BO, which struggles to incorporate such priors without extensive manual feature engineering.

Experimental Scope and Key Findings

The researchers evaluated LILO across a diverse array of benchmarks, including synthetic multi-objective functions (DTLZ2), engineering simulators (vehicle safety and car cab design), human-centric tasks (thermal comfort HVAC settings), Neural Architecture Search (NAS-Bench-201), and unstructured outcomes like abstractive summarization using the CNN/DailyMail dataset.

Across these 10 test environments, LILO consistently outperformed both traditional preference-based BO and LLM-only optimizers (such as LLAMBO). Several key insights emerged from the results:

  • Language is Information-Dense: A single natural language message can be as informative as 8 to 16 traditional pairwise comparisons. Text allows users to describe global trade-offs and constraints simultaneously.
  • Sample Efficiency: LILO's performance advantage is most pronounced in the early stages of optimization. By "understanding" the user's goals from the very first message, it reaches high-utility regions significantly faster.
  • LLMs as Translators, Not Optimizers: Using the LLM to label data for a GP rather than selecting the next points maintains "calibrated uncertainty." The GP retains an understanding of its own blind spots, preventing the optimization from getting trapped in local optima.
  • Pairwise Comparisons Over Scalar Scores: The study confirms that asking an LLM to compare two options yields much more accurate utility models than asking it to assign a direct numerical score to a single outcome. The LLM-based pairwise labeling achieved over 90% accuracy as feedback accumulated.
  • Handling Unstructured Outcomes: In the summarization task, LILO successfully optimized model parameters even when the results were purely textual—a scenario where traditional BO baselines typically fail without complex manual encoding.

Limitations and Future Directions

While LILO presents a significant step forward, the authors note a few limitations. Most experiments utilized another LLM to simulate the "human" decision-maker to allow for large-scale testing; real-world human behavior may prove more inconsistent. Additionally, the system's performance is heavily tied to the quality of the underlying LLM, with smaller models (under 10B parameters) struggling to output the complex JSON formatting required for LILO's internal logic.

Future work will explore "active question generation," where the LLM formulates specific questions designed to resolve the GP's highest areas of uncertainty. There is also exciting potential to apply the LILO framework to image generation and other creative, human-in-the-loop design processes.

Summary updated

BibTeX
@inproceedings{kobalczyk2026lilo,
  author = {Kasia Kobalczyk and Zhiyuan Jerry Lin and Benjamin Letham and Zhuokai Zhao and Maximilian Balandat and Eytan Bakshy},
  title = {{LILO: Bayesian Optimization with Natural Language Feedback}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=zVrbE9ZtEU},
}
Figure