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

通过提示分解与压缩外积实现高效且有效的提示调优

Efficient and Effective Prompt Tuning via Prompt Decomposition and Compressed Outer Product

Software College, Northeastern University(东北大学软件学院);School of Computer Science and Engineering, Northeastern University(东北大学计算机科学与工程学院)

Pengxiang Lan, Haoyu Xu, Enneng Yang, Yuliang Liang, Guibing Guo, Jianzhe Zhao, Xingwei Wang

AI总结:

针对现有提示调优(PT)方法存在的软提示令牌语义关联缺失、长提示导致成本高的问题,提出LAMP方法,通过提示分解(Truncated SVD降维)和压缩外积增强交互,在多架构多数据集上性能和效率优于SOTA的PT和LoRA方法。

摘要:

提示调优(PT)为大规模预训练语言模型(PLMs)的微调提供了一种经济高效的替代方案,仅需在输入文本前添加的软提示令牌中使用少量参数。然而,现有PT方法面临两个显著问题:(i)它们忽视了软提示令牌之间的内在语义关联,导致高离散性和有限的交互,从而降低了模型在复杂任务中的理解能力和有效性;(ii)由于下游任务的复杂性,需要长软提示来提高性能,但提示长度与内存使用和计算成本呈正相关。实现高效率和高性能仍是一项持续的挑战。为解决这些问题,我们提出了一种新颖的低参数提示调优(LAMP)方法,该方法利用提示分解和压缩外积。具体而言,提示分解模块采用截断奇异值分解(Truncated SVD)来减少训练参数,并显著降低软提示参数空间的维度。然后,它利用压缩外积模块促进提示令牌之间的多重交互,探索其内在关联以增强知识表示。最后,LAMP使用平均池化来减少内存使用和训练/推理时间。在六种架构和八个数据集上的广泛实验表明,LAMP在性能和效率方面优于最先进的基于PT和基于LoRA的方法。

英文摘要:

Prompt tuning (PT) offers a cost-effective alternative to fine-tuning large-scale pre-trained language models (PLMs), requiring only a few parameters in soft prompt tokens added before the input text. However, existing PT approaches face two significant issues: (i) They overlook intrinsic semantic associations between soft prompt tokens, leading to high discreteness and limited interactions, thus reducing the model's comprehension and effectiveness in complex tasks. (ii) Due to the complexity of downstream tasks, long soft prompt is necessitated to improve performance, but prompt length correlates positively with memory usage and computational costs. Achieving high efficiency and performance remains an ongoing challenge. To address these issues, we propose a novel Low-parameters prompt tuning (LAMP) method, which leverages prompt decomposition and compressed outer product. Specifically, the prompt decomposition module employs Truncated SVD to reduce training parameters and significantly lower the dimensionality of the soft prompt parameter space. It then utilizes a compressed outer product module to facilitate multiple interactions among prompt tokens, exploring their intrinsic associations to enhance knowledge representation. Finally, LAMP uses average pooling to reduce memory usage and training/inference time. Extensive experiments across six architectures and eight datasets demonstrate that LAMP outperforms state-of-the-art PT-based and LoRA-based methods in performance and efficiency.

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

↑