English

StraGo: Harnessing Strategic Guidance for Prompt Optimization

Computation and Language 2024-10-14 v1

Abstract

Prompt engineering is pivotal for harnessing the capabilities of large language models (LLMs) across diverse applications. While existing prompt optimization methods improve prompt effectiveness, they often lead to prompt drifting, where newly generated prompts can adversely impact previously successful cases while addressing failures. Furthermore, these methods tend to rely heavily on LLMs' intrinsic capabilities for prompt optimization tasks. In this paper, we introduce StraGo (Strategic-Guided Optimization), a novel approach designed to mitigate prompt drifting by leveraging insights from both successful and failed cases to identify critical factors for achieving optimization objectives. StraGo employs a how-to-do methodology, integrating in-context learning to formulate specific, actionable strategies that provide detailed, step-by-step guidance for prompt optimization. Extensive experiments conducted across a range of tasks, including reasoning, natural language understanding, domain-specific knowledge, and industrial applications, demonstrate StraGo's superior performance. It establishes a new state-of-the-art in prompt optimization, showcasing its ability to deliver stable and effective prompt improvements.

Keywords

Cite

@article{arxiv.2410.08601,
  title  = {StraGo: Harnessing Strategic Guidance for Prompt Optimization},
  author = {Yurong Wu and Yan Gao and Bin Benjamin Zhu and Zineng Zhou and Xiaodi Sun and Sheng Yang and Jian-Guang Lou and Zhiming Ding and Linjun Yang},
  journal= {arXiv preprint arXiv:2410.08601},
  year   = {2024}
}

Comments

19 pages, 3 figures, 20 tables

R2 v1 2026-06-28T19:17:31.382Z