Decoding with Large-Scale Neural Language Models Improves Translation

Ashish Vaswani, Yinggong Zhao, Victoria Fossum, David Chiang

Introduction

In 2013, Statistical Machine Translation (SMT) relied heavily on $n$-gram language models to ensure fluent output. However, traditional $n$-gram models suffer from data sparsity: if a sequence of words hasn't been seen exactly in the training data, the model struggles to estimate its probability. Neural language models (NLMs) solve this by using continuous word embeddings, allowing the model to generalize based on semantic similarity. However, NLMs were historically slow to train and use due to the "softmax" bottleneck, which requires summing over the entire vocabulary at every step. This computational cost restricted neural LMs to "reranking" small candidate lists rather than being used during the primary decoding search.

Scaling Neural Language Models

The authors propose a feed-forward Neural Probabilistic Language Model (NPLM) architecture designed to overcome these scaling hurdles through several key innovations:

  1. Rectified Linear Units (ReLU): Replacing standard sigmoid or tanh functions with ReLUs ($\phi(x) = \max(0, x)$) reduced computational costs and improved training efficiency in deep networks.
  2. Noise-Contrastive Estimation (NCE): By framing language modeling as a binary classification task (distinguishing real words from noise), NCE makes training time nearly independent of vocabulary size.
  3. Self-Normalization for Decoding: To speed up inference, the model was trained to learn approximately normalized probabilities ($Z(u) \approx 1$). This allows the decoder to bypass the expensive normalization step during search.
  4. The <null> Token Trick: To estimate probabilities for shorter contexts within the decoder, a special <null> token was introduced, with its embedding calculated as the weighted average of all other words.
Training time comparison between standard CSLM and NCE with varying vocabulary sizes.

As shown in the figure above, NCE-trained models maintain a relatively constant training time even as vocabulary grows to 70,000 words, whereas traditional MLE approaches (like CSLM) scale linearly and become prohibitively slow.

Experimental Results

The models were evaluated on the NIST Chinese-English benchmark and the Europarl v7 corpus (French, German, and Spanish to English).

Translation Quality

Integrating the neural LM directly into the decoder yielded substantial improvements over baseline SMT systems and reranking-only approaches. On the Chinese-English task, direct integration improved scores by up to 1.1 BLEU points.

BLEU score improvements on the NIST Chinese-English task across different test sets.

For the Europarl tasks, improvements were consistent, ranging from 0.1 to 0.6 BLEU. The results demonstrate that "direct integration"—using the neural LM to guide the search from the start—is significantly more effective than simple reranking, as it allows the model to prune poor translation paths early.

Computational Efficiency

Beyond quality gains, the NCE-trained model was dramatically faster than existing toolkits. For a 70k vocabulary, the proposed method was roughly 10x faster to train per epoch than standard MLE approaches. Self-normalization further enabled fast lookups (approx. 40μs), making real-time integration feasible.

Conclusion and Future Work

This work proved that large-scale neural LMs can be efficiently trained and integrated into translation decoders. While the feed-forward architecture has limitations in capturing long-distance dependencies compared to Recurrent Neural Networks (RNNs), the techniques of NCE and ReLU provide a scalable foundation for future NLP tasks. Subsequent research could apply these methods to RNNs or even larger datasets to further push the boundaries of machine translation quality.

Summary updated

BibTeX
@inproceedings{vaswani2013decoding,
  author = {Ashish Vaswani and Yinggong Zhao and Victoria Fossum and David Chiang},
  title = {{Decoding with Large-Scale Neural Language Models Improves Translation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2013},
  doi = {10.18653/v1/d13-1140},
}
Figure