What is meta-prompting?
Meta-prompting uses a prompt that asks a language model to generate, improve or coordinate other prompts rather than solve the task directly. Typically a more capable model writes prompts for a less capable one.
Unlike automatic prompt optimisation, a loop that searches candidate prompts against a score function, a meta-prompt is the instruction given to the model inside such a loop and can also be used on its own. A 2023 optimisation study explicitly names this prompt the meta-prompt.
- Topic
- Prompts, context, reasoning and generation
- Also known as
- Meta prompting, meta-prompt
- Origin
- 2023 optimisation by prompting study; 2024 task-agnostic scaffolding technique
How meta-prompting works
- In refinement, the model rewrites a basic prompt to improve output quality.
- In optimisation, the meta-prompt lists earlier prompts with their accuracy scores plus task examples; the model proposes a better instruction.
- In orchestration, a conductor model splits the task into subtasks for expert instances of the same model, each with tailored instructions.
- The conductor integrates the expert outputs and verifies the result.
Commonly confused terms
| Term | How it differs |
|---|---|
| Prompt chaining | Prompt chaining splits a task into a predesigned sequence of prompts, passing each step's output to the next. In meta-prompting the model produces the prompts or steps itself; in orchestration the conductor decides which expert to call with which instruction. |
Why meta-prompting matters for on-premises AI
Meta-prompting hands part of prompt engineering to the model. In the 2023 study, prompts found this way beat human-designed prompts by up to 8% on a maths benchmark and up to 50% on hard reasoning tasks. In a 2024 orchestration study, meta-prompting with a code interpreter beat standard prompting by 17.1% on average across tasks.
An insurer refines its claim letter summary prompt with meta-prompting: a more capable model reviews it with sample outputs and proposes a version stating audience, required fields and tone. The team compares both versions on its own evaluation dataset.
Common questions
How does a meta-prompt differ from a system prompt?
A system prompt is the standing instruction that shapes a model's behaviour in an application. A meta-prompt is used to write or improve other prompts, a system prompt for example.
Can a prompt produced by meta-prompting be used directly?
Treat it as a draft. It should be measured on the organisation's own examples and versioned; optimisation studies likewise select prompts by accuracy on a training set.
Is meta-prompting used for evaluation prompts too?
Yes. The OpenAI guide notes that the same method can refine the evaluation prompt that instructs a model to act as a judge.
Related terms
Sources
- Large Language Models Are Human-Level Prompt Engineers, arXiv, 2022
- Large Language Models as Optimizers, ICLR, 2024
- Meta-Prompting: Enhancing Language Models with Task-Agnostic Scaffolding, arXiv, 2024
- Enhance your prompts with meta prompting, OpenAI Cookbook, 2024
In the glossary: Glossary, M to Q