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

大型语言模型是好的提示优化器吗?

Are Large Language Models Good Prompt Optimizers?

School of Computer Science, Fudan University(复旦大学计算机科学学院);Tencent AI Lab(腾讯AI实验室);Institute of Modern Languages and Linguistics, Fudan University(复旦大学现代语言与语言学研究所)

Ruotian Ma, Xiaolei Wang, Xin Zhou, Jian Li, Nan Du, Tao Gui, Qi Zhang, Xuanjing Huang

AI总结:

本研究探究LLM作为提示优化器的有效性,发现其难以识别错误根源且单步优化效果有限,并提出直接优化目标模型行为的“自动行为优化”新范式。

摘要:

基于LLM的自动提示优化,通常利用LLM作为提示优化器进行自我反思和优化提示,在近期研究中展现出有前景的性能。尽管取得了成功,这种方法的内在机制仍未得到探索,LLM作为提示优化器的真正有效性需要进一步验证。在本工作中,我们进行了一项全面研究,以揭示基于LLM的提示优化的实际机制。我们的发现表明,LLM优化器在反思过程中难以识别错误的真正原因,倾向于受自身先验知识的影响,而非真正反思错误。此外,即使反思在语义上是有效的,LLM优化器往往也无法通过单次提示优化步骤为目标模型生成合适的提示,部分原因是目标模型行为的不可预测性。基于这些观察,我们引入了一种新的“自动行为优化”范式,该范式以更可控的方式直接优化目标模型的行为。我们希望我们的研究能激发自动提示优化发展的新方向。

英文摘要:

LLM-based Automatic Prompt Optimization, which typically utilizes LLMs as Prompt Optimizers to self-reflect and refine prompts, has shown promising performance in recent studies. Despite the success, the underlying mechanism of this approach remains unexplored, and the true effectiveness of LLMs as Prompt Optimizers requires further validation. In this work, we conducted a comprehensive study to uncover the actual mechanism of LLM-based Prompt Optimization. Our findings reveal that the LLM optimizers struggle to identify the true causes of errors during reflection, tending to be biased by their own prior knowledge rather than genuinely reflecting on the errors. Furthermore, even when the reflection is semantically valid, the LLM optimizers often fail to generate appropriate prompts for the target models with a single prompt refinement step, partly due to the unpredictable behaviors of the target models. Based on the observations, we introduce a new "Automatic Behavior Optimization" paradigm, which directly optimizes the target model's behavior in a more controllable manner. We hope our study can inspire new directions for automatic prompt optimization development.

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

↑