arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2306.03805cs.LG
收藏

大型预训练模型中本质稀疏性的涌现:重要的权重

The Emergence of Essential Sparsity in Large Pre-trained Models: The Weights that Matter

University of Texas at Austin(德克萨斯大学奥斯汀分校)

Ajay Jaiswal, Shiwei Liu, Tianlong Chen, Zhangyang Wang

AI总结:

本文研究大型预训练 Transformer 中一次性幅度剪枝所揭示的“本质稀疏性”,发现其在 N:M 稀疏和 Vicuna-7B 上成立,并揭示 BERT 预训练中的突然稀疏化现象及自监督学习对稀疏化的促进作用。

摘要:

大型预训练 Transformer 在现代深度学习领域表现突出,随着其规模不断增长,理解其中存在的简约模式变得至关重要。在参数数量激增的情况下,彩票票假设(Lottery Ticket Hypothesis,LTH)及其变体在稀疏化这些模型时已失去实用性,原因是迭代幅度剪枝(iterative magnitude pruning,IMP)反复执行“训练-剪枝-再训练”流程所带来的高昂计算和内存瓶颈,并且这一问题会随着模型规模的增大而进一步加剧。本文对多个大型预训练视觉和语言 Transformer 中诱导出的稀疏模式进行了全面研究。我们提出了“本质稀疏性”的存在,其定义是:当我们在一次性操作中直接移除幅度最小的权重且不进行再训练时,存在一个急剧下降点,超过该点后性能相对于稀疏度水平的上升会显著更快地下降。我们还发现本质稀疏性对 N:M 稀疏模式以及现代规模的大型语言模型(Vicuna-7B)同样成立。我们还呈现了一个引人关注的新现象,即 BERT 在预训练过程中会出现突然稀疏化,也就是说,BERT 在预训练经过一定迭代次数后会突然变得高度稀疏。此外,我们的观察还揭示了一个反直觉的发现:使用更多预训练数据训练的 BERT 往往能够在相对更少的参数中更好地浓缩知识。最后,我们研究了预训练损失对本质稀疏性的影响,并发现自监督学习(self-supervised learning,SSL)目标比监督学习(supervised learning,SL)更能触发更强的涌现稀疏化特性。我们的代码可在 \url{https://github.com/VITA-Group/essential_sparsity} 获取。

英文摘要:

Large pre-trained transformers are show-stealer in modern-day deep learning, and it becomes crucial to comprehend the parsimonious patterns that exist within them as they grow in scale. With exploding parameter counts, Lottery Ticket Hypothesis (LTH) and its variants, have lost their pragmatism in sparsifying them due to high computation and memory bottleneck of repetitive train-prune-retrain routine of iterative magnitude pruning (IMP) which worsens with increasing model size. This paper comprehensively studies induced sparse patterns across multiple large pre-trained vision and language transformers. We propose the existence of -- essential sparsity defined with a sharp dropping point beyond which the performance declines much faster w.r.t the rise of sparsity level, when we directly remove weights with the smallest magnitudes in one-shot without re-training. We also find essential sparsity to hold valid for N:M sparsity patterns as well as on modern-scale large language models (Vicuna-7B). We also present an intriguing emerging phenomenon of abrupt sparsification during the pre-training of BERT, i.e., BERT suddenly becomes heavily sparse in pre-training after certain iterations. Moreover, our observations also indicate a counter-intuitive finding that BERT trained with a larger amount of pre-training data tends to have a better ability to condense knowledge in comparatively relatively fewer parameters. Lastly, we investigate the effect of the pre-training loss on essential sparsity and discover that self-supervised learning (SSL) objectives trigger stronger emergent sparsification properties than supervised learning (SL). Our codes are available at \url{https://github.com/VITA-Group/essential_sparsity}.

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

↑