[論文レビュー] Ask Me Anything: A simple strategy for prompting language models
AMAは複数のオープンエンドQAプロンプトと弱監督信号を用いて予測を集約することを提案し、オープンソースLLMのプロンプティングを改善し、多数のベンチマークでfew-shot GPT-3のベースラインを上回る。
Large language models (LLMs) transfer well to new tasks out-of-the-box simply given a natural language prompt that demonstrates how to perform the task and no additional training. Prompting is a brittle process wherein small modifications to the prompt can cause large variations in the model predictions, and therefore significant effort is dedicated towards designing a painstakingly "perfect prompt" for a task. To mitigate the high degree of effort involved in prompt-design, we instead ask whether producing multiple effective, yet imperfect, prompts and aggregating them can lead to a high quality prompting strategy. Our observations motivate our proposed prompting method, ASK ME ANYTHING (AMA). We first develop an understanding of the effective prompt formats, finding that question-answering (QA) prompts, which encourage open-ended generation ("Who went to the park?") tend to outperform those that restrict the model outputs ("John went to the park. Output True or False."). Our approach recursively uses the LLM itself to transform task inputs to the effective QA format. We apply the collected prompts to obtain several noisy votes for the input's true label. We find that the prompts can have very different accuracies and complex dependencies and thus propose to use weak supervision, a procedure for combining the noisy predictions, to produce the final predictions for the inputs. We evaluate AMA across open-source model families (e.g., EleutherAI, BLOOM, OPT, and T0) and model sizes (125M-175B parameters), demonstrating an average performance lift of 10.2% over the few-shot baseline. This simple strategy enables the open-source GPT-J-6B model to match and exceed the performance of few-shot GPT3-175B on 15 of 20 popular benchmarks. Averaged across these tasks, the GPT-J-6B model outperforms few-shot GPT3-175B. We release our code here: https://github.com/HazyResearch/ama_prompting
研究の動機と目的
- 複数の不完全なプロンプトを活用してプロンプティングの脆弱性を低減する動機づけ。
- 再帰的なプロンプト連鎖を用いてタスク入力をオープンエンドQA形式へ変換するスケーラブルな方法を開発する。
- ラベル付きデータなしでノイズのあるプロンプト予測を信頼性高く集約するための弱監督を導入する。
- さまざまなオープンソースモデルファミリとベンチマークにわたりAMAを評価し、few-shotベースラインに対する改善を定量化する。
提案手法
- オープンエンドQAを制約的なプロンプトより有利にする効果的なプロンプト形式を同定する。
- question()とanswer()という機能的プロンプトから成るプロンプト連鎖を用いて入力をQA形式へ再帰的に変換する。
- 各入力に対して多様な予測を生成するために複数のプロンプト連鎖を生成する。
- ラベル付きデータを用いずにプロンプト出力間の依存性と正確さを考慮した弱監督を適用して予測を集約する。
実験結果
リサーチクエスチョン
- RQ1オープンエンドQAプロンプトはタスクとモデルサイズを問わず制約的プロンプトを上回るか。
- RQ2入力を再帰的に再フォーマットすることで、集約に適した効果的なプロンプト連鎖を生み出せるか。
- RQ3ラベル付きデータなしでノイズがあり依存するプロンプト出力を弱監督で信頼性高く結合し、精度を向上させられるか。
- RQ4AMAは異なるオープンソースモデルファミリとタスク間でどれくらい移用性があるか。
- RQ5AMAのfew-shotベースラインに対する平均的な性能向上はどれくらいで、どの条件で利得が最大になるか。
主な発見
- オープンエンドQAプロンプトは制約的プロンプトに比べて顕著な性能向上をもたらし、再フォーマットがタスクとモデル間で一般化するほど大きな向上が得られる。
- 再帰的なプロンプト連鎖(question()とanswer())は多様な入力に対してQAスタイルのプロンプトをスケーラブルに生成することを可能にする。
- プロンプトの依存性と正確さを考慮した弱監督は、単純な多数決よりも集約を改善し、条件付きエントロピーを低減し信頼性を向上させる。
- 14のモデルファミリと20のベンチマークを横断して、AMAはfew-shotベースラインを平均で10.2%(±6.1%)上回り、GPT-J-6Bは20タスク中15でGPT-3-175Bのfew-shotを上回るか同等。
- AMAは6Bのオープンソースモデルを複数タスクで175BのGPT-3 few-shotベースラインより上回らせ、より小さなモデルでも効果的なプロンプティングを示す。
この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。