arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.04384cs.AI
收藏

基于LLM的贝叶斯优化用于提示词搜索

LLM Based Bayesian Optimization for Prompt Search

Department of Computer Science and Engineering(计算机科学与工程系);University of Tennessee at Chattanooga(田纳西大学查塔努加分校)

Adam Ballew, Jingbo Wang, Shaogang Ren

AI总结:

本文提出BO-LLM算法,利用LLM驱动的GP代理模型和UCB采集函数进行提示词搜索,以高效优化文本分类性能并减少API调用,在两个数据集上验证了其优势。

摘要:

贝叶斯优化(BO)已被广泛用于在有限评估次数下高效优化昂贵的黑盒函数。在本文中,我们研究了将BO用于提示工程,以增强基于大型语言模型(LLMs)的文本分类。我们采用一个由LLM驱动的高斯过程(GP)作为代理模型,来估计不同提示词候选的性能。这些候选提示词由LLM通过扩展一组种子提示词生成,随后使用上置信界(UCB)采集函数结合GP后验进行评估。优化过程基于数据子集迭代地精炼提示词,旨在通过利用基于LLM的GP的预测不确定性,在提高分类准确性的同时减少API调用次数。所提出的BO-LLM算法在两个数据集上进行了评估,本文详细讨论了其优势。

英文摘要:

Bayesian Optimization (BO) has been widely used to efficiently optimize expensive black-box functions with limited evaluations. In this paper, we investigate the use of BO for prompt engineering to enhance text classification with Large Language Models (LLMs). We employ an LLM-powered Gaussian Process (GP) as the surrogate model to estimate the performance of different prompt candidates. These candidates are generated by an LLM through the expansion of a set of seed prompts and are subsequently evaluated using an Upper Confidence Bound (UCB) acquisition function in conjunction with the GP posterior. The optimization process iteratively refines the prompts based on a subset of the data, aiming to improve classification accuracy while reducing the number of API calls by leveraging the prediction uncertainty of the LLM-based GP. The proposed BO-LLM algorithm is evaluated on two datasets, and its advantages are discussed in detail in this paper.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑