Learning How to Ask: Querying LMs with Mixtures of Soft Prompts

By Guanghui Qin, Jason Eisner. 2021

602 citations recorded by the source corpus.

Natural-language prompts have recently been used to coax pretrained language models into performing other AI tasks, using a fill-in-the-blank paradigm (Petroni et al., 2019) or a few-shot extrapolation paradigm (Brown et al., 2020). For example, language models retain factual knowledge from their training corpora that can be extracted by asking them to “fill in the blank” in a sentential prompt. However, where does this prompt come from? We explore the idea of learning prompts by gradient descent—either fine-tuning prompts taken from previous work, or starting from random initialization. Our prompts consist of “soft words,” i.e., continuous vectors that are not necessarily word type embeddings from the language model. Furthermore, for each task, we optimize a mixture of prompts, learning which prompts are most effective and how to ensemble them. Across multiple English LMs and tasks, our approach hugely outperforms previous methods, showing that the implicit factual knowledge in language models was previously underestimated. Moreover, this knowledge is cheap to elicit: random initialization is nearly as good as informed initialization.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, 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. Yejin Choi
  4. Hannaneh Hajishirzi
  5. Graham Neubig
  6. Percy Liang
  7. Jianfeng Gao
  8. Noah A. Smith

In Computer Vision and Pattern Recognition

  1. Mohit Bansal
  2. Luc Van Gool
  3. Dacheng Tao
  4. Jianfeng Gao
  5. Xiaogang Wang
  6. Trevor Darrell
  7. Hannaneh Hajishirzi
  8. Ming-Hsuan Yang

In Large Language Models

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

In Prompting & Reasoning

  1. Luke S. Zettlemoyer
  2. Hannaneh Hajishirzi
  3. Yejin Choi
  4. Mohit Bansal
  5. Daniel Khashabi
  6. Sewon Min
  7. Huan Sun
  8. Tushar Khot

Citations in the corpus