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

FL调谐:Transformer前馈网络的分层调谐

FL-Tuning: Layer Tuning for Feed-Forward Network in Transformer

East China University of Science and Technology(华东理工大学);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);Fudan University(复旦大学);Tencent AI Lab(腾讯人工智能实验室)

Jingping Liu, Yuqiu Song, Kui Xue, Hongli Sun, Chao Wang, Lihan Chen, Haiyun Jiang, Jiaqing Liang, Tong Ruan

摘要:

提示微调是一种使预训练的语言模型适应下游任务的新兴方式。然而,现有的研究主要是在输入序列中添加提示。这种方法由于中间的多头自注意和前馈网络计算,使模型优化不是很顺利,不能达到预期的效果。因此,我们提出了一种新的调优方式称为层调优,旨在增加可学习的参数在Transformer层。具体而言,我们专注于前馈网络的层调谐在Transformer,即FL调谐。它在每个前馈网络的隐藏层中引入了额外的单元。我们在公共CLUE基准上进行了广泛的实验。结果表明:1)在几乎所有情况下,无论是全数据还是Few-Shot设置下,我们的FL-调谐都优于提示微调方法。特别是,与P-tuning v2相比,它在WSC 1.0上将精度提高了17.93%(全数据设置),在CLUENER上将精度提高了16.142%(Few-Shot设置)。2)我们的FL调谐更稳定,收敛速度比P调谐v2快1.17倍。3)由于只有大约3%的Transformer参数要训练,FL调整与大多数数据集上的微调相当,并且显著优于微调(例如,在WSC 1.1上的准确性提高了12.9%)。源代码可在https://github.com/genggui001/FL-Tuning上获得。

英文摘要:

Prompt tuning is an emerging way of adapting pre-trained language models to downstream tasks. However, the existing studies are mainly to add prompts to the input sequence. This way would not work as expected due to the intermediate multi-head self-attention and feed-forward network computation, making model optimization not very smooth. Hence, we propose a novel tuning way called layer tuning, aiming to add learnable parameters in Transformer layers. Specifically, we focus on layer tuning for feed-forward network in the Transformer, namely FL-tuning. It introduces additional units into the hidden layer of each feed-forward network. We conduct extensive experiments on the public CLUE benchmark. The results show that: 1) Our FL-tuning outperforms prompt tuning methods under both full-data and few-shot settings in almost all cases. In particular, it improves accuracy by 17.93% (full-data setting) on WSC 1.0 and F1 by 16.142% (few-shot setting) on CLUENER over P-tuning v2. 2) Our FL-tuning is more stable and converges about 1.17 times faster than P-tuning v2. 3) With only about 3% of Transformer's parameters to be trained, FL-tuning is comparable with fine-tuning on most datasets, and significantly outperforms fine-tuning (e.g., accuracy improved by 12.9% on WSC 1.1) on several datasets. The source codes are available at https://github.com/genggui001/FL-Tuning.

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

↑