DSEE: Dually Sparsity-embedded Efficient Tuning of Pre-trained Language Models

Xuxi Chen, Tianlong Chen, Weizhu Chen, Ahmed Hassan Awadallah, Zhangyang Wang +1 more
10/30/2021
cs.LGcs.CL
lora-peft-merging

Official code: VITA-Group/DSEE (9 stars, Python, MIT, last commit 2023-08-04).

Abstract

Gigantic pre-trained models have become central to natural language processing (NLP), serving as the starting point for fine-tuning towards a range of downstream tasks. However, two pain points persist for this paradigm: (a) as the pre-trained models grow bigger (e.g., 175B parameters for GPT-3), even the fine-tuning process can be time-consuming and computationally expensive; (b) the fine-tuned model has the same size as its starting point by default, which is neither sensible due to its more specialized functionality, nor practical since many fine-tuned models will be deployed in resource-constrained environments.

Show full abstract

To address these pain points, we propose a framework for resource- and parameter-efficient fine-tuning by leveraging the sparsity prior in both weight updates and the final model weights. Our proposed framework, dubbed Dually Sparsity-Embedded Efficient Tuning (DSEE), aims to achieve two key objectives: (i) parameter efficient fine-tuning - by enforcing sparsity-aware low-rank updates on top of the pre-trained weights; and (ii) resource-efficient inference - by encouraging a sparse weight structure towards the final fine-tuned model. We leverage sparsity in these two directions by exploiting both unstructured and structured sparse patterns in pre-trained language models via a unified approach. Extensive experiments and in-depth investigations, with diverse network backbones (i.e., BERT, RoBERTa, and GPT-2) on dozens of datasets, consistently demonstrate impressive parameter-/inference-efficiency, while maintaining competitive downstream performance. For instance, DSEE saves about 25% inference FLOPs while achieving comparable performance, with 0.5% trainable parameters on BERT. Codes are available in https://github.com/VITA-Group/DSEE.

View on arXivView PDF

Code Implementations(1)

VITA-Group/DSEEOfficial100%
MIT

[ACL 2023] "DSEE: Dually Sparsity-embedded Efficient Tuning of Pre-trained Language Models" by Xuxi Chen, Tianlong Chen, Weizhu Chen, Ahmed Hassan Awadallah, Zhangyang Wang, Yu Cheng

92Python, Jupyter NotebookOct 24, 20213 years agoMIT
machine-learning

Similar Papers

Cite this paper

@article{chen2021dsee,
  title  = {DSEE: Dually Sparsity-embedded Efficient Tuning of Pre-trained Language Models},
  author = {Xuxi Chen and Tianlong Chen and Weizhu Chen and Ahmed Hassan Awadallah and Zhangyang Wang and Yu Cheng},
  year   = {2021},
  eprint = {2111.00160},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2111.00160}
}

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

Discussion