arXiv:2410.14198cs.CLcs.AI2024-10被引 4

给推理提示加监督,让大模型更准地一步步思考。

Supervised Chain of Thought

  • 用任务特定的监督指导模型选择正确推理路径。
  • 有监督时推理准确率显著高于无监督方法。
  • 适合需要精细逻辑推理的任务,如数学与算法题。

大型语言模型(LLMs)已彻底改变自然语言处理,但主流模型基于Transformer架构,其计算深度存在固有限制,难以解决需要深层计算的推理任务。链式思维(Chain of Thought, CoT)提示技术被证明可缓解这一问题,通过引导模型分步推理来提升复杂任务表现。然而,现有方法普遍采用'一提通杀'策略,即对所有任务使用相同的提示模板(如'逐步思考'),导致模型在庞大提示空间中难以找到合适路径。本文基于前期理论分析,揭示了这种统一提示方式对模型可计算性的负面影响。我们提出将解空间划分为提示空间与答案空间,实验证明任务特定的监督能显著提升模型在提示空间中的导航能力。在多个先进LLM上的实验显示,引入监督后推理性能明显优于无监督情形。

原文摘要 · Abstract (English)

Large Language Models (LLMs) have revolutionized natural language processing and hold immense potential for advancing Artificial Intelligence. However, the core architecture of most mainstream LLMs -- the Transformer -- has inherent limitations in computational depth, rendering them theoretically incapable of solving many reasoning tasks that demand increasingly deep computations. Chain of Thought (CoT) prompting has emerged as a technique to address these architectural limitations, as evidenced by several theoretical studies. It offers a promising approach to solving complex reasoning tasks that were previously beyond the capabilities of these models. Despite its successes, CoT and its variants (such as Tree of Thought, Graph of Thought, etc.) rely on a "one-prompt-for-all" approach, using a single prompt structure (e.g., "think step by step") for a wide range of tasks -- from counting and sorting to solving mathematical and algorithmic problems. This approach poses significant challenges for models to generate the correct reasoning steps, as the model must navigate through a vast prompt template space to find the appropriate template for each task. In this work, we build upon previous theoretical analyses of CoT to demonstrate how the one-prompt-for-all approach can negatively affect the computability of LLMs. We partition the solution search space into two: the prompt space and the answer space. Our findings show that task-specific supervision is essential for navigating the prompt space accurately and achieving optimal performance. Through experiments with state-of-the-art LLMs, we reveal a gap in reasoning performance when supervision is applied versus when it is not.

链式思维推理增强提示工程

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。