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

伪代码提示(HoPC):零样本逐步伪代码推理提示

Hint of Pseudo Code (HoPC): Zero-Shot Step by Step Pseudo Code Reasoning Prompting

Department of Computer Science and Technology(计算机科学与技术系);Institute for Artificial Intelligence at Tsinghua University(清华大学人工智能研究院);Beijing National Research Center for Information Science and Technology(北京信息科学国家研究中心);Tsinghua University(清华大学)

Iok Tong Lei, Ziyu Zhu, Han Yu, Yige Yao, Zhidong Deng

AI总结:

本文提出HoPC提示技术,通过问题分解、语义代码推理和答案提取三组件逐步提示,无需额外解释器,在零样本下实现比CoT更强的多步推理能力。

摘要:

提示语言模型(LM)是更好地利用大型语言模型(LLM)的一个日益重要的研究课题。虽然简单提示对于单步问题有效,但对于多步推理任务,它无法始终如一地激活正确的知识路径。少样本思维链(CoT)作为一种先进的提示策略,向LLM解释并演示推理过程,在算术和常识推理等具有挑战性的推理任务中优于简单提示。程序思维(PoT)旨在为多步推理问题生成文本和编程语言解决方案。在零样本CoT中,提示仅为“让我们一步步思考”,这过于简单,无法充分展示复杂推理挑战的稳健推理过程。此外,PoT需要额外的解释器来执行答案,并且在处理如StrategyQA等语义推理问题时存在困难。本文介绍了一种新颖的伪代码提示(HoPC)技术,该技术不需要像PoT那样的额外解释器,并具备比零样本CoT更强大的零样本问题分解和语义代码推理能力。它由三个组件组成:问题分解、语义代码推理和答案提取。我们以顺序、逐步的方式将这些组件作为提示进行提示,使其易于针对各种任务进行定制和解释。

英文摘要:

Prompting a language model (LM) is an increasingly important research topic for better utilization of large language models (LLMs). While simple prompting is effective for single-step questions, it fails to activate the correct knowledge path for multi-step reasoning tasks consistently. The few-shot Chain of Thought (CoT), serves as an advanced prompting strategy that explains and demonstrates the reasoning process to the LLM, outperforming simple prompting in challenging reasoning tasks such as arithmetic and common-sense reasoning. The Program of Thought (PoT) aims to generate text and programming language solutions for multi-step reasoning problems. In zero-shot CoT, the prompt is simply ``Let's think step by step'', which is overly simplistic and does not adequately demonstrate a robust reasoning process for complex reasoning challenges. Additionally, PoT requires an extra interpreter to execute the answer and struggles with semantic reasoning problems like StrategyQA. This paper introduces a novel Hint of Pseudo Code (HoPC) prompting technique that does not require extra interpreter as in PoT and incorporates a more powerful zero-shot problem decomposition and semantic code reasoning capabilities than zero-shot CoT. It consists of three components: problem decomposition, semantic code reasoning, and answer extraction. We prompt these components as hints in a sequential, step by step manner, making it easy to tailor and explain for various tasks.

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

↑