Example of an Enhanced Role-Playing Prompt for Mathematical Reasoning
To improve a Large Language Model's performance on mathematical tasks, a role-playing prompt can be enhanced by explicitly instructing the model to follow a structured reasoning process. For example, a prompt can assign an expert persona and also command it to adhere to specific steps: 'You are a mathematician. You will follow these detailed reasoning steps when solving math problems.' This dual approach not only sets an expert context but also guides the model through a methodical problem-solving framework.
0
1
Tags
Ch.3 Prompting - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Related
Analyzing Prompt Effectiveness for Logical Problems
A user wants a Large Language Model to solve the following word problem: 'A bakery starts the day with 480 cookies. They sell 150 in the morning and 95 in the afternoon. They then bake a new batch of 120 cookies. How many cookies do they have at the end of the day?' The user's initial prompt is simply the word problem itself. Which of the following revised prompts is most likely to guide the model to a correct and reliable answer?
Example of an Enhanced Role-Playing Prompt for Mathematical Reasoning
Diagnosing and Correcting a Reasoning Error
A user wants a large language model to solve a complex logic puzzle that requires several steps of deduction. Consider the two prompts below:
Prompt 1: "Here is a logic puzzle. What is the final answer? [Puzzle details follow]"
Prompt 2: "Here is a logic puzzle. Before providing the final answer, work through the puzzle step-by-step and explain your reasoning. [Puzzle details follow]"
What is the most likely outcome of using Prompt 2 compared to Prompt 1 for this type of task?
Improving a Prompt for a Calculation Task
Example of an Enhanced Role-Playing Prompt for Mathematical Reasoning
Improving an AI Financial Analyst Tool
Learn After
A user wants a language model to solve a multi-step algebra word problem and wants to maximize the chances of getting a correct, well-reasoned answer. Which of the following prompts best applies the dual strategy of assigning an expert identity to the model and providing it with a structured, sequential method for arriving at the solution?
Improving a Language Model's Mathematical Problem-Solving
Crafting an Enhanced Prompt for a Language Model