arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.14211cs.CL
收藏

Transfer-Prompting:通过双阶段提示优化增强大型语言模型的跨任务适应能力

Transfer-Prompting: Enhancing Cross-Task Adaptation in Large Language Models via Dual-Stage Prompts Optimization

School of Artificial intelligence, Jilin University(吉林大学人工智能学院);Engineering Research Center of Knowledge-Driven Human-Machine Intelligence, Jilin University(吉林大学知识驱动人机智能工程研究中心);International Center of Future Science, Jilin University(吉林大学未来科学国际中心)

Yupeng Chang, Yi Chang, Yuan Wu

AI总结:

提出两阶段 Transfer-Prompting 框架,通过源提示构建、目标提示微调及评分反馈循环,提升 LLM 在多任务场景下的提示泛化与跨任务适应性能。

摘要:

大型语言模型(LLM)在平衡多个高层目标时面临重大挑战,例如生成连贯、相关且高质量的回答,同时在多样化任务中保持高效的任务适应能力。为应对这些挑战,我们提出 Transfer-Prompting,这是一种新颖的两阶段框架,旨在增强提示生成中的跨任务适应能力。该框架包含两个关键组件:(1)源提示构建,在源任务数据集上精炼原始提示,以生成具有更强泛化能力的源提示;(2)目标提示生成,通过在任务特定数据集上微调一组高分源提示,增强目标提示的跨任务适应能力。在每个优化周期中,参考 LLM 依据历史提示—分数对以及我们设计的参考提示中的任务描述生成候选提示。这些候选提示会被迭代精炼,同时评分 LLM 使用目标提示评估器中设计的多维指标评估其有效性;该评估器是本工作的一项新颖贡献,可对提示质量和任务性能提供整体评估。这一反馈循环促进持续精炼,同时优化提示质量和任务特定结果。我们在涵盖 7 个基础模型和 18 个专用模型的 25 个 LLM 上,通过在 9 个多样化数据集上的评估,对 Transfer-Prompting 进行了广泛实验验证。结果表明,Transfer-Prompting 显著提升了任务特定性能,凸显了其增强 LLM 跨任务适应能力的潜力。代码可在 https://github.com/llm172/Transfer-Prompting 获取。

英文摘要:

Large language models (LLMs) face significant challenges when balancing multiple high-level objectives, such as generating coherent, relevant, and high-quality responses while maintaining efficient task adaptation across diverse tasks. To address these challenges, we introduce Transfer-Prompting, a novel two-stage framework designed to enhance cross-task adaptation in prompt generation. The framework comprises two key components: (1) source prompt construction, which refines the original prompts on source task datasets to generate source prompts with enhanced generalization ability, and (2) target prompt generation, which enhances cross-task adaptation of target prompts by fine-tuning a set of high-scored source prompts on task-specific datasets. In each optimization cycle, a reference LLM generates candidate prompts based on historical prompt-score pairs and task descriptions in our designed reference prompt. These candidate prompts are refined iteratively, while a scorer LLM evaluates their effectiveness using the multi-dimensional metrics designed in the objective prompts evaluator-a novel contribution in this work that provides a holistic evaluation of prompt quality and task performance. This feedback loop facilitates continuous refinement, optimizing both prompt quality and task-specific outcomes. We validate Transfer-Prompting through extensive experiments across 25 LLMs, including 7 foundational models and 18 specialized models, evaluated on 9 diverse datasets. The results demonstrate that Transfer-Prompting significantly improves task-specific performance, highlighting its potential for enhancing cross-task adaptation in LLMs. The code is available at https://github.com/llm172/Transfer-Prompting.

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

↑