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,Euijai Ahn,Se-Young Yun
2023-10-16
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.
Computation and Language,Artificial Intelligence,Machine Learning
What problem does this paper attempt to address?
### Problems the Paper Aims to Solve The paper aims to address the following issues: 1. **Application of Structured Pruning Methods in Encoder-Decoder Models**: Although structured pruning methods have been proven effective in reducing model size and accelerating inference speed, research on their application in encoder-decoder models is relatively scarce. The paper proposes a new framework—NASH (Narrow Encoder and Shallow Decoder), specifically designed for structured pruning in encoder-decoder models. 2. **Improving Inference Speed and Output Quality**: Through experiments, it was found that the number of decoder layers is the main factor affecting inference speed, while the sparsity of the encoder network is crucial for output quality. Based on these findings, the NASH framework enhances inference speed by reducing the number of decoder layers and improves generation quality by maintaining a low sparsity in the encoder. 3. **Unified Acceleration Framework**: NASH is designed as a general framework applicable to various natural language processing tasks, including summarization, question answering, etc. Experimental results show that NASH can achieve significant acceleration effects across multiple tasks while maintaining high output quality.