[Paper Review] A Survey on Model Compression and Acceleration for Pretrained Language Models
This survey provides a comprehensive review of model compression and acceleration techniques for pretrained language models (PLMs), focusing on methods like pruning, quantization, knowledge distillation, and dynamic inference to reduce computational cost, memory usage, and carbon footprint. It introduces a unified taxonomy, benchmarks, and metrics, while highlighting challenges in evaluation, robustness, and automation, advocating for sustainable and inclusive NLP deployment.
Despite achieving state-of-the-art performance on many NLP tasks, the high energy cost and long inference delay prevent Transformer-based pretrained language models (PLMs) from seeing broader adoption including for edge and mobile computing. Efficient NLP research aims to comprehensively consider computation, time and carbon emission for the entire life-cycle of NLP, including data preparation, model training and inference. In this survey, we focus on the inference stage and review the current state of model compression and acceleration for pretrained language models, including benchmarks, metrics and methodology.
Motivation & Objective
- To provide a systematic review of model compression and acceleration techniques for pretrained language models (PLMs) to improve inference efficiency.
- To establish a unified taxonomy of existing methods, including pruning, quantization, knowledge distillation, and dynamic inference.
- To evaluate and compare techniques using standardized metrics such as FLOPs, inference time, speed-up ratio, model size, and carbon footprint.
- To identify key challenges in evaluation, robustness, and human dependency, and to advocate for more explainable, robust, and automated compression methods.
- To promote sustainable and inclusive NLP by reducing the environmental and hardware barriers of large PLMs.
Proposed method
- Categorizes and analyzes key compression techniques: weight sharing, low-rank factorization, pruning, quantization, knowledge distillation, early exit, and token skipping.
- Introduces and evaluates metrics including FLOPs, inference time, speed-up ratio, model size, carbon footprint, fidelity, and robustness.
- Proposes a decision tree (Figure 2) to guide practitioners in selecting appropriate techniques based on task, hardware, and constraints.
- Reviews dynamic inference methods such as PoWER-BERT, TR-BERT, LAT, LTP, and Transkimmer that use attention-based or learned mechanisms to skip tokens.
- Highlights the potential of combining techniques (e.g., distillation + pruning) for improved Pareto efficiency in accuracy and speed.
- Calls for future work in meta-learning and neural architecture search to automate compression hyperparameter selection and reduce human expertise.
Experimental results
Research questions
- RQ1Which model compression and acceleration techniques offer the best trade-off between accuracy, speed, and model size for PLMs?
- RQ2How can standardized benchmarks and metrics improve the comparability of compression techniques across different studies?
- RQ3What are the impacts of compression on model robustness and adversarial vulnerability?
- RQ4How can explainability and reliability be improved in compressed models to support production deployment?
- RQ5What role can automated methods like meta-learning or neural architecture search play in reducing human effort in model compression?
Key findings
- Model compression techniques such as knowledge distillation, pruning, and quantization can reduce model size and inference time with minimal accuracy drop.
- Dynamic inference methods like PoWER-BERT and TR-BERT achieve better accuracy-speed trade-offs by learning to skip tokens based on attention scores.
- Carbon footprint estimation tools like CodeCarbon and Experiment Impact Tracker are essential for evaluating the environmental impact of model training and deployment.
- Fidelity and loyalty metrics provide interpretable measures of knowledge transfer quality in distillation-based compression.
- Combining multiple techniques (e.g., distillation + pruning) often yields superior performance and efficiency compared to single-method approaches.
- Current evaluation practices lack standardization, making cross-study comparisons difficult, especially across different hardware and tasks.
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.