Strings from the Library of Babel: Random Sampling as a Strong Baseline for Prompt Optimisation
Not on the map. Why?
Abstract (arXiv)
Recent prompt optimisation approaches use the generative nature of language models to produce prompts -- even rivaling the performance of human-curated prompts. In this paper, we demonstrate that randomly sampling tokens from the model vocabulary as ``separators'' can be as effective as language models for prompt-style text classification. Our experiments show that random separators are competitive baselines, having less than a 1% difference compared to previous self-optimisation methods and showing a 12% average relative improvement over strong human baselines across nine text classification tasks and eight language models. We further analyse this phenomenon in detail using three different random generation strategies, establishing that the language space is rich with potentially good separators, with a greater than 40% average chance that a randomly drawn separator performs better than human-curated separators. These observations challenge the common assumption that an effective prompt should be human readable or task relevant and establish a strong baseline for prompt optimisation research.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 24 of its 38 references that are in the map. First posted on arXiv 16 Nov 2023.
Builds on
24 of 38 references.
References · 24
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,795
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
- 2018Deep contextualized word representationscited by 2,290
- 2019Language Models as Knowledge Bases?cited by 1,936
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,392
12 more
- 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,256
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,045
- 2019How Can We Know What Language Models Know?cited by 959
- 2021Cross-Task Generalization via Natural Language Crowdsourcing Instructionscited by 699
- 2023Promptbreeder: Self-Referential Self-Improvement Via Prompt Evolutioncited by 551
- 2021Learning How to Ask: Querying LMs with Mixtures of Soft Promptscited by 377
- 2023Sentiment Analysis in the Era of Large Language Models: A Reality Checkcited by 268
- 2023EvoPrompt: Connecting LLMs with Evolutionary Algorithms Yields Powerful Prompt Optimizerscited by 193
- 2019Commonsense Knowledge Mining from Pretrained Modelscited by 189
- 2020How Context Affects Language Models' Factual Predictionscited by 181
- 2022Toward Human Readable Prompt Tuning: Kubrick's The Shining is a good movie, and a good prompt too?cited by 49
Built on by
Citing papers per year: 2024: 3; 2025: 2; 2026: 2.
7 papers.
- 2024Chasing Random: Instruction Selection Strategies Fail to Generalizecited by 13
- 2024C2P: Featuring Large Language Models with Causal Reasoningcited by 8
- 2024Mixtures of In-Context Learnerscited by 5
- 2025Do Prompts Reshape Representations? An Empirical Study of Prompting Effects on Embeddingscited by 2
- 2025PIAST: Rapid Prompting with In-context Augmentation for Scarce Training datacited by 2
- 2026TATRA: Training-Free Instance-Adaptive Prompting Through Rephrasing and Aggregationcited by 1
- 2026PLR: Plackett-Luce for Reordering In-Context Learning Examplescited by 1
- 2026PLR: Plackett-Luce for Reordering In-Context Learning Examples22 Mar 2026
- 2026TATRA: Training-Free Instance-Adaptive Prompting Through Rephrasing and Aggregation6 Feb 2026
- 2025PIAST: Rapid Prompting with In-context Augmentation for Scarce Training data11 Dec 2025
- 2025Do Prompts Reshape Representations? An Empirical Study of Prompting Effects on Embeddings22 Oct 2025
- 2024Mixtures of In-Context Learners5 Nov 2024
- 2024Chasing Random: Instruction Selection Strategies Fail to Generalize19 Oct 2024
- 2024C2P: Featuring Large Language Models with Causal Reasoning25 Jul 2024