## Chain-of-Thought (CoT) Prompt Examples
### Overview
The image presents examples of Chain-of-Thought (CoT) prompts used for different reasoning tasks: Mathematical Reasoning, Date Reasoning, and Commonsense Reasoning. It illustrates few-shot and zero-shot approaches, with and without textual instructions.
### Components/Axes
* **Titles:**
* "A CoT prompt for Mathematical Reasoning" (top-left)
* "A CoT prompt for Date Reasoning" (top-center)
* "A CoT prompt for Commonsense Reasoning" (top-right)
* **Sections:**
* "Question" (blue vertical line pointing to the question)
* "Demonstrations" (blue vertical line pointing to the rationale and answer)
* "Rationale" (blue vertical line pointing to the rationale)
* "Answer" (blue vertical line pointing to the answer)
* "Query" (purple vertical line pointing to the query)
* **Textual Instructions:** Green dashed line pointing to the "Let's think step by step." prompt.
* **Prompt Types:**
* "Few-shot CoT prompt w/o textual instructions" (bottom-left)
* "Few-shot CoT prompt w/ textual instructions" (bottom-center)
* "Zero-shot CoT prompt" (bottom-right)
### Detailed Analysis or ### Content Details
**1. A CoT prompt for Mathematical Reasoning (top-left)**
* **Question:** "Q: Leah had 32 chocolates and her sister had 42. If they ate 35, how many pieces do they have left in total?"
* **Rationale:** "A: Originally, Leah had 32 chocolates and her sister had 42. So in total they had 32 + 42 = 74. After eating 35, they had 74 - 35 = 39 pieces left in total."
* **Answer:** "The answer is 39."
* **Query:** "Q: If there are 3 cars in the parking lot and 2 more cars arrive, how many cars are in the parking lot?"
**2. A CoT prompt for Date Reasoning (top-center)**
* **Question:** "Q: It is 4/19/1969 today. What is the date 24 hours later in MM/DD/YYYY?"
* **Textual Instructions:** "Let's think step by step."
* **Rationale:** "A: Today is 04/19/1969. 24 hours later is one day after today, which would be 04/20/1969."
* **Answer:** "The answer is 04/20/1969."
* **Query:** "Q: Today is May 25 2013. What is the tomorrow of today in MM/DD/YYYY?"
* **Textual Instructions:** "Let's think step by step."
**3. A CoT prompt for Commonsense Reasoning (top-right)**
* **Question:** "Q: Who lived longer, Theodor Haecker or Harry Vaughan Watkins?"
* **Textual Instructions:** "Let's think step by step."
### Key Observations
* The examples demonstrate how CoT prompts can be structured to guide the model's reasoning process.
* Few-shot prompts provide examples of question-answer pairs, while zero-shot prompts rely on the model's pre-existing knowledge.
* Textual instructions, such as "Let's think step by step," can further enhance the model's reasoning abilities.
* The mathematical reasoning example includes a detailed step-by-step calculation.
* The date reasoning example involves calculating a date based on a given date and time interval.
* The commonsense reasoning example requires the model to apply its knowledge of historical figures.
### Interpretation
The image illustrates the application of Chain-of-Thought (CoT) prompting to various reasoning tasks. CoT prompting is a technique used to improve the performance of large language models (LLMs) by encouraging them to generate intermediate reasoning steps before providing a final answer. The examples show how CoT prompts can be tailored to different types of reasoning, such as mathematical, date-based, and commonsense reasoning. The inclusion of demonstrations (few-shot learning) and textual instructions further guides the model's reasoning process, leading to more accurate and coherent responses. The image highlights the flexibility and effectiveness of CoT prompting as a method for enhancing the reasoning capabilities of LLMs.