Skip to main content
QUICK REVIEW

[论文解读] An Examination on the Effectiveness of Divide-and-Conquer Prompting in Large Language Models

Yizhou Zhang, Lun Du|arXiv (Cornell University)|Feb 8, 2024
Topic ModelingComputer Science被引用 3
一句话总结

本文提出了一种名为分治(Divide-and-Conquer, DaC)的提示工程方法,通过显式分离任务分解、子任务求解与解的整合,提升大语言模型(LLMs)在具有重复子任务或欺骗性内容的任务中的推理能力。该方法在减少中间错误和提升表达能力方面优于思维链(CoT)、思维树(LtM)等基线模型,尤其在幻觉检测与错误信息识别任务中表现更优,其表达能力超越标准Transformer模型的限制。

ABSTRACT

Foundation models, such as Large language Models (LLMs), have attracted significant amount of interest due to their large number of applications. However, when handling tasks involving repetitive sub-tasks and/or deceptive contents, such as arithmetic calculation and article-level fake news detection, simple instructional prompts suffer from inaccurate responses. Existing works show that more complicated prompting strategies, such as Chain-of-Thoughts and Least-to-Most, can unlock LLM's powerful capacity in diverse areas. Recent researches reveal that simple divide-and-conquer prompting strategy, i.e. simply dividing the input sequence to multiple sub-inputs, can also substantially improve LLM's performance in some specific tasks such as misinformation detection. In this paper, we aim at examining the utility of divide-and-conquer prompting strategy and answer on which kind of tasks this strategy gets advantages. Specifically, we provide a theoretic analysis to divide-and-conquer prompting strategy and help us identify the specific tasks where DaC prompting can bring performance boost with theoretic guarantee. We then present two cases (large integer arithmetic and fact verification) where experimental results aligns with our theoretic analysis.

研究动机与目标

  • 解决LLMs在处理具有重复子任务或欺骗性内容的任务时产生的中间错误与幻觉问题。
  • 克服如思维链(Chain-of-Thought, CoT)等提示策略中分解与求解过程交织所带来的局限,这些策略在自回归解码过程中混合了任务分解与求解。
  • 通过将推理结构化为分治程序,提升表达能力,超越固定深度Transformer的限制。
  • 通过显式分离子任务生成与求解、解的合并过程,实现更可靠且可控的问题求解。
  • 在大整数乘法、幻觉检测与文章级错误信息检测等任务上评估该方法。

提出的方法

  • 该方法引入三阶段流水线:(1) 将任务分解为不相交或最小重叠的子任务,(2) 使用LLMs并行求解每个子任务,(3) 将各子任务的求解结果整合为最终答案。
  • 采用程序引导的提示框架,显式分离分解与求解过程,支持人类或智能体对子任务生成的控制。
  • 该方法解耦了子任务创建、求解与聚合的过程,降低干扰与中间错误的传播。
  • 利用分治的算法结构提升表达能力,理论上超越固定深度logspace-uniform threshold电路在Transformer中的限制。
  • 通过将输入分解为句子或陈述,并独立求解,将该方法应用于大整数乘法与错误信息检测等任务。
  • 评估指标采用F1、G-Mean、精确率与召回率,避免使用准确率,以应对错误信息检测中类别不平衡的问题。

实验结果

研究问题

  • RQ1一种将任务分解与求解显式分离的解耦提示策略,是否能减少LLMs在推理过程中的中间错误?
  • RQ2通过分治程序引导LLMs,是否能提升其在具有重复子任务或欺骗性内容任务中的性能?
  • RQ3DaC的表达能力与CoT、LtM等标准提示方法相比如何?
  • RQ4DaC是否能在幻觉与错误信息检测任务中超越现有程序引导提示策略?
  • RQ5DaC在不同类型推理任务中的适用性存在哪些局限?

主要发现

  • GPT-3.5使用DaC在错误信息检测任务中优于使用IO提示、CoT、CoT-SC与LtM的GPT-4,尤其体现在更高的召回率与更强的抗欺骗能力。
  • 在文章级错误信息检测任务中,DaC的F1与G-Mean得分优于所有基线模型,包括具有探索优势的思维树(ToT),表明其在复杂推理中的稳健性。
  • CoT-SC在GPT-4上的表现劣于CoT,表明基于探索的精炼策略在欺骗性输入下可能不够鲁棒,凸显了渐进式提示的脆弱性。
  • 该方法在大整数乘法任务中表现更优,该任务因重复子任务与误差累积而具有挑战性。
  • 理论上,DaC使LLMs能够超越固定深度Transformer的表达能力,通过建模递归分解与求解过程实现。
  • DaC通过显式枚举子任务,避免了CoT在自回归解码过程中隐式生成子任务时可能遗漏关键组件的问题。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。