Skip to main content
QUICK REVIEW

[Paper Review] On Using Very Large Target Vocabulary for Neural Machine Translation

Sébastien Jean, Kyunghyun Cho|arXiv (Cornell University)|Dec 5, 2014
Natural Language Processing TechniquesComputer Science56 citations
TL;DR

This paper proposes an importance sampling-based training method that enables neural machine translation (NMT) models to use very large target vocabularies without increasing training complexity. By approximating the normalization term in the output probability distribution, the approach allows efficient training and decoding with full or pruned vocabularies, achieving state-of-the-art BLEU scores on WMT’14 English-to-French and English-to-German translation tasks, outperforming prior single-model NMT systems by up to 1 BLEU point.

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 that allows us to use a very large target vocabulary without increasing training complexity, based on importance sampling. 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 outperform the baseline models with a small vocabulary as well as the LSTM-based neural machine translation models. Furthermore, when we use the ensemble of a few models with very large target vocabularies, we achieve the state-of-the-art translation performance (measured by BLEU) on the English->German translation and almost as high performance as state-of-the-art English->French translation system.

Motivation & Objective

  • To address the limitation of neural machine translation (NMT) in handling large target vocabularies due to high training and decoding complexity.
  • To develop a training algorithm that maintains low computational cost even when using a full, large target vocabulary.
  • To enable efficient decoding by selecting only a small subset of the full vocabulary during inference.
  • To empirically evaluate whether models trained with large vocabularies outperform those with limited vocabularies on standard translation benchmarks.

Proposed method

  • The method employs biased importance sampling to approximate the normalization constant in the output probability distribution, avoiding the need to compute probabilities over the entire target vocabulary during training.
  • The importance sampling scheme uses a proposal distribution based on the model's current predictions to estimate the gradient of the log-likelihood with respect to model parameters.
  • The training objective is modified to use a stochastic approximation of the full softmax, reducing computational cost to that of a small subset of target words.
  • During inference, decoding is performed using a dynamic candidate list of size K' per source sentence, selected from the full vocabulary based on likelihood scores.
  • The model architecture follows the attention-based encoder-decoder framework from Bahdanau et al. (2014), with modifications to the output layer to support large-vocabulary training.
  • A common candidate list is precomputed for multiple source sentences to reduce per-sequence re-computation overhead and maintain decoding speed close to baseline models.

Experimental results

Research questions

  • RQ1Can neural machine translation models be trained efficiently with very large target vocabularies without increasing training complexity?
  • RQ2Does using a larger target vocabulary improve translation performance compared to models with limited vocabularies?
  • RQ3Can decoding be made efficient when using a full or near-full target vocabulary through selective candidate sampling?
  • RQ4How does the performance of models trained with importance sampling compare to state-of-the-art systems on standard benchmarks like WMT’14?
  • RQ5Does the choice of target vocabulary size during inference correlate with the vocabulary size used during training?

Key findings

  • The proposed method achieved a BLEU score of 38.3 on the WMT’14 English-to-French translation task, outperforming the best single-model NMT system from Luong et al. (2014) by approximately 1 BLEU point.
  • On the English-to-German task, the best model achieved a BLEU score of 21.59, surpassing the previous state of the art of 20.67 reported in Buck et al. (2014).
  • Ensemble models with very large target vocabularies achieved performance within 0.3 BLEU points of the best system on the WMT’14 English-to-French task.
  • Decoding speed was maintained close to baseline levels by using a shared candidate list across multiple sentences, achieving near-baseline efficiency.
  • The model trained with τ = 30,000 and tested with K = 50,000 candidates showed a 0.2 BLEU improvement over K' = 1, indicating that larger candidate sets improve performance when the training vocabulary is large.
  • Performance was found to be sensitive to the alignment between training and inference vocabulary sizes, with best results when they were similar.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.