arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.10949cs.CLcs.AIcs.LG
收藏

偏心自动提示的非凡有效性

The Unreasonable Effectiveness of Eccentric Automatic Prompts

VMware(威睿公司)

Rick Battle, Teja Gollapudi

AI总结:

本文量化了在提示中加入“积极思考”系统消息对LLM数学推理的影响,并在GSM8K上比较了手工提示与自动化提示优化,发现自动优化提示最为有效且常产生奇特内容。

摘要:

大型语言模型(LLMs)已展现出卓越的问题解决能力和基础数学能力。然而,其效能高度依赖于提示的表述方式。本研究旨在量化将“积极思考”纳入提示的系统消息中所产生的影响,并将其与系统性提示优化进行比较。我们评估了60种系统消息片段组合的性能,分别在采用和不采用思维链(Chain of Thought)提示的情况下,在GSM8K数据集上对三个参数量从70亿到700亿不等的模型进行了测试。我们的研究结果表明,结果并不能在所有模型间普遍推广。在大多数情况下,加入“积极思考”提示对模型性能产生了积极影响。然而,值得注意的是,Llama2-70B在不使用思维链时表现出了一个例外,因为此时最优的系统消息被证明是完全不设置任何系统消息。鉴于针对大型黑盒模型手工调优提示的组合复杂性以及由此带来的计算时间成本,我们随后将最佳“积极思考”提示的性能与系统性提示优化的输出进行了比较。我们表明,采用自动化提示优化器成为提升性能的最有效方法,即使在使用较小的开源模型时也是如此。此外,我们的研究结果揭示,得分最高的自动优化提示表现出一种远超预期的奇特程度。

英文摘要:

Large Language Models (LLMs) have demonstrated remarkable problem-solving and basic mathematics abilities. However, their efficacy is highly contingent on the formulation of the prompt. This study endeavors to quantify the influence of incorporating "positive thinking" into the system message of the prompt, then compare that to systematic prompt optimization. We assess the performance of 60 combinations of system message snippets, tested with and without Chain of Thought prompting, across three models with parameters ranging from 7 to 70 billion on the GSM8K dataset. Our findings reveal that results do not universally generalize across models. In most instances, the inclusion of "positive thinking" prompts positively affected model performance. Notably, however, Llama2-70B exhibited an exception when not utilizing Chain of Thought, as the optimal system message was found to be none at all. Given the combinatorial complexity, and thus computation time, of experimenting with hand-tuning prompts for large black-box models, we then compared the performance of the best "positive thinking" prompt against the output of systematic prompt optimization. We show that employing an automated prompt optimizer emerges as the most effective method for enhancing performance, even when working with smaller open-source models. Additionally, our findings reveal that the highest-scoring, automatically-optimized prompt exhibits a degree of peculiarity far beyond expectations.

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

↑