Statistical Machine Translation Foundations › From Alignments to Phrase Pairs

Michael BrenndoerferNovember 26, 20264 min read
Language AI HandbookAll chapters
Part 27 of 67Machine Translation and Speech Translation
Chapter 190Statistical Machine Translation Foundations › From Alignments to Phrase Pairs
Reading section 4 of 12 · From Alignments to Phrase Pairs · 4 minSection 4 of 12 · 4 min

Section 4 of 12 · 4 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

Word-level translation is obviously insufficient. Idioms, collocations, and morphology all demand larger units. The move that defined phrase-based SMT was to derive those units from the alignments rather than annotate them: any contiguous source span that is consistently aligned to a contiguous target span becomes a phrase pair, with no requirement that it be a linguistic constituent.

Koehn, Och, and Marcu (2003) compared phrase extraction methods and showed how alignment-based extraction learns multiword entries without syntactic annotations.

Phrase Table

A dictionary from source phrases to a list of candidate target phrases, each with one or more scores (direct and inverse translation probability, lexical weights) and often a count. Entries are induced automatically from word-aligned bitext; "phrase" here means "contiguous token sequence," not "syntactic constituent."

Extracting Consistent Phrase Pairs

The extraction rule (Koehn, Och, and Marcu, 2003) is a consistency condition. For a source span [i1,i2][i_1, i_2] and a target span [j1,j2][j_1, j_2]:

  1. At least one alignment point connects the two spans.
  2. Every alignment point whose source index is in [i1,i2][i_1, i_2] has its target index in [j1,j2][j_1, j_2].
  3. Every alignment point whose target index is in [j1,j2][j_1, j_2] has its source index in [i1,i2][i_1, i_2].

Conditions 2 and 3 require that all links involving either span stay inside both spans. Extractors can start with the shortest compatible target span and extend it across neighboring unaligned tokens. A length-nn sentence has n(n+1)/2n(n+1)/2 nonempty contiguous spans. A maximum phrase length reduces the number of candidates; the pinned Moses phrase-based trainer defaults to seven tokens.

The test operates on token spans. For example, if “look up the word” aligns to “busca la palabra,” a consistent pair can include just the first two target tokens and their linked source span, even though “busca la” is not a complete phrase in the syntactic sense. The extraction test depends on the supplied links.

Links may cross inside the proposed spans. A candidate is inconsistent when a link connects a position inside one span to a position outside the other span. A single misplaced boundary-crossing link can therefore prevent the extractor from retaining that phrase pair.

Scoring the Phrase Table

For phrase extraction and counting here, eˉ\bar e is the phrase we condition on and fˉ\bar f is its paired phrase. The English–Zeta decoder learns that direction from English to Zeta. A relative-frequency estimate is

p(fˉ∣eˉ)=count(eˉ,fˉ)∑fˉ′count(eˉ,fˉ′).p(\bar{f} \mid \bar{e}) = \frac{\text{count}(\bar{e}, \bar{f})}{\sum_{\bar{f}'} \text{count}(\bar{e}, \bar{f}')}.

A phrase seen once with only one observed partner gets a relative-frequency estimate of 1.0 in that direction. The inverse probability p(eˉ∣fˉ)p(\bar{e}\mid\bar{f}) uses the same pair count and sums over conditioning phrases paired with fˉ\bar f in the denominator. Both estimates can equal 1.0 if neither phrase has another observed partner. Keeping both as weighted features exposes directional ambiguity, while the count shows how much data supports the estimate.

Moses commonly uses direct and inverse phrase probabilities and direct and inverse lexical weights. For generated word fjf_j, let AjA_j be the set of conditioning positions aligned to it within the phrase pair. Let w(fj∣ei)w(f_j \mid e_i) be the word-level probability estimated from aligned counts. Use the special NULL word when AjA_j is empty. Koehn, Och, and Marcu (2003), section 4.4.

lex(fˉ∣eˉ)=∏j=1∣fˉ∣qj,qj={1∣Aj∣∑i∈Ajw(fj∣ei),Aj≠∅,w(fj∣NULL),Aj=∅.\text{lex}(\bar{f} \mid \bar{e}) = \prod_{j=1}^{|\bar{f}|} q_j,\qquad q_j = \begin{cases}\dfrac{1}{|A_j|}\sum_{i \in A_j} w(f_j \mid e_i), & A_j \ne \varnothing, \\[4pt] w(f_j \mid \text{NULL}), & A_j = \varnothing.\end{cases}

For a phrase pair with the conditioning phrase “house” and the generated phrase “la casa,” suppose “casa” aligns to “house” and “la” is unaligned. If w(casa∣house)=0.6w(\text{casa}\mid\text{house})=0.6 and w(la∣NULL)=0.1w(\text{la}\mid\text{NULL})=0.1, the lexical weight is 0.6×0.1=0.060.6 \times 0.1=0.06. These are illustrative probabilities. The lexical weight adds word-level evidence as a separate feature.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy