Meta-Prompting: Enhancing Language Models with Task-Agnostic Scaffolding

Mirac Suzgun, Adam Tauman Kalai
1/23/2024
cs.CLcs.AIcs.HC

No official code found. Best implementation: suzgunmirac/meta-prompting (420 stars, MIT, last commit 2024-02-07).

Abstract

We introduce meta-prompting, an effective scaffolding technique designed to enhance the functionality of language models (LMs). This approach transforms a single LM into a multi-faceted conductor, adept at managing and integrating multiple independent LM queries. By employing high-level instructions, meta-prompting guides the LM to break down complex tasks into smaller, more manageable subtasks. These subtasks are then handled by distinct "expert" instances of the same LM, each operating under specific, tailored instructions. Central to this process is the LM itself, in its role as the conductor, which ensures seamless communication and effective integration of the outputs from these expert models. It additionally employs its inherent critical thinking and robust verification processes to refine and authenticate the end result. This collaborative prompting approach empowers a single LM to simultaneously act as a comprehensive orchestrator and a panel of diverse experts, significantly enhancing its performance across a wide array of tasks. The zero-shot, task-agnostic nature of meta-prompting greatly simplifies user interaction by obviating the need for detailed, task-specific instructions. Furthermore, our research demonstrates the seamless integration of external tools, such as a Python interpreter, into the meta-prompting framework, thereby broadening its applicability and utility. Through rigorous experimentation with GPT-4, we establish the superiority of meta-prompting over conventional scaffolding methods: When averaged across all tasks, including the Game of 24, Checkmate-in-One, and Python Programming Puzzles, meta-prompting, augmented with a Python interpreter functionality, surpasses standard prompting by 17.1%, expert (dynamic) prompting by 17.3%, and multipersona prompting by 15.2%.

View on arXivView PDF

Code Implementations(1)

MIT

Meta-Prompting: Enhancing Language Models with Task-Agnostic Scaffolding

42034Shell, PythonDec 17, 20232 years agoMIT

Similar Papers

Cite this paper

@article{suzgun2024metaprompting,
  title  = {Meta-Prompting: Enhancing Language Models with Task-Agnostic Scaffolding},
  author = {Mirac Suzgun and Adam Tauman Kalai},
  year   = {2024},
  eprint = {2401.12954},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.12954v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2401.12954.svg)](https://codeofpaper.com/paper/2401.12954)

Discussion