TAPO:面向提示优化的任务参考自适应
TAPO: Task-Referenced Adaptation for Prompt Optimization
AI总结:
针对自动提示优化忽视任务特性导致提示缺乏领域特异性的问题,本文提出TAPO多任务感知框架,通过任务感知指标选择、多指标评估和进化优化三个模块,在六个数据集上验证了有效性。
摘要:
提示工程可以显著提升大型语言模型(LLMs)的性能,而自动提示优化(APO)由于手动提示设计耗时费力而受到广泛关注。然而,现有APO工作大多忽略了任务特定特征,导致生成的提示缺乏领域特异性,不适合任务特定优化。在本文中,我们提出了TAPO,一个多任务感知的提示优化框架,由三个关键模块组成。首先,提出了任务感知的指标选择模块,以增强任务特定提示生成能力。其次,我们提出了一个多指标评估模块,从多个角度联合评估提示。第三,引入了一个基于进化的优化框架用于自动提示精炼,提高了跨各种任务的适应性。在六个数据集上的大量实验证明了我们方法的有效性,并且我们的代码已公开。
英文摘要:
Prompt engineering can significantly improve the performance of large language models (LLMs), with automated prompt optimization (APO) gaining significant attention due to the time-consuming and laborious nature of manual prompt design. However, much of the existing work in APO overlooks task-specific characteristics, resulting in prompts that lack domain specificity and are not well-suited for task-specific optimization. In this paper, we introduce TAPO, a multitask-aware prompt optimization framework composed of three key modules. First, a task-aware metric selection module is proposed to enhance task-specific prompt generation capabilities. Second, we present a multi-metrics evaluation module to jointly evaluate prompts from multiple perspectives. Third, an evolution-based optimization framework is introduced for automatic prompt refinement, which improves adaptability across various tasks. Extensive experiments on six datasets demonstrate the effectiveness of our approach, and our code is publicly available.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。