arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2412.07820cs.LGcs.AI
收藏

基于Hyperband的贝叶斯优化用于黑盒提示选择

Hyperband-based Bayesian Optimization for Black-box Prompt Selection

Amazon Web Services(亚马逊云科技);University of Leipzig(莱比锡大学);distil labs(distil实验室);Cognism

Lennart Schneider, Martin Wistuba, Aaron Klein, Jacek Golebiowski, Giovanni Zappella, Felice Antonio Merra

AI总结:

本文提出HbBoPs方法,将结构感知深度核高斯过程与Hyperband多保真度调度相结合,通过模块化提示嵌入和自适应资源分配,在黑盒设置下高效选择最优提示,并在多个基准上验证了其性能与效率优势。

摘要:

最优提示选择对于最大化大语言模型(LLM)在下游任务上的性能至关重要,尤其是在只能通过API访问模型的黑盒设置中。黑盒提示选择具有挑战性,原因在于可能存在大规模的组合搜索空间、缺乏梯度信息,以及在验证集上评估提示的高昂成本。我们提出HbBoPs,这是一种新颖的方法,将结构感知的深度核高斯过程与Hyperband相结合,作为多保真度调度器来高效地选择提示。HbBoPs使用指令和少样本示例的嵌入,将它们视为提示中的模块化组件。这增强了代理模型以样本高效的方式预测下一个要评估的提示的能力。Hyperband通过在不同保真度级别之间自适应地分配资源来提高查询效率,减少了评估提示所需的验证实例数量。在十个不同的基准和三个LLM上进行的大量实验表明,HbBoPs在性能和效率方面均优于最先进的方法。

英文摘要:

Optimal prompt selection is crucial for maximizing large language model (LLM) performance on downstream tasks, especially in black-box settings where models are only accessible via APIs. Black-box prompt selection is challenging due to potentially large, combinatorial search spaces, absence of gradient information, and high evaluation cost of prompts on a validation set. We propose HbBoPs, a novel method that combines a structural-aware deep kernel Gaussian Process with Hyperband as a multi-fidelity scheduler to efficiently select prompts. HbBoPs uses embeddings of instructions and few-shot exemplars, treating them as modular components within prompts. This enhances the surrogate model's ability to predict which prompt to evaluate next in a sample-efficient manner. Hyperband improves query-efficiency by adaptively allocating resources across different fidelity levels, reducing the number of validation instances required for evaluating prompts. Extensive experiments across ten diverse benchmarks and three LLMs demonstrate that HbBoPs outperforms state-of-the-art methods in both performance and efficiency.

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

↑