Continuous-Space Language Models for Statistical Machine Translation

Holger SchwenkPrague Bull. Math. Linguistics 2010

Introduction

Traditional Statistical Machine Translation (SMT) systems have long relied on discrete n-gram language models. While effective, these models struggle with the "data sparseness" problem, where many valid word sequences are never seen during training. This paper presents an open-source implementation of Continuous-Space Language Models (CSLM), which leverage neural networks to represent words in a continuous vector space, enabling better generalization and improved translation quality.

The Challenge of Data Sparseness

In 2010, the state-of-the-art in SMT involved n-gram back-off models. These models estimate the probability of a word based on a fixed window of preceding words. However, because words are treated as discrete symbols, the model cannot easily recognize similarities between sequences like "the cat sat" and "the dog sat" unless both appear frequently in the training data. When an unseen sequence occurs, the model "backs off" to shorter contexts, losing precision. This prevents "true interpolation"—the ability to infer probabilities for unseen sequences based on semantically similar known sequences.

Neural Architecture for Continuous Modeling

To overcome these limitations, the author proposes a multi-layer neural network (MLP) architecture. Instead of discrete counts, words are projected into a $P$-dimensional continuous space.

Architecture of the Continuous-Space Language Model neural network.

The network takes $n-1$ previous words as input, projects them into a shared space, and passes them through a hidden layer with a $tanh$ activation. The final $softmax$ layer outputs the posterior probabilities for the next word. This continuous representation allows the model to assign meaningful probabilities to unseen n-grams based on their proximity to known words in the vector space.

Implementation and Efficiency

Integrating neural networks into SMT decoders is computationally demanding. To maintain practical performance, several optimization strategies were employed:

  • Short-lists: The neural network predicts probabilities only for the most frequent words (e.g., top 8k-12k), while a traditional back-off model handles the remainder of the probability mass.
  • Bunch Mode: Utilizing optimized matrix operations to process multiple word sequences in parallel, significantly speeding up computation.
  • Two-Pass Rescoring: Rather than direct integration into the decoder, the CSLM is used to re-rank a "1000-best" list of candidate translations generated by a faster, traditional model. This allows for neural modeling benefits without the engineering overhead of a full neural decoder.

Experimental Results

The CSLM approach was rigorously tested across multiple language pairs, including Chinese, Japanese, Arabic, and Italian into English, using benchmarks like IWSLT 2006.

BLEU score improvements using CSLM across various language pairs and translation frameworks.

As shown in the results, the CSLM consistently improves BLEU scores across all tested languages. For instance, in the Italian/English task, the score rose from 35.55 to 37.41. Further gains were observed when combining the neural language model with a neural translation model, reaching a peak of 38.50 for Italian/English. Even on large-scale NIST tasks with massive training data (over 3 billion words), the CSLM provided a significant boost, demonstrating its robustness and scalability.

Conclusion

By moving from discrete n-gram counts to continuous vector representations, CSLMs effectively address the data sparseness problem in SMT. The proposed hybrid approach—combining neural modeling with traditional back-off models and n-best rescoring—provides a practical path toward higher-quality machine translation without prohibitive computational costs. Future work aims to explore factored representations and lattice-based rescoring to further expand the search space of possible translations.

Summary updated

BibTeX
@article{schwenk2010continuous,
  author = {Holger Schwenk},
  title = {{Continuous-Space Language Models for Statistical Machine Translation}},
  journal = {Prague Bull. Math. Linguistics},
  year = {2010},
}
Figure