arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2206.11349cs.LGcs.AIcs.CL
收藏

Prompt Injection:固定输入的参数化

Prompt Injection: Parameterization of Fixed Inputs

KAIST(韩国科学技术院)

Eunbi Choi, Yongrae Jo, Joel Jang, Minjoon Seo

摘要:

最近的工作表明,附加提示的输入是有效的条件语言模型(LM)执行特定的任务。然而,在推理过程中,提示总是包含在输入文本中,因此会产生大量的计算和内存开销。此外,目前还没有一种直接的方法来利用比LM的最大输入长度更长的提示,而不会在推理期间产生额外的成本。我们提出了提示注入(PI),一种新的配方注入到LM的参数的提示是一个有效的替代附加固定提示的输入。我们表明,在长时间固定提示的情况下,PI可以高达280倍的总FLOPs比以前的方法更有效。我们进一步探索PI的方法,并在人物依赖的会话,语义解析,和任务指令的零样本学习显示出可喜的成果。通过这些探索,我们表明PI可以成为条件语言模型的一个有前途的方向,特别是在长而固定的提示的情况下。

英文摘要:

Recent works have shown that attaching prompts to the input is effective at conditioning Language Models (LM) to perform specific tasks. However, prompts are always included in the input text during inference, thus incurring substantial computational and memory overhead. Also, there is currently no straightforward method of utilizing prompts that are longer than the maximum input length of the LMs without incurring additional costs during inference. We propose Prompt Injection (PI), a novel formulation of injecting the prompt into the parameters of an LM to be an efficient alternative to attaching fixed prompts to the input. We show that in scenarios with long fixed prompts, PI can be up to 280 times more efficient in terms of total FLOPs than previous approaches. We further explore methodologies for PI and show promising results in persona-dependent conversation, semantic parsing, and zero-shot learning with task instructions. Through these explorations, we show that PI can be a promising direction for conditioning language models, especially in scenarios with long and fixed prompts.

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

↑