Skip to main content
QUICK REVIEW

[Paper Review] Active Prompting with Chain-of-Thought for Large Language Models

Shizhe Diao, Pengcheng Wang|arXiv (Cornell University)|Feb 23, 2023
Topic ModelingComputer Science44 citations
TL;DR

This paper introduces Active-Prompt, an uncertainty-based method to select task-specific questions annotated with chain-of-thought reasoning, improving LLM reasoning across eight datasets.

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.

Motivation & Objective

  • Motivate reducing human effort in CoT prompting by selecting the most informative questions for annotation.
  • Propose uncertainty-based metrics to identify high-value questions for CoT annotation.
  • Demonstrate state-of-the-art performance on eight complex reasoning benchmarks using task-specific annotated exemplars.

Proposed method

  • Use k-shot prompting to generate multiple answers per question and compute uncertainty per question.
  • Select the top-n uncertain questions for human annotation to create new CoT exemplars with rationales and answers.
  • Prepend the newly annotated exemplars to test prompts and apply self-consistency during inference.
  • Experiment with multiple uncertainty metrics (disagreement, entropy, variance, self-confidence) to study their effect.
  • Compare Active-Prompt with CoT, Self-Consistency, Auto-CoT, and Random-CoT baselines on eight datasets.
  • Analyze pool size, zero-shot settings, and annotator effects to validate robustness.

Experimental results

Research questions

  • RQ1Can uncertainty-based selection of CoT exemplars reduce annotation cost while maintaining or improving reasoning performance?
  • RQ2Which uncertainty metrics best identify the most informative questions for annotation in CoT prompting?
  • RQ3How does Active-Prompt perform across arithmetic, commonsense, and symbolic reasoning tasks compared to existing baselines?
  • RQ4What is the impact of pool size and annotator variation on Active-Prompt’s effectiveness?

Key findings

  • Active-Prompt (Disagreement) and Active-Prompt (Entropy) achieve state-of-the-art performance across eight datasets.
  • On average, Active-Prompt with uncertainty-based selection outperforms Self-Consistency by 7.0% (text-davinci-002) and 1.8% (code-davinci-002).
  • Disagreement and Entropy are effective uncertainty metrics; Self-Confidence underperforms in this setting.
  • Zero-shot Active-Prompt is competitive with the few-shot variant, indicating reduced dependence on initial exemplars.
  • Random-CoT underperforms Active-Prompt, confirming the value of uncertainty-driven question selection.
  • Pool size analysis shows accuracy improves with larger k up to about k=10 for uncertainty estimation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.