Elamur Research

Inducing Sentence Structure from Parallel Corpora for Reordering

Paper · 2011 · John DeNero and Jakob Uszkoreit

Summary

An English sentence can put a verb before its object where a Japanese translation puts the object before the verb. A machine translation system can make that change before it starts choosing Japanese words, but it first needs to know which English words to move together. The authors’ method, Structure Induction for Reordering, or STIR, learns those groupings from English sentences paired with Japanese translations. It uses word alignments, which record which words correspond across the two sentences, as evidence about where an English sentence can be divided. The resulting parser can then divide a new English sentence on its own.

The method gives the divisions a precise job. Each division creates a pair of groups that can stay in their original order or trade places. A group at the bottom of the tree can also contain several words whose order is decided locally. A tree that separates a verb from its object can let the object move as a unit. A tree that puts the subject and verb together may make the desired order impossible. During training, the authors use the Japanese side to screen out trees that cannot support the observed rearrangement. They choose one compatible tree for each example and use it to teach the English parser and the classifiers that decide what to move.

On a held-out set of 396 manually aligned English–Japanese sentence pairs, the full pipeline trained with annotated alignments scored 80.5 on the paper’s reordering measure. The comparison system based on a supervised parser scored 66.0. When STIR learned from automatic alignments, its reordering score was 49.5. The translation experiment showed a related distinction. On the English-to-Japanese test split, STIR trained with annotated alignments reached a BLEU score of 22.86, close to the supervised preordering system’s 23.28 and above the phrase-based baseline’s 19.02. The version trained with automatic alignments reached 20.66 on the same split.

The experiments show that parallel sentences can supply enough structural evidence for effective preordering without a treebank of manually parsed sentences. The strongest translation result still depends on manually annotated word correspondences. And the held-out parsing evaluation measures agreement with trees inferred from alignments. The paper’s evidence for the trees is therefore practical and specific: their groupings help predict changes of order that improve English-to-Japanese translation.

Deep dive: Inducing Sentence Structure from Parallel Corpora for Reordering

Inducing Sentence Structure from Parallel Corpora for Reordering shows how English–Japanese word alignments can teach a parser where words can move. · about 38 minutes to read

The problem and its context

Moving words before translating them

A translation can preserve the roles of a subject, verb, and object while placing them in a different sequence. For English and Japanese, the paper emphasizes the contrast between subject–verb–object and subject–object–verb order. The choice a system faces is larger than whether to move a particular word. An object may be a phrase with an internal arrangement of its own. A useful reordering operation must be able to move that phrase past the verb while preserving whatever parts of its internal arrangement should stay together.

Preordering treats this as an operation on the English input. The result still contains the English words, but in a sequence intended to be closer to the sequence of their Japanese counterparts. Then the translation system works on that rearranged input. During training it sees rearranged English alongside Japanese, so the alignment and phrase extraction stages also operate on the new order. The same kind of rearrangement is applied to a fresh English sentence at translation time.

The paper distinguishes this strategy from integrated reordering, where the decoder considers jumps or changes in order while it is choosing translations. An integrated decoder can weigh ordering evidence alongside evidence about which target words and phrases make a plausible sentence. That interaction is valuable, but when the final sentence differs from a reference, it is hard to tell how much of the discrepancy came from order and how much came from the choice of words. Preordering makes it possible to examine the proposed permutation before generating any Japanese words. It also allows the procedure that chooses the permutation to use a different search structure from the one used by the translator.

The phrase-based approach associated with Statistical Phrase-Based Translation is the translation setting for the paper’s main experiment. In that setting, pieces of the input can be translated using phrases learned from parallel sentences. A decoder’s integrated reordering component can account for differences in the order of those pieces. Preordering changes the sequence on which the decoder operates. This can matter when a structural move would otherwise require the decoder to jump across a substantial part of the source sentence.

What syntactic preordering already offered

Earlier preordering systems used a supervised source parser to identify phrases and their relationships. Once the parser supplied a tree, a separate procedure rearranged parts of that tree. Some procedures used rules written by hand. Others learned which changes to make from examples. The authors place their work in this tradition, including Clause Restructuring for Statistical Machine Translation and work on using a dependency parser for subject–object–verb languages. They compare directly with Genzel’s approach, which learns reordering rules for trees supplied by a supervised parser.

The supervised parser brings an analysis learned from a treebank. This is a natural way to obtain phrase boundaries, but it makes the preordering system dependent on a separate source of syntactic supervision. It also supplies structure chosen for the parser’s original task. DeNero and Uszkoreit ask whether evidence from translation itself can determine which boundaries the application needs. A boundary is useful in this setting if it makes a relevant rearrangement possible and the system can learn to recognize it in a fresh sentence.

The paper also describes work that learns preordering directly as a permutation problem, without an intervening parse. That work established that a parallel corpus could teach source-side ordering even when a pipeline lacked a supervised parser. STIR retains a separate parsing stage. It uses the parse to restrict the set of permutations, with the aim of making larger movements expressible as simple decisions over groups. This makes the choice of tree consequential even before the reorderer assigns a preference to any move.

A related idea appears in integrated translation systems. A Syntax-based Statistical Translation Model represents changes in order through rotations of a source tree. The paper also describes approaches that separate the parameters for reordering and translation while making the decisions jointly. STIR moves the ordering decision earlier. Its preordering component chooses an English permutation without consulting a Japanese sentence or a target-side fluency score. The subsequent translation system can still have its own integrated reordering features.

What parallel text adds to grammar induction

The paper situates its approach alongside research on inducing syntactic structure from text. In the monolingual work it describes, a learner looks for hierarchical structure that explains the source sentences. An evaluation may then compare the induced structures with the annotations of a reference treebank. Inside-Outside Reestimation From Partially Bracketed Corpora and A Generative Constituent-Context Model for Improved Grammar Induction are part of the background to this discussion. The paper also describes work that uses priors or constraints to guide the search for structure.

A Japanese translation supplies information beyond the English sequence. Its alignments may show that words adjacent in English remain together but appear on the opposite side of another group. They may also show that an apparently plausible English group cannot move as a unit because its Japanese correspondences are interleaved with those of another group. The authors use such patterns to constrain a tree for the English sentence. The evaluation then asks whether a parser can recover useful groupings from English and whether the resulting movements help translation.

There were precedents for using bilingual evidence to induce grammar. The paper describes alignment-based constraints on probabilistic context-free grammars and multilingual induction based on lexical statistics and dependency relations. It also draws a formal connection to Stochastic Inversion Transduction Grammars and Bilingual Parsing of Parallel Corpora. The straight and inverted combinations of an inversion transduction grammar have a counterpart in STIR’s choice to preserve or exchange two child spans. The paper distinguishes its purpose from that of phrasal synchronous grammar induction, where learning phrase translations is central. STIR uses its tree chiefly to represent which movements are possible above the phrase level.

The method, step by step

A tree gives the reorderer its choices

The central representation is a binary tree over an English sentence. Each internal node groups a consecutive stretch of source words and divides it into a left child and a right child. The tree is unlabeled. A node records the boundaries of its stretch and where it splits, without identifying it as a noun phrase, verb phrase, or any other syntactic category. The leaves can contain more than one word. When that happens, the reorderer can arrange the words inside the leaf as a small local problem.

Consider the subject, verb, and object as groups for the moment. If the verb and object form a subtree, its children can swap while the subject stays where it was. The reordered sentence can then place the object before the verb. If the tree instead groups the subject with the verb, the reorderer can reverse their internal order or move their entire group relative to the object. Neither operation puts the object between the subject and verb. The parser is therefore deciding whether the right order is expressible. The classifier at a particular node is deciding whether to use one of the moves the tree allows.

The paper illustrates this distinction with a development example containing the English words “lexicon,” “added,” and “to.” Its diagram traces the Japanese alignment into source spans and shows a tree selected when those alignments are visible. It also shows the tree chosen when the system sees English alone. The English-only tree groups the subject with the verb, so the reorderer cannot separate them as needed. The example pinpoints an error that would persist even if the reorderer chose its best available actions.

Learning and applying STIR preordering

The steps in order.

Learning and applying STIR preorderingStep 1: Align English sentences with Japanese translations1. Align English sentences with Japanese translationsStep 2: Project source spans onto aligned target positions2. Project source spans onto aligned target positionsStep 3: Select binary trees compatible with those projections3. Select binary trees compatible with those projectionsStep 4: Train the English parser on selected trees4. Train the English parser on selected treesStep 5: Train local reorderers from alignment-derived decisions5. Train local reorderers from alignment-derived decisionsStep 6: Parse each new English sentence6. Parse each new English sentenceStep 7: Apply local permutations and pass English to translation7. Apply local permutations and pass English to translation

Representing groups as spans

The authors number word positions starting at 0. A span is specified by a left boundary and an excluded right boundary. This makes adjacent child spans easy to describe: the boundary at which the first child ends is also the boundary at which the next child begins.

i ∈ [k, ℓ) ⇔ k ≤ i < ℓ

Here i is a word position, k is the left boundary, and ℓ is the right boundary. The square bracket includes k, while the parenthesis excludes ℓ. The symbol ∈ denotes membership, and ⇔ means that the two statements are equivalent. If e is the English word sequence and n is its length, the whole sentence is the root span [0, n).

A tree t consists of a set T of terminal spans and a set N of nonterminal spans. The root belongs to one of those sets. Each nonterminal has a unique split m between its boundaries, with children [k, m) and [m, ℓ). The terminal spans cover the sentence without overlapping. A terminal may consequently stop the recursion over a group of words, whereas a nonterminal commits the tree to a specific way of dividing the group. It is useful to refer to the collection of splits separately.

N⁺ = { (k, m, ℓ) : [k, ℓ) ∈ N, k < m < ℓ, { [k, m), [m, ℓ) } ⊆ T ∪ N }

Here N⁺ is the set of split triples. The colon inside the braces means “such that.” The positions k, m, and ℓ specify the parent’s boundaries and its split. The two child spans must belong to the union T ∪ N, meaning each child can itself be a terminal or a nonterminal. The symbol ⊆ expresses that requirement as a subset relation. Every triple records a potential exchange between two entire child groups.

Turning alignments into constraints

The parallel parser begins with an English sequence e, a Japanese sequence f, and a set A of alignment links. Each link joins the English position i to the Japanese position j. The first preprocessing step removes unaligned Japanese positions from the coordinate system. A gap occupied solely by unaligned Japanese words then has no effect on whether two projected stretches touch. The renumbering preserves the order of the aligned Japanese positions.

c(j) = |{ j′ : j′ < j and there exists i with (i, j′) ∈ A }|

Here c(j) is the number of aligned target positions strictly before j, while j′ ranges over those earlier positions. The vertical bars count the distinct positions in the set. A Japanese position linked to several English positions is counted once. The link set A supplies the evidence that a position is aligned.

A′ = { (i, c(j)) : (i, j) ∈ A }

Here A′ is the alignment in compressed target coordinates. The source position i stays the same, while the original target position j becomes c(j). This is a change to the alignment representation used by the parallel parser. It does not require the translation experiment to remove unaligned Japanese words from its output.

For an English word, the authors next collect the target positions linked to it. The word’s projection is the interval from the earliest linked position through the latest. This retains a range even when an English word aligns to multiple Japanese positions.

Jᵢ = { j : (i, j) ∈ A′ }

Here Jᵢ is the set of compressed target positions j associated with source position i. In this expression j already refers to the renumbered coordinates because membership is checked in A′.

ψ(i) = [min Jᵢ, max Jᵢ + 1) if Jᵢ ≠ ∅, and ∅ otherwise

Here ψ(i) is the target projection of word position i. The operators min and max choose the least and greatest elements of Jᵢ. Adding 1 makes the last aligned position part of the half-open interval. The symbol ∅ means the empty set and ≠ means unequal. A source word with no links has an empty projection.

ψ(k, ℓ) = ⋃ { ψ(i) : k ≤ i < ℓ }

Here ψ(k, ℓ) is the projection of the English span [k, ℓ). The union operator ⋃ collects all the projections ψ(i) inside it. A source group can be checked against the target as a whole even though its individual words may align to multiple positions or to none.

The paper’s contiguity test asks whether any alignment link enters a group’s target projection from outside the English group. The group must also have alignment evidence. An entirely unaligned span fails the contiguity test. In the formula, ⇒ means that whenever the condition on its left holds, the condition on its right must hold.

For every (i, j) ∈ A′, j ∈ ψ(k, ℓ) ⇒ i ∈ [k, ℓ)

The positions i and j here are the source and compressed target ends of a link. The condition rules out a link whose Japanese end falls inside the projected set ψ(k, ℓ) but whose English end falls outside the proposed group. The authors connect this kind of agreement between a source phrase and its target counterpart with phrase extraction in translation.

A second check applies at a binary split. Its children must have adjacent projections. Two nonempty projections qualify if the right boundary of either coincides with the left boundary of the other. They can appear in either order in Japanese. The definition also treats an empty projection as adjacent to its sibling. That convention belongs to the adjacency check. It does not make an entirely unaligned terminal satisfy the separate contiguity check.

These conditions give the alignment its teaching role. The parser can group the English words according to a hierarchy only if the chosen groups are consistent with their Japanese correspondences and the chosen divisions can be combined on the target side. A valid division may preserve the English order of the children or reverse it. In either case, the tree records what should move together. The orientation can be recovered from the alignment and supplied as a separate training decision.

Selecting a compatible tree

An alignment can make several trees possible for the same English sentence. The authors assign a score to each tree by adding the contributions of its terminals and of its split nonterminals. Some terms describe a group treated as an indivisible unit by the parser. Others describe a particular way of breaking a group into children. Keeping the contributions local makes it possible to compare complete trees without constructing every candidate in full.

s(t) = Σ₍ₖ,ℓ₎∈T wₜ · φₜ(k, ℓ) + Σ₍ₖ,ₘ,ℓ₎∈N⁺ wₙ · φₙ(k, m, ℓ)

Here s(t) is the score of tree t. Each Σ adds terms over the indicated set. In the first sum, (k, ℓ) denotes the boundaries of a span in T, and φₜ describes that terminal. In the second, (k, m, ℓ) belongs to N⁺, and φₙ describes that nonterminal and its split. The vectors wₜ and wₙ assign a weight to each corresponding feature. The dot · indicates the sum of products between matching weights and feature values. This form is used both in the parallel parser and in the English-only parser, with different features and permitted choices.

The parallel parser uses a chart, a record of the best result for each span. It can fill the chart from shorter spans to longer ones. At each entry it compares leaving the span whole with trying the admissible divisions. When a rule assigns a score of negative infinity, the option cannot win against a valid alternative with a finite score.

sₜ(k, ℓ) = wₜ · φₜ(k, ℓ) if [k, ℓ) aligns contiguously, and −∞ otherwise

Here sₜ(k, ℓ) is the score of using [k, ℓ) as a terminal. The vector φₜ(k, ℓ) gives its terminal features and wₜ their weights. The symbol −∞ marks a disallowed choice. For the parallel parser, the terminal decision must pass the alignment test.

g(k, m, ℓ) = s(k, m) + s(m, ℓ) + wₙ · φₙ(k, m, ℓ)

Here g(k, m, ℓ) is the candidate score for splitting the span at m. The functions s(k, m) and s(m, ℓ) give the best scores available for the two child spans. The final term scores the parent’s choice of split, using the features φₙ and weights wₙ. The paper uses the same split-scoring form in both parsers.

sₙ(k, ℓ) = max { g(k, m, ℓ) : k < m < ℓ and ψ(k, m) is adjacent to ψ(m, ℓ) }

Here sₙ(k, ℓ) is the best score for making [k, ℓ) a nonterminal. The max operator chooses the largest score over the eligible split points m. The projections ψ(k, m) and ψ(m, ℓ) are on the Japanese side. A split with nonadjacent projections is excluded. If no split is available, the nonterminal option has score −∞.

s(k, ℓ) = max { sₜ(k, ℓ), sₙ(k, ℓ) }

Here s(k, ℓ) is the best score for any permitted tree over the span. The terminal score sₜ and the best nonterminal score sₙ represent its alternatives. Taking the best at the root finds the highest-scoring alignment-compatible tree. The authors use the CKY algorithm, the chart procedure that makes this reuse of shorter-span calculations possible.

The score is a way to choose among compatible trees. The authors want a tree whose shape will be recognizable from English and whose reordering decisions can be predicted reliably. Their parallel parser therefore uses a compact set of 4 features. One adds the log contiguity statistics for terminals longer than a word. Another counts single-word terminals. A further feature counts terminals above a length threshold. The remaining feature records whether the parentheses and brackets in a span are balanced. The length and punctuation settings impose large negative scores on undesirable choices, and the statistic for longer terminals has weight 1. The single-word terminal count has weight 0.3, which the authors chose by searching along that weight. They break ties randomly.

The data behind the contiguity statistic come from a larger aligned corpus. A single sentence’s alignment says whether a proposed unit is compatible with that particular translation. The statistic says how often the word sequence generally has a contiguous counterpart. This lets a longer group receive credit for behaving like a unit elsewhere in the data. The structural and punctuation terms provide additional preferences when the single alignment leaves several trees open.

Learning to parse from English alone

Next the English-only parser learns from the trees selected by the parallel parser. Its training example is a sentence paired with a chosen tree. It receives no alignment features when it predicts a tree, and it does not impose the Japanese projection constraints. Its search space instead allows well-formed binary trees with a fixed maximum terminal length L. The development experiments favored L = 2 for English-to-Japanese preordering. That limit leaves room for local movement inside a terminal while keeping the choices over a terminal small.

sₘ(k, ℓ) = wₜ · φₜ(k, ℓ) if ℓ − k ≤ L, and −∞ otherwise

Here sₘ(k, ℓ) is the English-only terminal score. The difference ℓ − k is the terminal length, L is its maximum, and the weights wₜ score its features φₜ. An overlong terminal is assigned −∞.

s(k, ℓ) = max { sₘ(k, ℓ), max { g(k, m, ℓ) : k < m < ℓ } }

Here the outer maximum compares using the span as a single terminal with using its best binary split. The inner maximum considers split points m between the boundaries k and ℓ. The function g adds the two best child scores and the features of their parent split, for this parser’s feature weights. There is no projection-adjacency check. An English-only parse can therefore select a tree that turns out to be incompatible with the order of a particular translation.

For training, the parser defines a distribution over the permitted trees for each sentence. This makes it possible to reward a selected tree relative to alternatives, including alternatives with similar scores. The likelihood is conditional because it concerns possible trees for a sentence already given to the parser.

P(t | e) = exp(s(t)) / Σᵤ∈B(e) exp(s(u))

Here P(t | e) is the probability of tree t given sentence e. The function exp exponentiates the score s, and B(e) is the set of permitted well-formed trees over e. The variable u ranges over those trees. The denominator adds their exponentiated scores so the resulting probabilities sum to a full distribution.

The same decomposition that supports chart search also organizes the input to training. Each tree has one feature vector for the whole sentence. Its terminal and split features occupy separate parts of that vector, so identical boundary clues can receive different weights depending on the role they play.

φ(t, e) = ( Σ₍ₖ,ℓ₎∈T φₜ(k, ℓ), Σ₍ₖ,ₘ,ℓ₎∈N⁺ φₙ(k, m, ℓ) )

Here φ(t, e) is the full feature vector of tree t for sentence e. The parentheses join the summed terminal feature vector and the summed split feature vector into a single vector. The first Σ sums over terminal spans in T. The second sums over split triples in N⁺. The local vectors are the features φₜ and φₙ used in the score. The full weight vector w combines wₜ and wₙ in the matching order.

ℒ(w) = Σ₍ₜ,ₑ₎ log P(t | e)

Here ℒ(w) is the training objective for weight vector w, and (t, e) ranges over the selected training trees and their English sentences. The function log takes the logarithm of each conditional probability. The authors maximize this sum. With fixed selected trees, the corresponding minimization of negative log likelihood is convex.

∇ℒ(w) = Σ₍ₜ,ₑ₎ [ φ(t, e) − Σᵤ∈B(e) P(u | e) · φ(u, e) ]

Here ∇ℒ(w) is the gradient, which gives the change of the objective with respect to the weights. The first vector inside the brackets is the feature vector for the selected tree. The inner sum averages feature vectors φ(u, e) for alternative trees u, weighting each by P(u | e). The vector difference compares observed feature values with those currently expected under the parser. The outer sum accumulates that difference across the training pairs.

The expected features can be obtained without enumerating complete trees. The inside–outside algorithm computes how much probability supports a local choice, taking account of ways to fill its descendants and ways to attach it to the rest of the sentence. Let β be the inside score of a span, the log-sum of the weights of ways to build it. Let α be the outside score in normalized form, which incorporates the sentence-wide normalizer. With this convention the local expressions have the interpretation of log probabilities.

log P([k, ℓ) is terminal | e) = α(k, ℓ) + wₜ · φₜ(k, ℓ)

Here P([k, ℓ) is terminal | e) is the marginal probability that a tree for e contains that exact terminal. The outside score α(k, ℓ) accounts for the ways that span fits into a complete tree. The terminal term selects the particular choice of leaving the span whole. There is no separate inside score in this expression because including other ways to build the same stretch would also count trees in which it splits.

log P((k, m, ℓ) is a split | e) = α(k, ℓ) + β(k, m) + β(m, ℓ) + wₙ · φₙ(k, m, ℓ)

Here P((k, m, ℓ) is a split | e) is the marginal probability of a specific parent span and split m. The outside score α(k, ℓ) accounts for the rest of the tree. The inside scores β(k, m) and β(m, ℓ) account for all the ways to build the two children. The dot product supplies the contribution of the selected parent split. Exponentiating these log probabilities gives the weights for averaging the local feature vectors. The authors optimize the resulting objective with l-BFGS for 35 iterations. They restrict lexical features to very common words because the training corpus used for this step is relatively small.

The parser’s features describe both the span and its context. A terminal can be characterized by the sequence of word classes or part-of-speech tags it contains. A split can be characterized by words or word classes at the outer boundaries and on either side of the split, including pairs that span those positions. A word at a boundary can provide a clue to a group’s syntactic head, without requiring the tree to name a head for every constituent. The words immediately outside a span supply context. Length features describe the span and the relative sizes of its children, and short spans can use the corpus contiguity statistic. These features serve the parser’s task of placing boundaries. The reorderer has its own use for similar clues.

Learning when to exchange the children

Once an English tree is available, the reorderer makes a choice at each terminal and each split. At a terminal it chooses a permutation of the words in the span. At a split it decides whether to keep the left child before the right child or to exchange them. The permutation for the whole sentence is obtained by assembling the reordered children recursively. As a consequence, exchanging two child spans can move several words a long distance through decisions that each have a small set of alternatives.

σ(k, ℓ) = σ(k, m) ⧺ σ(m, ℓ) if b(k, m, ℓ) is monotone

Here σ(k, ℓ) is the permutation of the words in a nonterminal span with boundaries k and ℓ. The symbol ⧺ concatenates the already reordered child sequences. Their shared boundary is m, and b(k, m, ℓ) is the orientation chosen for this split. A monotone orientation puts the left child first, as in the source order.

σ(k, ℓ) = σ(m, ℓ) ⧺ σ(k, m) if b(k, m, ℓ) is inverted

Here the same σ and ⧺ operations combine the same two reordered children. An inverted value of b(k, m, ℓ) places the right child first. The internal order selected for each child is retained by the concatenation.

Number of terminal permutations = (ℓ − k)!

Here ℓ − k counts the words in the terminal. The factorial operator ! counts how many permutations can be formed from that many word positions. With the experimental limit L = 2, a terminal of maximum length can stay in its original order or reverse. A single-word terminal has only its original order available.

The authors use local maximum-entropy classifiers, fitting weights to reduce log loss on the alignment-derived decisions. Log loss penalizes a classifier for giving the observed choice low probability. For nonterminals, the examples come from the splits selected by the parallel parser. For terminals, the training set includes every contiguously aligned span up to the length limit, including spans the parallel parser did not choose as terminals. This broader coverage is intended to help when the English-only parser stops dividing at a different point.

The classifiers condition on the source sentence and on the span or split in question. Their decisions are independent once the tree has been chosen. A classifier for a nonterminal can consult features of its boundaries and split but does not revise its decision after seeing how the words inside its children will be ordered. Under that independence assumption, choosing the strongest local option at every node produces the optimal reordering for the given tree. A single tree traversal suffices. Jointly considering alternate parses and orientation decisions would be a different search problem.

What the classifiers can observe

Several feature types occur in both the terminal and nonterminal classifiers. Lexical features identify common words at the edges of a span. The paper uses “to” as an example of a word that can cue a change in order. Length features give the size of the span, its size relative to the sentence, and size categories. Cluster features replace individual words with automatically learned word classes. The authors obtain these classes from the English side of a large parallel corpus by optimizing its likelihood under a hidden Markov sequence representation. The classifiers can use classes at the ends of the span, at the edges next to its split, or across a short sequence of words. The paper uses several cluster inventories, with sizes specified as powers of 2 from 2³ through 2¹¹.

The classifiers can also use the coarse tags of a supervised tagger. Its inventory has 12 categories, drawn from the work on a universal part-of-speech tagset. Tag patterns enter the classifiers in the same positional forms as cluster patterns. Both allow evidence from different words to accumulate around a shared category. The clusters are learned from raw word sequences, while the tags add information from a separately supervised tagger. The paper tests the two sources together and in isolation to see how much the pipeline depends on the supervised one.

The corpus statistics play a different role. One measures how frequently an English phrase aligns contiguously. The other measures how frequently two English words that occur together have adjacent Japanese correspondences. The first can favor keeping a short group intact. The second can give evidence for making words neighbors even when they were separated in English.

P꜀(x) = count(x aligns contiguously) / count(x)

Here P꜀ is the contiguity statistic, x is a source phrase, and count records occurrences in the aligned corpus. The numerator counts occurrences satisfying the contiguity condition, and the denominator counts all occurrences of x. The authors compute this statistic for source phrases up to length 4. In the development example, the value for “added to” is 0.68.

Pᴅ(eᵢ, eⱼ) = count(co-occurrences with adjacent target positions) / count(co-occurrences)

Here Pᴅ is the adjacency statistic for the two word types found at English positions i and j, written eᵢ and eⱼ. The counts both concern that pair in the corpus. The numerator counts co-occurrences with adjacent target correspondences, and the denominator counts their co-occurrences. In the classifier this statistic is used for the source words at the outer edges of a span, which an inversion can bring together. The paper reports 0.19 for the illustrative pair “lexicon” and “to.”

Feature definitions determine what the system can generalize. A common word can offer a direct cue, while a class sequence can support a similar decision for words with comparable distributions. The corpus statistics give the local classifiers evidence accumulated over alignments other than those used to choose their individual training trees. None of these features requires access to the Japanese translation of the sentence currently being reordered.

Choosing parallel trees by downstream performance

The authors propose evaluating the parallel parser’s tree preferences by training the complete pipeline and measuring its reorderings on separate data. This is an outer selection problem. The English-only parser can be trained by conditional likelihood once the parallel trees are fixed. Changing the parallel weights can change which trees are selected, which also changes the training data for the parser and the classifiers. Assessing such a change requires fitting those later stages again.

To make the outer criterion concrete, the authors describe splitting an aligned corpus into halves A and B. Here these letters denote data partitions. The earlier A denoted the links for an individual sentence pair. The pipeline is trained on the first half and scored on the held-out second half. The held-out data provide desired English permutations for comparison. Rewriting the paper’s criterion with separate names for the two sets of weights gives the following form.

Σ₍ₑ,σ*₎∈B R(σ(arg maxᵤ∈B(e) w · φ(u, e)), σ*)

Here B is the held-out collection of sentence and reference-permutation pairs, and B(e) is the English-only parser’s search space for sentence e. The vector w denotes that parser’s fitted weights. Its tree features are φ(u, e), and arg max returns the candidate tree u with the highest score. The function σ applies the trained reorderer to that tree. The resulting permutation is compared with the reference σ* by the function R, and the leading Σ adds the scores over held-out examples. Different parallel-parser weights can lead to different fitted parser and reorderer parameters inside this criterion. The authors keep the parallel parser’s feature set small because this process is expensive to repeat across many weight choices.

The reordering measure comes from the fragmentation idea in METEOR. A run of predicted words can count as a single chunk if it follows a contiguous run of the reference in the same order. The fewer chunks it takes to account for the predicted sequence, the more of the reference’s ordering the prediction preserves. Both sequences here are permutations of English positions, so each word occurrence has a fixed identity throughout the comparison.

R(σ̂, σ*) = (|σ*| − chunks(σ̂, σ*)) / (|σ*| − 1)

Here σ̂ is the predicted permutation and σ* is the reference. The vertical bars give the reference length. The function chunks returns the smallest number of contiguous runs needed to partition the prediction so that each run is also contiguous in the reference order. Subtracting that count rewards longer correct runs. The denominator normalizes the result. At the top of the scale, a match is a single chunk and yields 1. At the bottom, each word requires its own chunk and the result is 0.

For an aligned sentence pair, the reference puts English positions in the order of the left boundaries of their Japanese projections. In the original English word order, each unaligned source word is placed to the left of the first aligned word that follows it. The reference thus uses the target alignment to establish an intended source order even though the output of the reorderer contains no Japanese words. The paper chooses this measure to inspect order directly and discusses alternatives in Reordering Metrics for MT.

Experiments and results

Two evaluations with different inputs

The paper evaluates both the proposed English permutation and the quality of the final Japanese translation. The direct evaluation can measure ordering mistakes without also measuring whether the translator chose the right vocabulary. The translation evaluation shows whether the ordering intervention helps when combined with phrase extraction, decoding, and the other features of the translation system. A good result at the first level can explain part of a good result at the second, but the evaluations use different outputs and comparison criteria.

For the annotated training set, 14,000 English sentences were drawn from the web, rendered in Japanese, and manually aligned. The translators themselves made the annotations to promote consistency. The direct evaluation uses a separate held-out set of 396 manually aligned sentence pairs. The authors also train a version using automatic alignments, to test how well the pipeline can be learned without the human links. For both kinds of pipeline training, the statistics used as features come from the large unreordered translation-training corpus with automatic word alignments.

The automatic alignments in the direct comparison come from Model 1 trained in both directions. The two directional results are then combined with a refined heuristic associated with Improved Alignment Models for Statistical Machine Translation. This setup for replacing the human links in the preordering study is distinct from the recipe for aligning the large translation-training corpus. In the translation setup, Model 1 and the hidden Markov alignment procedure each run for two iterations.

Measuring reproduction and ordering

The English-only parser is evaluated against the trees that the parallel parser selects on the held-out sentences. Span precision measures how many predicted spans appear in those reference trees. Span recall measures how many reference spans the prediction recovers. F1 combines the two. For the system using annotated alignments and all features, precision was 82.0, recall was 87.8, and span F1 was 84.8 on that held-out set. Thus the English-only parser reproduced much of the alignment-derived bracketing without seeing the alignments used to construct the reference trees.

The authors also evaluate the classifiers given the tree selected by the parallel parser. The nonterminal accuracy measures whether the classifier chose the correct orientation for a split. The terminal accuracy measures whether it chose the correct internal permutation. With annotated alignments and all features, nonterminal accuracy was 97.3 and terminal accuracy was 93.6 on the held-out set. The reordering score when those classifiers were applied to the alignment-compatible tree was 87.7. This is the paper’s oracle-tree condition. The tree is supplied from alignment evidence, while the classifiers still have to predict its local decisions.

The full pipeline replaces the oracle tree with the English-only prediction. This is the configuration that can operate on a new sentence before its translation is known. The direct comparison includes the English sentence in its original order, the English sentence entirely reversed, and Genzel’s preordering system with its supervised parser and learned rules. The resulting scores are reported on the scale used in the paper’s results table.

Reordering scores on the held-out manually aligned English–Japanese set

STIR trained on annotated links leads this comparison, while training on automatic links gives a score near original order.

Reordering scores on the held-out manually aligned English–Japanese setOriginal order: 34.9Original order34.9Entire sentence reversed: 30.8Entire sentence reversed30.8Supervised syntactic preordering: 66.0Supervised syntactic preordering66.0STIR with learned alignments: 49.5STIR with learned alignments49.5STIR with annotated alignments (this paper): 80.5STIR with annotated alignments (thispaper)80.5
The numbers
System or settingReordering score
Original order34.9
Entire sentence reversed30.8
Supervised syntactic preordering66.0
STIR with learned alignments49.5
STIR with annotated alignments (this paper)80.5

The order-preserving and reversing baselines apply the same action to every sentence. Both score below the versions of STIR and Genzel’s method. The margin between reversal and the learned systems illustrates why a tendency toward a different broad clause order does not, on its own, determine how an individual sentence should be rearranged. The useful predictions preserve some source runs and move others. Annotation quality matters to that selection, as the difference between the two STIR training conditions shows.

Measuring the resulting translations

Training the translation system uses 700 million tokens drawn from parallel text. The corpus comes primarily from web material found with the automated methods described in Large Scale Parallel Document Mining for Machine Translation. In the preordering conditions the English side is rearranged before word alignment and phrase extraction. At test time an English sentence goes through the same kind of preprocessing before the decoder receives it. The baseline uses the same phrase-based setup with English left in its original order.

The base system already has an integrated distortion component. The distance from the previous source phrase to the current one is passed through a negative exponential function, and jumps are capped at four words. A comparison with lexicalized reordering asks how the system fares with an integrated reordering mechanism informed by the phrases involved. The syntax-aware comparison includes forest-to-string translation as well as the supervised preordering procedure. Because preordering changes the source training sentences, its effect can appear in what phrase correspondences are extracted as well as in how far the decoder needs to jump at translation time.

The development split contains 3100 English sentences, and the test split contains 1000. Each of the two is drawn from the web and rendered in Japanese. A separate, more heterogeneous evaluation split contains 12,784 sentences. The authors tune the final translation weights on the development split using Lattice-based Minimum Error Rate Training. They evaluate the Japanese output with token-level BLEU, following the BLEU evaluation method. BLEU is applied to the translated output, where successful ordering must accompany plausible lexical choices.

Token-level BLEU on the English-to-Japanese test split

Annotated-alignment STIR is close to the syntax-based systems and improves on the phrase-based baseline.

Token-level BLEU on the English-to-Japanese test splitPhrase-based baseline: 19.02Phrase-based baseline19.02Integrated lexicalized reordering: 18.92Integrated lexicalized reordering18.92Forest-to-string translation: 22.85Forest-to-string translation22.85Supervised syntactic preordering: 23.28Supervised syntactic preordering23.28STIR with learned alignments: 20.66STIR with learned alignments20.66STIR with annotated alignments (this paper): 22.86STIR with annotated alignments (thispaper)22.86
The numbers
System or settingBLEU %
Phrase-based baseline19.02
Integrated lexicalized reordering18.92
Forest-to-string translation22.85
Supervised syntactic preordering23.28
STIR with learned alignments20.66
STIR with annotated alignments (this paper)22.86

The authors report a test improvement of 3.84 BLEU for annotated-alignment STIR over the phrase-based baseline. The supervised preordering system has the highest test score in this comparison. Forest-to-string and annotated STIR have very similar test scores. Learned-alignment STIR still improves on the baseline in this translation experiment, even though it falls short of the annotated system on both evaluation tasks.

Token-level BLEU on the larger English-to-Japanese evaluation split

Annotated-alignment STIR exceeds supervised preordering on this split, with forest-to-string translation scoring highest.

Token-level BLEU on the larger English-to-Japanese evaluation splitPhrase-based baseline: 13.60Phrase-based baseline13.60Integrated lexicalized reordering: 13.99Integrated lexicalized reordering13.99Forest-to-string translation: 16.60Forest-to-string translation16.60Supervised syntactic preordering: 16.31Supervised syntactic preordering16.31STIR with learned alignments: 14.64STIR with learned alignments14.64STIR with annotated alignments (this paper): 16.39STIR with annotated alignments (thispaper)16.39
The numbers
System or settingBLEU %
Phrase-based baseline13.60
Integrated lexicalized reordering13.99
Forest-to-string translation16.60
Supervised syntactic preordering16.31
STIR with learned alignments14.64
STIR with annotated alignments (this paper)16.39

The development scores give another view of the conditions used for tuning. The baseline scored 18.65 and the integrated lexicalized setting scored 19.45. Forest-to-string reached 23.08 and supervised syntactic preordering reached 22.59. On this split STIR scored 22.46 with annotated alignments and 20.28 with learned alignments. Taken across the reported splits, the relative positions of the syntax-aware systems vary. The consistent comparison for STIR is the improvement over the unreordered baseline and the advantage of learning from annotated links.

The direct ordering evaluation and translation evaluation also rank the supervised comparison differently. Annotated STIR is ahead on the held-out source-permutation measure. Supervised preordering is ahead on test BLEU. The direct benchmark rewards agreement with the order inferred from its manual alignments. The translation benchmark measures complete Japanese sentences under the choices made by the decoder and its trained phrase inventory. The results support the paper’s claim that induced structure is competitive for translation even when the best direct reordering score and the highest BLEU belong to different systems.

What the ablations show

Word classes can replace much of the tag information

The feature ablations use the annotated alignment setting and evaluate the component scores and full pipeline on the held-out set. With all features the parser’s span F1 is 84.8. Removing the part-of-speech features leaves span F1 at 84.4, and removing the cluster features also leaves it at 84.4. The paper reports each decrease as 0.4% F1. Removing both sets lowers span F1 to 78.5. This pattern supports the idea that the two representations give the parser overlapping clues. Either one on its own can preserve much of the accuracy of the boundaries, whereas losing both leaves the parser with fewer ways to recognize recurring structural patterns.

The comparison is slightly different once the boundaries have to support actual movements. With the oracle tree supplied, the reordering score is 87.7 using all features, 86.6 without tags, and 83.8 without clusters. With neither tag nor cluster features, the oracle-tree score is 66.8. Because this condition supplies the alignment-compatible tree, deterioration here comes from the reorderer’s predictions on the tree. Similar span F1 scores after the two single removals therefore do not imply that their reordering features are interchangeable to the same degree.

In the complete pipeline, retaining clusters while dropping supervised tags gives 79.4, compared with 80.5 using all features. Keeping the supervised tags while dropping clusters gives 77.8. The setting missing both scores 49.7. The version without tags is the direct evidence for the claim that annotated syntactic categories are dispensable for strong preordering in this setup. It still has annotated word links, alongside automatically learned classes and the remaining features. The ablation isolates the contribution of the supervised tags without changing the source of alignment supervision.

The separate classifiers add detail to that finding. After discarding both feature sets, nonterminal accuracy falls to 89.2 and terminal accuracy to 89.7, from 97.3 and 93.6 with all features. The effects can matter far beyond the number of local decisions that change. A terminal decision affects a short stretch, while a wrong orientation at a large split can move an entire group. Additionally, unfamiliar boundary patterns can influence both which tree is predicted and how the nodes of that tree are handled. The whole-pipeline score is sensitive to that sequence of effects.

The tree and the alignments create distinct bottlenecks

The oracle-tree comparison separates the cost of predicting a tree from the cost of deciding the movements it permits. Even with the all-feature, annotated-alignment configuration, the local decisions on the oracle tree score 87.7, while the full pipeline scores 80.5. The compatible tree has room for the intended movement, yet the classifiers can still choose incorrect actions. Conversely, a predicted tree can rule out the right order before the classifiers act. The paper’s development example gives a concrete case of that second failure: joining the subject with the verb removes a movement that requires those groups to be separable.

Changing the source of the training alignments tests a different part of the pipeline. With learned alignments and all features, the parser’s precision, recall, and F1 in the component assessment are 72.5, 61.0, and 66.3. Its nonterminal and terminal classifiers score 91.6 and 83.3 on their respective accuracy measures. The score on the oracle tree is 72.0 and the full pipeline scores 49.5. Weaker results therefore appear even when the reorderer is supplied a tree, and the loss extends to the complete process that must also infer the English structure.

The comparison changes both kinds of supervision derived from the links. Different links can change the compatible tree selected as a parsing example. They can also change which orientations and local permutations count as the desired training decisions. The authors’ evaluation establishes sensitivity to the alignment source under these conditions. It does not attribute the entire gap to either one of those effects, because the experiment replaces the links for the learning pipeline as a whole.

The results also explain why the two alignment conditions should stay distinct when interpreting the translation claim. Automatic alignment is enough to yield 20.66 on the test split compared with the unreordered baseline’s 19.02. The stronger result of 22.86 comes from the system whose preordering pipeline learned from hand-aligned examples. The experiment shows a benefit in both conditions, with different magnitudes and different levels of human supervision.

Limitations

Limits identified by the authors

The authors select a single alignment-compatible tree for each training sentence. When several different bracketings allow the observed movement, this choice turns an uncertain analysis into a fixed target for the English parser. The paper proposes learning from a forest of compatible trees to preserve uncertainty. The reported training procedure uses selected trees, so its results leave open whether distributing credit across several justified analyses would make the English parser more accurate or more stable.

The parallel tree score is also deliberately small. Directly assessing any proposed set of tree preferences involves training the downstream components and evaluating their reorderings. The authors use fixed weights for most of its features, choose a weight through a line search, and resolve ties randomly. They suggest that a likelihood objective on the source sentences could support a richer parallel parser. They also point to distributed or online training as a way to use more data and a larger set of lexical features in the English-only parser. Those possibilities motivate extensions beyond the tested setup.

The tree reorderer achieves straightforward inference by choosing each action independently. If one orientation decision could use the orientations or terminal permutations chosen inside its children, selecting all the decisions optimally would require a more involved search. The authors leave those interactions open. They likewise leave open integrating their reordering procedure more closely into translation inference, where a decision could benefit from evidence available during target-language generation.

Binary branching imposes a further representational constraint. The paper considers inducing a shared English bracketing for several target languages. It also records a counterexample to the idea that a single binary bracketing would always suffice. For a source in subject–verb–object order, a tree that supports subject–object–verb order through subtree exchanges cannot also support verb–subject–object order through those exchanges. The paper accordingly points to branches with more than two children for the multilingual case. The English-to-Japanese experiment evaluates a setting in which a target-specific tree can be learned.

Limits of the experimental evidence

The span F1 result measures how closely the English-only parser reconstructs trees selected through alignment constraints and preferences. The reference used here is not an independently annotated inventory of English constituents. That choice fits the application the authors set out to study, because the parsing stage is meant to give the reorderer a usable tree. It also leaves open questions about how closely the trees match conventional syntactic analyses, which constructions they handle linguistically, and whether their useful groupings would apply to another task.

There can be several adequate trees for a translation order. A parser may receive a span mismatch for choosing a grouping different from the parallel parser’s choice even if its tree still permits the desired permutation. Conversely, a high agreement score over spans can coexist with a mistake at a split crucial to a long-distance movement. The paper’s additional evaluations of ordering and translation help because they score downstream consequences of the predicted tree. The component scores remain dependent on what the experimental task treats as the reference.

The direct ordering metric is based on one reference permutation induced from the alignments. Its conventions determine both the relative order of linked words and a placement for unlinked ones. It rewards contiguous runs that agree with that reference. Alternative orderings that could work in an acceptable translation receive credit only insofar as their runs match those in the chosen reference. The comparison therefore measures reproduction of a particular ordering signal, while BLEU addresses agreement of the complete output with reference translations.

The strong claim about avoiding syntactic tree annotation also requires care about the role of annotation more generally. The full feature set includes tags from a supervised tagger, and the strongest version of STIR learns from manually aligned sentences. The tag ablation shows that the supervised tags can be removed with a small effect under the annotated alignment condition. The learned-alignment experiment shows what happens when the manual link supervision is removed. It gives positive translation results relative to the baseline, with a more limited gain than the manually aligned condition.

Finally, the reported translation experiments concern English-to-Japanese on the paper’s particular data and phrase-based system. The results give no measurement for multilingual sharing or for the effect of the same constraints on another translation direction. The performance differences among the strongest syntax-aware systems also change with the split. Read together, the direct ordering results and the translation scores establish that induced trees can be useful for this application. They leave the broader value of any particular inferred tree to be assessed against the order changes and translation setup for which it would be used.

What came after

Inducing a Discriminative Parser to Optimize Machine Translation Reordering addresses the closest continuation of the translation question. Its stated goal is to induce a discriminative parser whose purpose is to optimize translation reordering. The common thread is that a parser can be designed and judged in relation to the movement it supports. In STIR, English-only parser training rewards the particular compatible trees chosen by a separate parallel parser. The later work’s framing places the optimization of reordering at the center of the parser induction problem.

A Universal Part-of-Speech Tagset is connected to the representation of the words from which the system predicts a parse or a move. The tagset supplies the coarse categories used by STIR’s supervised tag features. The paper’s ablation then compares those explicit categories with automatically induced word classes in the reordering pipeline. This connection concerns how recurring word patterns can be represented across sentences. It has a different role from the learning of the compatible trees themselves.

Chinese Word Ordering Errors Detection and Correction takes the ordering problem into grammatical error correction. Its subject is the detection and correction of ordering errors in Chinese written by non-native learners. STIR uses a translation to establish a desirable rearrangement of the source, while learner-language correction concerns the ordering of the sentence in the same language. The common issue is deciding which words in a sequence should stay together and where they should appear. The correction task adds the need to identify when the original order itself constitutes an error.

Do latent tree learners identify meaningful sentence structure? asks a broader question about the interpretation of induced trees. STIR gives its tree a clear operational meaning. It defines the permutations that a downstream reorderer may express, and the authors evaluate how well those permutations work. The later question concerns what kind of sentence structure a tree learner identifies. The distinction matters because usefulness on a downstream task and similarity to a linguistic analysis are separate measurements. STIR offers evidence for the former through English-to-Japanese reordering.

Neural Syntactic Preordering for Controlled Paraphrase Generation brings preordering to controlled paraphrase generation. The shared design idea is that a planned order can guide what a later generation stage produces. STIR rearranges an English input so a translator receives it in a more Japanese-like sequence. The later work’s stated application is to control the form of a paraphrase. These applications give the ordering stage different goals, while both treat order as a decision that can be made explicit before the final sentence is generated.

Cite

Cite as John DeNero and Jakob Uszkoreit. 2011. Inducing Sentence Structure from Parallel Corpora for Reordering. Proceedings of the 2011 Conference on Empirical Methods in Natural Language Processing.

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{denero2011inducing,
  title = {{Inducing Sentence Structure from Parallel Corpora for Reordering}},
  author = {John DeNero and Jakob Uszkoreit},
  booktitle = {Proceedings of the 2011 Conference on Empirical Methods in Natural Language Processing},
  year = {2011},
  url = {https://aclanthology.org/D11-1018/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/denero-2011-inducing-sentence-structure-parallel-corpora/