Skip to main content
QUICK REVIEW

[论文解读] Automatic Prompt Augmentation and Selection with Chain-of-Thought from Labeled Data

KaShun Shum, Shizhe Diao|arXiv (Cornell University)|Feb 24, 2023
Time Series Analysis and ForecastingComputer Science被引用 3
一句话总结

该论文提出 Automate-CoT,一种完全自动化的框架,能够从带标签数据中自动生成、筛选并选择最优的思维链(CoT)提示,而无需人工标注的推理过程。通过采用方差缩减的策略梯度方法,该方法在算术(+2.7%)、常识(+3.4%)、符号(+3.2%)和非推理任务(+2.5%)的推理基准上均达到最先进性能。

ABSTRACT

Chain-of-thought (CoT) advances the reasoning abilities of large language models (LLMs) and achieves superior performance in complex reasoning tasks. However, most CoT studies rely on carefully designed human-annotated rational chains to prompt LLMs, posing challenges for real-world applications where labeled data is available without rational chains. This paper proposes a new strategy, Automate-CoT (Automatic Prompt Augmentation and Selection with Chain-of-Thought), that can bypass human engineering of CoT by automatically augmenting rational chains from a small labeled dataset, and then pruning low-quality chains to construct a candidate pool of machine-generated rationale chains based on the labels. Finally, it selects the optimal combination of several rationale chains from the pool for CoT prompting by employing a variance-reduced policy gradient strategy to estimate the significance of each example. Automate-CoT enables a quick adaptation of the CoT technique to different tasks. Experimental results demonstrate the effectiveness of our method, where competitive results are achieved on arithmetic reasoning (+2.7%), commonsense reasoning (+3.4%), symbolic reasoning (+3.2%), and non-reasoning tasks (+2.5%). The code is available at https://github.com/SHUMKASHUN/Automate-CoT.

研究动机与目标

  • 解决在大语言模型少样本提示中手动构建思维链(CoT)范例所面临的高人力成本和可扩展性问题。
  • 克服思维链提示中的敏感性问题,包括顺序、复杂度、多样性及风格敏感性,这些问题会降低模型性能。
  • 开发一种与任务无关的自动化流程,直接从带标签数据集中生成、过滤并选择高质量的 CoT 范例。
  • 实现在无需人工标注推理链的情况下,快速将 CoT 提示适配至新下游任务。

提出的方法

  • 利用大型语言模型(LLM)在少量带标签问题上自动生成多个候选推理链(伪链)。
  • 通过强制生成的推理链与真实答案保持一致性,筛选出低质量链,仅保留支持正确预测的链。
  • 基于标签对齐,构建高质量、一致的推理链候选池。
  • 应用方差缩减的策略梯度估计器,优化每项任务中最有效的范例组合选择。
  • 使用黑箱大语言模型的预测准确率作为奖励信号来训练选择策略,以最小化梯度方差。
  • 迭代优化范例选择过程,以最大化下游性能,且无需模型微调。

实验结果

研究问题

  • RQ1我们能否在无需人工标注推理过程的前提下,仅从带标签数据中自动生成高质量的思维链推理链?
  • RQ2在自动生成过程中,如何有效过滤掉错误或低质量的推理链?
  • RQ3自动范例选择在多类推理任务中,相较于人工设计的 CoT 范例,能多大程度上实现性能超越?
  • RQ4基于策略梯度的选择策略是否能缓解思维链提示中的敏感性问题,如顺序、复杂度和风格问题?
  • RQ5所提出的方法是否在算术、常识、符号和非推理推理任务中均具备泛化能力?

主要发现

  • 与基线 CoT 方法相比,Automate-CoT 在 GSM8K 算术推理基准上实现了 +2.7% 的绝对性能提升。
  • 在 CommonsenseQA 数据集上,Automate-CoT 性能提升 +3.4%,表明其在常识推理方面具有显著优势。
  • 在符号推理任务(e-SNLI)中,该方法实现 +3.2% 的改进,表明其在逻辑与文本推理方面的有效性。
  • 即使在非推理任务(如 SST-2 情感分类)中,Automate-CoT 也实现了 +2.5% 的性能提升,显示出广泛适用性。
  • 方差缩减的策略梯度方法实现了稳定且高效的最优范例组合选择,在大多数场景下优于 Auto-CoT 和人工 CoT。
  • 筛选步骤显著降低了噪声,通过剔除与正确答案不一致的推理链,提升了整体推理链质量。

阅读本论文

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

在 Nubint 中阅读本论文

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