[Paper Review] Exploring Extreme Parameter Compression for Pre-trained Language Models
This paper proposes a Tucker tensor decomposition-based method for extreme parameter compression of pre-trained language models, achieving up to 48× parameter reduction in BERT's transformer layers with minimal performance drop. The approach uses efficient reconstruction protocols and knowledge distillation, enabling a 96.7% performance retention of BERT-base with only 2M parameters (excluding embeddings) and 2.7× faster inference.
Recent work explored the potential of large-scale Transformer-based pre-trained models, especially Pre-trained Language Models (PLMs) in natural language processing. This raises many concerns from various perspectives, e.g., financial costs and carbon emissions. Compressing PLMs like BERT with negligible performance loss for faster inference and cheaper deployment has attracted much attention. In this work, we aim to explore larger compression ratios for PLMs, among which tensor decomposition is a potential but under-investigated one. Two decomposition and reconstruction protocols are further proposed to improve the effectiveness and efficiency during compression. Our compressed BERT with ${1}/{7}$ parameters in Transformer layers performs on-par with, sometimes slightly better than the original BERT in GLUE benchmark. A tiny version achieves $96.7\%$ performance of BERT-base with $ {1}/{48} $ encoder parameters (i.e., less than 2M parameters excluding the embedding layer) and $2.7 imes$ faster on inference. To show that the proposed method is orthogonal to existing compression methods like knowledge distillation, we also explore the benefit of the proposed method on a distilled BERT.
Motivation & Objective
- To explore extreme parameter compression ratios for pre-trained language models (PLMs), especially beyond existing methods.
- To address the challenge of high computational and deployment costs of large PLMs like BERT.
- To investigate tensor decomposition—particularly Tucker decomposition—as a viable and efficient compression method for PLMs.
- To develop efficient reconstruction protocols that maintain model accuracy while reducing inference overhead.
- To demonstrate orthogonality with knowledge distillation by applying the method to distilled models like TinyBERT.
Proposed method
- Proposes a formal framework for analyzing matrix and tensor decomposition in PLMs, distinguishing intra-matrix and inter-matrix redundancies.
- Applies Tucker decomposition (IV) to factorize weight matrices in attention and feed-forward networks using shared U and V matrices and a core tensor C.
- Introduces a reordering-based reconstruction protocol to preserve model outputs while minimizing additional computation during inference.
- Uses knowledge distillation to align the compressed model’s predictions with the original model’s outputs, mitigating approximation errors from low-rank decomposition.
- Employs a 'matrix bank' mechanism in Tucker decomposition to maintain nearly constant parameter scale across layers, improving compression efficiency.
- Validates the method on BERT and extends it to distilled models like TinyBERT, showing complementary benefits with knowledge distillation.
Experimental results
Research questions
- RQ1Can Tucker decomposition achieve significantly higher compression ratios than matrix or tensor train decomposition in PLMs while preserving performance?
- RQ2How can reconstruction overhead be minimized in decomposed models to maintain inference speed?
- RQ3To what extent can parameter redundancy in attention and feed-forward layers be exploited via tensor decomposition?
- RQ4Does the proposed method remain effective when applied to already distilled models like TinyBERT?
- RQ5Can the compressed model maintain high accuracy at extreme compression ratios, such as 1/48 of the original parameters?
Key findings
- A BERT model compressed with 1/7 of the original parameters in transformer layers achieves performance on-par with the original BERT on the GLUE benchmark.
- A tiny BERT variant with only 1/48 of the encoder parameters (less than 2M parameters excluding embeddings) retains 96.7% of BERT-base's performance.
- The compressed model achieves 2.7× faster inference speed compared to the original BERT.
- Tucker decomposition outperforms matrix and tensor train decomposition in terms of compression ratio and parameter efficiency.
- The method is orthogonal to knowledge distillation, as demonstrated by applying it to TinyBERT, which further improves performance with minimal additional cost.
- Analysis of factor vectors reveals cross-layer similarity patterns in weight matrices, suggesting structural consistency in learned representations across layers.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.