TextBO: Bayesian Optimization in Language Space for Eval-Efficient Self-Improving AI

Enoch H. Kang, Hema YoganarasimhanRSI @ ICLR 2026

TL;DR

This paper introduces TextBO, a novel framework for self-improving AI that optimizes for evaluation efficiency in language-based tasks. By cleverly adapting Bayesian Optimization principles to the discrete and complex space of natural language prompts, TextBO significantly reduces the cost of obtaining reliable feedback, outperforming existing methods in ad optimization and agentic AI benchmarks.

What Problem Does This Paper Address?

Modern AI systems, particularly those powered by Large Language Models (LLMs), are increasingly capable of self-improvement. This often involves an iterative cycle of generating potential solutions (e.g., ad copy), evaluating them, and then refining the generation process based on feedback. While much research has focused on generation efficiency (how quickly new candidates can be produced), many real-world applications face a more significant bottleneck: evaluation efficiency. Obtaining reliable feedback (e.g., from user studies, A/B tests, or expert reviews) is often expensive and time-consuming. This paper addresses the challenge of optimizing AI systems when evaluation is the primary cost constraint, aiming to achieve high-performing solutions with minimal, high-quality evaluations.

Methods

The core innovation of TextBO lies in recasting prompt optimization as a Bayesian Optimization (BO) problem within the "language space." Standard BO relies on continuous spaces and well-defined gradients, which are absent in discrete text prompts. TextBO overcomes this by:

  • Textual Gradients: Leveraging the "TextGrad" framework, TextBO uses an auxiliary LLM critic to propose local, natural-language edits to prompts. These edits act as "textual gradients," guiding the prompt towards better performance.
  • BEST-OF-N Selection: To address the challenge of optimizing for evaluation efficiency and incorporating uncertainty (a key aspect of BO), TextBO employs a "BEST-OF-N" selection strategy. Instead of just taking a single textual gradient step, it generates multiple candidate edits, applies them, and then uses the critic to select the most promising candidate based on an optimism-in-the-face-of-uncertainty principle. This mechanism is theoretically shown to emulate gradient ascent on a UCB (Upper Confidence Bound) acquisition function in an implicit embedding space.
  • No Explicit Surrogate Models: Crucially, TextBO achieves this without needing to build explicit surrogate models or calibrated uncertainty estimates, operating purely through black-box interactions with the LLM critic.

Datasets

  • Digital Ad Optimization: The primary experimental setting involves optimizing ad creatives. The evaluation is performed using a simulated target population derived from the Twin-2k-500 persona distribution (Toubia et al., 2025). This dataset comprises detailed profiles of 2,058 individuals, allowing for simulated user preferences and ad effectiveness scores generated by a multi-modal LLM.
  • Agentic AI Benchmarks: For evaluating the broader applicability of the BEST-OF-N mechanism, TextBO-GEPA is tested on standard agentic AI benchmarks: HotpotQA, HoVer, and PUPA, as used in prior work (Agrawal et al., 2025).

Key Insights and Ideas

  • Evaluation Efficiency is Key: The paper strongly advocates for prioritizing evaluation efficiency over generation efficiency in many practical AI deployment scenarios, especially when feedback is costly.
  • Bayesian Optimization in Language Space: The core insight is that prompt optimization can be framed as Bayesian Optimization, allowing us to leverage its theoretical guarantees for evaluation efficiency.
  • BEST-OF-N as an Exploration Knob: The BEST-OF-N selection mechanism, traditionally used for test-time alignment, is repurposed as a principled way to inject exploration into the optimization process, effectively controlling the exploration-exploitation trade-off in BO.
  • LLMs as Implicit BO Engines: TextBO demonstrates that LLMs can implicitly perform BO without explicit surrogate models, by leveraging their internal reasoning and feedback capabilities.

Key Results

  • Ad Optimization: TextBO significantly outperforms strong baselines like BEST-OF-N and GEPA in automated ad-alignment tasks. It achieves faster early gains and better final performance, reaching scores comparable to or exceeding the "BEST-OF-64" baseline (the best initial ad) within a few iterations.
  • Agentic AI Benchmarks: Augmenting GEPA with TextBO's BEST-OF-N gradient sampling and multiple gradient steps (TEXTBO-GEPA) leads to consistently larger gains than vanilla GEPA across agentic AI benchmarks (HotpotQA, HoVer, PUPA), demonstrating the effectiveness of the approach in diverse tasks.
  • Ablation Study: An ablation study shows that TextBO's performance is not solely dependent on persona information; it can still perform well with a simpler LLM evaluator, though persona information can introduce variance that makes the learning problem harder.

Limitations and Future Work

  • Persona Dependence: While the persona dataset allows for controlled experiments, it's acknowledged that LLM-generated preferences might not perfectly reflect true human preferences. However, the authors argue that it still provides a well-defined distribution for benchmarking.
  • Computational Cost: While evaluation-efficient, the BEST-OF-N mechanism involves multiple LLM calls per gradient step, which can increase computational cost during the optimization phase.
  • Future Work: The paper suggests that the BEST-OF-N multi-step mechanism can be applied to other self-improving AI frameworks, and that further research can explore more sophisticated ways to construct meta-reflections and integrate them into the optimization process. The authors also highlight the potential for TextBO to reduce the marginal cost of iteration in data-driven decision-making for businesses.

Summary updated

BibTeX
@inproceedings{kang2026textbo,
  author = {Enoch H. Kang and Hema Yoganarasimhan},
  title = {{TextBO: Bayesian Optimization in Language Space for Eval-Efficient Self-Improving AI}},
  booktitle = {RSI @ ICLR},
  year = {2026},
  url = {https://openreview.net/forum?id=h0XYERyeL6},
}
Figure