Skip to main content
QUICK REVIEW

[Paper Review] Ask Me Anything: A simple strategy for prompting language models

Simran Arora, Avanika Narayan|arXiv (Cornell University)|Oct 5, 2022
Topic ModelingComputer Science74 citations
TL;DR

AMA proposes using multiple open-ended QA prompts and weak supervision to aggregate their predictions, improving open-source LLM prompting and surpassing few-shot GPT-3 baselines across many benchmarks.

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

Motivation & Objective

  • Motivation to reduce prompting brittleness by leveraging multiple imperfect prompts rather than a single handcrafted prompt.
  • Develop a scalable method to transform task inputs into open-ended QA formats using recursive prompt chains.
  • Introduce weak supervision to reliably aggregate noisy prompt predictions without labeled data.
  • Evaluate AMA across diverse open-source model families and benchmarks to quantify improvements over few-shot baselines.

Proposed method

  • Identify effective prompt formats that favor open-ended QA over restrictive prompts.
  • Recursively transform inputs into QA format using prompt-chains composed of question() and answer() functional prompts.
  • Generate multiple prompt-chains to produce diverse predictions for each input.
  • Apply weak supervision to model dependencies and accuracies among prompt outputs to aggregate predictions without labeled data.

Experimental results

Research questions

  • RQ1Do open-ended QA prompts outperform restrictive prompts across tasks and model sizes?
  • RQ2Can a scalable, recursive reformatting of inputs produce effective prompt-chains suitable for aggregation?
  • RQ3Does weak supervision reliably combine noisy, dependent prompt outputs to improve accuracy without labeled data?
  • RQ4How well does AMA transfer across different open-source model families and tasks?
  • RQ5What is the average performance lift of AMA over few-shot baselines, and under what conditions are gains largest?

Key findings

  • Open-ended QA prompts yield substantial performance gains over restrictive prompts, with larger lifts when reformats generalize across tasks and models.
  • Recursive prompt-chains (question() and answer()) enable scalable generation of QA-style prompts for diverse inputs.
  • Weak supervision accounting for prompt dependencies and accuracies improves aggregation over simple majority vote, reducing conditional entropy and improving reliability.
  • Across 14 model families and 20 benchmarks, AMA achieves an average uplift of 10.2% (±6.1%) over the few-shot baseline, with GPT-J-6B matching or exceeding GPT-3-175B few-shot on 15 of 20 tasks.
  • AMA enables a 6B open-source model to outperform 175B GPT-3 few-shot baselines on multiple tasks, illustrating effective prompting with much smaller models.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.