Skip to main content
QUICK REVIEW

[Paper Review] When do you need Chain-of-Thought Prompting for ChatGPT?

Jiuhai Chen, Lichang Chen|arXiv (Cornell University)|Apr 6, 2023
Topic ModelingComputer Science17 citations
TL;DR

The paper investigates whether Chain-of-Thought prompting remains useful for ChatGPT (an instruction-finetuned LLM) and finds that ChatGPT often Memorizes CoT and may improve without explicit CoT prompts on arithmetic tasks, while CoT can hinder performance on arithmetic and has variable effects on non-arithmetic tasks.

ABSTRACT

Chain-of-Thought (CoT) prompting can effectively elicit complex multi-step reasoning from Large Language Models~(LLMs). For example, by simply adding CoT instruction ``Let's think step-by-step'' to each input query of MultiArith dataset, GPT-3's accuracy can be improved from 17.7\% to 78.7\%. However, it is not clear whether CoT is still effective on more recent instruction finetuned (IFT) LLMs such as ChatGPT. Surprisingly, on ChatGPT, CoT is no longer effective for certain tasks such as arithmetic reasoning while still keeping effective on other reasoning tasks. Moreover, on the former tasks, ChatGPT usually achieves the best performance and can generate CoT even without being instructed to do so. Hence, it is plausible that ChatGPT has already been trained on these tasks with CoT and thus memorized the instruction so it implicitly follows such an instruction when applied to the same queries, even without CoT. Our analysis reflects a potential risk of overfitting/bias toward instructions introduced in IFT, which becomes more common in training LLMs. In addition, it indicates possible leakage of the pretraining recipe, e.g., one can verify whether a dataset and instruction were used in training ChatGPT. Our experiments report new baseline results of ChatGPT on a variety of reasoning tasks and shed novel insights into LLM's profiling, instruction memorization, and pretraining dataset leakage.

Motivation & Objective

  • Evaluate the effectiveness of three zero-shot prompting strategies on ChatGPT and GPT-3 across diverse reasoning tasks.
  • Examine whether CoT prompting remains beneficial for ChatGPT after instruction finetuning (IFT) and RLHF.
  • Analyze whether observed behaviors indicate instruction memorization and potential pretraining data leakage.
  • Explore implications for dataset inference attacks and LLM profiling.

Proposed method

  • Compare three zero-shot prompting strategies on GPT-3 and ChatGPT: (i) zero-shot with trigger words, (ii) zero-shot without instruction (two-stage with prior answer), (iii) zero-shot with CoT instruction (two-stage).
  • Test on arithmetic, commonsense, symbolic, and other reasoning tasks using established datasets (GSM8K, MultiArith, AddSub, SVAMP, AQuA, SingleOp, CSQA, StrategyQA, Last Letter, Coin-flip, Date, Object).
  • Report accuracy results and analyze patterns across models and tasks to assess instruction memorization and prompting effects.
  • Discuss implications for pretraining recipe leakage and dataset inference; relate findings to IFT and RLHF practices.

Experimental results

Research questions

  • RQ1Does CoT prompting continue to improve zero-shot reasoning for ChatGPT across task types?
  • RQ2Is ChatGPT’s performance influenced by memorized CoT instructions from instruction finetuning?
  • RQ3Can differences in prompting reveal pretraining data leakage or task/instruction leakage in LLMs?

Key findings

  • ChatGPT often spontaneously generates CoT-like steps for arithmetic tasks without being prompted, leading to high-quality answers.
  • CoT prompting does not consistently improve ChatGPT on arithmetic reasoning and can even reduce accuracy on several arithmetic tasks.
  • On non-arithmetic reasoning tasks, CoT prompting typically improves ChatGPT similarly to GPT-3, though effects vary by task.
  • Implicit CoT instruction memorization by ChatGPT—a result of IFT—can outperform explicit CoT prompts and suggests potential overfitting to IFT instructions.
  • Differences in prompting patterns between trigger words and CoT can indicate possible leakage of pretraining recipes or datasets in ChatGPT.
  • The study provides baseline zero-shot reasoning results for ChatGPT across diverse tasks, highlighting task- and prompt-dependent behavior.

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.