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

SPRIG:通过系统提示优化提升大语言模型性能

SPRIG: Improving Large Language Model Performance by System Prompt Optimization

University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);University of Michigan(密歇根大学);University of Illinois Chicago(伊利诺伊大学芝加哥分校);LG AI Research(LG AI 研究院)

Lechen Zhang, Tolga Ergen, Lajanugen Logeswaran, Moontae Lee, David Jurgens

AI总结:

本文提出SPRIG,一种基于编辑的遗传算法,通过优化通用提示提升大语言模型性能,发现系统提示与任务提示结合可进一步提升效果。

摘要:

大型语言模型(LLMs)在许多场景中展现出卓越的能力,但其性能在一定程度上取决于提示的选择。过去的研究集中在优化特定任务的提示,而对提示中包含的一般性指令(即系统提示)的优化则关注较少。为填补这一空白,我们提出SPRIG,一种基于编辑的遗传算法,通过迭代构建预定义组件的提示以最大化模型在一般场景中的性能。我们在47种不同任务的集合上评估系统提示的性能以确保通用性。我们的研究发现,一个优化的系统提示在性能上与针对每个单独任务优化的任务提示相当。此外,结合系统和任务层面的优化可进一步提升性能,展示了它们的互补性。实验还揭示了优化的系统提示在不同模型家族、参数规模和语言之间具有良好的泛化能力。本研究为最大化LLM潜力提供了关于系统级指令作用的见解。

英文摘要:

Large Language Models (LLMs) have shown impressive capabilities in many scenarios, but their performance depends, in part, on the choice of prompt. Past research has focused on optimizing prompts specific to a task. However, much less attention has been given to optimizing the general instructions included in a prompt, known as a system prompt. To address this gap, we propose SPRIG, an edit-based genetic algorithm that iteratively constructs prompts from prespecified components to maximize the model's performance in general scenarios. We evaluate the performance of system prompts on a collection of 47 different types of tasks to ensure generalizability. Our study finds that a single optimized system prompt performs on par with task prompts optimized for each individual task. Moreover, combining system and task-level optimizations leads to further improvement, which showcases their complementary nature. Experiments also reveal that the optimized system prompts generalize effectively across model families, parameter sizes, and languages. This study provides insights into the role of system-level instructions in maximizing LLM potential.

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

↑