mlsanityData to 14 Oct 2026

Grammar-Guided Evolutionary Search for Discrete Prompt Optimisation

arXiv 2507.10326 ↗First posted 14 Jul 2025cs.CLcited by 1

Not on the map. Why?

Abstract (arXiv)

Prompt engineering has proven to be a crucial step in leveraging pretrained large language models (LLMs) in solving various real-world tasks. Numerous solutions have been proposed that seek to automate prompt engineering by using the model itself to edit prompts. However, the majority of state-of-the-art approaches are evaluated on tasks that require minimal prompt templates and on very large and highly capable LLMs. In contrast, solving complex tasks that require detailed information to be included in the prompt increases the amount of text that needs to be optimised. Furthermore, smaller models have been shown to be more sensitive to prompt design. To address these challenges, we propose an evolutionary search approach to automated discrete prompt optimisation consisting of two phases. In the first phase, grammar-guided genetic programming is invoked to synthesise prompt-creating programmes by searching the space of programmes populated by function compositions of syntactic, dictionary-based and LLM-based prompt-editing functions. In the second phase, local search is applied to explore the neighbourhoods of best-performing programmes in an attempt to further fine-tune their performance. Our approach outperforms three state-of-the-art prompt optimisation approaches, PromptWizard, OPRO, and RL-Prompt, on three relatively small general-purpose LLMs in four domain-specific challenging tasks. We also illustrate several examples where these benchmark methods suffer relatively severe performance degradation, while our approach improves performance in almost all task-model combinations, only incurring minimal degradation when it does not.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 30 of its 44 references that are in the map. First posted on arXiv 14 Jul 2025.

Builds on

30 of 44 references.

References · 30

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  3. 2022Emergent Abilities of Large Language Modelscited by 2,512
  4. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
  5. 2019PubMedQA: A Dataset for Biomedical Research Question Answeringcited by 1,288
  6. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
  7. 2023Large Language Models as Optimizerscited by 864
  8. 2023Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formattingcited by 817
  9. 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 653
  10. 2023Promptbreeder: Self-Referential Self-Improvement Via Prompt Evolutioncited by 551
  11. 2021TAT-QA: A Question Answering Benchmark on a Hybrid of Tabular and Textual Content in Financecited by 408
  12. 2022RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learningcited by 366
18 more
  1. 2023PromptAgent: Strategic Planning with Language Models Enables Expert-level Prompt Optimizationcited by 233
  2. 2023REFINER: Reasoning Feedback on Intermediate Representationscited by 205
  3. 2022ConvFinQA: Exploring the Chain of Numerical Reasoning in Conversational Finance Question Answeringcited by 196
  4. 2024ProSA: Assessing and Understanding the Prompt Sensitivity of LLMscited by 149
  5. 2022GrIPS: Gradient-free, Edit-based Instruction Search for Prompting Large Language Modelscited by 127
  6. 2023Guiding Large Language Models via Directional Stimulus Promptingcited by 95
  7. 2023Mitigating Label Biases for In-context Learningcited by 89
  8. 2020ETHOS: an Online Hate Speech Detection Datasetcited by 66
  9. 2024PRewrite: Prompt Rewriting with Reinforcement Learningcited by 45
  10. 2022GPS: Genetic Prompt Search for Efficient Few-shot Learningcited by 37
  11. 2024PromptWizard: Task-Aware Prompt Optimization Frameworkcited by 36
  12. 2024Symbolic Prompt Program Search: A Structure-Aware Approach to Efficient Compile-Time Prompt Optimizationcited by 30
  13. 2024SPRIG: Improving Large Language Model Performance by System Prompt Optimizationcited by 29
  14. 2025MDTeamGPT: A Self-Evolving LLM-based Multi-Agent Framework for Multi-Disciplinary Team Medical Consultationcited by 26
  15. 2023PACE: Improving Prompt with Actor-Critic Editing for Large Language Modelcited by 20
  16. 2023SPELL: Semantic Prompt Evolution based on a LLMcited by 15
  17. 2023Automatic Engineering of Long Promptscited by 14
  18. 2024Beyond Labels: Aligning Large Language Models with Human-like Reasoningcited by 6

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.