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

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Gupta, Ashim, Saravani, Sina Mahdipour, Sadayappan, P., Srikumar, Vivek
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866911920274014208
author Gupta, Ashim
Saravani, Sina Mahdipour
Sadayappan, P.
Srikumar, Vivek
author_facet Gupta, Ashim
Saravani, Sina Mahdipour
Sadayappan, P.
Srikumar, Vivek
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2406_11307
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle An Empirical Investigation of Matrix Factorization Methods for Pre-trained Transformers
Gupta, Ashim
Saravani, Sina Mahdipour
Sadayappan, P.
Srikumar, Vivek
Computation and Language
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.
title An Empirical Investigation of Matrix Factorization Methods for Pre-trained Transformers
topic Computation and Language
url https://arxiv.org/abs/2406.11307