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

提示调优的普适性与局限性

Universality and Limitations of Prompt Tuning

UCLA(加州大学洛杉矶分校);Google(谷歌)

Yihan Wang, Jatin Chauhan, Wei Wang, Cho-Jui Hsieh

AI总结:

本研究首次从普适近似与局限性两个角度,理论分析软提示调优在Transformer架构中的作用,证明其普适性并揭示有限深度下的记忆限制,给出参数下界并与LoRA对比,且获实证支持。

摘要:

尽管提示调优(prompt tuning)在实证上已被证明能有效地使预训练语言模型适应新任务,但关于“在输入前调整参数”与“调整模型权重”之间差异的理论基础仍然有限。因此,我们率先采取步骤之一,以理解基于Transformer架构的软提示调优(soft-prompt tuning)的作用。通过考虑一种通用架构,我们从两个角度分析提示调优:普适近似(universal approximation)以及针对连续值函数的有限深度、固定权重预训练Transformer的局限性。我们的普适性结果保证了存在一个带有提示的强Transformer,能够近似Lipschitz函数集合中的任何序列到序列函数。对于有限深度Transformer的提示调优局限性,我们首先通过构造一组数据集来证明,对于给定的单层编码器,任何长度的提示都无法记忆这些数据集。我们还提供了所需可调提示参数数量的下界,并将结果与单层设置中基于LoRA的低秩更新所需参数数量进行比较。最后,我们将分析扩展到多层设置,提供了Transformer至多只能从可逆函数中学习数据集的充分条件。我们的理论主张也得到了实证结果的佐证。

英文摘要:

Despite the demonstrated empirical efficacy of prompt tuning to adapt a pretrained language model for a new task, the theoretical underpinnings of the difference between "tuning parameters before the input" against "the tuning of model weights" are limited. We thus take one of the first steps to understand the role of soft-prompt tuning for transformer-based architectures. By considering a general purpose architecture, we analyze prompt tuning from the lens of both: universal approximation and limitations with finite-depth fixed-weight pretrained transformers for continuous-valued functions. Our universality result guarantees the existence of a strong transformer with a prompt to approximate any sequence-to-sequence function in the set of Lipschitz functions. The limitations of prompt tuning for limited-depth transformers are first proved by constructing a set of datasets, that cannot be memorized by a prompt of any length for a given single encoder layer. We also provide a lower bound on the required number of tunable prompt parameters and compare the result with the number of parameters required for a low-rank update (based on LoRA) for a single-layer setting. We finally extend our analysis to multi-layer settings by providing sufficient conditions under which the transformer can at best learn datasets from invertible functions only. Our theoretical claims are also corroborated by empirical results.

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

↑