Active Prompting: Definition and Examples
Method that dynamically selects the most informative examples to include in a prompt, by identifying cases where the model is most uncertain to improve its reasoning performance.
Full definition
Active Prompting is an advanced prompt engineering technique inspired by active learning in machine learning. Its core principle is not to arbitrarily choose the few-shot examples included in a prompt, but to strategically select those that will bring the most benefit to the language model.
The process proceeds in several steps. First, the model generates multiple responses for a set of candidate questions. Then, the degree of uncertainty of the model on each question is measured (for example by observing the variance between the different responses). The questions where the model shows the most hesitation are then annotated by a human with detailed reasoning (chain-of-thought), and used as examples in the final prompt.
This approach solves a major problem of classic few-shot prompting: the choice of examples is often random or intuitive, which can lead to suboptimal results. Active Prompting rationalizes this choice by precisely targeting the model's weak areas.
Introduced by Diao et al. in 2023, this method has demonstrated significant improvements on arithmetic, logical, and commonsense reasoning tasks, surpassing fixed-example Chain-of-Thought prompting approaches.
Etymology
The term combines 'Active', borrowed from active learning where the algorithm actively chooses the data it most needs to learn, and 'Prompting', the practice of formulating instructions for a language model. The name reflects the idea that prompt construction is no longer passive (arbitrarily chosen examples) but active (examples selected based on model uncertainty).
Concrete examples
Mathematical reasoning — We identify that the model hesitates on problems involving successive percentages, then include an annotated example of this type in the prompt.
Here is an example of step-by-step resolution:
Q: An item costs 200€. It is discounted by 30%, then an additional 10% discount is applied. What is the final price?
A: Step 1: 200 × 0.70 = 140€ after the first discount. Step 2: 140 × 0.90 = 126€ after the second discount. The final price is 126€.
Now solve: An investment of 1000€ gains 15% in the first year then loses 10% in the second year. What is the final value?
Text classification — After detecting that the model often confuses sarcasm with sincere criticism, we add annotated examples targeting this ambiguity.
Classify the sentiment of each sentence. Here are particularly nuanced cases:
- "Great, another delivery delay, what efficiency!" → Negative (sarcasm)
- "The service was okay but nothing special" → Neutral (measured criticism)
Now classify: "Oh yes, 3 weeks for a response, that's true artistry."
Logical reasoning — The model shows uncertainty on syllogisms with multiple negations, so we include a guided example on this type of problem.
Practical usage
To apply Active Prompting, start by having the model generate multiple responses to your typical questions, then identify those where the responses vary the most. Then write detailed step-by-step reasoning for these difficult cases and include them as examples in your prompt. This approach is particularly cost-effective when you have a limited budget of examples and want to maximize their impact.
Related concepts
FAQ
What is the difference between Active Prompting and classic Few-Shot Prompting?
Do I need advanced technical skills to use Active Prompting?
Does Active Prompting work with all language models?
See also
How to use this prompt
- Copy the prompt with the button above.
- Paste it into ChatGPT, Claude or your favorite AI assistant.
- Replace the bracketed variables with your details, then refine the result.
About Prompt Guide
Prompt Guide is a free library of 2500+ ready-to-use prompts for ChatGPT, Claude and other AIs, with guides to learn prompting and tools to build and optimize your own prompts.
More definitions
Agent: Definition and Examples
An agent is an AI system capable of acting autonomously to accomplish complex tasks, planning its actions, using tools, and…
Agentic Workflow: Definition and Examples
An agentic workflow is a workflow in which one or more AI agents autonomously make decisions, chain actions, and adapt
AI A/B Testing: Definition and Examples
AI A/B Testing refers to the use of artificial intelligence to design, execute, and analyze A/B tests in an automated way, enabling
AI Accountability: Definition and Examples
AI Accountability refers to the set of principles and mechanisms ensuring that artificial intelligence systems, as well as their designers and users, are held responsible for their decisions, impacts, and outcomes.
AI Alignment: Definition and Examples
AI Alignment refers to the set of research and techniques aimed at ensuring that artificial intelligence systems act in accordance with human intentions, values, and interests.
AI Audit: Definition and Examples
An AI Audit is a systematic evaluation process of an artificial intelligence system aiming to verify its compliance, reliability, fairness, and transparency.
Get new prompts every week
Join our newsletter.