arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.12954cs.CLcs.AIcs.HC
收藏

元提示:通过任务无关的脚手架增强语言模型

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

Stanford University(斯坦福大学);OpenAI

Mirac Suzgun, Adam Tauman Kalai

AI总结:

本文提出元提示(meta-prompting)这一任务无关的零样本脚手架技术,使单一语言模型同时充当协调者和多专家面板,并通过集成 Python 解释器在多项任务上显著超越标准提示、专家提示和多角色提示。

摘要:

我们引入了元提示(meta-prompting),这是一种有效的脚手架技术,旨在增强语言模型(LMs)的功能。该方法将单一语言模型转变为多面协调者,擅长管理和整合多个独立的语言模型查询。通过使用高层指令,元提示引导语言模型将复杂任务分解为更小、更易管理的子任务。这些子任务随后由同一语言模型的不同“专家”实例处理,每个实例在特定、量身定制的指令下运行。这一过程的核心是语言模型本身,它作为协调者,确保这些专家模型输出之间的无缝通信和有效整合。它还利用其固有的批判性思维和稳健的验证过程来完善和认证最终结果。这种协作式提示方法使单一语言模型能够同时充当全面的编排者和多样化的专家组,显著提升其在广泛任务上的表现。元提示的零样本、任务无关特性通过消除对详细、任务特定指令的需求,极大简化了用户交互。此外,我们的研究展示了将外部工具(如 Python 解释器)无缝集成到元提示框架中,从而拓宽了其适用性和实用性。通过对 GPT-4 的严格实验,我们确立了元提示相对于传统脚手架方法的优越性:在所有任务(包括 24 点游戏、一步将死和国际象棋编程谜题)上取平均时,增强 Python 解释器功能的元提示比标准提示高出 17.1%,比专家(动态)提示高出 17.3%,比多角色提示高出 15.2%。

英文摘要:

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

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑