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

用于大语言模型微调的参数有效稀疏性

Parameter-Efficient Sparsity for Large Language Models Fine-Tuning

Alibaba Group(阿里巴巴集团)

Yuchao Li, Fuli Luo, Chuanqi Tan, Mengdi Wang, Songfang Huang, Shen Li, Junjie Bai

摘要:

随着语言模型中参数数量的急剧增加,稀疏性方法在压缩和加速语言模型中的应用越来越受到人们的关注。虽然大多数研究都集中在如何在保持压缩模型性能的同时准确保留适当的权重,但在压缩大规模语言模型时,稀疏训练的计算开销和内存占用方面存在挑战。为了解决这个问题,我们提出了一种参数高效稀疏训练(PST)方法,以减少下游任务中稀疏感知训练过程中可训练参数的数量。具体来说,我们首先结合无数据和数据驱动的标准,以有效和准确地衡量权重的重要性。然后,我们研究了数据驱动的权重重要性的内在冗余,并得出两个明显的特点,即,低秩性和结构性。在此基础上,引入两组小矩阵来计算权重的数据驱动重要性,而不是使用原始的大重要性得分矩阵,从而使稀疏训练资源有效和参数有效。不同网络的实验(即,BERT,RoBERTa和GPT-2)在几十个数据集上的测试表明,尽管只训练了少量的参数,PST的性能与以前的稀疏方法相当或更好。例如,与以前的稀疏性方法相比,我们的PST只需要1.5%的可训练参数就可以在BERT上实现相当的性能。

英文摘要:

With the dramatically increased number of parameters in language models, sparsity methods have received ever-increasing research focus to compress and accelerate the models. While most research focuses on how to accurately retain appropriate weights while maintaining the performance of the compressed model, there are challenges in the computational overhead and memory footprint of sparse training when compressing large-scale language models. To address this problem, we propose a Parameter-efficient Sparse Training (PST) method to reduce the number of trainable parameters during sparse-aware training in downstream tasks. Specifically, we first combine the data-free and data-driven criteria to efficiently and accurately measure the importance of weights. Then we investigate the intrinsic redundancy of data-driven weight importance and derive two obvious characteristics i.e., low-rankness and structuredness. Based on that, two groups of small matrices are introduced to compute the data-driven importance of weights, instead of using the original large importance score matrix, which therefore makes the sparse training resource-efficient and parameter-efficient. Experiments with diverse networks (i.e., BERT, RoBERTa and GPT-2) on dozens of datasets demonstrate PST performs on par or better than previous sparsity methods, despite only training a small number of parameters. For instance, compared with previous sparsity methods, our PST only requires 1.5% trainable parameters to achieve comparable performance on BERT.

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

↑