Modeladvanced
Lexicalized reordering model
Also called MSD reordering model.
The probability that a phrase pair is placed monotone, swapped or discontinuous relative to the previous phrase, learned per phrase pair.
The lexicalized reordering model gives each phrase pair of a phrase-based model its own probabilities for three orientations: monotone (the phrase follows the previous phrase directly in the source), swap (it comes directly before the previous phrase in the source) and discontinuous (anything else). The probabilities are counted from the word-aligned training data when the phrase pairs are extracted. The plain distortion cost only penalizes the distance of a jump, the same for all words; the lexicalized model can learn that, for example, a French adjective is often swapped with the noun before it. It is a feature of the log-linear model, next to the distortion cost.
The machine
Direction and notation. Translation runs from the source to the target , and the phrases are placed in target order, left to right. Spans are fencepost: the source span covers , and the target span covers . Logs are natural.
Orientation in decoding. A derivation places phrase pairs with source spans in target order, with a virtual phrase at the start. The orientation of phrase with respect to phrase is
- monotone if : it starts right where the previous phrase ended;
- swap if : it ends right where the previous phrase started;
- discontinuous otherwise.
Orientation in training. For an extracted phrase pair with source span and target span , the word before the target phrase is , and its alignment decides the orientation. The pair is monotone if is aligned to , the word before the source phrase (the alignment point at the top left of the pair in the alignment matrix), swap if is aligned to , the word after the source phrase (the top right), and discontinuous otherwise. At the start of the sentence, counts as an alignment point.
Estimation. With the number of extractions of the pair with orientation , the relative frequency estimate is
Most phrase pairs are seen only a few times, so this estimate is usually smoothed toward the orientation distribution of all pairs.
The feature. For a derivation with phrase pairs and orientations , the feature is . Moses splits it into one feature per orientation, each with its own weight, and also uses a second model for the orientation of the next phrase with respect to the current one. With both directions and three orientations, that gives six weights.
Example. Translate f = maison bleue into English. Suppose the training data gives these orientation probabilities:
| phrase pair | monotone | swap | discontinuous |
|---|---|---|---|
| maison, house | 0.4 | 0.5 | 0.1 |
| bleue, blue | 0.3 | 0.1 | 0.6 |
For the order "blue house", the first phrase bleue has the source span (1, 2) and does not start at 0, so it is discontinuous. Then maison with span (0, 1) ends where bleue started, so it is a swap. The score is . For "house blue", both phrases are monotone, with the score . The lexicalized model prefers "blue house" by . The distance-based distortion cost gives to "blue house" and to "house blue", so on its own it prefers the wrong order, and only the language model could correct it.
What it counts
The model counts orientations: three numbers per phrase pair, or six with both directions.
- Training adds two lookups in the alignment matrix for each extracted phrase pair, so it costs no more than phrase pair extraction itself. The reordering table has one row per phrase pair, the same size as the phrase table.
- Decoding adds one table lookup per phrase. The orientation of a new phrase needs the start and the end of the previous phrase, so a stack decoder must keep the start of the last phrase in its state, next to the end. Hypotheses that differ in it can no longer be recombined, which makes the search space a little larger.
Relation to other models
- Distance-based distortion. The plain distortion cost depends only on the jump width. The lexicalized model depends only on the orientation class and the phrase pair. They measure different things, and systems use both.
- Phrase-based model. The lexicalized reordering model is one feature family of the phrase-based model; it does not change the derivations, only their scores.
- Hierarchical reordering. Galley and Manning (2008) decide the orientation with respect to the largest block of earlier phrases that is adjacent in the source, not the single previous phrase. This makes the classes depend less on how the source was segmented and captures swaps of longer blocks.
- Inversion transduction grammar. An ITG also has two orientations, straight and inverted, but it applies them to nested constituents at all levels, not only to adjacent phrases.
- Hierarchical phrase-based model. Hiero writes the reordering into its rules with gaps, so it needs no separate orientation model for the reordering inside a rule.
Known results in the model
- The orientations partition the cases (theorem). In decoding, monotone and swap cannot hold together for nonempty phrases: and would give . So every placement has exactly one orientation.
- Training can be ambiguous. In training, can be aligned to both and , so both tests can succeed. Implementations test monotone first. With a word-based test, a pair is also called discontinuous when is unaligned, even if the phrase follows its neighbour directly; this is a property of the definition, and the block-based test of Galley and Manning (2008) reduces it.
- Gains over distance only (measurement). Tillmann (2004) and Koehn et al. (2005) reported better translation scores with orientation probabilities than with the distance-based cost alone.
- Local reordering only. The model scores each step relative to its neighbour, and it cannot express long-distance patterns such as moving a verb to the end of a clause; long jumps all fall into the discontinuous class.
References
- Tillmann 2004, the orientation of a phrase with respect to the previous phrase and its probability given the phrase
- Koehn et al. 2005, Section 2.6 (lexicalised reordering: the monotone, swap and discontinuous orientations, read from the alignment points at the top left and top right of a phrase pair)
- Philipp Koehn, Statistical Machine Translation, Cambridge University Press, 2010, Chapter 5 (phrase-based models: lexicalized reordering)
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag 3HD1N4 Edit this page History Report an error Markdown