Skip to main content
QUICK REVIEW

[论文解读] Meta-Prompting: Enhancing Language Models with Task-Agnostic Scaffolding

Mirac Süzgün, Adam Tauman Kalai|arXiv (Cornell University)|Jan 23, 2024
Topic ModelingComputer Science被引用 15
一句话总结

元提示通过一个 Meta 模型来编排专家 LM 提示(以及可选的 Python 执行),以提高在多样任务中的零样本表现,超越标准提示、专家动态提示和多角色提示方法。

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%.

研究动机与目标

  • 引入一个与任务无关的支架框架,将单个 LM 转变为指挥者和一组专家面板。
  • 使复杂问题能够分解为由专业专家提示处理的子任务。
  • 在没有任务特定范例的情况下 Demonstrate robustness and accuracy gains across diverse tasks without task-specific exemplars.
  • Integrate external tools (e.g., a Python interpreter) to broaden applicability and performance.

提出的方法

  • Define a Meta Model that coordinates task decomposition and expert selection via high-level prompts.
  • Allow the Meta Model to invoke domain-specific expert prompts (possibly the same LM with different instructions) and to integrate their outputs.
  • Use templates t_init, t_mid, t_exp and extractors e_exp, e_ret to format, solicit, and gather results.
  • Iteratively build a prompt history where experts respond to fresh instructions, with the Meta Model validating and synthesizing final outputs.
  • Optionally augment the framework with a Python interpreter for real-time code execution and verification.
  • Evaluate against various zero-shot baselines (Std, 0-CoT, Ex-St, Ex-Dy, MP) across multiple tasks.
Figure 2 : An example meta-prompting history, where the prompts have been shortened for illustrative purposes. The history is initialized by a question provided by a user. Then the entries cycle through: (a) injected instructions for the Meta Model, (b) the Meta Model’s output (when prompted with th
Figure 2 : An example meta-prompting history, where the prompts have been shortened for illustrative purposes. The history is initialized by a question provided by a user. Then the entries cycle through: (a) injected instructions for the Meta Model, (b) the Meta Model’s output (when prompted with th

实验结果

研究问题

  • RQ1一个作为指挥者的单一语言模型能否带来多领域的卓越零样本任务表现?
  • RQ2相对于标准提示、专家提示(静态/动态)和多角色提示,任务无关的元提示对准确性和鲁棒性有何影响?
  • RQ3在元提示中集成 Python 解释器是否能在各任务上带来稳定的性能提升?
  • RQ4元提示框架如何处理错误情况和验证以提高可靠性?

主要发现

  • 元提示,尤其是结合 Python 解释器时,与标准提示相比平均任务准确率提升 17.1%,与动态专家提示提升 17.3%,与多角色提示提升 15.2%。
  • 在如 Game of 24、Checkmate-in-One、Python Programming Puzzles、Shakespearean Sonnet Writing 等任务中,元提示相对于基线取得显著提升,尤其在启发式和迭代性问题求解方面。
  • 与不含 Python 的元提示相比,集成 Python 解释器在各任务平均进一步提升 11.5%。
  • 通过新鲜视角和专家验证的系统性验证提高了解决方案的可靠性,降低过度自信,从而更好地发现和纠正错误。
  • Meta Model 根据任务需要动态选择专家类型(计算型 vs. 创造型),体现自适应、任务驱动的编排。
Figure 3 : The instructions given to the Meta Model using the “system message” parameter in the GPT-4 API.
Figure 3 : The instructions given to the Meta Model using the “system message” parameter in the GPT-4 API.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。