Demystifying Prompts in Language Models via Perplexity Estimation
About
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.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Language Understanding | MMLU (test) | MMLU Average Accuracy70.5 | 163 | |
| Readmission prediction | MIMIC IV | AUC-ROC0.4882 | 70 | |
| Mortality Prediction | MIMIC-III | AUROC75.37 | 46 | |
| Readmission Prediction (RA) | MIMIC-IV (test) | ROC AUC0.4856 | 33 | |
| Length-of-Stay Prediction | MIMIC-III | Macro ROC AUC63.73 | 28 | |
| Data Contamination Detection | K&K | F1 Score67 | 16 | |
| Data Contamination Detection | SAT | F1 Score68 | 16 | |
| Data Contamination Detection | AIME 2025 | F1 Score62 | 16 | |
| Data Contamination Detection | AIME 2024 | F1 Score42 | 16 | |
| Mortality Prediction | MIMIC-III (test) | AUROC63.26 | 14 |