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

InstructZero:面向黑盒大语言模型的高效指令优化

InstructZero: Efficient Instruction Optimization for Black-Box Large Language Models

University of Maryland(马里兰大学)

Lichang Chen, Jiuhai Chen, Tom Goldstein, Heng Huang, Tianyi Zhou

AI总结:

本文提出InstructZero方法,通过贝叶斯优化低维软提示并由开源LLM生成指令,高效优化黑盒大语言模型的零样本性能,在多种任务上超越现有自动指令方法。

摘要:

大语言模型(LLMs)是指令跟随者,但在不同情境下寻找最佳指令可能具有挑战性,尤其是对于禁止反向传播的黑盒LLMs。我们不直接优化离散指令,而是优化应用于开源LLM的低维软提示,以生成用于黑盒LLM的指令。在我们提出的方法(称为InstructZero)的每次迭代中,使用开源LLM将软提示转换为指令,然后提交给黑盒LLM进行零样本评估,并将性能发送给贝叶斯优化以产生新的软提示,从而提高零样本性能。我们在包括Vicuna和ChatGPT在内的开源LLM与API的不同组合上评估了InstructZero。结果表明,InstructZero在各种下游任务上优于SOTA自动指令方法。我们的代码和数据可在https://github.com/Lichang-Chen/InstructZero公开获取。

英文摘要:

Large language models~(LLMs) are instruction followers, but it can be challenging to find the best instruction for different situations, especially for black-box LLMs on which backpropagation is forbidden. Instead of directly optimizing the discrete instruction, we optimize a low-dimensional soft prompt applied to an open-source LLM to generate the instruction for the black-box LLM. On each iteration of the proposed method, which we call InstructZero, a soft prompt is converted into an instruction using the open-source LLM, which is then submitted to the black-box LLM for zero-shot evaluation, and the performance is sent to Bayesian optimization to produce new soft prompts improving the zero-shot performance. We evaluate InstructZero on different combinations of open-source LLMs and APIs including Vicuna and ChatGPT. Our results show that InstructZero outperforms SOTA auto-instruction methods across a variety of downstream tasks. Our code and data are publicly available at https://github.com/Lichang-Chen/InstructZero.

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

↑