TextBO: 在语言空间中基于贝叶斯优化的评估高效自改进AI
TextBO: Bayesian Optimization in Language Space for Eval-Efficient Self-Improving AI
AI总结:
TextBO是一种在语言空间中基于贝叶斯优化的评估高效自改进AI算法,通过结合文本梯度与最佳N选择策略,实现高效自改进。
摘要:
大型语言模型(LLMs)已经使自改进AI系统能够迭代地生成、评估和改进其结果。最近的研究表明,基于提示优化的自改进方法可以超越最先进的强化学习微调,但性能通常通过生成效率来衡量。然而,在许多应用中,约束是评估效率:获得可靠的反馈比生成候选者要昂贵得多。为了优化评估效率,我们扩展了上置信界-贝叶斯优化(UCB-BO)框架,该框架以最优的评估效率保证著称,应用于语言领域。这样做具有两个挑战:(i)UCB-BO所需的梯度在离散提示空间中是不明确的;(ii)UCB风格的探索依赖于替代模型和获取函数,这些只在LLM中隐含存在。我们通过证明结合简单的文本梯度(LLM提出的局部编辑)与最佳N选择策略可以统计上模拟沿标准UCB获取函数梯度的上升来克服这些挑战。基于这一结果,我们提出了TextBO,一种简单、评估高效的自改进算法,它在语言空间中运行,不依赖显式的替代模型或校准的不确定性模型。我们通过在自动广告对齐任务中使用由角色诱导的偏好分布来经验验证TextBO,证明其在评估效率方面优于强基线如Best-of-N和GEPA。我们还评估了TextBO的Best-of-N多步文本梯度机制在代理AI基准测试中的表现,通过将其与GEPA结合进行增强,证明其显著优于标准GEPA。总之,TextBO是一种简单而原则性的框架,用于AI自改进系统设计,它连接了提示优化与经典的贝叶斯优化。
英文摘要:
Large Language Models (LLMs) have enabled self-improving AI systems that iteratively generate, evaluate, and refine their outcomes. Recent studies show that prompt-optimization-based self-improvement can outperform state-of-the-art reinforcement-learning fine-tuning of LLMs, but performance is typically measured by generation efficiency. However, in many applications, the constraint is evaluation efficiency: obtaining reliable feedback is far more costly than generating candidates. To optimize for evaluation efficiency, we extend Upper Confidence Bound-Bayesian Optimization (UCB-BO), a framework known for optimal evaluation-efficiency guarantees, to the language domain. Doing so is challenging for two reasons: (i) gradients needed for UCB-BO are ill-defined in discrete prompt space; and (ii) UCB-style exploration relies on a surrogate model and acquisition function, which only live implicitly in the LLM. We overcome these challenges by proving that combining simple textual gradients (LLM-proposed local edits) with the Best-of-N selection strategy statistically emulates ascent along the gradient of the canonical UCB acquisition function. Based on this result, we propose TextBO, a simple, evaluation-efficient self-improving algorithm that operates purely in language space without explicit surrogates or calibrated uncertainty models. We empirically validate TextBO on automated ad-alignment tasks using a persona-induced preference distribution, demonstrating superior performance per evaluation compared to strong baselines such as Best-of-N and GEPA. We also evaluate TextBO's Best-of-N multi-step textual-gradient mechanism on agentic AI benchmarks by augmenting GEPA with it and show that it significantly outperforms standard GEPA. In sum, TextBO is a simple and principled framework for AI self-improving system design that bridges prompt optimization with classical Bayesian optimization.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。