Skip to main content
QUICK REVIEW

[Paper Review] Vocabulary Selection Strategies for Neural Machine Translation

Gurvan L'Hostis, David Grangier|arXiv (Cornell University)|Oct 1, 2016
Natural Language Processing TechniquesComputer Science24 references38 citations
TL;DR

This paper proposes vocabulary selection strategies for neural machine translation that reduce decoding time by up to 90% and training time by 25% without significant accuracy loss. By selecting a small, context-relevant subset of target words using methods like word alignments, bilingual embeddings, or SVM classifiers, the model avoids scoring large vocabularies, achieving near-state-of-the-art performance on English-German and English-Romanian translation tasks.

ABSTRACT

Classical translation models constrain the space of possible outputs by selecting a subset of translation rules based on the input sentence. Recent work on improving the efficiency of neural translation models adopted a similar strategy by restricting the output vocabulary to a subset of likely candidates given the source. In this paper we experiment with context and embedding-based selection methods and extend previous work by examining speed and accuracy trade-offs in more detail. We show that decoding time on CPUs can be reduced by up to 90% and training time by 25% on the WMT15 English-German and WMT16 English-Romanian tasks at the same or only negligible change in accuracy. This brings the time to decode with a state of the art neural translation system to just over 140 msec per sentence on a single CPU core for English-German.

Motivation & Objective

  • To improve the inference efficiency of neural machine translation systems by reducing the size of the target vocabulary during decoding.
  • To investigate whether vocabulary selection techniques can maintain or improve translation accuracy while significantly reducing computational cost.
  • To evaluate the impact of vocabulary selection on both decoding and training efficiency across different language pairs and model architectures.
  • To determine whether context-aware selection methods outperform simple frequency-based or alignment-based approaches in terms of speed-accuracy trade-offs.
  • To explore whether training with a reduced, dynamically selected vocabulary improves generalization or model convergence.

Proposed method

  • Vocabulary selection is performed by identifying a small subset of target words relevant to the input sentence using word co-occurrence counts from bilingual bitext.
  • Bilingual word embeddings are learned via Hellinger PCA on the co-occurrence matrix to improve robustness for rare word pairs.
  • Word alignments from a phrase-based model are used to estimate P(t|s), selecting target words with high alignment probabilities.
  • Phrase pairs from a traditional phrase table are used to identify candidate translations based on local phrase-level context.
  • A discriminative SVM classifier is trained on features extracted from the entire source sentence to predict likely target words.
  • The selected vocabulary is used during both decoding and training, with the model scoring only these candidate words to reduce computational load.

Experimental results

Research questions

  • RQ1Can vocabulary selection techniques reduce decoding time in NMT by up to 90% with negligible accuracy degradation?
  • RQ2How do different selection strategies—such as word alignments, embeddings, or SVMs—compare in terms of speed and accuracy?
  • RQ3Does training with a reduced, sentence-specific vocabulary improve model generalization or convergence?
  • RQ4What is the impact of vocabulary size on inference and training efficiency, especially when using faster encoder architectures?
  • RQ5Can a small selected vocabulary (e.g., ~600 words per sentence) recover over 99% of the words in the gold-standard translation?

Key findings

  • Decoding speed on a single CPU core was reduced to just over 140 ms per sentence for English-German translation, representing a 90% speed-up compared to full-vocabulary decoding.
  • Word alignments alone were sufficient to achieve high accuracy, recovering over 99% of the words in the gold-standard translation with a vocabulary of only ~600 words per sentence.
  • Training speed on GPUs improved by up to 33% (1.33× speed-up) when using word alignment-based vocabulary selection, with no significant drop in validation BLEU scores.
  • When using a faster average-pooling encoder instead of a bi-LSTM, the training speed-up from vocabulary selection increased to 66% (1.66×), indicating that encoder efficiency is a key bottleneck.
  • The combination of vocabulary selection and a smaller vocabulary size (e.g., 6k words per batch) led to a 40% reduction in training time per epoch with the average-pooling encoder, though accuracy dropped to 18.5 BLEU from 22.5 with the bi-LSTM.
  • Adding the 2,000 most frequent words during training did not improve accuracy, suggesting that context-aware selection is more effective than frequency-based inclusion.

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.