Demystifying Prompts in Language Models via Perplexity Estimation

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Gonen, Hila, Iyer, Srini, Blevins, Terra, Smith, Noah A., Zettlemoyer, Luke
Natura: Preprint
Pubblicazione: 2022
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866929499094908928
author Gonen, Hila
Iyer, Srini
Blevins, Terra
Smith, Noah A.
Zettlemoyer, Luke
author_facet Gonen, Hila
Iyer, Srini
Blevins, Terra
Smith, Noah A.
Zettlemoyer, Luke
contents Language models can be prompted to perform a wide variety of zero- and few-shot learning problems. However, performance varies significantly with the choice of prompt, and we do not yet understand why this happens or how to pick the best prompts. In this work, we analyze the factors that contribute to this variance and establish a new empirical hypothesis: the performance of a prompt is coupled with the extent to which the model is familiar with the language it contains. Over a wide range of tasks, we show that the lower the perplexity of the prompt is, the better the prompt is able to perform the task. As a result, we devise a method for creating prompts: (1) automatically extend a small seed set of manually written prompts by paraphrasing using GPT3 and backtranslation and (2) choose the lowest perplexity prompts to get significant gains in performance.
format Preprint
id arxiv_https___arxiv_org_abs_2212_04037
institution arXiv
publishDate 2022
record_format arxiv
spellingShingle Demystifying Prompts in Language Models via Perplexity Estimation
Gonen, Hila
Iyer, Srini
Blevins, Terra
Smith, Noah A.
Zettlemoyer, Luke
Computation and Language
Language models can be prompted to perform a wide variety of zero- and few-shot learning problems. However, performance varies significantly with the choice of prompt, and we do not yet understand why this happens or how to pick the best prompts. In this work, we analyze the factors that contribute to this variance and establish a new empirical hypothesis: the performance of a prompt is coupled with the extent to which the model is familiar with the language it contains. Over a wide range of tasks, we show that the lower the perplexity of the prompt is, the better the prompt is able to perform the task. As a result, we devise a method for creating prompts: (1) automatically extend a small seed set of manually written prompts by paraphrasing using GPT3 and backtranslation and (2) choose the lowest perplexity prompts to get significant gains in performance.
title Demystifying Prompts in Language Models via Perplexity Estimation
topic Computation and Language
url https://arxiv.org/abs/2212.04037