NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Decoding Algorithm in Statistical Machine Translation

Ye-Yi Wang, Alex WaibelACL 1997

Abstract

In early Statistical Machine Translation (SMT), the decoding process—searching for the most probable translation—presented a significant computational challenge. This paper from Carnegie Mellon University (1997) introduces a simplified version of IBM Model 2 that decouples alignment parameters from sentence length. By refining stack-based search heuristics and implementing this simplified model, the authors achieved a 100% decoding success rate and a substantial reduction in computational overhead compared to traditional multi-stack search methods.

Introduction: The Decoding Problem

In the late 1990s, SMT was primarily built upon the "noisy channel" framework. To translate a source sentence (e.g., German, $T$) into a target sentence (e.g., English, $S$), the system aims to find the $S$ that maximizes the product of the language model $P(S)$ and the translation model $P(T|S)$. This process, known as decoding, is inherently difficult because the search space of all possible target sentences is infinite.

Standard models of the era, such as IBM Model 2, exacerbated this difficulty. Their alignment parameters depended on the specific lengths of both the source and target sentences. This dependency created two critical bottlenecks:

  1. Data Sparsity: Training data was often insufficient to accurately estimate parameters for every possible combination of sentence lengths.
  2. Search Inefficiency: Decoders were forced to hypothesize multiple source sentence lengths, effectively repeating the search process numerous times for a single input.

Methodology

The researchers evaluated three primary approaches to address these challenges:

The core algorithm is a heuristic stack-based search, similar to A. It maintains a "stack" of partial translation hypotheses, prioritizing the expansion of the most promising ones. To prevent the algorithm from unfairly favoring shorter sentences (which naturally have higher probabilities), the authors explored Multi-Stack Search*, which uses separate stacks for different hypothesized sentence lengths.

The Simplified Model

The primary innovation is a modification of IBM Model 2 where alignment parameters $a(i|j)$ are made independent of sentence length. To accommodate cases where the target sentence is shorter than the maximum allowed length, "dummy word" padding is employed. This independence allows the decoder to stop naturally when the "end of sentence" symbol becomes the most probable next step, eliminating the need to guess the source length in advance.

Advanced Heuristics

To guide the search, the authors developed a scoring function that provides an upper bound on a hypothesis's potential score. This includes a language model heuristic based on training data perplexity and a translation model heuristic that pre-calculates the maximum possible contribution of any word in the lexicon.

Experimental Results

The models were trained on the Scheduling Corpus, consisting of approximately 30,000 parallel German-English sentences from bilingual dialogues.

Efficiency and Success Rate

The Simplified Model demonstrated superior performance across all metrics. It successfully decoded 100% of the 120 test sentences. In comparison, the standard Model 2 using a single stack failed on 73% of sentences, and even the multi-stack variant failed on 30%.

Computational efficiency was also significantly improved. As shown in the following figure, the number of states expanded (a proxy for CPU effort) remained much lower and scaled more gracefully with sentence length in the Simplified Model compared to the Model 2 variants.

Average number of expanded states across different target sentence lengths for the three models.

Translation Quality

Human evaluation categorized translations as "Correct," "Okay," or "Incorrect." The Simplified Model achieved an accuracy of 59.6%, outperforming the Multi-Stack Model 2 (54.2%). Qualitative examples of these categories are provided in the table below.

Examples of German-to-English translations categorized by human judgment.

Conclusion

The findings suggest that for relatively simple translation models, modeling deficiencies—rather than search errors—are the primary bottleneck for quality. By simplifying the underlying model to improve search efficiency, the authors provided a more reliable foundation for SMT. Future work involves adapting these decoding heuristics to more complex models (e.g., IBM Models 3-5) and incorporating more sophisticated linguistic processing.

Summary updated

BibTeX
@inproceedings{wang1997decoding,
  author = {Ye-Yi Wang and Alex Waibel},
  title = {{Decoding Algorithm in Statistical Machine Translation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {1997},
  doi = {10.3115/976909.979664},
}
Figure