Skip to main content
QUICK REVIEW

[论文解读] Active Prompting with Chain-of-Thought for Large Language Models

Shizhe Diao, Pengcheng Wang|arXiv (Cornell University)|Feb 23, 2023
Topic ModelingComputer Science被引用 44
一句话总结

本论文提出 Active-Prompt,一种基于不确定性的选择面向任务的带有链式推理思路的提问的方法,在八个数据集上提升了大型语言模型的推理能力。

ABSTRACT

The increasing scale of large language models (LLMs) brings emergent abilities to various complex tasks requiring reasoning, such as arithmetic and commonsense reasoning. It is known that the effective design of task-specific prompts is critical for LLMs' ability to produce high-quality answers. In particular, an effective approach for complex question-and-answer tasks is example-based prompting with chain-of-thought (CoT) reasoning, which significantly improves the performance of LLMs. However, current CoT methods rely on a fixed set of human-annotated exemplars, which are not necessarily the most effective examples for different tasks. This paper proposes a new method, Active-Prompt, to adapt LLMs to different tasks with task-specific example prompts (annotated with human-designed CoT reasoning). For this purpose, we propose a solution to the key problem of determining which questions are the most important and helpful ones to annotate from a pool of task-specific queries. By borrowing ideas from the related problem of uncertainty-based active learning, we introduce several metrics to characterize the uncertainty so as to select the most uncertain questions for annotation. Experimental results demonstrate the superiority of our proposed method, achieving state-of-the-art on eight complex reasoning tasks. Further analyses of different uncertainty metrics, pool sizes, zero-shot learning, and accuracy-uncertainty relationship demonstrate the effectiveness of our method. Our code will be available at https://github.com/shizhediao/active-prompt.

研究动机与目标

  • 通过选择最具信息量的待注释问题来减少CoT提示中的人力投入。
  • 提出基于不确定性的度量,用于识别CoT注释中的高价值问题。
  • 展示在八个复杂推理基准上使用面向任务的注释示例达到最先进的性能。

提出的方法

  • 使用k-shot提示为每个问题生成多个答案并计算每个问题的不确定性。
  • 选择前n个不确定性最高的问题进行人工注释,以创建带推理过程与答案的新CoT示例。
  • 将新注释的示例添加到测试提示的前面,并在推理阶段应用自一致性(self-consistency)。
  • 尝试多种不确定性度量(disagreement、entropy、variance、self-confidence)以研究它们的效果。
  • 在八个数据集上将 Active-Prompt 与 CoT、Self-Consistency、Auto-CoT 和 Random-CoT 基线进行比较。
  • 分析候选池规模、零-shot 设置以及标注者效应以验证鲁棒性。

实验结果

研究问题

  • RQ1基于不确定性选择CoT示例是否能够在降低标注成本的同时保持或提升推理性能?
  • RQ2哪些不确定性度量最能识别CoT提示中最具信息量的注释问题?
  • RQ3与现有基线相比,Active-Prompt 在算术、常识和符号推理任务中的表现如何?
  • RQ4候选池规模和注释者变动对 Active-Prompt 有效性有何影响?

主要发现

  • Active-Prompt(Disagreement)和 Active-Prompt(Entropy)在八个数据集上实现了最先进的性能。
  • 平均而言,基于不确定性选择的 Active-Prompt 相较于 Self-Consistency 分别高出 7.0%(text-davinci-002)和 1.8%(code-davinci-002)。
  • Disagreement 和 Entropy 是有效的不确定性度量;Self-Confidence 在此场景下表现不佳。
  • Zero-shot Active-Prompt 与少量示例版本具有竞争力,表明对初始示例的依赖减少。
  • Random-CoT 的表现不如 Active-Prompt,证实了基于不确定性的问题选择的价值。
  • 候选池规模分析表明,准确率随 k 增大而提高,直到约 k=10 时对不确定性估计最优。

阅读本论文

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

在 Nubint 中阅读本论文

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