APT: Adaptive Pruning and Tuning Pretrained Language Models for Efficient Training and Inference

Bowen Zhao, Hannaneh Hajishirzi, Qingqing Cao
1/22/2024
cs.CLcs.LG

No official code found. Best implementation: ROIM1998/APT (48 stars, MIT, last commit 2024-06-04).

Abstract

Fine-tuning and inference with large Language Models (LM) are generally known to be expensive. Parameter-efficient fine-tuning over pretrained LMs reduces training memory by updating a small number of LM parameters but does not improve inference efficiency. Structured pruning improves LM inference efficiency by removing consistent parameter blocks, yet often increases training memory and time. To improve both training and inference efficiency, we introduce APT that adaptively prunes and tunes parameters for the LMs. At the early stage of fine-tuning, APT dynamically adds salient tuning parameters for fast and accurate convergence while discarding unimportant parameters for efficiency. Compared to baselines, our experiments show that APT maintains up to 98% task performance when pruning RoBERTa and T5 models with 40% parameters left while keeping 86.4% LLaMA models' performance with 70% parameters remained. Furthermore, APT speeds up LMs fine-tuning by up to 8x and reduces large LMs memory training footprint by up to 70%.

View on arXivView PDF

Code Implementations(1)

ROIM1998/APTCommunity100%
MIT

[ICML'24 Oral] APT: Adaptive Pruning and Tuning Pretrained Language Models for Efficient Training and Inference

484Shell, PythonJan 24, 20242 years agoMIT
bertefficient-deep-learningllama2llmllm-finetuning+5 more

Cite this paper

@article{zhao2024apt,
  title  = {APT: Adaptive Pruning and Tuning Pretrained Language Models for Efficient Training and Inference},
  author = {Bowen Zhao and Hannaneh Hajishirzi and Qingqing Cao},
  year   = {2024},
  eprint = {2401.12200},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.12200v2},
  journal = {ICML 2024 2024}
}

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/2401.12200.svg)](https://codeofpaper.com/paper/2401.12200)

Discussion