The language of prompting: What linguistic properties make a prompt successful?

Alina Leidinger, Robert van Rooij, Ekaterina Shutova
11/3/2023
cs.CLcs.AIcs.LG

Official code: aleidinger/language_of_prompting (3 stars, last commit 2024-05-31).

Abstract

The latest generation of LLMs can be prompted to achieve impressive zero-shot or few-shot performance in many NLP tasks. However, since performance is highly sensitive to the choice of prompts, considerable effort has been devoted to crowd-sourcing prompts or designing methods for prompt optimisation. Yet, we still lack a systematic understanding of how linguistic properties of prompts correlate with task performance. In this work, we investigate how LLMs of different sizes, pre-trained and instruction-tuned, perform on prompts that are semantically equivalent, but vary in linguistic structure. We investigate both grammatical properties such as mood, tense, aspect and modality, as well as lexico-semantic variation through the use of synonyms. Our findings contradict the common assumption that LLMs achieve optimal performance on lower perplexity prompts that reflect language use in pretraining or instruction-tuning data. Prompts transfer poorly between datasets or models, and performance cannot generally be explained by perplexity, word frequency, ambiguity or prompt length. Based on our results, we put forward a proposal for a more robust and comprehensive evaluation standard for prompting research.

View on arXivView PDF

Code Implementations(1)

30Oct 12, 20232 years ago

Similar Papers

Cite this paper

@article{leidinger2023language,
  title  = {The language of prompting: What linguistic properties make a prompt successful?},
  author = {Alina Leidinger and Robert van Rooij and Ekaterina Shutova},
  year   = {2023},
  eprint = {2311.01967},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.01967v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.01967.svg)](https://codeofpaper.com/paper/2311.01967)

Discussion