Ask Me Anything: A simple strategy for prompting language models
Arora, Simran, Narayan, Avanika, Chen, Mayee F., Orr, Laurel, Guha, Neel, Bhatia, Kush, Chami, Ines, Sala, Frederic, Ré, Christopher
–arXiv.org Artificial Intelligence
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
arXiv.org Artificial Intelligence
Nov-19-2022
- Country:
- Africa
- Asia
- Pakistan > Islamabad Capital Territory
- Islamabad (0.04)
- Kazakhstan (0.04)
- Japan
- Honshū > Kantō
- Tokyo Metropolis Prefecture > Tokyo (0.04)
- Kyūshū & Okinawa > Kyūshū
- Fukuoka Prefecture > Fukuoka (0.04)
- Honshū > Kantō
- Middle East
- Russia (0.04)
- China > Beijing
- Beijing (0.04)
- South Korea (0.04)
- Sri Lanka (0.04)
- Thailand (0.04)
- Singapore (0.04)
- Tajikistan (0.04)
- India (0.04)
- Afghanistan (0.14)
- Pakistan > Islamabad Capital Territory
- Europe
- Romania > București - Ilfov Development Region
- Municipality of Bucharest > Bucharest (0.04)
- United Kingdom
- Gibraltar (0.04)
- Ukraine (0.04)
- Belgium (0.04)
- Switzerland > Basel-City
- Basel (0.04)
- Spain > Catalonia
- Barcelona Province > Barcelona (0.04)
- Russia (0.04)
- Italy (0.04)
- Iceland (0.04)
- Austria (0.04)
- Romania > București - Ilfov Development Region
- North America
- Canada > Ontario
- Toronto (0.04)
- Cuba (0.04)
- The Bahamas (0.04)
- Central America (0.04)
- El Salvador (0.04)
- United States
- Colorado > Boulder County
- Boulder (0.04)
- California
- Mariposa County (0.04)
- San Francisco County > San Francisco (0.04)
- Santa Clara County > Palo Alto (0.14)
- Tennessee > Shelby County
- Memphis (0.04)
- Pennsylvania (0.04)
- Washington > King County
- Virginia (0.04)
- Idaho (0.04)
- New Jersey (0.14)
- Ohio (0.04)
- Oklahoma (0.04)
- Wisconsin > Dane County
- Madison (0.04)
- New Hampshire (0.04)
- Illinois > Cook County
- Chicago (0.04)
- Louisiana > Orleans Parish
- New Orleans (0.04)
- Arizona (0.04)
- New York
- Bronx County > New York City (0.14)
- Kings County > New York City (0.04)
- New York County > New York City (0.04)
- Queens County > New York City (0.04)
- Richmond County > New York City (0.04)
- Montana > Yellowstone County
- Billings (0.04)
- Texas (0.04)
- Minnesota (0.04)
- West Virginia (0.04)
- Massachusetts > Essex County
- Lynn (0.04)
- Colorado > Boulder County
- Mexico (0.04)
- Nicaragua (0.04)
- Antigua and Barbuda (0.04)
- British Virgin Islands (0.04)
- Bermuda (0.04)
- Puerto Rico (0.04)
- Panama (0.04)
- Canada > Ontario
- Oceania
- Micronesia (0.04)
- Palau (0.04)
- Solomon Islands (0.04)
- South America
- Genre:
- Personal (0.92)
- Research Report (1.00)
- Industry:
- Leisure & Entertainment > Sports
- Football (1.00)
- Media
- Film (1.00)
- Music (1.00)
- News (0.67)
- Television (0.93)
- Transportation
- Air (1.00)
- Ground (1.00)
- Infrastructure & Services (0.92)
- Passenger (1.00)
- Banking & Finance (0.67)
- Semiconductors & Electronics (0.92)
- Government
- Health & Medicine
- Law (1.00)
- Energy (0.67)
- Education > Educational Setting (0.67)
- Telecommunications (0.67)
- Information Technology > Security & Privacy (0.67)
- Consumer Products & Services (1.00)
- Law Enforcement & Public Safety > Crime Prevention & Enforcement (1.00)
- Leisure & Entertainment > Sports
- Technology: