How statistical machine translation (SMT) chooses a sentence: from training data to output
See how phrase-based SMT learns translation patterns from parallel text, combines phrase, language, and reordering scores, and why data and language pair matter when comparing it with neural MT.
How statistical machine translation (SMT) chooses a sentence: from training data to output
Statistical machine translation (SMT) learns probabilities of cross-language correspondences from translated examples, then scores candidate translations and selects one that best fits the input. In a representative phrase-based SMT system, a sentence is translated in consecutive word sequences called “phrases,” while a separate model evaluates target-language fluency and word order. Here, “phrase” does not necessarily mean a grammatical noun phrase or clause.
What data trains the model
SMT systems commonly use a parallel corpus: source and target sentences aligned as pairs. With many Korean and English versions of the same manual, for example, the system estimates which words and spans correspond. A monolingual corpus in the target language can also train a language model.
A typical phrase-based training workflow is below. Actual implementations vary by tool and model type.
Sentence-aligned parallel corpus
→ preprocessing and word alignment
→ extract phrase pairs consistent with the alignments
→ phrase translation table and scores
Target-language corpus
→ train target-language model
Phrase table + language model + reordering/length scores
→ decoder searches candidates and selects a sentenceWord alignment marks which words in parallel sentences correspond. Phrase extraction collects consecutive spans that do not conflict with those alignments. A span in one language may correspond to several words in the other, so the table can contain short expressions that a word-for-word dictionary would miss. Phrase tables include values such as relative frequencies or lexical weights for comparing candidates.
The decoder combines several scores
When an input has multiple possible segmentations and translations, a decoder searches candidate sentences and combines model scores to choose a high-scoring one. Common components in phrase-based models include:
| Component | What it assesses | What may happen if it is missing or weak |
|---|---|---|
| Phrase translation model | How plausible a source/target phrase pair is | Word correspondences may be right while the phrase sounds unnatural |
| Target-language model | How naturally the candidate continues in the target language | Joined translation fragments may sound awkward or ungrammatical |
| Reordering model | How much target word order may differ from source order | Word order may remain too literal for a language pair with different syntax |
| Length/phrase costs | Whether to counter a tendency toward outputs that are too long or short | Words may be omitted or added unnecessarily |
Traditional phrase-based SMT does not choose using a single probability alone. It assigns weights to features such as translation score, target-language fluency, word order, and length, then combines them. The decoder looks for a candidate with a high combined score. Changing the weights can change the ranking even with the same data. Decoding usually limits its search with methods such as beam search instead of enumerating every possible sentence, so search settings also affect the output.
Understand the workflow through a published Moses example
The Moses phrase-based tutorial uses a toy model to translate the German sentence das ist ein kleines haus into the English this is a small house. Its phrase-table example includes the pair das ist and this is; that score helps the decoder assess the pair as a candidate. This describes a small example published in the tutorial; it is not a claim that we reran the translation.
The decoder finds untranslated spans in the input, creates options from the phrase table, and appends them to partial translations. A candidate receives scores from the phrase model as well as the English language model, reordering cost, and length score. For example, it compares which continuation after this is forms a more natural English sentence, then keeps higher-scoring partial paths during search. The final output is a candidate selected under those scores and search limits; that does not guarantee human-like understanding of meaning.
Strengths and conditions that lead to errors
The phrase table, language model, and reordering features expose separate parts that contribute to a score. This explicit structure can help inspect which table entry suggested a phrase or analyze the effects of domain data and weight changes. On the other hand, names and expressions rarely seen in training may have no suitable phrase entry, and alignment errors can flow into the phrase table. Even if short spans translate well, the system can miss long-distance sentence relations, context-dependent word senses, or consistent terminology. A language model's preference for fluent sentences does not ensure that facts and meaning are correct.
To diagnose an error, check more than whether the output has a “low translation probability”:
**Check whether the source span is absent from training data.** New words, names, and domain terms may be missing or rare in the parallel corpus.
**Inspect phrase-table options and word alignment.** Check whether a span boundary is wrong or whether a frequent but differently meant span was selected.
**Inspect language-model and reordering effects separately.** Check whether a more fluent candidate preserves the source's conditions, negation, and participants.
**Evaluate on representative test data.** Review error types for the actual domain and language pair, rather than relying on one or two sentences.
Comparing SMT with neural machine translation
Neural machine translation (NMT) learns contextual representations and translation relations with neural networks; phrase-based SMT searches combinations of explicit translation spans and weighted scores. In a 2017 comparison across nine language directions, NMT tended to produce more fluent translations with more accurate word order and inflections than phrase-based SMT, but it performed poorly on very long sentences (Toral & Sánchez-Cartagena, 2017). In a separate 2017 English–French multi-domain experiment, phrase-based SMT trained on mixed-domain data outperformed generic NMT, and the gap narrowed as domain-specific data was added to NMT (Farajian et al., 2017). These are results from particular language pairs, datasets, and periods; they should not be generalized into a rule that one method is always better for every language or product.
If choosing a system for real work, compare currently available candidates on representative sentences from the same domain. Review translation quality as well as errors involving names, numbers, negation, terminology, and omissions or reordering in long sentences. This is an evaluation procedure inferred from research showing that results can vary by language pair and domain, not a claim that a particular SMT system is better today.
References
[Koehn, Och & Marcu (2003), Statistical Phrase-Based Translation](https://aclanthology.org/www.mt-archive.info/HLT-NAACL-2003-Koehn.pdf)
[Moses Phrase-Based Tutorial](https://www2.statmt.org/moses/?n=Moses.Tutorial)
[Toral & Sánchez-Cartagena (2017), A Multifaceted Evaluation of Neural versus Phrase-Based Machine Translation for 9 Language Directions](https://aclanthology.org/E17-1100/)
[Farajian et al. (2017), Neural vs. Phrase-Based Machine Translation in a Multi-Domain Scenario](https://aclanthology.org/E17-2045/)
References
- Koehn, Och & Marcu (2003), Statistical Phrase-Based Translation
- Moses Phrase-Based Tutorial
- Toral & Sánchez-Cartagena (2017), A Multifaceted Evaluation of Neural versus Phrase-Based Machine Translation for 9 Language Directions
- Farajian et al. (2017), Neural vs. Phrase-Based Machine Translation in a Multi-Domain Scenario