Abstract
Fine-tuning a pre-trained language model (PLM) emerges as the predominant strategy in many natural language processing applications. However, even fine-tuning the PLMs and doing inference are expensive, especially on edge devices with low computing power. Some general approaches (e.g. quantization and distillation) have been widely studied to reduce the compute/memory of PLM fine-tuning, while very few one-shot compression techniques are explored. In this paper, we investigate the neural tangent kernel (NTK)–which reveals the gradient descent dynamics of neural networks–of the multilayer perceptrons (MLP) modules in a PLM and propose to coin a lightweight PLM through NTK-approximating MLP fusion. To achieve this, we reconsider the MLP as a bundle of sub-MLPs, and cluster them into a given number of centroids, which can then be restored as a compressed MLP and surprisingly shown to well approximate the NTK of the original PLM. Extensive experiments of PLM fine-tuning on both natural language understanding (NLU) and generation (NLG) tasks are provided to verify the effectiveness of the proposed method MLP fusion. Our code is available at https://github.com/weitianxin/MLP_Fusion.
Original language | English |
---|---|
Title of host publication | Proceedings of 40th International Conference on Machine Learning, ICML 2023 |
Editors | Andreas Krause, Emma Brunskill, Kyunghyun Cho, Barbara Engelhardt, Sivan Sabato, Jonathan Scarlett |
Publisher | ML Research Press |
Pages | 36821-36838 |
Number of pages | 18 |
Volume | 202 |
Publication status | Published - Jul 2023 |
Event | 40th International Conference on Machine Learning, ICML 2023 - Honolulu, United States Duration: 23 Jul 2023 → 29 Jul 2023 https://icml.cc/Conferences/2023 https://proceedings.mlr.press/v202/ https://openreview.net/group?id=ICML.cc/2023/Conference |
Publication series
Name | Proceedings of Machine Learning Research |
---|---|
Publisher | ML Research Press |
Volume | 202 |
ISSN (Print) | 2640-3498 |
Conference
Conference | 40th International Conference on Machine Learning, ICML 2023 |
---|---|
Country/Territory | United States |
City | Honolulu |
Period | 23/07/23 → 29/07/23 |
Internet address |
Scopus Subject Areas
- Software
- Artificial Intelligence
- Control and Systems Engineering
- Statistics and Probability