Improving Tree-to-Tree Translation with Packed Forests
Paper · 2009 · Yang Liu, Yajuan Lü and Qun Liu
Summary
A translation system that works with sentence structure has to decide which words belong together before it can use that structure. If it accepts only the parser’s preferred analysis, an early mistake can determine both which translation rules it learns and which rules it can apply later. The problem is especially acute in tree-to-tree machine translation. A rule has to fit a piece of syntax in each language, so even a useful correspondence between words can be hard to learn when the chosen trees group those words differently.
The authors keep alternative analyses in a packed forest, a structure that stores shared parts of different parses once. During training, they combine Chinese and English forests with word alignments that indicate which words correspond. They then look for pairs of tree fragments that respect those alignments and can be used together as translation rules. Small rules can also be combined to capture more context. At translation time, the system considers the Chinese parses together and searches for the highest-scoring sequence of rules that fits a complete source parse. The English words produced by that sequence form the translation.
On the 2005 NIST Chinese-to-English test set, the version using only the preferred parse scored 0.2021 on BLEU. The best forest setting scored 0.2385. The authors report a statistically significant improvement of 3.6 BLEU points. Moses, the phrase-based comparison system, scored 0.2366 on the same data. The difference between Moses and the forest system was within the experiment’s statistical uncertainty. A larger training run also produced close scores for the two systems.
Retaining more parses made more rules available and increased the share of training phrase pairs that a fully lexicalized tree rule could capture. The gains came with greater extraction and decoding costs, and phrase coverage stayed low even in the broadest setting. The experiments show how alternative parses can help a system that requires syntax on both sides, with the clearest evidence coming from the comparison against the same tree-to-tree approach restricted to single parses.
Deep dive: Improving Tree-to-Tree Translation with Packed Forests
Packed parse forests let tree-to-tree translation learn from alternative analyses and improve Chinese-to-English translation over single parses. · about 39 minutes to read
The problem and its context
Why syntax on both sides raises the stakes
Parallel data pairs a sentence in one language with a translation in another. A word alignment adds a more local account of the relationship by linking words across the pair. These links can suggest that a Chinese expression corresponds to an English expression, even when their words appear in different orders. A syntactic analysis provides another kind of information. It groups words into constituents and labels those constituents so that a translation system can distinguish, for instance, a phrase headed by a verb from one headed by a noun. The paper asks how to use such groupings on both sides while keeping useful correspondences that a particular analysis would rule out. The initial step that creates these groupings is parsing.
The paper distinguishes approaches by where they impose this structure. In string-to-tree translation, the system builds a target tree from source text. Tree-to-string translation starts with source syntax and produces target word sequences. Tree-to-tree translation uses structure on each side. That last choice makes it possible to say how a source construction corresponds to a target construction, including where a phrase moves and which kind of phrase takes its place. The earlier work the paper associates with these approaches includes A New String-to-Dependency Machine Translation Algorithm with a Target Dependency Language Model and Tree-to-String Alignment Template for Statistical Machine Translation.
For a tree-to-tree rule to be useful beyond the sentence that supplied it, the rule can leave some of the words open. Consider a rule that places the translation of a source prepositional phrase later in the target verb phrase. The rule can specify where that phrase goes without identifying the people or places that appear inside it. The source pattern describes where the phrase is found, the target pattern says where its translation belongs, and a correspondence tells the system which open slot on the target side belongs to which source phrase. The rule makes a claim about the arrangement of material that can be translated separately.
The same commitment has a cost. A phrase-based system can take a source and target span as a useful unit when their words align, subject to its own extraction conditions. A tree-to-tree system also needs usable fragments on both sides. If an aligned string crosses a constituent boundary, or if its parts fall under a structure that the rule inventory cannot express within its limits, that particular mapping can be unavailable. Requiring a target fragment as well as a source fragment creates another place where the mapping can fail. The paper connects this coverage problem to earlier studies of phrase pairs that syntax-based systems can miss, including What Can Syntax-Based MT Learn from Phrase-Based MT? and SPMT: Statistical Machine Translation with Syntactified Target Language Phrases.
The authors identify a separate problem in the analyses themselves. A parallel corpus large enough to train a translation system typically needs automatic syntactic annotation. The data available to train the parsers are more limited in amount and domain, so the authors expect errors when those parsers encounter ordinary translation text. A faulty analysis during training can change the rule table. A faulty analysis at test time can make otherwise useful rules inapplicable. Even if one sentence has a well-formed translation and an appropriate rule exists somewhere in training, the decoder can only use that rule where the input representation gives it a matching structure.
These two problems can lead to the same symptom. A system fails to express a particular translation mapping. One possibility is that the parser preferred an analysis whose boundaries prevent the mapping. Another is that the mapping fits poorly with the available syntactic descriptions even when plausible alternatives are present. Retaining alternatives directly addresses the early commitment to a parse and can also admit some mappings excluded by the preferred trees. The grammar still imposes structural conditions, so the practical question is how much room those alternatives create.
From forests on one side to forests on both
A parser can assign a higher score to one analysis while assigning some support to others. Taking the preferred parse makes the next stage simple. There is a fixed hierarchy, and a node’s descendants specify the only local structure that a rule extractor or decoder has to consider at that location. A forest preserves several sets of descendants as alternatives. Two parses can disagree about the structure of a verb phrase and share the same analysis of the subject. The forest stores that subject analysis once and makes it available to each parse that needs it.
The paper places this use of forests in a line of earlier work. Huang and Chiang used forests to represent a decoding search space during rescoring with a target fluency score. The important precedent is the representation of alternative derivations in a shared structure. Mi and colleagues then used parse forests directly in place of preferred trees in translation training and decoding. That gives the translation process access to decisions that an earlier parser would otherwise have settled. The paper identifies these steps in Forest Rescoring and Forest-Based Translation.
The rule extraction precedent comes from GHKM, named for Galley, Hopkins, Knight and Marcu. As the authors describe it, GHKM uses word alignments to identify places in a tree where a rule can stop and another rule can take over. The relevant question is whether the material under a node corresponds to a region on the other side without competing alignment links crossing the proposed boundary. Forest-based extraction extended this kind of analysis to alternative trees on one side. Liu and colleagues inherit the alignment test and face a further requirement. They need a compatible place to stop in a tree on the other side as well. The direct predecessor is Forest-based Translation Rule Extraction.
Another earlier tree-to-tree approach in the paper uses the same general grammar family and adds tree-sequence rules to reach beyond strictly syntactic phrases. Its extraction strategy starts from initial mappings and abstracts over them. The authors describe that procedure as suitable for a pair of preferred trees. With a forest on either side, its reliance on examining the tree pairs associated with a phrase pair becomes impractical. A packed representation helps only if the algorithms that read it can work locally or reuse calculation. The paper’s method makes aligned node pairs the entry points for this work, then considers bounded tree fragments rooted at those nodes.
The decoder faces a different version of the problem. It has source text and an input forest, but no English sentence to parse in advance. The target tree is built through translation. During training, word links between known sentences constrain which paired fragments become rules. During decoding, the source halves of those rules constrain where they can be applied, and their target halves tell the decoder what to build. Keeping those two stages distinct helps explain why both can benefit from a forest even though only training starts with a forest in each language.
The method, step by step
How the pieces fit together
The training input is a collection of sentence pairs with word links and a packed parse forest for each sentence. The extractor begins by marking nodes whose aligned words form suitable boundaries. It then searches across the forests for compatible source and target fragments. A pair of fragments with matched open positions becomes a rule. Smaller compatible fragments supply the elementary rules, and the system can join elementary rules to make composed ones. Parser scores determine how strongly a rule occurrence counts when the training forest offers several analyses.
Decoding uses a source forest and the learned grammar. The decoder matches the source sides of the rules to fragments in that forest. It turns these matches into a new forest whose local alternatives are translation operations. As it builds larger target structures from smaller ones, it scores the resulting English word sequences as well. The final answer is the sequence of English words from the selected derivation, the process by which rules combine to cover the input and produce the output.
From aligned training forests to a decoded translation
The steps in order.
What a packed forest stores
A constituent node records a grammatical category and the part of the sentence over which it extends. A parse forest gives that node a set of possible ways to obtain the constituent from smaller ones. The authors call each such connection a hyperedge. An ordinary connection between two nodes can record one parent and one child. A hyperedge can record a parent and the whole ordered sequence of children required by a local grammatical expansion. Treating the children as a group keeps a parse from combining children from different expansions as if they belonged to the same one.
The forest is defined for a sentence under a context-free grammar. The formal definition distinguishes the set of nodes, the set of their expansions, a designated goal and the values used in scoring.
F = ⟨V, E, v̄, R⟩
Here F is the forest. The angle brackets enclose its components. V is the finite node set, E is the finite hyperedge set, v̄ is the goal node in V, and R is the set of possible weights. The bar on v identifies the distinguished goal. A complete parse starts from that goal and follows compatible expansion choices through to the words.
w₁:ₗ = w₁ … wₗ
Here w is used for sentence words, l is the sentence length, and the subscript on an individual word is its position. The colon in the subscript of w₁:ₗ marks the range from the first word through the last. The ellipsis stands for the intervening words in order.
v = Xᵢ,ⱼ
Here v is a forest node and X is its nonterminal category. The subscripts i and j are the boundaries of the constituent. In this boundary convention, the first included word has position i followed by one step, and the final included word is at j. The paper also uses node identities in its worked forest because equal labels and spans can occur on distinct nodes. An identity lets a reader distinguish those nodes without relying on the span.
e = ⟨T(e), h(e), f(e)⟩
Here e is a hyperedge in E. T(e) is its ordered vector of tail nodes drawn from V, h(e) is its head node in V, and f(e) is a weight function. It receives a weight from R for each tail and returns a weight in R. The head is the constituent that the expansion builds. In the paper’s aligned example, the Chinese clause node IP has alternative incoming edges. One combines an NP-B with a VP. Another combines an NP with a VP-B. Both can lead to the same goal node for that clause while leaving different local structures available to the rule extractor.
A useful way to read a forest is to distinguish drawing it from using it. On paper, alternatives can appear side by side below a node. In a particular tree, the expansion at that node is the one selected for that tree. A subtree can be shared by alternatives elsewhere in the forest, so the number of trees represented depends on the combinations of choices throughout the structure. The computational promise of packing comes from doing some work once on shared nodes or edges. A procedure that expanded the forest into separate complete trees would give up that advantage.
What a translation rule can express
The grammar pairs elementary source and target trees. An elementary tree here means the piece carried by a rule. It can include fixed words, labeled structure, and open nonterminal positions. An open position is where another rule supplies the rest of the subtree. The grammar is synchronous because a rule supplies its source fragment and its target fragment together. It is a tree substitution grammar because replacing corresponding open positions with further paired trees is how a derivation grows.
G = ⟨Fₛ, Fₜ, Sₛ, Sₜ, P⟩
Here G is the synchronous tree substitution grammar, or STSG. In this grammar definition, Fₛ and Fₜ are the symbol alphabets for the source and target, respectively. Sₛ and Sₜ are their start symbols. P is the set of productions. The subscripts s and t mark the source and target sides throughout. The paper also uses Fₛ and Fₜ for the source and target forests in expressions about sentence pairs. In those expressions, membership refers to the parses represented in a forest.
r = ⟨tₛ, tₜ, ∼⟩
Here r is a rule in P, tₛ is its source tree fragment, and tₜ is its target tree fragment. The relation ∼ links the open positions where substitutions on the two sides must correspond. The paired positions can have different syntactic labels. They can also occur in a different order on either side.
The paper illustrates reordering with the sentence translated as “Bush held a talk with Sharon.” A rule for the verb phrase places the part translated as “with Sharon” early in the source fragment and after the material corresponding to “a talk” in the target fragment. It also fixes some material in the fragments and leaves the content of the linked phrases to other rules. Consequently, a single operation can express the relationship between the two arrangements while more local operations translate the verb and noun or fill the prepositional phrase. This is a reason to work with fragments that can reach deeper than one immediate expansion of a node.
In the probabilistic account, a forest pair can be explained by different source and target trees. Even a particular pair of trees can admit different derivations, since different choices of rule boundaries can build the same structures. The formal expression sums over these alternatives.
Pr(Fₛ, Fₜ) = ∑_{Tₛ ∈ Fₛ} ∑_{Tₜ ∈ Fₜ} Pr(Tₛ, Tₜ) = ∑_{Tₛ ∈ Fₛ} ∑_{Tₜ ∈ Fₜ} ∑_{d ∈ D} Pr(d) = ∑_{Tₛ ∈ Fₛ} ∑_{Tₜ ∈ Fₜ} ∑_{d ∈ D} ∏_{r ∈ d} p(r)
Here Pr denotes probability, and Fₛ and Fₜ are now the source and target parse forests. Tₛ and Tₜ are complete trees represented by their respective forests, as indicated by ∈. For each choice of Tₛ and Tₜ, D is the set of synchronous derivations giving that pair, and d is one such derivation. The sum sign ∑ adds contributions across the indicated choices. The product sign ∏ multiplies p(r), the probability assigned to rule r, over the rule occurrences in d. The left-hand side is the probability assigned to the forest pair, and the intermediate expressions group the same contributions by tree pair and then by derivation.
This equation describes what a forest pair can represent under the grammar. The extraction procedure below is the authors’ practical route to a rule inventory and fractional counts. It uses parser weights and alignment constraints to find and count local fragment pairs. The decoding score likewise extends the probabilistic description with additional evidence. These are distinct parts of the design. The sum describes alternative explanations of a training pair. The decoder ultimately chooses a particular complete explanation for an input.
Finding where a rule may stop
A word alignment connects positions in the original sentences. Before it can guide a tree rule, the extractor needs to turn those positions into information about nodes. For each node, the paper records the words it covers, the words linked to that material on the opposite side, and the opposite-side words linked to parts of the forest outside its local region.
σ(v)
Here σ is the span function and v is the node. The result is the set of word positions covered by that node on its own side of the sentence pair. For example, the Chinese VP-B node in the worked forest has span {4, 5, 6}. It covers the source words juxing, le and huitan. These are word positions and should be read separately from the node identities in the forest.
γ(v)
Here γ gives the corresponding span for node v. It is the set of positions in the other sentence linked by the word alignment to words under v. For the example VP-B, γ gives {2, 4}, the English positions of “held” and “talk.” This set can have gaps. The corresponding span records links and therefore need not include every word between the first and last linked positions.
δ(v)
Here δ is the complement-span function for v. It takes the union of the corresponding spans of nodes that are neither ancestors nor descendants of v. Its positions are on the opposite side of the sentence pair. For the same VP-B, that set is {1, 5-6}, the positions of “Bush,” “with” and “Sharon.” This definition builds the complement through other nodes and their links, so the resulting set expresses where outside material is aligned.
closure(γ(v)) ∩ δ(v) = ∅
Here closure fills the interval between the outer positions of γ(v), γ is the corresponding-span function, and δ gives the complement span. The symbol ∩ takes the intersection of the two sets, and ∅ is the empty set. The equality is the paper’s criterion for an alignment-consistent node. The closure for the example is {2-4}. None of the complement positions {1, 5-6} falls in it, so the node passes the test. An intervening English position can be inside the closure even though it has no link to a word under the node. What matters to the test is whether a link from outside the node claims a position within that interval.
Consistency makes a node eligible for a cross-language boundary. To become a frontier node, it also needs a counterpart. The candidate counterpart must itself be consistent. Then each node’s own span must contain the closure of the aligned positions from the other node.
closure(γ(v′)) ⊆ σ(v)
Here v is a node on one side and v′ is a candidate on the other. γ(v′) gives positions on v’s side, closure takes their interval, and σ(v) is the span of v. The symbol ⊆ means every member of the set on the left belongs to the set on the right. This tests whether the words aligned from inside v′ can fit within v.
closure(γ(v)) ⊆ σ(v′)
Here the functions and nodes are the same with the direction reversed. γ(v) gives positions on the side of v′, and σ(v′) is the span that must contain their closure. The pair of containment tests permits extra material inside a span when the alignments allow it. The tests require compatibility in both directions.
τ(v) = {v′ : v′ is a counterpart of v}
Here τ is the counterpart-set function. The braces denote the set of candidates v′, and the colon reads as “such that.” A counterpart is a consistent node on the other side meeting both containment conditions with the consistent node v. A frontier node has at least one member in this set. In tree-to-string extraction, the corresponding material can be represented as a string. In the authors’ tree-to-tree extension, a node on the opposite side must be available to carry the matching boundary.
Counterpart choice is separate from alignment consistency, and it can stay ambiguous even if the word links are clear. In the example, the Chinese NP-B node with identity 6 has both an English NNP node with identity 16 and an English NP node with identity 22 as counterparts. A unary expansion, one that adds a category above a single child, can give the parent and child the same span. Both can enclose the required words. Which category appears as the target root or as the label of an open position affects where the resulting rule can be used. The extractor keeps the compatible possibilities for the next stage.
Pairing fragments and deciding which rules are minimal
With frontier nodes marked, the extractor takes a source frontier node as a root and enumerates eligible local trees underneath it. A fragment with just one node qualifies when that node is a lexicalized frontier node. For a larger fragment, its leaves are either frontier nodes left open for substitution or lexicalized nodes outside the frontier. The root remains a frontier node. These rules allow a fragment to carry fixed lexical material and still stop at places where another rule can take over.
A minimal frontier tree is defined on one side at a time. Its interior has no frontier node besides the root. At first glance it seems natural to collect only such trees on each side and pair them. That would assume that the earliest possible cuts in the source tree and in the target tree are compatible. The authors instead test whole fragment pairs. A pair needs counterpart roots and a one-to-one correspondence between the frontier leaves. A shorter cut in one fragment might leave a slot for which the other fragment has no matching slot.
⟨tₛ, tₜ, ∼⟩
Here tₛ and tₜ are source and target frontier trees, and ∼ is their one-to-one correspondence between frontier leaves. In this definition the triple is a candidate frontier tree pair. The roots must be counterparts in addition to the condition on the leaves. Once extracted as a production, the same form describes a rule with linked positions. One-to-one linking gives each open source position a particular target position and allows those positions to be visited in different orders on the two sides.
The procedure first gathers the source trees under the chosen source root. It gathers target trees under each of the root’s counterparts. It then considers combinations of a source tree and a target tree, accepts the ones satisfying the correspondence required of a frontier pair, and compares accepted pairs for containment. The comparison uses pairs with the same respective roots. Within such a comparison, a pair is structurally contained in another when each of its trees is a subgraph of the tree on the corresponding side. The extraction algorithm discards the larger pair when the smaller valid pair is already available. The paper’s verbal definition of minimality reverses that containment direction. Its pseudocode, worked example and account of composition indicate the smaller-pair interpretation used here.
The example under the Chinese PP node with identity 4 makes the distinction concrete. There are two eligible Chinese fragments. One stops at the preposition and noun phrase positions. The other expands the noun phrase further. There are four eligible English fragments across two counterpart roots, an NP and a PP. The extractor considers all eight combinations and accepts all of them as frontier tree pairs. The containment test leaves two minimal pairs. These share the shorter Chinese fragment and use different target roots. The alternatives in root label survive because a comparison between pairs with different roots cannot remove either one.
PP(x₁:P, x₂:NP-B) → PP(x₁:IN, x₂:NP)
Here PP is the root category on both sides. P and NP-B label the source preposition and noun phrase positions. IN and NP label their corresponding English positions. The variable x marks a nonterminal slot, its subscript identifies the slot, and the colon attaches a category to it. The arrow separates the paired patterns. The rule keeps the positions in the same order in this instance. A rule that changes their order puts the shared variables in different positions on the target side. Specific words can be supplied by rules that expand the variables.
In the Chinese–English corpus, 38% of minimal frontier tree pairs were formed from fragments that were not both minimal frontier trees individually. This is evidence about extraction structure, before test-time translation scores enter the picture. It explains why the authors examine paired cuts instead of assuming that the smallest independently admissible trees will provide every elementary rule. The latter shortcut can remove candidates before the bilingual correspondence has been tested.
The extractor limits the number of nodes in each tree fragment. The authors call that cap the maximal node count and write it as n. The cap bounds the local search and helps control the number of rules. A bound on nodes includes structural nodes as well as the positions carrying words. It therefore limits how much lexical material a rule can contain in a way that depends on the shape of its trees. The experiments vary this cap separately from the threshold that determines how much ambiguity a forest retains.
Composing and weighting rules
Minimal rules leave syntactic positions at which other rules can be substituted. The extractor can compose rules by performing a matched substitution in advance, filling the linked source and target sites with another paired fragment. The result is a larger rule. At the point of application it can represent a regularity involving more words or more internal structure than the smaller rules express separately.
NP-B(NR(shalong)) → NP(NNP(Sharon))
Here NP-B and NP are the source and target root labels. NR and NNP are internal labels above the fixed words shalong and Sharon, respectively. Parentheses enclose the children of a node, and the arrow relates the source and target fragments. The pattern records the structure down to the name on both sides. The paper gives it as an example of composition. A composed pair can correspond to a larger valid frontier pair under the same roots as a smaller one.
The same fragment can occur in many complete parses because the material elsewhere in the sentence can vary. Giving a separate full count to every such parse would make the result depend heavily on how many alternatives are represented outside the fragment. The authors instead estimate how much parser probability supports the fragment within its forest. Every complete tree containing a given fragment has three relevant parts. There is the structure above the fragment root, the structure specified inside the fragment, and any expansions needed below its open leaves. Summing over the possible outside and inside parts can be done using quantities already associated with forest nodes.
The fractional count multiplies a normalized source contribution by a normalized target contribution.
c(r) = [p(tₛ) × α(root(tₛ)) × ∏_{v ∈ leaves(tₛ)} β(v)] / β(v̄ₛ) × [p(tₜ) × α(root(tₜ)) × ∏_{v ∈ leaves(tₜ)} β(v)] / β(v̄ₜ)
Here c(r) is the fractional count of rule r for the aligned forest pair. The source and target fragments are tₛ and tₜ. For either fragment, p(t) is the probability contributed by the fragment itself. The function root gives its root node, and leaves gives its leaf nodes. The outside probability α at the root accounts for the surrounding structure that can reach that root. The inside probability β at a leaf accounts for derivations continuing below that leaf. The product sign ∏ combines the inside terms for the indicated leaves v. The goal nodes of the source and target forests are v̄ₛ and v̄ₜ. Dividing by their inside probabilities normalizes by the corresponding forest’s total parse probability. Multiplication, shown by ×, combines the factors within each forest and the two normalized contributions across forests.
This gives a training occurrence a contribution tied to the support for its fragments. A locally plausible fragment can have low weight if the contexts reaching its root have low probability. A fragment can also benefit when many compatible derivations extend below its leaves. The formula aggregates these possibilities through inside and outside probabilities. It avoids a pass over the complete parses containing the fragment. The weighting procedure follows Forest-based Translation Rule Extraction.
Preparing the forests and choosing a translation
The Chinese and English parsers were modified to output whole parse forests. The English parser is the one described in Coarse-to-Fine n-Best Parsing and MaxEnt Discriminative Reranking. The authors used scripts supplied by Liang Huang to produce the packed forest representation. To restrict the resulting forests, the pruning procedure uses inside and outside information to score the best complete derivation that passes through each hyperedge. It compares that derivation with the best derivation anywhere in the forest. An edge is removed when its gap exceeds the pruning threshold p. A node is removed if all of its incoming edges have been pruned. Raising p gives the extractor or decoder access to edges supported by less preferred parses.
The word alignment is obtained with GIZA++ and then refined using grow-diag-final-and. This supplies the links used by the consistency and counterpart tests. The alignment procedure and phrase-based refinement come from the earlier work the authors cite as A Systematic Comparison of Various Statistical Alignment Models and Statistical Phrase-Based Translation.
At translation time, the source forest is converted into a translation forest using the algorithm the paper takes from Mi and colleagues. The nodes carry over from the parse forest. The hyperedges now carry matched STSG rules. A rule match can cover a source fragment with several internal nodes in one operation, with the tail nodes left to supply translations for its open positions. On the target side, the edge describes how to combine the results at those positions into a larger tree. Following these edges from the goal to the words produces a derivation compatible with a complete source tree represented in the input forest. The conversion builds on Forest-Based Translation.
ê = e(argmax_{d such that Tₛ(d) ∈ Fₛ} p(d))
Here ê is the selected English output. The function e takes a derivation and returns its target yield, the words read in order. The operator argmax selects a candidate d with the highest score p(d) among the allowed derivations. Tₛ(d) is the source tree of d, Fₛ is the input source forest, and ∈ requires that the tree be represented there. The letter e here refers to the yield function, distinct from the earlier use of e for a hyperedge. The score p(d) is written in probabilistic form in the objective. In the implemented decoder it is extended through a log-linear score combining several kinds of evidence.
The implemented score uses eight features. Rule relative frequencies in the two directions express how strongly a fragment predicts its counterpart. Lexical weights in the two directions supply word-level evidence about the mapping. The score also accounts for the number of rules in the derivation, the number of English words produced, English sequence plausibility, and the probability of the matched source parse. The use of directional scores lets a rule’s reliability on one side differ from its reliability on the other. The general scoring framework follows Discriminative Training and Maximum Entropy Models for Statistical Machine Translation.
English sequence plausibility comes from a trigram language model, meaning that the score uses patterns of three successive words. This matters when separately translated fragments meet. A strong choice for one source constituent can combine awkwardly with a strong choice for its neighbor. The decoder traverses the translation forest from smaller parts to larger ones. As it combines translations, it uses cube pruning to approximate the search with the fluency score included. Intuitively, that search examines promising combinations of partial choices without having to expand all combinations in advance. The technique is taken from Hierarchical Phrase-Based Translation.
After the initial decoding pass, a lazy procedure extracts k-best translation candidates for minimum error rate training. Here k is the requested number of candidates. Lazy generation means the procedure works towards the next candidate as required, reusing the forest representation. The development data guide the tuning of the feature weights. This separates the extraction step, which determines what rules are available and how their counts are estimated, from the tuning step, which influences which derivations the decoder prefers at test time.
Experiments and results
What was held fixed in the comparison
There are 840K words in Chinese and 950K in English in the primary corpus for Chinese-to-English training. The authors train the English trigram score on the English sentences of that corpus. The development split is the 2002 NIST MT Evaluation test set. The held-out test split is the 2005 NIST MT Evaluation test set. The dates distinguish the roles of the two named evaluation sets. The development set supports tuning, and the 2005 set supplies the translation scores reported in the main comparison.
Translation quality is measured with BLEU. The authors use mteval-v11b.pl with its default settings apart from case-insensitive matching of word sequences. In this evaluation, differently capitalized instances therefore count as matches when the underlying words agree. The paper reports BLEU values as decimals in its results table and uses points for its headline improvement. Both conventions below follow the reported values.
There are two baselines with different purposes. The single-parse tree-to-tree system uses the same general approach but prunes the forest so that it holds only the preferred tree. It is the comparison that most directly tests whether keeping alternative parses helps. Moses in its default setting uses the same data and supplies a phrase-based benchmark. It shows where the forest system stands relative to a system with different rules and different constraints on the phrases it can use.
The central comparison varies p across 0, 2, 5, 8 and 10. The cap on STSG tree size is held at 10 nodes for each side of a rule. At p = 0, a forest has only the preferred parse. Larger values relax the pruning and therefore change which analyses the system can use. The setting applies to extraction and decoding, so the experiment compares complete system configurations that vary in both the rules that can be learned and the parses that can be used to apply rules.
Translation quality across pruning settings
Tree-to-tree BLEU by forest pruning on the 2005 NIST Chinese-to-English test set
BLEU rises as the system retains more alternative parses.
The numbers
| System or setting | BLEU |
|---|---|
| Preferred parse, p = 0 | 0.2021 |
| Packed forest, p = 2 | 0.2165 |
| Packed forest, p = 5 | 0.2336 |
| Packed forest, p = 8 | 0.2373 |
| Packed forest, p = 10 (this paper) | 0.2385 |
The corresponding 95% confidence intervals are reported as 0.2021 ± 0.0089, 0.2165 ± 0.0081, 0.2336 ± 0.0078, 0.2373 ± 0.0082 and 0.2385 ± 0.0084 in order of increasing p. The paper uses Zhang and colleagues’ significance tester for these intervals. They convey the uncertainty around each reported corpus score. The paper separately reports the paired significance result for its main comparison, following a sign-test procedure. The earlier assessment work is Interpreting BLEU/NIST Scores.
The change from 0.2021 for the preferred parse to 0.2385 for the best forest setting is reported as an absolute gain of 3.6 BLEU points. The authors give a significance level of p < 0.01 for this comparison. Here p refers to the probability in the statistical test. It is distinct from the pruning threshold denoted by the same letter. The sign-test outcomes are reported as 700(+1), 360(-1), and 15(0), giving the counts for the positive, negative and tied outcomes in the comparison.
Moses scores 0.2366 in the same experiment. Its score is close to the forest system’s 0.2385, and the authors report that the difference is statistically insignificant. That supports their description of the two systems as comparable in this experiment. The strongest comparative result is the change within the tree-to-tree approach. It starts with a substantial gap relative to the phrase-based benchmark, and the forest setting reaches the same score range.
What changed in the forest and rule inventory
The authors also give the average number of trees represented in a forest on the test set. In threshold order, these figures are 1, 238.94, 5.78 × 10⁶, 6.59 × 10⁷ and 1.05 × 10⁸. These are counts of represented trees, so several million alternatives can arise from combinations of decisions in a single shared forest. The values describe the extent of the represented ambiguity. They do not count the number of full parse objects visited by the decoder.
The number of STSG rules applied to the test set rises in that same ordering of the thresholds. As printed, the counts are 73, 614, 105, 214, 347, 526, 573, 738 and 743, 211, with each comma within a count serving as a thousands separator. The progression is easier to interpret by its endpoints. At p = 0 the test-set rule count is 73, 614. At p = 10 it reaches 743, 211. The authors describe the latter as almost 10 times the former. This provides an intermediate measurement between parser ambiguity and test BLEU. A more permissive forest changes the rule inventory that the system can use, as well as increasing the number of available source analyses.
The score progression shows that the amount of represented ambiguity and the improvement in translation are on different scales. The authors observe smaller gains after forests already represent over 1M parses per sentence. By then, extra alternatives can yield more applicable rules or analysis paths, but they collectively change the final score less than loosening the initial commitment did. This pattern also appears in the earlier forest-based work discussed in the paper.
The larger training run
The authors repeat the comparison with Moses after adding the FBIS corpus to the smaller training set. They remove sentences for which they fail to obtain forests. The resulting corpus has about 260K sentence pairs, containing 7.39M Chinese words and 9.41M English words. For this run, they use the forest pruning threshold p = 5.
On the larger-data comparison, Moses obtains 0.3043 BLEU and the forest system obtains 0.3059 BLEU. As in the smaller experiment, the authors report a statistically insignificant difference. The experiment extends the comparison with the phrase-based benchmark to a larger training collection. The single-parse comparison is documented in the smaller-data threshold sweep. The larger-data run therefore answers a narrower question about how close the forest system and Moses remain when trained on the expanded corpus.
What the ablations show
How much ambiguity is worth retaining
The pruning sweep is the closest experiment to an ablation of the paper’s central idea. Setting p = 0 removes the alternative parses while keeping a tree-to-tree setup. Each higher threshold admits more analyses. The improvement through the sweep shows that the single-parse decision matters for translation quality in this setup. The increases in represented trees and usable rules give a more specific account of the change than the BLEU scores alone. The extractor can find more compatible patterns, and the decoder has more potential paths through the input.
There are two ways for these additional patterns to matter. A rule could become available because an alternative analysis in the training corpus provides a compatible pair of fragments. It could also become applicable because the input forest contains a source fragment absent from the preferred tree. A successful translation can involve both. Since the pruning sweep varies forest use across the pipeline, its result is evidence about the joint choice. Separate estimates for training and decoding would require holding one stage fixed while changing the other. The paper offers the joint comparison and diagnostics of coverage and runtime.
The threshold p determines which locally scored edges are available, rather than setting a direct limit on the number of complete trees. Different combinations of surviving edges can produce many complete trees. This helps explain why a substantial expansion in represented analyses can coexist with a comparatively modest score change at the upper end of the sweep. By that stage a newly admitted analysis may share most of its useful rule matches with analyses the decoder could already use. The test measures the resulting translations after scoring, so an alternative helps the final metric only when it participates in derivations that the system can select and that improve the judged output.
What lexicalized coverage measures
The authors use phrase pairs extracted from the training data to examine which mappings the grammar can capture. For this analysis they cap the phrase length at 10. They ask whether a phrase pair can be represented by a fully lexicalized STSG rule, with terminal words in place of open variables. This is a test of direct coverage by an individual rule. It asks whether the grammar can retain a particular training correspondence as a unit. It is different from asking whether the system can translate the same stretch of words through a sequence of shorter rules.
For the single-parse system, coverage is below 8% even with a cap of 10 nodes. The authors interpret that low value as evidence of the mappings excluded by strict syntactic conditions. With the forest threshold and node cap both at 10, the fully lexicalized coverage is 9.7%. This is a gain on the same training phrase-pair diagnostic. It shows that an alternative parse can give an aligned phrase pair a usable structural realization that was unavailable under the preferred trees.
The coverage measure addresses a different hypothesis from the alignment-boundary analysis. The 38% figure for minimal frontier tree pairs concerns how to recover bilingual fragments that the chosen forests allow. The phrase coverage percentages concern how many phrase mappings the resulting rule representation can express directly. One finding motivates the paired extraction algorithm. The other diagnoses how much of the phrase-based inventory a tree-to-tree grammar can reach. A forest can improve both opportunities without making the tests equivalent.
Coverage and BLEU rise together in the reported settings, which supports the authors’ account that additional rules help. There is also a difference in what the measurements can attribute. The lexicalized diagnostic excludes rules with open positions, though such rules can do useful work in translation. It gives each phrase pair a coverage decision without measuring how often a particular mapping shapes a winning translation. The BLEU scores also reflect decoding with more source analyses and the choices made by the scoring procedure. These results make improved lexicalized coverage a plausible contributor to better translation while leaving its individual contribution undetermined.
What larger rules add
The paper varies the maximal node count and plots the resulting BLEU scores. Translation quality rises as larger tree fragments are permitted. This comparison changes how much structure a single rule can retain. A small rule may record that one source category corresponds to one target category, with many decisions left to later substitutions. A larger rule can retain several related choices together, including internal labels, order, and some fixed words. It gives the system a way to make a translation decision for a broader context within one operation.
The node count and forest threshold operate at different points. Keeping more analyses gives the system more local structures from which to extract or match a rule. Letting rules contain more nodes lets the extractor follow more of a particular structure before it stops. A larger rule can help even when its fragments come from preferred parses. A deeper forest can help even with small fragments, if it makes a missing configuration available. Their effects can also interact. A complex pattern from an alternative parse yields a directly usable rule only if the node cap lets that pattern fit.
The paper interprets the upward score trend as evidence for the value of contextual expressiveness. The comparison changes the allowable fragments and therefore can affect the inventory of reachable derivations as well. It establishes the advantage of the larger permitted fragments in the reported setting. Individual examples, such as the verb phrase transferring the prepositional phrase to a later position in English, explain what such fragments can represent. The score trend measures the aggregate effect of changing their allowable size.
The time cost of keeping alternatives
Decoding time by forest pruning on the Chinese-to-English task
Decoding takes longer as the forest keeps more parse alternatives.
The numbers
| System or setting | seconds per sentence |
|---|---|
| Preferred parse, p = 0 | 6.76 |
| Packed forest, p = 2 | 8.52 |
| Packed forest, p = 5 | 14.87 |
| Packed forest, p = 8 | 19.78 |
| Packed forest, p = 10, best BLEU setting (this paper) | 25.81 |
The star identifies the forest setting with the best translation score. The preferred-parse setting is the fastest. Rule extraction times for p = 0, 2, 5, 8 and 10 are 1.26, 2.35, 6.34, 8.51 and 10.21 seconds per 1000 sentence pairs, respectively. The units differ because extraction processes pairs in the training corpus while decoding processes an input sentence. The authors compare how each timing series grows as the forests expand and find faster growth in extraction.
Their proposed explanation is the increase in candidate frontier tree pairs. For a given root, the extractor can see multiple eligible source fragments and multiple target fragments across all its counterparts. It has to consider their combinations before it can keep the valid minimal pairs. The PP example illustrates this cost even in a small forest. Once forests contain more fragment choices, packing still allows shared representation, but the extractor has an additional bilingual comparison to perform on the candidates it identifies. That is a possible explanation offered by the paper. The timings measure the complete operations and do not isolate the duration of the pairing step.
The decoding timings reflect a related pressure on search. Retaining edges can create new rule matches and more choices for combining partial translations. Cube pruning approximates that search, so decoder time reflects how the implementation handles those alternatives. Together, the BLEU and timing measurements show a choice between settings. Looser pruning keeps improving the reported score through the tested range, with smaller quality gains at the upper end and continued increases in extraction and decoding time.
Limitations
Limits the authors identify
The authors emphasize that the rule coverage remains low even after they add parse alternatives. The candidate phrases can be up to 10 words long, while the cap of 10 nodes in each tree counts internal structure too. A phrase at the upper end of the test can therefore be too long for a rule subject to that restriction. The 9.7% figure characterizes a particular overlap between a phrase inventory and bounded lexicalized STSG rules. It captures the effect of the grammar and the chosen caps together.
The authors also point to the smaller gains when forests represent over 1M parses per sentence. Forest packing is efficient relative to enumerating all those trees, but widening the forest still has a measured operational cost. The timing study shows that both stages take longer under looser pruning. It also identifies extraction as the stage with the faster relative growth in the range tested. This matters for repeated training as well as for the cost of translating new inputs.
Both comparisons with Moses produce close BLEU values. The paper explicitly qualifies those comparisons through statistical significance. Its evidence supports similar measured quality on these data, with a reliable gain over the single-parse tree-to-tree system on the main test. The larger corpus extends the benchmark comparison under a particular pruning choice, p = 5. The authors also report filtering out sentences when they could not obtain forests. The large-data result describes a training collection on which their parsing pipeline succeeded.
Limits visible in the experimental design
The evidence comes from Chinese-to-English translation and the evaluation protocol reported for that direction. Changes in language pair, parser behavior, or corpus can change where syntax provides useful categories and where it creates barriers. In this study the input representations come from particular Chinese and English parsers, and rules depend on alignments obtained by a particular procedure. A forest still draws its analyses from what those parsers generate and retain. If a useful construction has no adequate analysis in either training forest, or if the word links make its boundary inconsistent, the extraction procedure has no candidate of that kind to recover.
The central experiment couples training forests with input forests. It establishes that the complete forest setup improves on the complete single-parse setup. It leaves open how much improvement would come from training a broader grammar for use with single source parses, or from taking a grammar learned on single trees and applying it to source forests. A related attribution question concerns the parsing probability feature and the additional rule matches. The paper describes the score and reports the combined behavior of the decoder. Individual feature effects are outside the reported comparison.
The target side requires a careful distinction at test time. Training uses forests in both languages because both sentences are available. Decoding starts from a source forest and builds target alternatives with the rules. Consequently, the target trees at test time reflect what the learned grammar and search procedure can build. The reported evaluation judges the English word sequence with BLEU. It gives no separate accuracy measurement for the target tree, for the source parse selected by the decoder, or for the linguistic correctness of the rules used in the winning derivations.
Finally, the formal decoding objective and the practical search play different roles. The objective specifies the best scoring derivation whose source tree is represented by the forest. Cube pruning makes the search with the fluency score approximate. The tests therefore evaluate the output the implemented system actually selects under its search settings. They do not give an exact-search benchmark that would tell a reader how much translation quality is lost or gained through that approximation. Likewise, the average number of trees in a forest describes representational capacity and gives only an indirect account of how much useful ambiguity the search explores.
What came after
Different ways to use syntax in translation
The citing work ranges across source and target grammar, word alignment, reordering, and translation software. The connection documented for these papers is that they cite the packed-forest study. Their titles identify the problems they pursued. The exact role of forest extraction, pruning, or decoding in those projects is unspecified, so the connections below concern their stated technical directions.
Learning to Translate with Source and Target Syntax returns to the general choice that motivates the forest paper. It addresses learning to translate with syntactic information in both languages. In the forest study, that choice means finding compatible boundaries and rules under paired constituents. The later title places learning with both structures at the center, a direct thematic continuation of the question of how evidence on the two sides should contribute to translation. Learning to Translate with Source and Target Syntax
Augmenting String-to-Tree Translation Models with Fuzzy Use of Source-side Syntax starts from a system organized around target trees and adds source syntax in a fuzzy form. Its announced direction shares the forest paper’s interest in making source syntax available with some flexibility. The two descriptions imply different points at which that flexibility can enter. The forest study represents several source analyses and still requires a matching source tree fragment for each rule application. The later work describes flexibility in the way a string-to-tree system uses the source-side analysis itself. Augmenting String-to-Tree Translation Models with Fuzzy Use of Source-side Syntax
Translation with Source Constituency and Dependency Trees brings both constituent groupings and dependency relations into the stated source representation. This connects to the broader question of what should be available to the translator when a single syntax representation offers limited support. The forest study varies the analyses available within a forest of constituents. The later title identifies a distinction among kinds of source syntax, adding dependency structure to the topic of which syntactic evidence a translation system can exploit. Translation with Source Constituency and Dependency Trees
Improving Syntax-Augmented Machine Translation by Coarsening the Label Set addresses the categories used to describe syntax. In the forest paper, labels are part of matching, and even two counterparts covering the same words can produce rules with different target root labels. Coarsening takes the label inventory itself as a variable. Its connection is to the broader tension between expressive categories and opportunities to match a rule, alongside the forest paper’s focus on keeping alternate structures. Improving Syntax-Augmented Machine Translation by Coarsening the Label Set
Aligning, reordering and implementing syntactic translation
Unsupervised Syntactic Alignment with Inversion Transduction Grammars takes alignment as its problem and names inversion transduction grammars as its formalism. The forest paper obtains word links first and then uses them to decide where tree fragments can be paired. A paper on syntactic alignment brings the structural question into the production of alignments themselves. The shared concern is how correspondence across languages relates to grammar, with alignment serving as an input to extraction in the forest study and as the stated subject of the later work. Unsupervised Syntactic Alignment with Inversion Transduction Grammars
Post-ordering by Parsing for Japanese-English Statistical Machine Translation addresses ordering through parsing for Japanese and English. The forest paper’s linked variables make reordering part of a tree rule, as when the translated prepositional phrase is placed later in the English verb phrase. The later work’s title identifies a different placement for a parsing-based ordering operation in translation, through post-ordering. The connection is the use of syntactic information to decide the sequence of translated material. Post-ordering by Parsing for Japanese-English Statistical Machine Translation
Shallow Local Multi-Bottom-up Tree Transducers in Statistical Machine Translation focuses on a named family of tree transducers. This relates to the grammar-level question of what a single mapping between trees should be able to express. In the forest paper, minimal rules and their compositions give different amounts of local context to a substitution operation. The later title places a different tree-mapping formalism in the same translation setting. Shallow Local Multi-Bottom-up Tree Transducers in Statistical Machine Translation
Joshua 3.0: Syntax-based Machine Translation with the Thrax Grammar Extractor situates grammar extraction in a translation software system. Extraction and decoding are already distinct stages in the forest paper. The first turns aligned training examples into reusable grammar rules, and the second searches with those rules. The later toolkit paper names Thrax as its extractor, placing the construction of a translation grammar among the components of a syntax-based system. Joshua 3.0: Syntax-based Machine Translation with the Thrax Grammar Extractor
Cite
Cite as Yang Liu, Yajuan Lü and Qun Liu. 2009. Improving Tree-to-Tree Translation with Packed Forests. Proceedings of the Joint Conference of the 47th Annual Meeting of the ACL and the 4th International Joint Conference on Natural Language Processing of the AFNLP.
@inproceedings{liu2009improving,
title = {{Improving Tree-to-Tree Translation with Packed Forests}},
author = {Yang Liu, Yajuan Lü and Qun Liu},
booktitle = {Proceedings of the Joint Conference of the 47th Annual Meeting of the ACL and the 4th International Joint Conference on Natural Language Processing of the AFNLP},
year = {2009},
doi = {10.3115/1690219.1690225},
url = {https://doi.org/10.3115/1690219.1690225}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/liu-2009-improving-tree-tree-translation-packed/