How phrase-based translation builds a phrase table: from word alignments to translation pairs
Learn how phrase-based MT extracts consistent spans from aligned parallel sentences, scores phrase pairs, and balances coverage against noisy candidates.
How phrase-based translation builds a phrase table: from word alignments to translation pairs
Phrase-based translation uses runs of several words as translation units instead of translating only one word at a time. During training, word alignments in parallel sentences help identify span pairs that can be added to a phrase table. A table entry proposes a translation; it does not guarantee that the phrase is right in every input context.
A translation phrase is not necessarily a grammatical phrase
Here, a phrase is a consecutive span of words in a sentence. It need not be a noun phrase or another complete grammatical constituent. Classic phrase-based SMT learns spans that are statistically useful, so the phrase table may contain word sequences that are not complete grammatical units. The system later joins and reorders such spans to build a sentence.
This article focuses on how the phrase table introduced in the SMT overview is built, rather than on the full system scoring and decoding process.
From word alignment to phrase pairs
First, collect sentence-aligned translations. An alignment model estimates which source and target words correspond in each pair. Then, select consecutive spans on both sides and extract pairs that do not violate the alignment links. Implementations may use several alignment models, ways of combining alignments, and extraction heuristics.
Sentence-aligned parallel corpus
→ estimate word alignments for each pair
→ extract consecutive span pairs compatible with alignments
→ count occurrences across sentence pairs
→ store translation candidates and scores in a phrase tableCheck whether the phrase boundaries are consistent
The following is a hypothetical example of the extraction rule, not training data or output from a particular translator. Suppose the German sentence das ist gut and English sentence this is good have these word links:
| Source word | Aligned target word |
|---|---|
das | this |
ist | is |
gut | good |
Candidate spans must be consecutive on each side, and their alignment links must stay within the proposed pair.
| Source span | Target span | Decision | Reason |
|---|---|---|---|
das ist | this is | Consistent | Both links stay inside the two spans |
das | this is | Inconsistent | Target is links to source ist, outside das |
ist gut | is good | Consistent | All links remain within the span boundaries |
This consistency condition filters out candidates whose internal words connect to words outside the proposed pair. Extraction methods may make additional choices about unaligned words. Therefore, the table depends on both the sentence pair and the selected word alignment and extraction rules.
Gather candidates, then assign scores
A pair observed once may become a candidate, but its frequency and alignment quality matter when estimating confidence. A common baseline counts how often a source span appears with different target spans and estimates translation probabilities from relative frequency. Some systems also use probabilities in both directions and lexical weights, so a rare pair is not trusted based only on a small raw count. Koehn, Och, and Marcu’s phrase-based study discusses phrase translation probabilities and lexical weighting.
How broadly to collect phrase pairs and how aggressively to filter questionable ones are competing goals. Narrow extraction can reduce inaccurate candidates but may miss valid pairs because of alignment errors. Broader extraction may improve the chance of covering rare expressions while adding noise. Deng et al. frame extraction as a precision–recall balance and explain that word-alignment errors can cause valid pairs to be missed. This does not mean every extraction method has the same error rate.
A sequence for diagnosing a phrase-table problem
If the translator proposes an unnatural span for an expression, check:
**The parallel sentence pair.** Confirm that the source and target sentences really correspond and match the current content and domain.
**The word alignment.** A missing or incorrect link for a key word can change the boundaries of extracted candidates.
**Span boundaries and frequency.** Check that the source and target spans are consecutive, and how often they appeared in which sentence contexts.
**Do not approve based on a score alone.** The phrase table supplies candidates and scores observed in training data. Separately check whether negation, numbers, conditions, and specialist meaning fit the current context.
References
[Koehn, Och & Marcu (2003), Statistical Phrase-Based Translation](https://aclanthology.org/www.mt-archive.info/HLT-NAACL-2003-Koehn.pdf)
[Deng, Xu & Gao (2008), Phrase Table Training for Precision and Recall: What Makes a Good Phrase and a Good Phrase Pair?](https://aclanthology.org/P08-1010/)
[Martzoukos, Costa Florêncio & Monz (2013), Investigating Connectivity and Consistency Criteria for Phrase Pair Extraction in Statistical Machine Translation](https://aclanthology.org/W13-3010/)
References
- Koehn, Och & Marcu (2003), Statistical Phrase-Based Translation
- Deng, Xu & Gao (2008), Phrase Table Training for Precision and Recall: What Makes a Good Phrase and a Good Phrase Pair?
- Martzoukos, Costa Florêncio & Monz (2013), Investigating Connectivity and Consistency Criteria for Phrase Pair Extraction in Statistical Machine Translation