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

Late Prompt Tuning:迟来的提示可能比许多提示更好

Late Prompt Tuning: A Late Prompt Could Be Better Than Many Prompts

Fudan University(复旦大学)

Xiangyang Liu, Tianxiang Sun, Xuanjing Huang, Xipeng Qiu

摘要:

提示微调是一种用于利用预训练模型(PTM)的参数高效调优(PETuning)方法,其简单地将软提示预先添加到输入,并且仅优化提示以使PTM适应下游任务。尽管它是参数和部署高效的,但其性能仍然落后于其他最先进的PETuning方法。此外,由于整个模型的反向传播,提示微调的训练成本没有显著降低。通过实证分析,我们揭示了提示微调的滞后性能,并认识到从标签信号到插入提示的传播距离和提示对模型输出的影响之间的权衡。此外,我们提出了后期提示微调(LPT),其将后期提示插入PTM的中间层而不是输入层或所有层。后期提示由神经提示生成器根据提示插入层之前的隐藏状态获得,因此是依赖于实例的。通过在各种任务和PTM上的大量实验结果,我们表明LPT可以在全数据和Few-Shot场景下实现与全模型调整和其他PETuning方法竞争的性能,同时具有更快的训练速度和更低的内存成本。

英文摘要:

Prompt tuning is a parameter-efficient tuning (PETuning) method for utilizing pre-trained models (PTMs) that simply prepends a soft prompt to the input and only optimizes the prompt to adapt PTMs to downstream tasks. Although it is parameter- and deployment-efficient, its performance still lags behind other state-of-the-art PETuning methods. Besides, the training cost of prompt tuning is not significantly reduced due to the back-propagation through the entire model. Through empirical analyses, we shed some light on the lagging performance of prompt tuning and recognize a trade-off between the propagation distance from label signals to the inserted prompt and the influence of the prompt on model outputs. Further, we present Late Prompt Tuning (LPT) that inserts a late prompt into an intermediate layer of the PTM instead of the input layer or all layers. The late prompt is obtained by a neural prompt generator conditioned on the hidden states before the prompt insertion layer and therefore is instance-dependent. Through extensive experimental results across various tasks and PTMs, we show that LPT can achieve competitive performance to full model tuning and other PETuning methods under both full-data and few-shot scenarios while possessing faster training speed and lower memory cost.

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

↑