重述并回答:让大型语言模型为自己提出更好的问题
Rephrase and Respond: Let Large Language Models Ask Better Questions for Themselves
AI总结:
提出“重述并回答”(RaR)提示方法,让LLM先重述并扩展人类问题再回答,显著提升多种任务性能,且与思维链(CoT)互补可结合使用,并促进LLM能力公平评估。
摘要:
误解不仅出现在人际交流中,也出现在人类与大型语言模型(LLMs)之间。这种差异可能使LLMs以意想不到的方式解读看似明确的问题,从而产生错误的回答。虽然人们普遍认识到提示(如问题)的质量会显著影响LLMs提供回答的质量,但一种系统性的、能让LLMs更好地理解问题的提问方法仍待发展。在本文中,我们提出了一种名为“重述并回答”(RaR)的方法,该方法允许LLMs在单个提示中重述并扩展人类提出的问题,然后提供回答。这种方法作为一种简单而有效的提示方法,能够提升性能。我们还引入了RaR的一个两步变体,其中,一个重述LLM首先重述问题,然后将原始问题和重述后的问题一起传递给另一个回答LLM。这有助于有效利用由一个LLM生成的重述问题与另一个LLM配合使用。我们的实验表明,我们的方法在广泛的任务中显著提升了不同模型的性能。我们进一步从理论和实证两方面,对RaR与流行的思维链(CoT)方法进行了全面比较。我们表明,RaR与CoT互补,并且可以与CoT结合使用,以获得更好的性能。我们的工作不仅有助于高效且有效地提升LLM性能,也为公平评估LLM能力提供了启示。数据和代码可在 https://github.com/uclaml/Rephrase-and-Respond 获取。
英文摘要:
Misunderstandings arise not only in interpersonal communication but also between humans and Large Language Models (LLMs). Such discrepancies can make LLMs interpret seemingly unambiguous questions in unexpected ways, yielding incorrect responses. While it is widely acknowledged that the quality of a prompt, such as a question, significantly impacts the quality of the response provided by LLMs, a systematic method for crafting questions that LLMs can better comprehend is still underdeveloped. In this paper, we present a method named `Rephrase and Respond' (RaR), which allows LLMs to rephrase and expand questions posed by humans and provide responses in a single prompt. This approach serves as a simple yet effective prompting method for improving performance. We also introduce a two-step variant of RaR, where a rephrasing LLM first rephrases the question and then passes the original and rephrased questions together to a different responding LLM. This facilitates the effective utilization of rephrased questions generated by one LLM with another. Our experiments demonstrate that our methods significantly improve the performance of different models across a wide range to tasks. We further provide a comprehensive comparison between RaR and the popular Chain-of-Thought (CoT) methods, both theoretically and empirically. We show that RaR is complementary to CoT and can be combined with CoT to achieve even better performance. Our work not only contributes to enhancing LLM performance efficiently and effectively but also sheds light on a fair evaluation of LLM capabilities. Data and codes are available at https://github.com/uclaml/Rephrase-and-Respond.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。