English

A Survey of Automatic Prompt Engineering: An Optimization Perspective

Artificial Intelligence 2025-02-18 v1 Machine Learning

Abstract

The rise of foundation models has shifted focus from resource-intensive fine-tuning to prompt engineering, a paradigm that steers model behavior through input design rather than weight updates. While manual prompt engineering faces limitations in scalability, adaptability, and cross-modal alignment, automated methods, spanning foundation model (FM) based optimization, evolutionary methods, gradient-based optimization, and reinforcement learning, offer promising solutions. Existing surveys, however, remain fragmented across modalities and methodologies. This paper presents the first comprehensive survey on automated prompt engineering through a unified optimization-theoretic lens. We formalize prompt optimization as a maximization problem over discrete, continuous, and hybrid prompt spaces, systematically organizing methods by their optimization variables (instructions, soft prompts, exemplars), task-specific objectives, and computational frameworks. By bridging theoretical formulation with practical implementations across text, vision, and multimodal domains, this survey establishes a foundational framework for both researchers and practitioners, while highlighting underexplored frontiers in constrained optimization and agent-oriented prompt design.

Keywords

Cite

@article{arxiv.2502.11560,
  title  = {A Survey of Automatic Prompt Engineering: An Optimization Perspective},
  author = {Wenwu Li and Xiangfeng Wang and Wenhao Li and Bo Jin},
  journal= {arXiv preprint arXiv:2502.11560},
  year   = {2025}
}

Comments

19 pages, 4 figures

R2 v1 2026-06-28T21:46:48.199Z