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

问题分析提示提升LLM在推理任务中的性能

Question-Analysis Prompting Improves LLM Performance in Reasoning Tasks

Algoverse AI Research(Algoverse AI研究院)

Dharunish Yugeswardeenoo, Kevin Zhu, Sean O'Brien

AI总结:

提出Question Analysis Prompting (QAP)策略,通过让LLM在解题前用$n$词分析问题,在GPT3.5/4的AQuA和SAT数据集上优于CoT等最先进提示,响应长度是影响性能的关键因素。

摘要:

尽管LLMs有潜力变革许多领域,但在推理任务中仍逊于人类。现有方法促使模型逐步计算,但本研究探讨:让LLM分析问题能否提升其性能?我们提出一种名为Question Analysis Prompting (QAP)的新提示策略,要求模型在解题前用$n$词解释问题。$n$值影响模型生成的响应长度。QAP在GPT 3.5 Turbo和GPT 4 Turbo上,通过算术数据集GSM8K、AQuA、SAT及常识数据集StrategyQA进行评估。QAP与包括Chain-of-Thought (CoT)、Plan and Solve Prompting (PS+)和Take A Deep Breath (TADB)在内的其他最先进提示对比。在GPT3.5和GPT4上,QAP在AQuA和SAT数据集上优于所有最先进提示。QAP在75%的测试中始终位列前2名提示。QAP性能的关键因素可归因于响应长度:详细响应对解答难题有益,但可能对简单问题产生负面影响。

英文摘要:

Although LLMs have the potential to transform many fields, they still underperform humans in reasoning tasks. Existing methods induce the model to produce step-by-step calculations, but this research explores the question: Does making the LLM analyze the question improve its performance? We propose a novel prompting strategy called Question Analysis Prompting (QAP), in which the model is prompted to explain the question in $n$ words before solving. The value of $n$ influences the length of response generated by the model. QAP is evaluated on GPT 3.5 Turbo and GPT 4 Turbo on arithmetic datasets GSM8K, AQuA, and SAT and commonsense dataset StrategyQA. QAP is compared with other state-of-the-art prompts including Chain-of-Thought (CoT), Plan and Solve Prompting (PS+) and Take A Deep Breath (TADB). QAP outperforms all state-of-the-art prompts on AQuA and SAT datasets on both GPT3.5 and GPT4. QAP consistently ranks among the top-2 prompts on 75\% of the tests. A key factor of QAP performance can be attributed to response length, where detailed responses are beneficial when answering harder questions, but can negatively affect easy questions.

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

↑