arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2407.12865cs.CLcs.AI
收藏

GRAD-SUM:利用梯度摘要实现最优提示工程

GRAD-SUM: Leveraging Gradient Summarization for Optimal Prompt Engineering

Galileo Technologies(伽利略科技公司)

Derek Austin, Elliott Chartock

AI总结:

GRAD-SUM提出基于梯度摘要的自动提示工程方法,整合用户任务描述与评估标准,通过新颖的梯度摘要模块泛化反馈,在多个基准上优于现有方法。

摘要:

大型语言模型(LLM)的提示工程通常是一个耗时的手动迭代过程,涉及生成、评估和优化提示,以确保高质量的输出。尽管已有关于自动化提示工程的研究,但现有解决方案要么针对具有给定答案的特定任务进行调优,要么成本较高。我们提出了GRAD-SUM,一种可扩展且灵活的自动提示工程方法,基于梯度优化技术构建。我们的方法整合了用户定义的任务描述和评估标准,并引入了一个新颖的梯度摘要模块,以有效泛化反馈。结果表明,GRAD-SUM在各种基准测试中始终优于现有方法,突显了其在自动提示优化中的多功能性和有效性。

英文摘要:

Prompt engineering for large language models (LLMs) is often a manual time-intensive process that involves generating, evaluating, and refining prompts iteratively to ensure high-quality outputs. While there has been work on automating prompt engineering, the solutions generally are either tuned to specific tasks with given answers or are quite costly. We introduce GRAD-SUM, a scalable and flexible method for automatic prompt engineering that builds on gradient-based optimization techniques. Our approach incorporates user-defined task descriptions and evaluation criteria, and features a novel gradient summarization module to generalize feedback effectively. Our results demonstrate that GRAD-SUM consistently outperforms existing methods across various benchmarks, highlighting its versatility and effectiveness in automatic prompt optimization.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑