arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.02748cs.CLcs.AIcs.LG
收藏

CriSPO:面向文本生成的多方面批评-建议引导的自动提示优化

CriSPO: Multi-Aspect Critique-Suggestion-guided Automatic Prompt Optimization for Text Generation

Amazon AWS AI Labs(亚马逊AWS人工智能实验室)

Han He, Qianchu Liu, Lei Xu, Chaitanya Shivade, Yi Zhang, Sundararajan Srinivasan, Katrin Kirchhoff

AI总结:

针对现有自动提示优化方法不适用于生成式任务的问题,提出多方面CriSPO方法,通过批评-建议模块引导优化器探索更优搜索空间,结合AST扩展实现多指标优化,在多个摘要与问答数据集上取得显著效果提升。

摘要:

现有的自动提示工程方法通常为判别式任务设计,这类方法通过来自反映单一方面的单一指标的有限反馈,迭代优化新的任务提示。然而,这些方法对于生成式任务而言并非最优,因为生成式任务需要超越单一数值指标的更细致的指导,以改进提示并优化生成文本的多个方面。为应对这些挑战,我们提出了一种新颖的多方面批评-建议引导的自动提示优化(Critique-Suggestion-guided automatic Prompt Optimization,CriSPO)方法。CriSPO的核心组件是一个批评-建议模块,该模块会自主发现多个方面,并在这些方面上对比生成文本与参考文本,为提示修改提供具体建议。这些清晰的批评与可执行的建议会引导一个响应式优化器模块做出更实质性的调整,探索更广泛且更有效的搜索空间。为通过多指标优化进一步改进CriSPO,我们引入了自动后缀调优(Automatic Suffix Tuning,AST)扩展,以提升任务提示在多个指标上的表现。我们在4个摘要数据集和5个问答数据集上,针对4个前沿大语言模型(LLM)评估了CriSPO的性能。大量实验表明,该方法在摘要任务上的ROUGE得分提升了3-4%,在问答任务的各项指标上也有显著提升。代码可在https://github.com/amazon-science/crispo获取。

英文摘要:

Existing automatic prompt engineering methods are typically designed for discriminative tasks, where new task prompts are iteratively refined with limited feedback from a single metric reflecting a single aspect. However, these approaches are suboptimal for generative tasks, which require more nuanced guidance beyond a single numeric metric to improve the prompt and optimize multiple aspects of the generated text. To address these challenges, we propose a novel multi-aspect Critique-Suggestion-guided automatic Prompt Optimization (CriSPO) approach. CriSPO introduces a critique-suggestion module as its core component. This module spontaneously discovers aspects, and compares generated and reference texts across these aspects, providing specific suggestions for prompt modification. These clear critiques and actionable suggestions guide a receptive optimizer module to make more substantial changes, exploring a broader and more effective search space. To further improve CriSPO with multi-metric optimization, we introduce an Automatic Suffix Tuning (AST) extension to enhance the performance of task prompts across multiple metrics. We evaluate CriSPO on 4 state-of-the-art LLMs across 4 summarization and 5 QA datasets. Extensive experiments show 3-4% ROUGE score improvement on summarization and substantial improvement of various metrics on QA. Code available at https://github.com/amazon-science/crispo

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

↑