Modular Transformers: Compressing Transformers into Modularized Layers for Flexible Efficient Inference
Zhou, Wangchunshu, Bras, Ronan Le, Choi, Yejin
–arXiv.org Artificial Intelligence
Pre-trained Transformer models like T5 and BART have advanced the state of the art on a wide range of text generation tasks. Compressing these models into smaller ones has become critically important for practical use. Common neural network compression techniques such as knowledge distillation or quantization are limited to static compression where the compression ratio is fixed. In this paper, we introduce Modular Transformers, a modularized encoder-decoder framework for flexible sequence-to-sequence model compression. Modular Transformers train modularized layers that have the same function of two or more consecutive layers in the original model via module replacing and knowledge distillation. After training, the modularized layers can be flexibly assembled into sequence-to-sequence models that meet different performance-efficiency trade-offs. Experimental results show that after a single training phase, by simply varying the assembling strategy, Modular Transformers can achieve flexible compression ratios from 1.1x to 6x with little to moderate relative performance drop.
arXiv.org Artificial Intelligence
Jun-4-2023
- Country:
- Oceania > Australia (0.04)
- North America
- Dominican Republic (0.04)
- United States
- Texas (0.04)
- Pennsylvania (0.04)
- New York > New York County
- New York City (0.04)
- Nevada > Clark County
- Las Vegas (0.04)
- Minnesota > Hennepin County
- Minneapolis (0.14)
- Michigan > Washtenaw County
- Ann Arbor (0.04)
- California > Los Angeles County
- Long Beach (0.04)
- Canada
- Quebec > Montreal (0.04)
- British Columbia > Metro Vancouver Regional District
- Vancouver (0.04)
- Europe
- Switzerland > Zürich
- Zürich (0.04)
- Spain > Catalonia
- Barcelona Province > Barcelona (0.04)
- Italy > Tuscany
- Florence (0.04)
- Ireland > Leinster
- County Dublin > Dublin (0.04)
- Greece > Attica
- Athens (0.04)
- Belgium > Brussels-Capital Region
- Brussels (0.04)
- Switzerland > Zürich
- Asia > China
- Hong Kong (0.04)
- Africa > Ethiopia
- Addis Ababa > Addis Ababa (0.04)
- Genre:
- Research Report (1.00)
- Technology: