Sequence-Level Knowledge Distillation

Yoon Kim, Alexander M. Rush
6/25/2016
1,726 citations
cs.CLcs.LGcs.NE
distillation

Official code: harvardnlp/seq2seq-attn (1,279 stars, Lua, MIT, last commit 2020-12-30). 1 more implementation below.

Abstract

Neural machine translation (NMT) offers a novel alternative formulation of translation that is potentially simpler than statistical approaches. However to reach competitive performance, NMT models need to be exceedingly large.

Show full abstract

In this paper we consider applying knowledge distillation approaches (Bucila et al., 2006; Hinton et al., 2015) that have proven successful for reducing the size of neural models in other domains to the problem of NMT. We demonstrate that standard knowledge distillation applied to word-level prediction can be effective for NMT, and also introduce two novel sequence-level versions of knowledge distillation that further improve performance, and somewhat surprisingly, seem to eliminate the need for beam search (even when applied on the original teacher model). Our best student model runs 10 times faster than its state-of-the-art teacher with little loss in performance. It is also significantly better than a baseline model trained without knowledge distillation: by 4.2/1.7 BLEU with greedy decoding/beam search. Applying weight pruning on top of knowledge distillation results in a student model that has 13 times fewer parameters than the original teacher model, with a decrease of 0.4 BLEU.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
harvardnlp/seq2seq-attnOfficial1,279LuaMIT2020-12-30
harvardnlp/nmt-androidOfficial61LuaGPL-3.02016-06-28
MIT

Sequence-to-sequence model with LSTM encoder/decoders and attention

1,279277Lua, PythonApr 1, 20165 years agoMIT
GPL-3.0

Neural Machine Translation on Android

6117Lua, JavaJun 28, 201610 years agoGPL-3.0

Similar Papers

Cite this paper

@article{kim2016sequencelevel,
  title  = {Sequence-Level Knowledge Distillation},
  author = {Yoon Kim and Alexander M. Rush},
  year   = {2016},
  eprint = {1606.07947},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1606.07947}
}

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

Discussion