arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.15927cs.CLcs.AI
收藏

生成性提示内化

Generative Prompt Internalization

KAIST AI(韩国科学技术院人工智能研究所);Microsoft Research(微软研究院)

Haebin Shin, Lei Ji, Yeyun Gong, Sungdong Kim, Eunbi Choi, Minjoon Seo

AI总结:

生成性提示内化通过联合训练方法实现复杂提示的内化,减少计算开销并提升模型性能。

摘要:

近期基于大型语言模型的应用中使用的提示通常固定且冗长,导致显著的计算开销。为了解决这一挑战,我们提出了生成性提示内化(GenPI),一种轻量级方法,采用联合训练方法。GenPI不仅复制了带有提示输入的模型行为,还生成提示内容以及模型行为应相应变化的原因。我们证明了我们的方法能够有效地内化复杂提示,适用于各种基于代理的应用场景。为了在不与专用环境互动的情况下实现有效训练,我们引入了一种数据合成技术,通过交换代理和环境的角色自动收集对话数据集。这种方法特别适用于只有预定义提示而没有相应训练数据的场景。通过内化复杂提示,生成性提示内化在不需要显式提示的情况下实现了高性能和高效的推理。

英文摘要:

Prompts used in recent large language model based applications are often fixed and lengthy, leading to significant computational overhead. To address this challenge, we propose Generative Prompt Internalization (GenPI), a lightweight method that employs a joint training approach. GenPI not only replicates the behavior of models with prompt inputs but also generates the content of the prompt along with reasons for why the model's behavior should change accordingly. We demonstrate that our approach effectively internalizes complex prompts across various agent-based application scenarios. For effective training without interactions with the dedicated environments, we introduce a data synthesis technique that autonomously collects conversational datasets by swapping the roles of the agent and environment. This method is especially useful in scenarios where only a predefined prompt is available without a corresponding training dataset. By internalizing complex prompts, Generative Prompt Internalization enables high performance and efficient inference without the need for explicit prompts.

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

↑