Meta Prompting for AI Systems

Yifan Zhang, Yang Yuan, Andrew Chi-Chih Yao
11/20/2023
37 citations
cs.AIcs.CL

Official code: meta-prompting/meta-prompting (333 stars, Python, MIT, last commit 2025-12-23).

Abstract

We introduce Meta Prompting (MP), a framework that elevates the reasoning capabilities of large language models (LLMs) by focusing on the formal structure of a task rather than content-specific examples. We establish a theoretical foundation for this paradigm, formalizing MP as a functor that maps a category of tasks to a category of structured prompts, thereby guaranteeing that compositional problem-solving strategies can be systematically decomposed into modular prompt structures.

Show full abstract

We extend this concept to Recursive Meta Prompting (RMP), an automated process where an LLM can generate and refine its own prompts. We model this self-improvement loop formally as a monad, providing a principled framework for automated prompt engineering. Our claims are validated through extensive experiments demonstrating that a Qwen-72B base model, guided by a single, example-agnostic meta-prompt, achieves state-of-the-art results on MATH, GSM8K, and Game of 24. These results are achieved with substantial token efficiency gains over traditional few-shot methods. Project Page: https://github.com/meta-prompting/meta-prompting.

View on arXivView PDF

Code Implementations(1)

MIT

Official implementation of Meta Prompting for AI Systems (https://arxiv.org/abs/2311.11482)

33339Python, ShellNov 19, 202311 months agoMIT
ai-systemsfoundation-modelslarge-language-modelsllmmeta-prompting+2 more

Similar Papers

Cite this paper

@article{zhang2023meta,
  title  = {Meta Prompting for AI Systems},
  author = {Yifan Zhang and Yang Yuan and Andrew Chi-Chih Yao},
  year   = {2023},
  eprint = {2311.11482},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.11482v9}
}

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/2311.11482.svg)](https://codeofpaper.com/paper/2311.11482)

Discussion