Meta-prompting

Meta-prompting is using a language model to write, improve or coordinate prompts, either by asking it to draft a prompt for a task or by having one instance of the model direct others.

The term has two related uses. The first is prompt generation: a meta-prompt is an instruction that tells a model to write a good prompt from a description of a task, or to improve an existing one. The second, from research, is a way of structuring a model's work so that one instance plans and others carry out the parts.

OpenAI's developer platform shows the first use in action. Its Playground has a Generate button that writes prompts, function definitions and JSON schemas from a plain description. OpenAI says the meta-prompts behind it encode its prompt-writing best practices. To edit an existing prompt, it uses a modified meta-prompt that has the model first write an assessment of the prompt's clarity, structure and specificity; that reasoning is stripped out before the revised prompt is returned.

The second use was set out in January 2024 by Mirac Suzgun and Adam Tauman Kalai in Meta-Prompting: Enhancing Language Models with Task-Agnostic Scaffolding. A single model acts as a conductor: it breaks a task into parts, hands each to a separate expert instance of the same model with instructions written for that part, then combines and checks the results. Using GPT-4 with a Python interpreter, averaged across tasks including the Game of 24, Checkmate-in-One and Python programming puzzles, the method beat standard prompting by 17.1%.

An everyday example of the first kind: Write a system prompt for a customer support assistant that answers refund questions using only the attached policy, declines anything else politely and replies in under 100 words. The model returns a structured prompt that the user then tests and adjusts. It is a quick way to get a solid first draft, especially for people new to prompt writing.

The limit is that the model writing the prompt knows only what it is told. It cannot see the edge cases, awkward customers or formatting rules that will trip the prompt up in use. A generated prompt is a starting point that still needs testing against real examples, and a scaffolding method that runs several model calls per task costs more and takes longer than a single call.

Common questions

What is a meta-prompt?

A meta-prompt is a prompt about prompts: an instruction asking a model to write or improve a prompt for some other task. OpenAI uses meta-prompts behind the Generate feature in its developer Playground, encoding its own prompt-writing best practices.

How do I use meta-prompting?

Describe your task, audience, constraints and the output you want, and ask the model to write a prompt that achieves it. Then run the generated prompt on real examples, note where it fails, and ask the model to revise it with those failures in mind.

What is the conductor approach to meta-prompting?

In a 2024 paper, Mirac Suzgun and Adam Tauman Kalai had one model instance break a task into subtasks, pass each to an expert instance of the same model with tailored instructions, then combine and verify the answers. With GPT-4 and a Python interpreter it outperformed standard prompting by 17.1% on average across their tasks.

Is meta-prompting better than writing prompts by hand?

It is faster for a first draft and good at applying standard structure. It does not know your edge cases or real users, so hand testing and revision remain necessary for anything important.

Finding more

Search for "meta-prompting", "prompt generation" or "automatic prompt optimisation" to find tools and research. Model makers' developer documentation describes their built-in prompt generators, and the Suzgun and Kalai paper on arXiv covers the conductor approach. Be wary of claims that automated prompt tools remove the need for testing; look for evaluations on held-out examples.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.