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

面向预训练 Transformer 的矩阵分解方法实证研究

An Empirical Investigation of Matrix Factorization Methods for Pre-trained Transformers

Kahlert School of Computing(卡勒特计算学院);University of Utah(犹他大学)

Ashim Gupta, Sina Mahdipour Saravani, P. Sadayappan, Vivek Srikumar

AI总结:

本文比较预训练 Transformer 的低秩与 Monarch 矩阵分解压缩,提出分阶段分解和分块低秩方法,实验表明低秩分解在六类文本任务及不同压缩率下始终更优。

摘要:

NLP 中基于 transformer 的模型规模不断增大,使模型压缩问题变得重要。本文对基于分解的模型压缩技术进行了全面分析。具体而言,我们重点比较直接的低秩分解与近期提出的 Monarch 分解,后者在 GLUE 基准上展现出出色的性能保持能力。为缓解预训练 transformer 中矩阵低秩分解相关的稳定性问题,我们提出一种分阶段分解方法:逐层对各层进行分解,而非同时分解所有层。通过该策略,我们显著提升了压缩过程的稳定性与可靠性。此外,我们提出一种简单的分块低秩分解方法,它与 Monarch 分解具有密切关系。实验得出令人惊讶的结论:在不同压缩率以及六个不同文本分类任务上,直接低秩分解始终优于 Monarch 分解。

英文摘要:

The increasing size of transformer-based models in NLP makes the question of compressing them important. In this work, we present a comprehensive analysis of factorization based model compression techniques. Specifically, we focus on comparing straightforward low-rank factorization against the recently introduced Monarch factorization, which exhibits impressive performance preservation on the GLUE benchmark. To mitigate stability issues associated with low-rank factorization of the matrices in pre-trained transformers, we introduce a staged factorization approach wherein layers are factorized one by one instead of being factorized simultaneously. Through this strategy we significantly enhance the stability and reliability of the compression process. Further, we introduce a simple block-wise low-rank factorization method, which has a close relationship to Monarch factorization. Our experiments lead to the surprising conclusion that straightforward low-rank factorization consistently outperforms Monarch factorization across both different compression ratios and six different text classification tasks.

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

↑