Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivity

By Yao Lu, Max Bartolo, Alastair Moore, Sebastian Riedel, Pontus Stenetorp. 2021

1,596 citations recorded by the source corpus.

When primed with only a handful of training samples, very large, pretrained language models such as GPT-3 have shown competitive results when compared to fully-supervised, fine-tuned, large, pretrained language models. We demonstrate that the order in which the samples are provided can make the difference between near state-of-the-art and random guess performance: essentially some permutations are “fantastic” and some not. We analyse this phenomenon in detail, establishing that: it is present across model sizes (even for the largest current models), it is not related to a specific subset of samples, and that a given good permutation for one model is not transferable to another. While one could use a development set to determine which permutations are performant, this would deviate from the true few-shot setting as it requires additional annotated data. Instead, we use the generative nature of language models to construct an artificial development set and based on entropy statistics of the candidate permutations on this set, we identify performant prompts. Our method yields a 13% relative improvement for GPT-family models across eleven different established text classification tasks.

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

In Information Systems

  1. Percy Liang
  2. Hannaneh Hajishirzi
  3. Tushar Khot
  4. Ashish Sabharwal
  5. Luke S. Zettlemoyer
  6. Chitta Baral
  7. Yongfeng Zhang
  8. Peter Clark

In Prompting & Reasoning

  1. Luke S. Zettlemoyer
  2. Hannaneh Hajishirzi
  3. Denny Zhou
  4. Timo Schick
  5. Swaroop Mishra
  6. Hinrich Schütze
  7. Yejin Choi
  8. Chitta Baral

Citations in the corpus