跳到主要导航 跳到搜索 跳到主要内容

Efficient and Accurate Prompt Optimization: the Benefit of Memory in Exemplar-Guided Reflection

  • Cilin Yan
  • , Jingyun Wang
  • , Lin Zhang
  • , Ruihui Zhao
  • , Xiaopu Wu
  • , Kai Xiong
  • , Qingsong Liu
  • , Guoliang Kang*
  • , Yangyang Kang*
  • *此作品的通讯作者
  • Beihang University
  • ByteDance Ltd.
  • Zhejiang University

科研成果: 书/报告/会议事项章节 › 会议稿件 › 同行评审

摘要

Automatic prompt engineering aims to enhance the generation quality of large language models (LLMs). Recent works utilize feedbacks generated from erroneous cases to guide the prompt optimization. During inference, they may further retrieve several semantically related exemplars and concatenate them to the optimized prompts to improve the performance. However, those works only utilize the feedbacks at the current step, ignoring historical and unseleccted feedbacks which are potentially beneficial. Moreover, the selection of exemplars only considers the general semantic relationship and may not be optimal in terms of task performance and matching with the optimized prompt. In this work, we propose an Exemplar-Guided Reflection with Memory mechanism (ERM) to realize more efficient and accurate prompt optimization. Specifically, we design an exemplar-guided reflection mechanism where the feedback generation is additionally guided by the generated exemplars. We further build two kinds of memory to fully utilize the historical feedback information and support more effective exemplar retrieval. Empirical evaluations show our method surpasses previous state-of-the-arts with less optimization steps, i.e., improving F1 score by 10.1 on LIAR dataset, and reducing half of the optimization steps on ProTeGi.

源语言英语
主期刊名Long Papers
编辑Wanxiang Che, Joyce Nabende, Ekaterina Shutova, Mohammad Taher Pilehvar
出版商Association for Computational Linguistics (ACL)
页753-779
页数27
ISBN(电子版)9798891762510
DOI
出版状态已出版 - 2025
活动63rd Annual Meeting of the Association for Computational Linguistics, ACL 2025 - Vienna, 奥地利
期限: 27 7月 2025 → 1 8月 2025

丛书

姓名Proceedings of the Annual Meeting of the Association for Computational Linguistics
卷1
ISSN(印刷版)0736-587X

会议

会议63rd Annual Meeting of the Association for Computational Linguistics, ACL 2025
国家/地区奥地利
市Vienna
时期27/07/25 → 1/08/25

学术指纹

探究 'Efficient and Accurate Prompt Optimization: the Benefit of Memory in Exemplar-Guided Reflection' 的科研主题。它们共同构成独一无二的学术指纹。

引用此