arXiv(opens in a new tab)cs.CLDec 2014Cited by 3 papers on PaperVantage

Manuscript Offprint

arXiv:1412.2007

On Using Very Large Target Vocabulary for Neural Machine Translation

Sébastien Jean, Kyunghyun Cho, Roland Memisevic, Yoshua Bengio

Abstract

Neural machine translation, a recently proposed approach to machine translation based purely on neural networks, has shown promising results compared to the existing approaches such as phrase-based statistical machine translation. Despite its recent success, neural machine translation has its limitation in handling a larger vocabulary, as training complexity as well as decoding complexity increase proportionally to the number of target words. In this paper, we propose a method based on importance sampling that allows us to use a very large target vocabulary without increasing training complexity. We show that decoding can be efficiently done even with the model having a very large target vocabulary by selecting only a small subset of the whole target vocabulary. The models trained by the proposed approach are empirically found to match, and in some cases outperform, the baseline models with a small vocabulary as well as the LSTM-based neural machine translation models. Furthermore, when we use an ensemble of a few models with very large target vocabularies, we achieve performance comparable to the state of the art (measured by BLEU) on both the English→\toGerman and English→\toFrench translation tasks of WMT’14.

1 Introduction

Neural machine translation (NMT) is a recently introduced approach to solving machine translation [\citenameKalchbrenner and Blunsom2013, \citenameBahdanau et al.2014, \citenameSutskever et al.2014]. In neural machine translation, one builds a single neural network that reads a source sentence and generates its translation. The whole neural network is jointly trained to maximize the conditional probability of a correct translation given a source sentence, using the bilingual corpus. The NMT models have shown to perform as well as the most widely used conventional translation systems [\citenameSutskever et al.2014, \citenameBahdanau et al.2014].

Neural machine translation has a number of advantages over the existing statistical machine translation system, specifically, the phrase-based system [\citenameKoehn et al.2003]. First, NMT requires a minimal set of domain knowledge. For instance, all of the models proposed in [\citenameSutskever et al.2014], [\citenameBahdanau et al.2014] or [\citenameKalchbrenner and Blunsom2013] do not assume any linguistic property in both source and target sentences except that they are sequences of words. Second, the whole system is jointly tuned to maximize the translation performance, unlike the existing phrase-based system which consists of many feature functions that are tuned separately. Lastly, the memory footprint of the NMT model is often much smaller than the existing system which relies on maintaining large tables of phrase pairs.

Despite these advantages and promising results, there is a major limitation in NMT compared to the existing phrase-based approach. That is, the number of target words must be limited. This is mainly because the complexity of training and using an NMT model increases as the number of target words increases.

A usual practice is to construct a target vocabulary of the kk most frequent words (a so-called shortlist), where kk is often in the range of 30,00030,000 [\citenameBahdanau et al.2014] to 80,00080,000 [\citenameSutskever et al.2014]. Any word not included in this vocabulary is mapped to a special token representing an unknown word [\mboxUNK]\left[\mbox{UNK}\right]. This approach works well when there are only a few unknown words in the target sentence, but it has been observed that the translation performance degrades rapidly as the number of unknown words increases [\citenameCho et al.2014a, \citenameBahdanau et al.2014].

In this paper, we propose an approximate training algorithm based on (biased) importance sampling that allows us to train an NMT model with a much larger target vocabulary. The proposed algorithm effectively keeps the computational complexity during training at the level of using only a small subset of the full vocabulary. Once the model with a very large target vocabulary is trained, one can choose to use either all the target words or only a subset of them.

We compare the proposed algorithm against the baseline shortlist-based approach in the tasks of English→\toFrench and English→\toGerman translation using the NMT model introduced in [\citenameBahdanau et al.2014]. The empirical results demonstrate that we can potentially achieve better translation performance using larger vocabularies, and that our approach does not sacrifice too much speed for both training and decoding. Furthermore, we show that the model trained with this algorithm gets the best translation performance yet achieved by single NMT models on the WMT’14 English→\toFrench translation task.