Learning Light-Weight Translation Models from Deep Transformer

Bei Li, Ziyang Wang, Hui Liu, Quan Du, Tong Xiao +2 more
12/27/2020
cs.CL
transformer-attention

Official code: libeineu/GPKD (15 stars, Python, MIT, last commit 2021-01-25).

Abstract

Recently, deep models have shown tremendous improvements in neural machine translation (NMT). However, systems of this kind are computationally expensive and memory intensive.

Show full abstract

In this paper, we take a natural step towards learning strong but light-weight NMT systems. We proposed a novel group-permutation based knowledge distillation approach to compressing the deep Transformer model into a shallow model. The experimental results on several benchmarks validate the effectiveness of our method. Our compressed model is 8X shallower than the deep model, with almost no loss in BLEU. To further enhance the teacher model, we present a Skipping Sub-Layer method to randomly omit sub-layers to introduce perturbation into training, which achieves a BLEU score of 30.63 on English-German newstest2014. The code is publicly available at https://github.com/libeineu/GPKD.

View on arXivView PDF

Code Implementations(1)

libeineu/GPKDOfficial100%
MIT

The codebase of paper:Learning Light-Weight Translation Models from Deep Transformer, which is accepted by AAAI2021 conference.

152Python, ShellDec 15, 20205 years agoMIT

Similar Papers

Cite this paper

@article{li2020learning,
  title  = {Learning Light-Weight Translation Models from Deep Transformer},
  author = {Bei Li and Ziyang Wang and Hui Liu and Quan Du and Tong Xiao and Chunliang Zhang and Jingbo Zhu},
  year   = {2020},
  eprint = {2012.13866},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2012.13866}
}

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

Discussion