Balancing Cost and Benefit with Tied-Multi Transformers
Not on the map. Why?
Abstract (arXiv)
We propose and evaluate a novel procedure for training multiple Transformers with tied parameters which compresses multiple models into one enabling the dynamic choice of the number of encoder and decoder layers during decoding. In sequence-to-sequence modeling, typically, the output of the last layer of the N-layer encoder is fed to the M-layer decoder, and the output of the last decoder layer is used to compute loss. Instead, our method computes a single loss consisting of NxM losses, where each loss is computed from the output of one of the M decoder layers connected to one of the N encoder layers. Such a model subsumes NxM models with different number of encoder and decoder layers, and can be used for decoding with fewer than the maximum number of encoder and decoder layers. We then propose a mechanism to choose a priori the number of encoder and decoder layers for faster decoding, and also explore recurrent stacking of layers and knowledge distillation for model compression. We present a cost-benefit analysis of applying the proposed approaches for neural machine translation and show that they reduce decoding costs while preserving translation quality.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). First posted on arXiv 20 Feb 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 2; 2022: 2; 2023: 1.
5 papers.
- 2022Efficient Methods for Natural Language Processing: A Surveycited by 78
- 2023Learning to Skip for Language Modelingcited by 19
- 2022Unsupervised Early Exit in DNNs with Multiple Exitscited by 10
- 2021When in Doubt, Summon the Titans: Efficient Inference with Large Modelscited by 8
- 2021YANMTT: Yet Another Neural Machine Translation Toolkitcited by 7
- 2023Learning to Skip for Language Modeling26 Nov 2023
- 2022Unsupervised Early Exit in DNNs with Multiple Exits20 Sep 2022
- 2022Efficient Methods for Natural Language Processing: A Survey31 Aug 2022
- 2021When in Doubt, Summon the Titans: Efficient Inference with Large Models19 Oct 2021
- 2021YANMTT: Yet Another Neural Machine Translation Toolkit25 Aug 2021