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-prompting は Meta Model を活用して専門 LM のプロンプトを指揮・統括し(場合により Python 実行も)、ゼロショット性能を多様なタスクで向上させ、従来の標準、 expert-dynamic、mult-persona prompting 手法を上回る。

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 を指揮者と専門家パネルへ変換するタスク非依存の足場フレームワークを導入する。
  • 複雑な問題を専門の expert prompts が処理するサブタスクに分解できるようにする。
  • タスク固有の exemplars なしで、さまざまなタスクに対する頑健性と正確性の向上を示す。
  • 外部ツール(例:Python インタプリタ)を統合して適用性と性能を拡張する。

提案手法

  • Task decomposition と expert selection を高レベルなプロンプトで調整する Meta Model を定義する。
  • Meta Model が domain-specific な expert prompts を呼び出し、それらの出力を統合できるようにする(同じ LM でも指示を変える場合がある)。
  • テンプレート t_init、t_mid、t_exp および抽出子 e_exp、e_ret を用いてフォーマット化、照会、成果を収集する。
  • 専門家が新たな指示へ応答する形でプロンプト履歴を反復的に構築し、Meta Model が最終出力を検証・統合する。
  • 任意で Python インタプリタを取り入れてリアルタイムのコード実行と検証を補助する。
  • 複数のタスクにわたる様々なゼロショートベースライン(Std、0-CoT、Ex-St、Ex-Dy、MP)と比較して評価する。
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単一の言語モデルが conductor として機能し、複数の自己宣伝型 expert を組み合わせることで、多様な領域で優れたゼロショットタスク性能を達成できるか。
  • RQ2タスク非依存のメタプロンプトが、標準プロンプト、専門家プロンプト(静的/動的)、およびマルチペルソナ prompting に対して、正確性と頑健性にどのような影響を与えるか。
  • RQ3 meta-prompting に Python インタプリタを組み込むと、タスクを横断して一貫した性能向上が得られるか。
  • RQ4専門家の検証による新鮮さと体系的検証が解決策の信頼性を高め、誤り検出と修正を改善するのか。

主な発見

  • Meta-prompting は、特に Python インタプリタを用いると、標準プロンプティングより平均タスク精度を 17.1%、動的専門家プロンプティングより 17.3%、マルチペルソナ prompting より 15.2% 向上させる。
  • Game of 24、Checkmate-in-One、Python Programming Puzzles、Shakespearean Sonnet Writing などのタスクにおいて、メタプロンプティングはベースラインに対して顕著な改善を示し、ヒューリスティックおよび反復的な問題解決で特に改善が見られる。
  • Python インタプリタの統合は、メタプロンプティング単体と比較してタスク全体で平均して 11.5% の追加改善をもたらす。
  • 新鮮な視点と専門家検証による体系的な検証が解決策の信頼性を高め、過信を減らし、誤り検出と訂正を促進する。
  • Meta Model はタスクのニーズに応じて専門家のタイプ(計算型 vs 創造型)を動的に選択し、適応的なタスク駆動の統 orchestration を示す。
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が論文の原文をもとに作成しました。引用する前に原文をご確認ください。