Skip to main content
QUICK REVIEW

[Paper Review] Vocabulary Manipulation for Neural Machine Translation

Haitao Mi, Zhiguo Wang|arXiv (Cornell University)|May 10, 2016
Natural Language Processing TechniquesComputer Science14 references8 citations
TL;DR

This paper proposes a sentence-level vocabulary manipulation technique for neural machine translation (NMT) that reduces computational cost by using a dynamically selected, small target vocabulary per sentence, derived from word/phrase translation models and frequent target words. The method achieves a 1.0 BLEU point improvement over large-vocabulary NMT systems while significantly reducing inference time and memory usage, with an average output vocabulary size of just 202 words per sentence.

ABSTRACT

In order to capture rich language phenomena, neural machine translation models have to use a large vocabulary size, which requires high computing time and large memory usage. In this paper, we alleviate this issue by introducing a sentence-level or batch-level vocabulary, which is only a very small sub-set of the full output vocabulary. For each sentence or batch, we only predict the target words in its sentence-level or batch-level vocabulary. Thus, we reduce both the computing time and the memory usage. Our method simply takes into account the translation options of each word or phrase in the source sentence, and picks a very small target vocabulary for each sentence based on a word-to-word translation model or a bilingual phrase library learned from a traditional machine translation model. Experimental results on the large-scale English-to-French task show that our method achieves better translation performance by 1 BLEU point over the large vocabulary neural machine translation system of Jean et al. (2015).

Motivation & Objective

  • To address the high computational cost and memory usage of large-vocabulary neural machine translation (NMT) systems.
  • To improve translation quality by incorporating translation ambiguity through word-to-word and phrase-to-phrase translation models from phrase-based SMT.
  • To reduce the size of the output vocabulary per sentence without sacrificing coverage or performance.
  • To enable faster training and inference by using small, sentence-specific output vocabularies instead of full target vocabularies.
  • To combine the strengths of traditional SMT (fast rule extraction) with end-to-end NMT (high-quality translation) through vocabulary pruning.

Proposed method

  • For each source sentence, a sentence-level output vocabulary $V_o$ is constructed as the union of three components: (1) target words from word/phrase translation models, (2) the top 2,000 most frequent target words, and (3) words from the reference translation.
  • During training, mini-batch-level vocabularies are formed by merging the individual sentence-level vocabularies in each batch, and only parameters related to these words are updated.
  • The training process includes shuffling sentences at the start of each epoch, so each sentence sees a different vocabulary across epochs, improving generalization.
  • In inference (beam search), the same vocabulary construction is applied per sentence, but without the reference word component since references are not available.
  • The method uses a standard attention-based NMT architecture, but replaces the full target vocabulary $V_y$ with a smaller, dynamic $V_o$ at each prediction step.
  • The softmax computation is performed only over $V_o$, drastically reducing computational cost per prediction step.

Experimental results

Research questions

  • RQ1Can a dynamically selected, small sentence-level output vocabulary improve NMT efficiency without degrading translation quality?
  • RQ2How does incorporating translation ambiguity via SMT-derived word/phrase models affect NMT performance?
  • RQ3What is the optimal size of the top-k most frequent target words to include in the sentence-level vocabulary?
  • RQ4Can vocabulary manipulation reduce training and inference time while maintaining or improving BLEU scores?
  • RQ5How does the dynamic, epoch-wise shuffling of vocabularies impact model generalization and performance?

Key findings

  • The proposed method achieves a 1.0 BLEU point improvement over the large-vocabulary NMT baseline, reaching 35.11 BLEU on the English-to-French test set after UNK replacement.
  • The average size of the sentence-level output vocabulary $V_o$ is reduced to 202 words, which is 14.5 times smaller than the 30,000-word baseline used in prior work.
  • The method reduces the average $V_o$ size to 202 even when only the top 50 most frequent target words are used, with only a 0.1 BLEU point drop on the development set.
  • The training speed is significantly improved: increasing the batch vocabulary size to 30,000 slows down training by 1.5 times compared to the proposed method.
  • The model performs best when all three components of $V_o$ are used: word/phrase translations, top 2,000 frequent words, and reference words, with separate ablations yielding 34.20 and 34.23 BLEU.
  • The learning curve shows convergence by epoch 7, with no significant improvement after fixing word embeddings at epoch 5, indicating stable training with the proposed method.

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.