A Survey of Automatic Prompt Engineering: An Optimization Perspective

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Li, Wenwu, Wang, Xiangfeng, Li, Wenhao, Jin, Bo
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909496778948608
author Li, Wenwu
Wang, Xiangfeng
Li, Wenhao
Jin, Bo
author_facet Li, Wenwu
Wang, Xiangfeng
Li, Wenhao
Jin, Bo
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2502_11560
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle A Survey of Automatic Prompt Engineering: An Optimization Perspective
Li, Wenwu
Wang, Xiangfeng
Li, Wenhao
Jin, Bo
Artificial Intelligence
Machine Learning
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.
title A Survey of Automatic Prompt Engineering: An Optimization Perspective
topic Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2502.11560