Skip to main content
QUICK REVIEW

[论文解读] Ask Me Anything: A simple strategy for prompting language models

Simran Arora, Avanika Narayan|arXiv (Cornell University)|Oct 5, 2022
Topic ModelingComputer Science被引用 74
一句话总结

AMA 提议使用多种开放式问答提示和弱监督来聚合它们的预测,提升开源大语言模型的提示效果,并在众多基准测试中超越少量示例的 GPT-3 基线。

ABSTRACT

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

研究动机与目标

  • 通过利用多个不完美的提示而非单一手工设计提示来降低提示的易脆性之动机。
  • 开发一种可扩展的方法,通过递归提示链将任务输入转换为开放式问答格式。
  • 引入弱监督,在无标注数据的情况下可靠地聚合嘈杂的提示预测。
  • 在多样的开源模型家族和基准上评估 AMA,以量化相对于少量示例基线的改进。

提出的方法

  • 识别有利于开放式问答而不是受限提示的有效提示格式。
  • 使用由 question() 和 answer() 功能性提示组成的提示链,将输入递归地转换为 QA 格式。
  • 生成多个提示链以为每个输入产生多样化的预测。
  • 应用弱监督来考虑提示输出之间的模型依赖性和准确性,以在无标注数据的情况下聚合预测。

实验结果

研究问题

  • RQ1在不同任务和模型规模下,开放式问答提示是否优于受限提示?
  • RQ2可扩展、递归地重新格式化输入是否能够生成适合聚合的有效提示链?
  • RQ3弱监督是否能在无标注数据的情况下可靠地将嘈杂且相关的提示输出组合以提高准确性?
  • RQ4AMA 在不同开源模型家族和任务中的迁移效果如何?
  • RQ5AMA 相对于少量示例基线的平均性能提升是多少,在何种条件下提升最大?

主要发现

  • 开放式问答提示相对于受限提示带来显著的性能提升,当重新格式化在跨任务和模型上泛化时,提升更大。
  • 递归提示链(question() 和 answer())使得为多样化输入生成 QA 风格提示具有可扩展性。
  • 考虑提示依赖性和准确性的弱监督在聚合方面优于简单多数投票,降低条件熵并提升可靠性。
  • 在 14 个模型家族和 20 个基准上,AMA 相对于少量示例基线平均提升 10.2%(±6.1%),GPT-J-6B 在 20 项任务中的 15 项达到或超越 GPT-3-175B 的少量示例基线。
  • AMA 使得一个 6B 的开源模型在多项任务上超过 175B GPT-3 的少量示例基线,说明了用更小模型进行有效提示的潜力。

阅读本论文

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

在 Nubint 中阅读本论文

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