From Hand-Written Prompts to Automatic Prompt Optimization for Large Language Models: A Review
Large language models (LLMs) are steered mainly through the text of their prompts, and small changes to that text can change accuracy a great deal. Prompt engineering began as a manual craft, but a growing body of work treats the prompt as an object to be optimized automatically. This structured narrative review synthesizes 49 peer-reviewed studies published between 2020 and 2025, grouped into seven clusters: hand-written reasoning scaffolds, human prompt design and its tools, prompt sensitivity, continuous prompt learning, discrete search over prompt text, LLMs used as prompt optimizers, and multi-stage pipelines with their applications and risks. Unlike earlier surveys, it reads the reported gains of automatic prompt optimization against the evidence on prompt sensitivity, and it compares methods along five design dimensions. Four trends emerge: search spaces moved from continuous vectors to readable instructions, feedback from scalar scores to written critiques, and the unit of optimization from one instruction to whole programs, while hand-written techniques and optimizers converged. The evidence that optimized prompts beat simple baselines is broad, but effect sizes and method rankings are uncertain: formatting alone can move accuracy by up to 76 points, most evaluations use a single prompt template, and methods are compared against different baselines on overlapping benchmarks. The review ends with a research agenda that calls for evaluation over many prompt variants, reporting of cost, tests of transfer across models, and objectives that include robustness and security.
Authors
- Mohammed Ali AlThehli
Institutions
- Abu Dhabi University (AE)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-29
- DOI
- https://doi.org/10.5281/zenodo.24649667
- Primary Topic
- Topic Modeling
- Type
- preprint