## Prompting Method Comparison: 0-shot, Few-shot CoT, and Analogical Prompting
### Overview
The image presents a comparison of three different prompting methods for a language model: 0-shot, Few-shot Chain-of-Thought (CoT), and Analogical Prompting. Each method is illustrated with an example of a model input and, where applicable, a model output. The image highlights the key characteristics and requirements of each prompting approach.
### Components/Axes
* **Titles (Top):**
* 0-shot
* Few-shot CoT
* Analogical Prompting (Ours)
* **Sections:** Each method has a section containing:
* "Model Input" box: Shows the prompt given to the model.
* "Model Output" box (Analogical Prompting only): Shows the model's response.
* **Annotations:**
* 0-shot CoT: "Think step by step." (within a dashed red box)
* 0-shot CoT: "Generic guidance of reasoning" (below the input box, preceded by a red bullet point)
* Few-shot CoT: "Need labeled exemplars of reasoning" (below the input box, preceded by a red bullet point)
* Analogical Prompting: "Exemplars are automatically generated and tailored to each problem" (below the output box, preceded by a green bullet point) and a green checkmark.
### Detailed Analysis or ### Content Details
**1. 0-shot:**
* **Model Input:**
* Q: What is the area of the square with the four vertices at (-2, 2), (2, -2), (-2, -6), and (-6, -2)?
**2. 0-shot CoT:**
* **Model Input:**
* Q: What is the area of the square with the four vertices at (-2, 2), (2, -2), (-2, -6), and (-6, -2)?
* Think step by step. (Prompt added to encourage chain-of-thought reasoning)
* **Annotation:**
* Generic guidance of reasoning
**3. Few-shot CoT:**
* **Model Input:**
* Q: Roger has 5 tennis balls. He buys 2 more cans of tennis balls. Each can has 3 tennis balls. How many tennis balls does he have?
* A: Roger started with 5 balls. 2 cans of 3 balls each is 6 balls. The answer is 5 + 6 = 11.
* ... (Indicates more examples would be included in a true few-shot setting)
* Q: What is the area of the square with the four vertices at (-2, 2), (2, -2), (-2, -6), and (-6, -2)?
* **Annotation:**
* Need labeled exemplars of reasoning
**4. Analogical Prompting (Ours):**
* **Model Input:**
* Q: What is the area of the square with the four vertices at (-2, 2), (2, -2), (-2, -6), and (-6, -2)?
* \# Instruction:
* \#\# Recall relevant exemplars:
* \#\# Solve the initial problem:
* **Model Output:**
* \# Relevant exemplars:
* Q: What is the area of the square with a side length of 5?
* A: The area of a square is found by squaring the length of its side. So, the area of this square is 5^2 = 25. ...
* \# Solve the initial problem:
* To find the area of the square, we need to find the side length. The length is ... \sqrt{(2-(-2))^2 + (-2 - 2)^2} = \sqrt{32}. So, the area of the square is (\sqrt{32})^2 = 32.
* **Annotation:**
* Exemplars are automatically generated and tailored to each problem
### Key Observations
* **0-shot:** The model is given the question directly without any examples or specific instructions.
* **0-shot CoT:** The model is prompted to "Think step by step" to encourage a chain-of-thought approach.
* **Few-shot CoT:** The model is provided with example question-answer pairs before being asked the target question.
* **Analogical Prompting:** The model is instructed to recall relevant exemplars and then solve the initial problem. The model output includes both the relevant exemplars and the solution.
### Interpretation
The image illustrates different prompting strategies to improve the reasoning capabilities of language models. 0-shot prompting is the simplest, while Few-shot CoT leverages examples to guide the model. Analogical Prompting, the method proposed by the authors ("Ours"), aims to automatically generate and tailor exemplars to each problem, potentially offering a more efficient and effective approach compared to manually curated examples in Few-shot CoT. The green checkmark suggests that the Analogical Prompting method is considered successful or preferred by the authors. The use of "Instruction" and "Relevant exemplars" in the Analogical Prompting section indicates a structured approach to problem-solving.