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

Hadamard适配器:一种用于预训练语言模型的极端参数高效适配器调优方法

Hadamard Adapter: An Extreme Parameter-Efficient Adapter Tuning Method for Pre-trained Language Models

Fudan University(复旦大学);Microsoft(微软);Tencent(腾讯)

Yuyan Chen, Qiang Fu, Ge Fan, Lun Du, Jian-Guang Lou, Shi Han, Dongmei Zhang, Zhixu Li, Yanghua Xiao

AI总结:

本文提出Hadamard适配器,一种仅作用于自注意力输出的参数高效微调方法,通过Hadamard乘积实现逐元素线性变换,在GLUE基准上以0.033%参数达到竞争性能,并可进一步移除冗余层降至0.022%参数。

摘要:

近年来,预训练语言模型(PLMs)已席卷人工智能的各个领域并取得了巨大成功。然而,大多数PLMs,如T5和GPT3,拥有庞大的参数量,对其进行微调通常昂贵且耗时,并且存储它们占用大量空间。因此,有必要采用一种参数高效的方法,在微调过程中减少PLMs的参数,同时不损害其在下游任务中的性能。在本文中,我们设计了一种新颖的适配器,它仅作用于PLMs中的自注意力输出。该适配器采用基于Hadamard乘积的逐元素线性变换,因此命名为Hadamard适配器,与之前的参数高效适配器相比,它所需的参数最少。此外,我们还总结了各种下游任务共享的Hadamard适配器的一些调优模式,期望为未来研究中通过共享适配器进一步减少参数提供一些指导。在广泛使用的GLUE基准上使用几种SOTA PLMs进行的实验证明,Hadamard适配器仅用全量微调参数的0.033%即可达到具有竞争力的性能,并且与其他适配器相比,其参数数量最少。此外,我们进一步发现Hadamard适配器中还存在一些冗余层,可以移除这些层以实现更高的参数效率,仅需0.022%的参数。

英文摘要:

Recent years, Pre-trained Language models (PLMs) have swept into various fields of artificial intelligence and achieved great success. However, most PLMs, such as T5 and GPT3, have a huge amount of parameters, fine-tuning them is often expensive and time consuming, and storing them takes up a lot of space. Therefore, it is necessary to adopt a parameter-efficient approach to reduce parameters of PLMs in fine-tuning without compromising their performance in downstream tasks. In this paper, we design a novel adapter which only acts on self-attention outputs in PLMs. This adapter adopts element-wise linear transformation using Hadamard product, hence named as Hadamard adapter, requires the fewest parameters compared to previous parameter-efficient adapters. In addition, we also summarize some tuning patterns for Hadamard adapter shared by various downstream tasks, expecting to provide some guidance for further parameter reduction with shared adapters in future studies. The experiments conducted on the widely-used GLUE benchmark with several SOTA PLMs prove that the Hadamard adapter achieves competitive performance with only 0.033\% parameters compared with full fine-tuning, and it has the fewest parameters compared with other adapters. Moreover, we further find that there is also some redundant layers in the Hadamard adapter which can be removed to achieve more parameter efficiency with only 0.022\% parameters.

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

↑