Structural Pruning of Pre-trained Language Models via Neural Architecture Search

Aaron Klein, Jacek Golebiowski, Xingchen Ma, Valerio Perrone, Cedric Archambeau
5/3/2024
cs.LGcs.CL

No official code found. Best implementation: whittle-org/plm_pruning (8 stars, last commit 2024-09-19).

Abstract

Pre-trained language models (PLM), for example BERT or RoBERTa, mark the state-of-the-art for natural language understanding task when fine-tuned on labeled data. However, their large size poses challenges in deploying them for inference in real-world applications, due to significant GPU memory requirements and high inference latency. This paper explores neural architecture search (NAS) for structural pruning to find sub-parts of the fine-tuned network that optimally trade-off efficiency, for example in terms of model size or latency, and generalization performance. We also show how we can utilize more recently developed two-stage weight-sharing NAS approaches in this setting to accelerate the search process. Unlike traditional pruning methods with fixed thresholds, we propose to adopt a multi-objective approach that identifies the Pareto optimal set of sub-networks, allowing for a more flexible and automated compression process.

View on arXivView PDF

Code Implementations(1)

82PythonAug 7, 20242 years ago

Similar Papers

Cite this paper

@article{klein2024structural,
  title  = {Structural Pruning of Pre-trained Language Models via Neural Architecture Search},
  author = {Aaron Klein and Jacek Golebiowski and Xingchen Ma and Valerio Perrone and Cedric Archambeau},
  year   = {2024},
  eprint = {2405.02267},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.02267v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.02267.svg)](https://codeofpaper.com/paper/2405.02267)

Discussion