EMNLP 2024finding6 citations

StraGo: Harnessing Strategic Guidance for Prompt Optimization

Yurong Wu, Yan Gao, Bin Benjamin Zhu, Zineng Zhou, Xiaodi Sun, Sheng Yang, Jian-Guang Lou, Zhiming Ding

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, wherein newly generated prompts canadversely 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 (StrategicGuided 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 stateof-the-art in prompt optimization, showcasing its ability to deliver stable and effective prompt improvements.

BibTeX
@inproceedings{wu-etal-2024-strago,
    title = "{S}tra{G}o: Harnessing Strategic Guidance for Prompt Optimization",
    author = "Wu, Yurong  and
      Gao, Yan  and
      Zhu, Bin Benjamin  and
      Zhou, Zineng  and
      Sun, Xiaodi  and
      Yang, Sheng  and
      Lou, Jian-Guang  and
      Ding, Zhiming  and
      Yang, Linjun",
    editor = "Al-Onaizan, Yaser  and
      Bansal, Mohit  and
      Chen, Yun-Nung",
    booktitle = "Findings of the Association for Computational Linguistics: EMNLP 2024",
    month = nov,
    year = "2024",
    address = "Miami, Florida, USA",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2024.findings-emnlp.588/",
    doi = "10.18653/v1/2024.findings-emnlp.588",
    pages = "10043--10061"
}
StraGo: Harnessing Strategic Guidance for Prompt Optimization · EMNLP 2024