On-line Language Model Biasing for Statistical Machine Translation

Sankaranarayanan Ananthakrishnan, Rohit Prasad, Prem NatarajanACL 2011

Abstract

The language model (LM) is a critical component in most statistical machine translation (SMT) systems, serving to establish a probability distribution over the hypothesis space. Most SMT systems use a static LM, independent of the source language input. While previous work has shown that adapting LMs based on the input improves SMT performance, none of the techniques has thus far been shown to be feasible for on-line systems. In this paper, we develop a novel measure of cross-lingual similarity for biasing the LM based on the test input. We also illustrate an efficient on-line implementation that supports integration with on-line SMT systems by transferring much of the computational load off-line. Our approach yields significant reductions in target perplexity compared to the static LM, as well as consistent improvements in SMT performance across language pairs (English-Dari and English-Pashto).

Introduction

In Statistical Machine Translation (SMT), the Language Model (LM) ensures that the generated output is fluent and natural in the target language. Traditionally, these models are static, meaning they utilize a fixed set of probabilities regardless of the specific context or domain of the source input. While domain adaptation—adapting the LM to the topic of the input—is known to improve translation quality, existing methods are often too computationally expensive for real-time applications. These methods typically require searching large databases or re-training models on the fly, making them unsuitable for low-latency tasks like speech-to-speech translation.

This paper addresses this challenge by introducing a method to dynamically "bias" a translation system's LM based on the specific sentence being translated, maintaining the speed required for on-line systems.

Methodology

The proposed approach utilizes a novel cross-lingual similarity measure to weight sentences in the LM training corpus based on the current source input. The process involves four key steps:

  1. Vector Representation: Source and target sentences are represented as sparse "bag-of-words" vectors.
  2. Bilingual Projection: To compare a source sentence ($u$) with a target sentence ($v$), a bilingual word co-occurrence matrix ($\Sigma$) derived from parallel training data is used. This matrix projects the target sentence into the source language's vector space.
  3. Sentence Weighting: Each sentence in the LM training corpus is assigned a weight based on its similarity to the current source input.
  4. On-line Efficiency: To enable real-time performance, the authors pre-compute a "projection vector" ($b_t$) for every $n$-gram in the corpus. At runtime, calculating the biased probability of a phrase is reduced to a simple dot product between the input sentence vector and the pre-computed phrase vector.

Experimental Setup

The researchers evaluated the method on two resource-poor language pairs from the DARPA Transtac initiative:

  • English-Dari (E2D): Utilizing approximately 138k training pairs and 179k LM sentences.
  • English-Pashto (E2P): Utilizing approximately 168k training pairs and 302k LM sentences.

Evaluation sets included both single-reference and four-reference test sets to ensure the robustness of the results.

Key Results

The method was evaluated based on perplexity reduction and translation quality (BLEU and TER).

Perplexity Reduction

The biased LM demonstrated a significant reduction in perplexity, ranging from 11.3% to 13.5% compared to the static baseline. This indicates that the biased model is a significantly better predictor of the target text for a given source input.

Table 2: Perplexity reduction achieved by the biased LM compared to the static baseline.

Translation Quality

In terms of translation metrics, the biased model showed consistent improvements across all test sets. For English-Dari, the BLEU score improved from 14.4 to 14.8. For English-Pashto, using the 4-reference test set, the BLEU score increased from 25.6 to 26.1. While these gains are modest, their consistency across different language pairs and metrics (including 100-TER) validates the reliability of the biasing approach.

Table 3: Comparison of BLEU and 100-TER scores for static and biased models.

Conclusion and Future Work

This research demonstrates that on-line LM biasing is feasible and effective for improving SMT performance in low-resource scenarios. By moving the heavy computational lifting off-line through pre-computed projection vectors, the system achieves low-latency adaptation.

Future work may explore the scalability of this approach to high-resource language pairs where static LMs are already robust, as well as its applicability to modern Neural Machine Translation (NMT) architectures. Additionally, managing the memory requirements for storing projection vectors in massive corpora remains a practical consideration for large-scale deployment.

Summary updated

BibTeX
@inproceedings{ananthakrishnan2011line,
  author = {Sankaranarayanan Ananthakrishnan and Rohit Prasad and Prem Natarajan},
  title = {{On-line Language Model Biasing for Statistical Machine Translation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2011},
  url = {https://openreview.net/forum?id=SyNtqneuZr},
}
Figure