[论文解读] Progressive-Hint Prompting Improves Reasoning in Large Language Models
Progressive-Hint Prompting (PHP) 实现迭代交互,利用早期的 LLM 输出作为提示来细化后续答案,从而提高推理准确性;并在与强提示和模型(例如 GPT-4)结合时,在若干数学推理基准上达到业界领先的结果。
The performance of Large Language Models (LLMs) in reasoning tasks depends heavily on prompt design, with Chain-of-Thought (CoT) and self-consistency being critical methods that enhance this ability. However, these methods do not fully exploit the answers generated by the LLM to guide subsequent responses. This paper proposes a new prompting method, named Progressive-Hint Prompting (PHP), that enables automatic multiple interactions between users and LLMs by using previously generated answers as hints to progressively guide toward the correct answers. PHP is orthogonal to CoT and self-consistency, making it easy to combine with state-of-the-art techniques to further improve performance. We conducted extensive and comprehensive experiments on seven benchmarks. The results show that PHP significantly improves accuracy while remaining highly efficient. For instance, with text-davinci-003, we observed a 4.2% improvement on GSM8K with greedy decoding compared to Complex CoT, and a 46.17% reduction in sample paths with self-consistency. With GPT-4 and PHP, we achieve state-of-the-art performances on SVAMP (89.1% -> 91.9%), GSM8K (92% -> 95.5%), AQuA (76.4% -> 79.9%) and MATH (50.3% -> 53.9%).
研究动机与目标
- 通过重复利用先前的答案作为提示,激发大语言模型在超越传统 CoT 和自我一致性的多步推理中取得改进。
- 引入一个两阶段提示流程,迭代给出答案直到稳定(连续两次答案相同)。
- 展示与标准 CoT、Complex CoT 以及自我一致性在多种模型上的兼容性与叠加收益。
提出的方法
- Two-stage prompting pipeline: (1) 使用基础提示(如 CoT 或 Complex CoT)生成基准答案;(2) 使用 Progressive-Hint Prompts(PHP-CoT 或 PHP-Complex CoT)生成后续答案,直至稳定。
- Progressive-Hint Prompt 设计:将问题与前一答案拼接作为提示,同时加入一个两句的 PHP 框架,传达答案的接近程度并重复提示。
- 停止标准:当连续两次答案相同时停止。
- 提示支持正确和错误的提示,以探测模型的鲁棒性和适应性。
- 在七个数学推理数据集上对多种 LLMs(text-davinci-002/003、GPT-3.5-Turbo、GPT-4)进行广泛评估。
- 分析交互次数和提示质量,以了解何时 PHP 能带来收益。
实验结果
研究问题
- RQ1以先前模型输出为引导的迭代提示是否能在超越标准提示的情况下提升 LLM 的多步推理?
- RQ2PHP 如何与不同的提示策略(标准、CoT、Complex CoT)以及模型能力(GPT-3.5、GPT-4)相互作用?
- RQ3提示质量(正确 vs 错误)对 PHP 在各数据集上的表现有何影响?
- RQ4结合自我一致性时,PHP 是否减少对自我一致性路径的需求或提高效率?
主要发现
- PHP 在若干数据集上的准确性有所提升,在与更强的提示和模型搭配时提升更大。
- 在 text-davinci-003 下,PHP-Complex CoT 显示显著改善(如 GSM8K +4.6%,在某些设定下 SVAMP/其他达到 71.6%)。
- GPT-4 配合 Complex CoT + PHP 在 SVAMP(91.9%)、GSM8K(95.5%)、AQuA(79.9%)以及 MATH(53.9%)上达到业界领先水平。
- 在自我一致性下,PHP 可以减少所需的推理路径数量,从而在维持或提升准确性的同时实现成本降低。
- PHP 的性能提升在高质量提示(CoT、Complex CoT)和更强模型(GPT-4)下更加显著。
- 消融研究表明,PHP 提示中的 P1 和 P2 两句对于获得最佳结果都是必要的,特别是在使用更强提示时。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。