Why is prompting hard? Understanding prompts on binary sequence predictors

Li Kevin Wenliang, Anian Ruoss, Jordi Grau-Moya, Marcus Hutter, Tim Genewein
2/15/2025
cs.CLcs.LGstat.ML

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Large language models (LLMs) can be prompted to do many tasks, but finding good prompts is not always easy, nor is understanding some performant prompts. We explore these issues by viewing prompting as conditioning a near-optimal sequence predictor (LLM) pretrained on diverse data sources. Through numerous prompt search experiments, we show that the unintuitive patterns in optimal prompts can be better understood given the pretraining distribution, which is often unavailable in practice. Moreover, even using exhaustive search, reliably identifying optimal prompts from practical neural predictors can be difficult. Further, we demonstrate that common prompting methods, such as using intuitive prompts or samples from the targeted task, are in fact suboptimal. Thus, this work takes an initial step towards understanding the difficulties in finding and understanding optimal prompts from a statistical and empirical perspective.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wenliang2025prompting,
  title  = {Why is prompting hard? Understanding prompts on binary sequence predictors},
  author = {Li Kevin Wenliang and Anian Ruoss and Jordi Grau-Moya and Marcus Hutter and Tim Genewein},
  year   = {2025},
  eprint = {2502.10760},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.10760v1}
}

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/2502.10760.svg)](https://codeofpaper.com/paper/2502.10760)

Discussion