NASH: A Simple Unified Framework of Structured Pruning for Accelerating Encoder-Decoder Language Models

Jongwoo Ko, Seungjoon Park, Yujin Kim, Sumyeong Ahn, Du-Seong Chang +2 more
10/16/2023
cs.CLcs.AIcs.LG

No official code found. Best implementation: jongwooko/NASH-Pruning-Official (17 stars, MIT, last commit 2023-10-17).

Abstract

Structured pruning methods have proven effective in reducing the model size and accelerating inference speed in various network architectures such as Transformers. Despite the versatility of encoder-decoder models in numerous NLP tasks, the structured pruning methods on such models are relatively less explored compared to encoder-only models. In this study, we investigate the behavior of the structured pruning of the encoder-decoder models in the decoupled pruning perspective of the encoder and decoder component, respectively. Our findings highlight two insights: (1) the number of decoder layers is the dominant factor of inference speed, and (2) low sparsity in the pruned encoder network enhances generation quality. Motivated by these findings, we propose a simple and effective framework, NASH, that narrows the encoder and shortens the decoder networks of encoder-decoder models. Extensive experiments on diverse generation and inference tasks validate the effectiveness of our method in both speedup and output quality.

View on arXivView PDF

Code Implementations(1)

MIT

Code Implementation for "NASH: A Simple Unified Framework of Structured Pruning for Accelerating Encoder-Decoder Language Models" (EMNLP 2023)

173Shell, PythonOct 13, 20233 years agoMIT
auto-regressive-modelbartgenerative-language-modelsmodel-compressionstructured-pruning+1 more

Similar Papers

Cite this paper

@article{ko2023nash,
  title  = {NASH: A Simple Unified Framework of Structured Pruning for Accelerating Encoder-Decoder Language Models},
  author = {Jongwoo Ko and Seungjoon Park and Yujin Kim and Sumyeong Ahn and Du-Seong Chang and Euijai Ahn and Se-Young Yun},
  year   = {2023},
  eprint = {2310.10054},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.10054v1}
}

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

Discussion