Language Models are extremely susceptible to performance collapse with even small changes to input prompt strings. Libraries such as DSpy (from Stanford NLP) avoid this problem through demonstration-based prompt optimisation. Inspired by this, I propose an alternative approach that treats prompt optimisation as a classical state-space search problem. I model the prompt space as a graph where nodes represent prompt states and edges correspond to deliberate transformations such as shortening, adding examples, or re- ordering content. Using beam search and random walk algorithms, I systematically explore this space, evaluating candidates on development sets and pruning unpromising branches. Across five NLP tasks (sentiment classification, question answering, summarisation, reason- ing, and natural language inference), I find that even shallow search configurations (beam width=2, depth=2) improve upon seed prompts on development sets. For instance, beam search achieves development accuracy gains from 0.40 to 0.80 on reasoning tasks, though test set improvements are more modest (0.20 to 0.50), indicating overfitting to the develop- ment heuristic. Analysis of successful optimisation paths reveals that transformations that make prompts concise appear most frequently, while verbosity operators are never selected. My results validate prompt optimization as a search problem and suggest that with greater computational resources and improved evaluation metrics, deeper exploration could yield more robust prompts that generalize beyond development sets. Code and implementation are available at [https://github.com/MaanasTaneja/PromptOptimiser].
StraGo: Harnessing Strategic Guidance for Prompt Optimization
Institute of Software, CAS(中国科学院软件研究所);University of Chinese Academy of Sciences(中国科学院大学);Microsoft(微软公司);Institute of Computing Technology, CAS(中国科学院计算技术研究所)
Concentrate Attention: Towards Domain-Generalizable Prompt Optimization for Language Models
Faculty of Electronic and Information Engineering, Xi’an Jiaotong University(西安交通大学电子与信息工程学院);Queen Mary University of London(伦敦玛丽女王大学);University of Chicago(芝加哥大学)
Rethinking Prompt Optimizers: From Prompt Merits to Optimization
School of Electrical and Electronic Engineering, Nanyang Technological University, Singapore(南洋理工大学电子与电气工程学院);Home Team Science and Technology Agency, Singapore(新加坡科技局)
promptolution: A Unified, Modular Framework for Prompt Optimization
ELLIS Institute(ELLIS研究所);University of Freiburg(弗赖堡大学);LMU Munich(慕尼黑大学);Munich Center for Machine Learning (MCML)(慕尼黑机器学习中心);Technical University of Munich(慕尼黑技术大学);TU Dortmund University(多特蒙德技术大学);Lamarr Institute for Machine Learning and Artificial Intelligence(Lamarr机器学习与人工智能研究所)
University of Science and Technology of China(中国科学技术大学);National University of Singapore(新加坡国立大学);Institute of Dataspace(天空间研究院);AtomEcho Inc.(AtomEcho公司);Academy of Cyber(网络研究院)
HPSS: Heuristic Prompting Strategy Search for LLM Evaluators
The Conversational Artificial Intelligence (CoAI) Group, Tsinghua University(清华大学对话人工智能(CoAI)小组);University of Electronic Science and Technology of China(电子科技大学);Zhipu AI(智谱AI);The Knowledge Engineering Group (KEG), Tsinghua University(清华大学知识工程小组(KEG))
PromptAgent: Strategic Planning with Language Models Enables Expert-level Prompt Optimization
UC San Diego(加州大学圣地亚哥分校);Georgia Institute of Technology(佐治亚理工学院);Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学);Microsoft Research(微软研究院);Carnegie Mellon University(卡内基梅隆大学)
提出 PromptAgent,将提示词优化建模为基于 Monte Carlo tree search 的战略规划,通过错误反思与反馈迭代搜索专家级提示词,并在 12 项任务中显著优于现有基线。
Grammar-Guided Evolutionary Search for Discrete Prompt Optimisation
Huawei Technologies, Ireland Research Center, Ireland(华为技术有限公司爱尔兰研究中心);University of Galway, Ireland(Galway大学);Dublin City University, Ireland(都柏林城市大学);Technological University Dublin, Ireland(都柏林技术大学)
Institute of Software, CAS(中国科学院软件研究所);University of Chinese Academy of Sciences(中国科学院大学);Microsoft(微软公司);Institute of Computing Technology, CAS(中国科学院计算技术研究所)
A Toolbox for Improving Evolutionary Prompt Search
Institute for Applied Artificial Intelligence (IAAI), Stuttgart Media University(应用人工智能研究所(IAAI)、斯图加特媒体大学);Institute for Natural Language Processing (IMS), University of Stuttgart(自然语言处理研究所(IMS)、斯图加特大学)
FIPO: Free-form Instruction-oriented Prompt Optimization with Preference Dataset and Modular Fine-tuning Schema
University of Warwick(华威大学);Tecent YouTu Lab(腾讯优酷实验室);East China Normal University(华东师范大学);King’s College London(伦敦国王学院);The Alan Turing Institute(艾伦·图灵研究所)
MOPrompt: Multi-objective Semantic Evolution for Prompt Optimization
Computing Department, Universidade Federal de Ouro Preto(联邦大学奥鲁普里托 computing 部门);Federal Institute of Minas Gerais(巴西矿业高等学院);Postgraduate Program in Computer Science, Federal University of Ouro Preto(联邦大学奥鲁普里托 计算科学研究生项目)
iPOE: Interpretable Prompt Optimization via Explanations
Fundamentals of Natural Language Processing, University of Bamberg, Germany(自然语言处理基础,巴姆堡大学,德国);Leibniz-Institut für Psychologie (ZPID), Trier, Germany(莱比锡心理学研究所(ZPID),特里尔,德国)