Eliciting Knowledge from Language Models Using Automatically Generated Prompts

By Taylor Shin, Yasaman Razeghi, Robert L Logan IV, Eric Wallace, Sameer Singh. 2020

559 citations recorded by the source corpus.

The remarkable success of pretrained language models has motivated the study of what kinds of knowledge these models learn during pretraining. Reformulating tasks as fill-in-the-blanks problems (e.g., cloze tests) is a natural approach for gauging such knowledge, however, its usage is limited by the manual effort and guesswork required to write suitable prompts. To address this, we develop AutoPrompt, an automated method to create prompts for a diverse set of tasks, based on a gradient-guided search. Using AutoPrompt, we show that masked language models (MLMs) have an inherent capability to perform sentiment analysis and natural language inference without additional parameters or finetuning, sometimes achieving performance on par with recent state-of-the-art supervised models. We also show that our prompts elicit more accurate factual knowledge from MLMs than the manually created prompts on the LAMA benchmark, and that MLMs can be used as relation extractors more effectively than supervised relation extraction models. These results demonstrate that automatically generated prompts are a viable parameter-free alternative to existing probing methods, and as pretrained LMs become more sophisticated and capable, potentially a replacement for finetuning.

Subfields: Artificial Intelligence, Large Language Models, Prompting & Reasoning

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Mohit Bansal
  2. Luke S. Zettlemoyer
  3. Hannaneh Hajishirzi
  4. Percy Liang
  5. Yejin Choi
  6. Graham Neubig
  7. Jianfeng Gao
  8. Noah A. Smith

In Large Language Models

  1. Hinrich Schütze
  2. Luke S. Zettlemoyer
  3. Timo Schick
  4. Hannaneh Hajishirzi
  5. Graham Neubig
  6. Mohit Bansal
  7. Yejin Choi
  8. Furu Wei

In Prompting & Reasoning

  1. Luke S. Zettlemoyer
  2. Hannaneh Hajishirzi
  3. Chitta Baral
  4. Swaroop Mishra
  5. Hinrich Schütze
  6. Timo Schick
  7. Jonathan Berant
  8. Mohit Bansal

Citations in the corpus