Forest-Based Translation
Paper · 2008 · Haitao Mi, Liang Huang and Qun Liu
Summary
A sentence can have several plausible grammatical readings, and each can lead to a different translation. In a common approach to syntax-based machine translation, a parser chooses a single reading before the system begins to translate. That division makes the two jobs easier to manage, but it gives the translator no way to recover a reading that the parser ranked lower. In Forest-Based Translation, Haitao Mi, Liang Huang and Qun Liu keep the two stages and change what passes between them. The parser supplies a packed forest, a graph that shares grammatical structures across many possible readings of the same sentence.
The decoder looks for places in this graph where a translation rule applies. A rule can translate source words directly or specify how to arrange the translations of larger pieces. Each successful match becomes a choice in a second graph, the translation forest. The decoder searches this graph using evidence from the parser, the translation rules and an English language model, which scores word sequences in the output. The parser’s first choice can still win, but other readings can win when they support a better-scoring translation. Sharing also means that a grammatical piece common to several readings can supply translations to all of them.
In the smaller Chinese-to-English experiment, the system that used the parser’s first choice scored 0.2325 on the case-sensitive BLEU score with sequences through length 4. The forest system reached 0.2485 on the same NIST test set. With 2.2M training pairs and the ordinary translation rules, the forest reached 0.2839, compared with 0.2666 for the single tree and 0.2755 for a list of 30 parses. The paper reports a gain of 1.7 BLEU points over the single tree and 0.8 points over the list in that larger experiment. Forest decoding also took less time than decoding shortlisted trees separately in the paper’s speed comparison.
The authors found that 40% of the parses used by the forest decoder lay outside the parser’s first 30 choices. This helps explain why a short list can miss useful readings even when it includes the most likely complete trees. The forest offers access to combinations of local choices without requiring the decoder to translate each complete tree separately. The approach retains a separate source parser and avoids making the translation grammar parse the original string during decoding. Its evidence is strongest for a specific practical tradeoff in the reported system: keeping more source analyses available improved the translations while avoiding the cost of repeatedly working through similar trees.
Deep dive: Forest-Based Translation
Forest-Based Translation shows how a decoder can use many possible source parses at once to improve Chinese-to-English translation. · about 37 minutes to read
The problem and its context
Where grammatical decisions enter translation
Parsing assigns structure to a sequence of words. For translation, that structure helps identify which words belong together and which pieces can be moved as a unit. A verb and its object may form a phrase, for example, while a nearby expression belongs with the subject. When the target language calls for a different order, a rule can rearrange the pieces it recognizes. Its usefulness depends on finding those pieces in the source analysis. If the parser grouped the words another way, a rule looking for that particular structure may have nowhere to apply.
The paper distinguishes systems by the input to their translation stage. One family takes the source words and determines how to analyze and translate them together. A synchronous grammar links source and target structures, allowing an analysis on the source side to come with instructions for building a corresponding target expression. The paper places inversion transduction grammars and hierarchical phrase-based translation in this tradition. In such an arrangement, the search has direct access to both the source string and the bilingual grammar. The work of finding a useful source structure takes place inside translation. Inversion Transduction Grammars, Hierarchical Phrase-Based Translation
The other family starts from structure supplied by a separate parser. The parser organizes the source words into a tree. The translator searches for a way to convert that tree into a target tree or a string, depending on the system. The paper concentrates on tree-to-string translation. Its rules can refer to source grammar categories and produce target words in a new order, so an English output need never be represented as an English parse tree. The search works with the source spans and grammatical groupings that the parser has identified.
The authors give several reasons why this separation was attractive. They describe earlier tree-based decoding as linear in the sentence length, compared with cubic-time decoding in the string-based approach they discuss. The contrast concerns the decoding stage and the work it inherits from its input. With a fixed source tree, the decoder starts with established constituents. In the string-based approach, it must find and combine spans while translating. The paper also notes that a tree-based translation grammar need not require every rule to branch into exactly two pieces. Syntax-Directed Translation with Extended Domain of Locality, Synchronous Binarization
A separate parser also lets the system use different grammars for the two jobs. A context-free grammar can describe how source constituents combine. Translation rules can use larger tree fragments as reusable patterns, with their outermost pieces left open for further translation. A parser can therefore establish a verb phrase through several small steps while the translator recognizes a pattern that spans those steps. The division gives each component a representation suited to its job. It also creates an interface at which the system can discard information that the next component would have used.
What a ranked list preserves
In the baseline interface, the parser passes the tree at the top of its ranking, called the 1-best parse. That rank answers a question about how well the tree fits the parser’s scoring criteria. The translation stage has other evidence. Its rules may cover one grouping well and another poorly. An English word sequence enabled by a lower-ranked tree may fit its surrounding words more naturally. By the time this evidence becomes available in a single-tree system, the choice of source structure is already settled. The authors highlight the vulnerability of this setup when a source language has little treebank data, the collection of sentences with grammatical analyses used to train a parser.
A k-best list changes the interface by supplying the parser’s highest-ranked complete trees up to a chosen limit. The decoder can now test translations under several readings. This helps when the important alternative happens to make the cutoff. Each entry, however, spends a place in the list on a full analysis, including all the parts already present in other entries. Two trees that differ over an attachment may agree everywhere else. Several combinations of small changes can occupy much of the list while a different decision, important to translation, remains unavailable.
The paper illustrates the problem with a 50-best list and a set of binary ambiguities. With 5 such choices, the possible combinations fit within the list. With 6, the combinations can already exceed its capacity. This is an illustration of how choices combine, rather than a rule for how many ambiguities any actual list contains. Whether the alternatives survive in a real list depends on the parser’s scores for the complete trees. As the sentence grows and more choices interact, even high-ranking lists can devote much of their space to related analyses.
Repeated structure also has a cost during decoding. If each complete tree is sent through the translator by itself, shared pieces are processed again. A name may have the same internal analysis and the same applicable lexical rule throughout the list, while the difference that justified creating the list lies elsewhere in the sentence. The paper’s proposal is to give the decoder access to the shared structure itself. This changes the unit of work from a full parse to a grammatical item or local rule match that several full parses may use.
The method, step by step
Follow the ambiguity through a sentence
The paper’s running example is a Chinese sentence involving Bush, Sharon and a talk. Its word yǔ has two possible grammatical functions. As a preposition, it introduces Sharon as the other participant in the talk. In the English rendering, Bush is the subject and Sharon appears in a phrase introduced by with. As a conjunction, yǔ joins the names into the subject. The resulting English version begins with Bush and Sharon. The words of the Chinese sentence stay the same. What changes is the structure that assigns each name its role.
In the parser’s highest-ranked reading, Bush forms the subject and the words involving yǔ and Sharon belong in the verb phrase. A rule at the root passes through the translations of the subject and verb phrase in that order. A separate rule renders the name Bush. The interesting work then happens inside the verb phrase. A larger rule recognizes the prepositional phrase, the Chinese verb and its aspect marker, and a constituent for what was held. It produces the English verb held, puts the translation for the talk next, and places with before the translation for Sharon.
For the conjunction reading, the translation starts from a different division of the sentence. The subject now spans both names and their conjunction. One rule can make the compound subject, and a rule for the remaining verb phrase can supply held and the translated object. The lexical work inside the name constituents need not be redone for the two readings. A forest gives those constituents identities that the two analyses can share. The English sentences differ in what their higher-level rules assemble from the common pieces.
This example distinguishes two kinds of choice the decoder has to handle. The source may have competing grammatical structures, as with the preposition and conjunction. Even within one structure, several rules may cover the same source material in different ways. A broad rule can handle several source grammar steps in a single choice. A narrower rule can leave some of that work to another translation rule. The translation forest keeps these decisions available at the locations where they matter. In either case, the decoder eventually needs a complete set of choices that yields a connected derivation from the root to translated material.
From Chinese input to an English translation
The steps in order.
From a single tree to shared grammatical structure
The paper begins its formal account with the single-tree decoder. A derivation is a complete way of applying translation rules to the source tree. Different derivations may cover the tree using different rules, and some may produce the same output. The decoder’s initial objective is to select a derivation with the highest conditional probability.
d* = arg max over d ∈ D of P(d | T)
Here T is the source parse tree, D is the set of candidate derivations for that tree, and d is a member of D, as indicated by ∈. P(d | T) is the probability assigned to d given T, with | indicating conditioning. arg max returns a maximizing candidate, and d* names the selected derivation. The target sentence comes from carrying out that derivation.
Packing changes what takes the place of T. In an ordinary tree, a node records a grammatical category over a span of words, together with the children chosen in that particular analysis. A packed forest can store one item for the same category and span even when several ways of building that item are possible. The alternative child groups remain explicit. The category and span tell downstream components which item is being discussed. The choice of child group tells them how it was built on a given derivation.
H = ⟨V, E⟩
H denotes the forest, V is its set of nodes and E is its set of hyperedges. The angle brackets indicate an ordered tuple. A hyperedge connects all of the children used in one grammatical step to the parent that the step establishes. Giving the children a common edge preserves the fact that they are used together. A collection of independent pairwise connections would, by itself, lose the distinction between children that must occur in one group and children that belong to competing groups.
A node written Xᵢ,ⱼ represents a constituent of category X between boundaries i and j. The paper indexes the words after the left boundary through the right boundary, so the span starts at the word after i and ends at the word at j. The distinguished root is TOP, which corresponds to the start category S over the entire input. The paper writes that full span as S₀,ₗ, where 0 is the initial boundary and l is the sentence length. Lower nodes can be shared wherever their category and span are compatible with more than one continuation toward the root.
e = ⟨tails(e), head(e)⟩
e is a parse hyperedge. tails(e) is the ordered list of antecedent nodes needed by the grammar step, and head(e) is the single consequent node. In the conjunction reading, one such edge combines the constituent for Bush, the conjunction and the constituent for Sharon. The result is a noun phrase that covers all three. A different incoming edge would be another way to establish the same head. A different outgoing use of that head would place the resulting constituent into a different larger structure.
The full forest, before pruning, represents grammatical derivations for the sentence under the source grammar. To recover a tree from it, start at the designated root, choose an incoming edge, and apply the same procedure at each of its child nodes until the choices have been completed. The graph can represent a large set of trees because a choice made in one region can be paired with choices made elsewhere. It preserves the shared portions of those trees in one structure, without claiming that every imaginable grouping of the source words is allowed.
In the running example, one root expansion uses a short name constituent as the subject and a longer verb phrase. Another uses a longer coordinated subject and a shorter phrase for the predicate. The part containing the verb and its object can be represented as a shared item where those uses permit it. This is also why a forest is more than a record of the differences between a few complete trees. Its local edges carry the information required to reconstruct valid analyses without storing a separate copy of the common portions for each one.
Prune on complete-parse evidence
The parser’s output can itself be too large to pass on unchanged. The authors prune the forest before any translation rules are matched. The test they use asks how good the best complete parse using a particular edge could be. An edge that makes a plausible local combination may still occur only in poor complete parses. Conversely, an edge with a modest-looking local role can participate in a strong analysis. Evaluating it in the context of the whole sentence is what distinguishes this procedure from keeping a fixed number of expansions at each node by a local rank alone.
The method computes Viterbi inside and outside costs. The inside cost finds the least costly derivation of the fragment rooted at a node. The outside cost accounts for the best way to extend the node to a complete derivation, taking care of the work outside that fragment. The paper combines these quantities in its displayed edge merit as follows.
αβ(e) = α(head(e)) + ∑ over uᵢ ∈ tails(e) of β(uᵢ)
αβ(e) is the merit assigned to edge e. α is the outside cost function, so α(head(e)) supplies the cost outside the head of the edge. β is the inside cost function, and β(uᵢ) supplies the cost of the best derivation at tail node uᵢ. The subscript i indexes the tails. The summation symbol ∑ adds the contributions from all members of tails(e), and + joins that sum to the outside cost. The authors interpret the merit as the cost of the best full derivation traversing the edge. The displayed expression has no separate additive term for the cost of the edge itself.
δ(e) = αβ(e) − β(TOP)
δ(e) is the gap between the merit for e and the globally best parse cost. β(TOP) is the inside cost at the root, which covers the complete sentence. The minus sign takes the difference between the two costs. The pruning threshold is p. The algorithm discards e whenever δ(e) is greater than p, and removes nodes when all of their incoming edges have been discarded. A larger threshold admits edges farther from the best parse according to this criterion.
The timing of this operation matters. It uses scores available to the source parser, before the decoder has a candidate English sentence to compare. Pruning can therefore remove a source choice that would have been useful to translation. Its purpose is to limit the forest while preserving promising material by a criterion the parser can compute. The default setting in the reported development and test experiments is p = 12. The resulting input is still a graph of choices rather than a list of the first several complete trees.
Match the source pattern and carry the output instructions
The rules used to convert the graph into a translation search space have a tree on the source side and a string on the target side. Some leaves of the source pattern contain source words. Others contain typed variables. A variable stands for a piece that the current rule leaves to another derivation, and its type says what grammatical category must appear at that position. The target string contains English words and variables for the unfinished pieces. The order of the variables can change between the source pattern and the target string.
r = ⟨t, s, φ⟩
r is an individual translation rule. t is its source tree pattern and s is its target string. φ assigns a nonterminal category to each variable, such as the category required for a noun phrase. The paper uses N for the set of nonterminal categories, Σ for the source terminals, Δ for the target terminals and X for the variables. Interior nodes in t carry categories from N. Its frontier contains terminals from Σ or variables from X. The string s is a sequence over X and Δ. Each variable used in a rule appears once in the source pattern and once in the target string. The full collection of translation rules is R.
The target string is a template for substitution. In the verb-phrase example, the source pattern finds Sharon’s noun phrase before the constituent for the talk. The corresponding output template places the talk first. The intervening English words are given by the rule, and the words for the two noun phrases come from their own derivations. The rule can account for several levels of source structure at once, including the lexical preposition and the verb with its aspect marker. Other rules can address smaller fragments and delegate more of the work to their variables.
The conversion visits the source forest from the top down and seeks matches rooted at its nodes. A match of a multi-level pattern can cross several parse hyperedges. For each level of the rule’s source pattern, the matcher must follow choices in the local forest that supply the requested categories, terminals and child relationships. When it gets to a variable, it records the node at that frontier position. These recorded nodes are the places where translation will resume after the current rule has supplied its part of the target string.
match(r₃, VP₁,₆) = (NPB₂,₃, NPB₅,₆)
match is the rule-matching operation, r₃ is the example’s larger verb-phrase rule and VP₁,₆ is the verb-phrase node at which it is tried. VP denotes the verb-phrase category. NPB is the noun-phrase category used for the two frontier items in this rule. The boundary pair 2,3 locates the constituent for Sharon, and 5,6 locates the constituent translated as the talk. The parentheses on the right enclose the ordered list of bindings. The rule’s pattern crosses three source parse hyperedges, but the match only needs two variable bindings for the output template. Its target words and the ordering of the substitutions come from the rule.
A successful match becomes a translation hyperedge. The edge reaches from the variable nodes to the node where the rule is applied, and it keeps the target template with it. An interior source node can be consumed during a match without becoming a separate translation task. For instance, if the rule itself handles the source preposition, the decoder needs no independent English rendering of that preposition at this point. In the conversion from a parse forest to a translation forest, one translation edge can thus represent a fragment that took several grammatical steps to build.
e = ⟨tails(e), head(e), s⟩
Here e is a translation hyperedge. Its tails(e) are the bound variable nodes, its head(e) is the node where the rule matches, and s is that rule’s target string with its variables still present. Angle brackets group the triple. Completing the edge means using the translation of each tail at its assigned position in s. The notation for the head and tails parallels that of the parse forest, but the translation edge expresses a rule application instead of a single source grammar expansion.
The paper gives two matches at the example’s verb-phrase node. One rule translates the verb as part of the larger pattern. The other handles the prepositional construction and delegates the rest of the predicate to its own variable. This is uncertainty over how to perform the translation under a source analysis. Meanwhile, the coordinated-subject reading yields edges rooted at other constituents. A decoder can choose among those alternatives by following the root and tail relationships of the translation forest. A rule can participate only where the source forest supplies its pattern.
The authors also provide a default translation edge for every parse edge. It joins the translations of the child nodes in source order. This gives the decoder a way to construct a complete result when a more specific combination is missing from its inventory. The default operates at the level of a grammar expansion and does not have to know which structural alternatives elsewhere will be used. Later, in the larger experiment with bilingual phrases, matching phrase-table entries are another source of translation edges. They are eligible when the Chinese side of the entry covers the span of a forest node.
Score a derivation with source and target evidence
Decoding must compare rule choices, possible source analyses and the strings they produce. The paper first gives a scoring function for the single-tree case and then specifies how the source-conditioned part changes for a forest. Multiplying the factors shown below corresponds to adding their weighted logarithms. This is the sense in which the scoring scheme is log-linear.
d* = arg max over d ∈ D of P(d | T)^λ₀ · exp(λ₁|d|) · Pₗₘ(s)^λ₂ · exp(λ₃|s|)
d, D, T and d* refer to a candidate derivation, the candidate set, the fixed source tree and the selected derivation. arg max selects the candidate with the largest product. s here is the complete target string produced by d, and Pₗₘ(s) assigns it a word-sequence probability. |d| counts the rules used in the derivation, and |s| counts the target length. exp is the exponential function, ^ denotes exponentiation and the centered dots multiply the factors. λ₀ weights the derivation probability, λ₁ the rule-count term, λ₂ the sequence probability and λ₃ the output-length term. The weights determine the influence of the respective factors.
The length and rule-count terms address different decisions. A decoder can use a comparatively large source pattern or cover the same material in smaller steps. Those choices affect the number of rules. The English string can be longer or shorter depending on the words that those rules insert and the refinements chosen for their variables. Neither term by itself assesses fluency. The English sequence score supplies evidence about which words work together, including sequences whose words were introduced in separate rule applications.
P(d | Hₚ) = ∏ over r ∈ d of P(r)
Hₚ is the source parse forest, and P(d | Hₚ) replaces the term P(d | T) when the source input to the decoder is a forest. d is still a derivation, and r ranges over its translation rule applications. P(r) denotes the contribution of one application. The product symbol ∏ multiplies those contributions, and ∈ indicates that the application occurs in d. Where a rule’s score depends on how it matches the forest, its contribution is understood in the context of that application.
P(r) = P(t | s)^λ₄ · Pₗₑₓ(t | s)^λ₅ · P(s | t)^λ₆ · Pₗₑₓ(s | t)^λ₇ · P(t | Hₚ)^λ₈
In this formula t and s are the source tree pattern and target string of rule r. Unlike the full-sentence scoring expression, s here belongs to the individual rule. P(t | s) and P(s | t) are the translation probabilities in the two directions, weighted by λ₄ and λ₆. Pₗₑₓ(t | s) and Pₗₑₓ(s | t) are their lexical counterparts, weighted by λ₅ and λ₇. The lexical factors concern the word-level correspondence. P(t | Hₚ) records the source parsing contribution for the matched pattern, and λ₈ controls its influence. The powers apply the weights and the dots multiply the resulting factors.
P(t | Hₚ) = ∏ over eₚ ∈ Hₚ covered by t of P(eₚ)
Here eₚ is a source parse hyperedge and P(eₚ) is its probability. The notation eₚ ∈ Hₚ means that the edge belongs to the parse forest. The product ranges only over the edges used in matching the source pattern t against that forest. The matcher can record those edges during conversion. This makes the parser’s assessment available when the decoder compares alternatives. A forest lets a lower-ranked parse compete while retaining a feature that reflects the parser’s evidence about the pieces on which the translation depends.
Search with scores that cross rule boundaries
A structural translation forest can be used to compose many candidate strings. The English sequence score complicates this composition because two fragments can each score well internally but join poorly. In the example, the words following held matter when the verb is joined to a translation for the object. The words around that object matter again if the larger fragment adds with and the name of the other participant. A child node’s single best translation in isolation may give a worse complete sentence than another option whose boundary words fit the parent’s template.
The decoder addresses this by working upward and keeping hypotheses distinguished by their target boundaries. A hypothesis augmented with this information is called a +LM item. In the paper’s simple notation, v identifies the node and the target words a and b describe the left and right boundaries, with ⋆ standing for the material between them. The verb-phrase item in the example has held at the beginning and Sharon at the end. For a general n-gram, which uses sequences of n words, the paper says to keep n − 1 words at each end. Those boundaries supply the context needed when fragments are joined.
The search uses cube pruning to limit the combinations it tries. A translation rule whose variables have several candidate fillings creates a space of combinations. The decoder examines promising combinations first and limits the work at a node to at most k augmented items. Here k is the local search limit. It has a different role from the k in a parser’s list of complete trees. Cube pruning is an approximate way to combine the translation forest with the English word-sequence scorer. The approximation allows the decoder to use that evidence while avoiding the cost of retaining every possible boundary state and combination. Forest Rescoring
The system also needs ranked alternative derivations for tuning, where a single output per sentence is insufficient for comparing the effects of different feature weights. After finding its best derivation, it uses a lazy search that starts at the root and requests further alternatives as needed. This search works over the finer forest whose nodes are the augmented items built during cube pruning. A node in that graph stands for a source constituent together with target boundary information, so it distinguishes some outputs that the original translation forest groups under the same source item. The authors describe the extra work of retrieving ranked alternatives as small relative to finding the initial best derivation.
Prepare the rules and tune the system
The training pipeline starts with a Chinese–English bitext, a corpus in which sentences in one language are paired with their translations in the other. The authors use the Chinese parser of Xiong and colleagues and modify it so it can produce a packed forest. To learn translation rules in this study, they still use its highest-ranked source trees. They word-align the bilingual sentences with GIZA++ and refine the alignments with the procedure called diagand. Word alignment tells the extractor which source words correspond to words on the target side, so it can identify the English material associated with a Chinese tree fragment. Statistical Phrase-Based Translation
The extractor obtains tree-to-string rules from those aligned examples, leaving typed variables at points where a rule can be reused with different subtranslations. The English side of the same bilingual corpus supplies the text for a trigram scorer trained with the SRI Language Modeling Toolkit and Kneser–Ney smoothing. A trigram uses contexts of three words, with smoothing supporting probability estimates for sequences that are sparsely observed. The feature weights are tuned by minimum error rate training on a separate development set. For this experiment the objective for tuning is development-set BLEU. The ranked derivations give the tuning procedure alternative translations with different feature values to compare.
This division of work is important when interpreting the experiment. The training extractor sees a chosen parse for each training sentence. The input representation changes when development and test sentences are decoded, where the decoder can receive a single tree, a ranked list or a pruned forest. The forest system can therefore put a learned rule to use in a different constituent of a new sentence, even though learning that rule did not use a forest of analyses for the training sentence. The larger setting further extends decoding coverage with a phrase table, while retaining this distinction between extraction and search.
Experiments and results
The smaller training setup
All the experiments translate Chinese into English. The smaller bilingual training corpus has 31,011 sentence pairs, with 0.8M Chinese words and 0.9M English words. The extraction procedure produces 346K translation rules. For development, the authors use the test set from the 2002 NIST MT Evaluation, which contains 878 sentences and has an average of 28.28 words per sentence. The held-out evaluation uses the 2005 NIST MT Evaluation test set, with 1082 sentences and an average of 26.31 words per sentence. The dates here identify the two NIST collections. Their roles differ because only the development collection is used to tune the feature weights.
The metric is case-sensitive BLEU-4. It evaluates a system’s outputs against reference translations, using agreements in word sequences through length 4 along with a penalty for outputs that are too short. Case sensitivity means that capitalization can affect what counts as a match. The scores below use the paper’s decimal form. The results concern the collection as evaluated by that metric. They do not give the proportion of sentences that a reader would judge fully correct. BLEU evaluation method
The most direct baseline is the tree-to-string system restricted to 1-best parsing. It scores 0.2325 on the 2005 NIST test set. The authors compare that figure with a previously reported 0.2302 under the same data splits and extraction procedure. They also give the score of Pharaoh, a phrase-based decoder, as 0.2182 on this dataset. Pharaoh provides a point of comparison outside the tree-to-string pipeline. The single-tree system supplies the comparison most closely tied to the question of how much source ambiguity to preserve.
The forest system reaches 0.2485 at the pruning threshold p = 12. The authors describe this as an improvement of 1.6 BLEU points over 1-best decoding and report p < 0.01 from a sign test. The use of p in the significance statement refers to the test’s probability value. In the decoder setting it names the parse pruning threshold. The paper cites the statistical testing procedure used in earlier work on clause restructuring. Clause Restructuring for Statistical Machine Translation
Smaller training setup on NIST 2005, case-sensitive BLEU-4
The packed forest scores above the single-tree system and the phrase-based baseline.
The numbers
| System or setting | BLEU |
|---|---|
| Pharaoh | 0.2182 |
| 1-best tree | 0.2325 |
| Forest, p = 12 (this paper) | 0.2485 |
The paper also plots BLEU against average decoding time in seconds per sentence. Its plotted tree settings include 1-best and lists with k = 10, k = 30 and k = 100. The plotted forest settings use p = 5 and p = 12. Increasing the number of trees generally improves on the single-tree BLEU result in that comparison, while the expense of decoding the trees individually becomes visible in the timing. The forest settings offer a better combination of quality and time than the larger tree lists in the plot. The authors attribute the time advantage to sharing, since repeated subtrees in separate tree inputs would each be processed in their own decoding run.
The time comparison is with that implementation of decoding a list. Each tree in the list goes through the decoder individually. The graph used by forest decoding pools shared subproblems and also changes which complete analyses can be recovered from the input. The figure is therefore a comparison of practical decoding approaches, with both coverage and computation affected by the representation. The reported result that matters for the pipeline is that wider access to source structures did not entail the rising cost seen when more trees were routed through separate runs.
The larger training setup
The larger experiment uses 2.2M bilingual sentence pairs. It scores English sequences using two trigram models, one trained on the English side of that bitext and the other on the first third of Gigaword’s Xinhua portion. Minimum error rate training gives the two components distinct weights. The 2002 development and 2005 test collections remain the same. A test score from this experiment can therefore be read against the same evaluation material as the smaller experiment, while the training resources available to the system have changed.
The authors evaluate the three source-input choices with two inventories of translation material. The setting called TR uses translation rules. With those rules alone, the score on NIST 2005 is 0.2666 for the 1-best tree, 0.2755 for the 30-best trees and 0.2839 for the forest at p = 12. The paper states that forest decoding improves on the single-tree score by 1.7 BLEU points, with p < 0.01. It reports a 0.8-point advantage over the 30-best result. The comparison with 30 trees is useful because that system already gives the decoder access to parser alternatives.
Large training setup with translation rules on NIST 2005, case-sensitive BLEU-4
The forest leads with the same translation-rule setting across the three source inputs.
The numbers
| System or setting | BLEU |
|---|---|
| 1-best tree | 0.2666 |
| 30-best trees | 0.2755 |
| Forest, p = 12 (this paper) | 0.2839 |
The other inventory, TR+BP, adds bilingual phrases. The authors describe preparing a phrase table with a phrase extractor such as Pharaoh. A phrase entry pairs source text with a target rendering. At decoding time the system checks for entries whose Chinese spans correspond to its nodes and builds flat rules from the matches. Thus a phrase from the table can supplement learned tree-to-string rules when the source side is available as a constituent. The table may offer a translation even where a more specific rule with interior source syntax would be unavailable.
With bilingual phrases, the score for the single tree is 0.2939, the score for the 30-best trees is 0.3084 and the forest reaches 0.3149. The paper describes the gain from adding phrases to the forest decoder as 3.1 BLEU points. It reports a 2.1-point advantage over the corresponding single-tree system with phrases. These comparisons answer different questions. One measures adding a translation resource to the forest setting. The other holds the presence of that resource fixed while changing the source representation.
Large training setup with bilingual phrases on NIST 2005, case-sensitive BLEU-4
The forest retains the lead when every input setting can use phrase-table entries.
The numbers
| System or setting | BLEU |
|---|---|
| 1-best tree | 0.2939 |
| 30-best trees | 0.3084 |
| Forest, p = 12 (this paper) | 0.3149 |
The larger setup provides a check on whether forest decoding still helps when there is substantially more bilingual training material and additional English text. It does under both rule inventories. It also identifies an interaction worth examining. A rule inventory that can translate whole spans benefits from having more candidate spans presented as constituents. Forest decoding can change what the system is eligible to translate with the inventory it already has, as well as how it ranks candidates once that inventory has been applied.
What the ablations show
Which source trees the decoder actually uses
The paper offers controlled changes to the source input and the phrase inventory, together with an analysis of the source parses selected during decoding. It does not report a full component-by-component ablation of the scoring function or search. The comparison among input forms is the central intervention. A single tree imposes the parser’s first choice. A list places a hard cutoff on the rank of complete trees. A forest pruned by edge merit can retain local choices whose combinations produce complete trees far down the parser’s ranking.
For the rank analysis, the authors ask where the source tree used in a translation would sit if the parser’s trees were listed by rank. This puts the forest and the list on a common descriptive scale. The forest itself stores local alternatives, so the rank is a diagnostic for the recovered tree. It is not an instruction to enumerate trees in that order during forest decoding. The analysis makes it possible to see how often the decoder uses the parser’s first choice and how much of the forest’s output depends on access beyond common list cutoffs.
The 30-best decoder uses the first-ranked parse on 25% of sentences in the analysis. The forest decoder uses it on 23%. Both systems regularly use a parse other than the parser’s first choice. The difference of interest lies in where they can go next. The 30-best decoder can choose only among the other parses in its list. The forest decoder can make combinations of retained grammatical choices whose complete trees would have been ranked far below those candidates.
Among choices made by the forest decoder, 40% were outside the first 30 parses, 32% were outside the first 100, and 20% were outside the first 1000. These are cumulative cutoffs for the same kind of event. A parse outside the first 1000 is also outside the first 100, so the percentages should be read as separate descriptions of the reach of the search. The authors’ rank plot only covers the displayed range, and its caption calls attention to the 32% beyond the first 100. That unseen part of the distribution is substantial for interpreting the figure.
The rank results give a more specific explanation than the statement that uncertainty helps. Even if individual alternatives are good enough to survive the parser’s pruning, the complete tree that combines them can rank poorly relative to trees that use different combinations. An edge-based representation can retain the building blocks of such a tree. A list of complete trees has to spend an entry on the entire combination. The result helps account for the forest’s accuracy advantage over the list in aggregate. The analysis does not establish that every use of a deeply ranked tree helped its particular sentence, since the paper does not report a reference-based or human comparison for each selected rank.
How the phrase inventory changes the comparison
In the larger experiment the phrase intervention is reported for each source representation. That design makes it possible to ask two separate questions of the table. What happens if the same representation gets access to bilingual phrases? And how does the forest compare with the tree and list after each gains access to phrases? All three improve with the additional inventory, and the forest remains ahead. The paper also reports a larger forest advantage over the single tree in the phrase condition than in the condition with translation rules alone.
The proposed mechanism depends on constituent boundaries. A phrase-table entry can provide an English rendering for a particular stretch of Chinese. To use that entry in this system, the decoder needs a node covering the stretch. One source analysis may group the words into separate constituents, while another makes them a constituent together. The phrase becomes an option with the latter analysis. The forest can expose that choice without requiring the parser to make it the preferred analysis of the whole sentence. The decoder then decides whether the phrase is worthwhile when combined with the rest of the output.
The authors present this mechanism as a conjecture about the larger gain with phrases. The table establishes the improvement with the additional resource and shows how that improvement varies with the source input. It does not count which individual phrase entries became eligible because of an alternative constituent, or show how frequently they were used in successful outputs. A phrase enabled by a second analysis may also compete with ordinary translation rules that already cover its words. The measured result is about the combined decision procedure, where coverage, scores and search jointly determine what gets used.
What the timing comparison isolates
The speed and quality figure varies two different controls. Raising k for the list means requesting more full trees and decoding them separately. Raising p for the forest means tolerating a larger parse-cost gap when retaining an edge. The paper shows both settings of the forest threshold alongside its tree experiments. These settings answer a practical question about the cost of operating each approach at different points. They are not matched by an exact count of complete analyses because the parameters govern different objects.
The independent runs on the listed parses supply the mechanism for the reported difference in speed. Repeating a subtree can require rediscovering its translation rules and recombining candidate output fragments. In the forest the shared item is available to more than one parent. Target boundary information can still require multiple hypotheses for that item, since its context can change the desirability of a translation. The saving comes from placing these hypotheses at a common node, where the relevant higher applications can draw on them, rather than allocating a separate search to every complete tree.
Taken together, the timing and rank analyses distinguish two reasons a forest might be preferable in this decoder. It can avoid duplicated work on similar trees, and it can provide access to different combinations of grammatical choices. The former helps account for the timing result. The latter helps account for why simply running the translator on a moderate number of high-ranking trees falls short of the forest’s BLEU result. Neither analysis measures the separate contribution of every translation feature. In particular, the paper does not give a forest condition with the source parsing feature removed or an otherwise identical search in which the shared work is deliberately duplicated.
Limitations
Limits the authors identify
The authors retain a single-tree assumption in training. Their system learns its tree-to-string rules from the best source analyses of the aligned sentences, even though it allows more source analyses at decoding time. That leaves a possible mismatch between how a rule is acquired and where it can later be matched. An alternative analysis of a training sentence could expose a useful fragment that the chosen tree would never present to the extractor. The authors end by proposing forest-based rule extraction as further work. The results in this paper measure the effect of using forests during decoding.
The authors also identify the starting forest’s size as a practical problem. A graph can share constituents and still be too large for comfortable conversion and search if it retains too many choices. The pruning threshold determines how much of the parser’s graph is supplied to translation. The forest is therefore broad relative to a short tree list, with a limit imposed by the source costs. In addition, the authors explicitly describe cube pruning as approximate. The reported decoder operates with a cap on target boundary hypotheses and does not exhaustively find the highest-scoring English output over every possible parse and translation.
The authors originally motivate the approach in part with the difficulty of parsing languages with little treebank material. The experiments address that concern indirectly by permitting translation evidence to help choose among the Chinese analyses retained by the parser. A parser must still propose the relevant structure and supply sufficient support for it to survive pruning. The method has no mechanism that invents an analysis absent from the parser’s forest. A weak parser could introduce many candidates without offering the constituents that the translation rules need.
Limits of the evidence
For translation quality the evidence comes from one direction, Chinese to English, and the same NIST development and test splits in the smaller and larger settings. This supports comparisons across the reported systems on that task. It provides no direct measurement for another source language, a different target language or a low-treebank condition. The experiments vary the amount of bilingual training data, which is different from varying the amount of annotated data available to the source parser. The low-resource motivation consequently remains broader than the experimental test.
The larger experiment makes several changes together. The authors supply more bilingual text and a second trigram trained on additional English text, and then separately compare the settings with and without bilingual phrases. The table supports comparisons among source representations within each of its rows. A comparison between the smaller and larger setups cannot identify how much of a change comes from bilingual data alone, because the English scoring resources also change. The use of the same test set keeps the evaluation target fixed while those training conditions vary.
BLEU tests agreement with reference wording and provides an aggregate measure for comparing systems. It does not directly answer whether the source trees picked by the forest are grammatically preferable. A lower-ranked parse may help the decoder find useful reordering or phrase coverage even when a human annotator would assign the sentence a different analysis. The reverse is also possible: a plausible parse may lead to a less effective translation in the available rule inventory. The example and rank analysis illustrate the route by which source alternatives can affect translation, while the reported test scores measure the output of the full pipeline.
The timing result has a specific baseline and stage. It compares the forest decoder with a method that translates the shortlisted trees individually and reports average decoding time. It leaves open how an implementation that explicitly shares work across a list would compare, as well as how costs would change with a different parser, rule set or search strategy. The paper’s framing about avoiding cubic-time parsing inside translation describes its separation of tasks. It does not establish a universal runtime bound for converting an arbitrary packed forest, estimating scores on it or running the pipeline from raw input to final output.
Finally, the results leave the tradeoff between parse pruning and downstream pruning partially unresolved. A source edge can survive into the translation forest and then lose all of its promising completed hypotheses during search. A different edge can disappear before any translation is considered. The threshold settings and aggregate results show that the chosen allocation worked in the reported experiments. They do not track all such losses or identify a setting that will preserve useful alternatives for every sentence. This matters when interpreting the forest as a very large ranked list: coverage depends on both which edges are still present and which target hypotheses the search actually pursues.
What came after
The closest follow-up in scope is Forest-based Translation Rule Extraction. Its subject is the training operation that Forest-Based Translation deliberately leaves on single trees. In the decoding paper the input forest lets a learned rule match a fragment from one of several parses. Extraction asks what rule fragments can be obtained when the aligned training sentence itself has several analyses. The connection follows directly from the original paper’s final proposal. It moves the source of optionality earlier in the pipeline, to the stage that determines which rules the decoder will have available at all. Forest-based Translation Rule Extraction
Travatar takes up the forest-to-string task as the basis for a translation engine. Its title identifies tree transducers as the apparatus for converting input structure to output. A tree transducer describes transformations driven by tree patterns, which is the role played by the original paper’s tree-to-string rules. Where the original work explains how to turn shared input analyses into shared translation choices and tests whether this improves decoding, Travatar puts that overall direction of translation at the center of an engine. The connection concerns the form of the input, the form of the output and the use of structural rules between them. Travatar
Efficient Incremental Decoding for Tree-to-String Translation addresses a different stage of the same kind of translation pipeline. A tree-to-string decoder must assemble target pieces as it searches, and its decisions can depend on context shared between pieces. The forest paper handles that dependence with target boundary information and a bounded search over combinations. The later work’s stated focus is efficient incremental decoding. The shared technical question is how to organize the search when a structural rule delegates parts of the target string to other derivations. A broader input representation makes that search question consequential because more grammatical alternatives can compete for the decoder’s work. Efficient Incremental Decoding for Tree-to-String Translation
Online Large-Margin Training of Syntactic and Structural Translation Features concerns the scoring side of syntactic translation. The forest method has a feature-weighted decision rule, and its experiments tune the weights by minimum error rate training. Once the input and grammar have made alternative derivations available, learning the weights helps determine which of them wins. This citing work focuses on large-margin training for syntactic and structural features, putting learning at the center of that decision. Its topic complements the forest paper’s intervention in the candidate space. The original study changes what can be searched while continuing to use its stated tuning procedure. The citing work’s subject is how to train translation features that score such decisions. Online Large-Margin Training of Syntactic and Structural Translation Features
Non-Projective Parsing for Statistical Machine Translation takes up the form of the grammatical analysis used in translation. The packed forest in the original method stores constituents identified by a category and a word span. A non-projective analysis can represent relationships for which a single set of nested, contiguous spans does not capture the structure. Packing addresses how to retain several analyses that the parser permits. Studying non-projective parsing addresses what kinds of analysis it can permit in the first place. The questions meet at the source representation the decoder receives, even though they change different properties of that representation. Non-Projective Parsing for Statistical Machine Translation
Lattice Minimum Bayes-Risk Decoding for Statistical Machine Translation concerns a compact search structure and a different criterion for selecting an output. A lattice can represent alternative strings through shared paths. Minimum Bayes-risk decoding frames the decision in terms of expected loss over alternatives. In the forest paper, the parse forest shares grammatical pieces, the translation forest shares rule applications, and the decoder seeks a highest-scoring derivation. The lattice work’s stated subject shifts attention to how alternatives represented in a graph can inform an output-level decision. This is related to packing through the use of shared structure, while the path representation and the selection criterion address different technical questions from source parsing. Lattice Minimum Bayes-Risk Decoding
These works place the original contribution in a pipeline with several places to preserve or resolve alternatives. Rule extraction controls what patterns enter the grammar. Parsing determines what structures the grammar can meet. Decoding decides how to explore and score the resulting derivations, and the final decision criterion determines what to return. Forest-Based Translation supplies direct experimental evidence for changing the handoff from parsing to decoding. Its follow-up on extraction addresses the remaining single-tree choice in the same design, while the other citing works develop related questions about representation, training, search and selection.
Institutions
Fields, topics and concepts
Shelves 4The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 worksArts and Humanities · 17,959 worksLanguage and Linguistics · 17,789 works
Topics 1Research subjects and languages the work is about.Machine translation · 1,109 works
Cite
Cite as Haitao Mi, Liang Huang and Qun Liu. 2008. Forest-Based Translation. Proceedings of ACL-08: HLT.
@inproceedings{mi2008forest,
title = {{Forest-Based Translation}},
author = {Haitao Mi, Liang Huang and Qun Liu},
booktitle = {Proceedings of ACL-08: HLT},
year = {2008},
url = {https://aclanthology.org/P08-1023/}
}References
- Sylvie Billot and Bernard Lang. 1989. The structure of shared forests in ambiguous parsing. In Proceedings of ACL ’89, pages 143–151. OpenAlex ↗ · Scholar ↗
- Eugene Charniak and Mark Johnson. 2005. Coarse-to-fine-grained n-best parsing and discriminative reranking. In Proceedings of the 43rd ACL. OpenAlex ↗ · Scholar ↗
- David Chiang. 2005. A hierarchical phrase-based model for statistical machine translation. In Proceedings of ACL, pages 263–270, Ann Arbor, Michigan, June.
- David Chiang. 2007. Hierarchical phrase-based translation. Comput. Linguist., 33(2):201–228.
- Michael Collins, Philipp Koehn, and Ivona Kucerova. 2005. Clause restructuring for statistical machine translation. In Proceedings of ACL, pages 531–540, Ann Arbor, Michigan, June.
- Yuan Ding and Martha Palmer. 2005. Machine translation using probabilistic synchronous dependency insertion grammars. In Proceedings of ACL, pages 541– 548, Ann Arbor, Michigan, June.
- Michel Galley, Mark Hopkins, Kevin Knight, and Daniel Marcu. 2004. What’s in a translation rule? In HLT-NAACL, pages 273–280, Boston, MA.
- Michel Galley, Jonathan Graehl, Kevin Knight, Daniel Marcu, Steve DeNeefe, Wei Wang, and Ignacio Thayer. 2006. Scalable inference and training of context-rich syntactic translation models. In Proceedings of COLING-ACL, pages 961–968, Sydney, Australia, July.
- Liang Huang and David Chiang. 2005. Better k-best parsing. In Proceedings of Ninth International Workshop on Parsing Technologies (IWPT-2005), Vancouver, Canada. OpenAlex ↗ · Scholar ↗
- Liang Huang and David Chiang. 2007. Forest rescoring: Faster decoding with integrated language models. In Proceedings of ACL, pages 144–151, Prague, Czech Republic, June.
- Liang Huang, Kevin Knight, and Aravind Joshi. 2006. Statistical syntax-directed translation with extended domain of locality. In Proceedings of AMTA, Boston, MA, August.
- Liang Huang. 2008. Forest reranking: Discriminative parsing with non-local features. In Proceedings of ACL, Columbus, OH. OpenAlex ↗ · Scholar ↗
- Dan Klein and Christopher D. Manning. 2001. Parsing and Hypergraphs. In Proceedings of the Seventh International Workshop on Parsing Technologies (IWPT-2001), 17-19 October 2001, Beijing, China. OpenAlex ↗ · Scholar ↗
- Philipp Koehn, Franz Joseph Och, and Daniel Marcu. 2003. Statistical phrase-based translation. In Proceedings of HLT-NAACL, Edmonton, AB, Canada. OpenAlex ↗ · Scholar ↗
- Philipp Koehn. 2004. Pharaoh: a beam search decoder for phrase-based statistical machine translation models. In Proceedings of AMTA, pages 115–124. OpenAlex ↗ · Scholar ↗
- Dekang Lin. 2004. A path-based transfer model for machine translation. In Proceedings of the 20th COLING, Barcelona, Spain. OpenAlex ↗ · Scholar ↗
- Yang Liu, Qun Liu, and Shouxun Lin. 2006. Tree-tostring alignment template for statistical machine translation. In Proceedings of COLING-ACL, pages 609– 616, Sydney, Australia, July. OpenAlex ↗ · Scholar ↗
- Yang Liu, Yun Huang, Qun Liu, and Shouxun Lin. 2007. Forest-to-string statistical translation rules. In Proceedings of ACL, pages 704–711, Prague, Czech Republic, June. OpenAlex ↗ · Scholar ↗
- Franz J. Och. 2003. Minimum error rate training in statistical machine translation. In Proceedings of ACL, pages 160–167. OpenAlex ↗ · Scholar ↗
- Kishore Papineni, Salim Roukos, Todd Ward, and Wei-Jing Zhu. 2002. Bleu: a method for automatic evaluation of machine translation. In Proceedings of ACL, pages 311–318, Philadephia, USA, July.
- Chris Quirk and Simon Corston-Oliver. 2006. The impact of parse quality on syntactically-informed statistical machine translation. In Proceedings of EMNLP. OpenAlex ↗ · Scholar ↗
- Chris Quirk, Arul Menezes, and Colin Cherry. 2005. Dependency treelet translation: Syntactically informed phrasal SMT. In Proceedings of ACL, pages 271–279, Ann Arbor, Michigan, June.
- Andreas Stolcke. 2002. SRILM - an extensible language modeling toolkit. In Proceedings of ICSLP, volume 30, pages 901–904. OpenAlex ↗ · Scholar ↗
- Dekai Wu. 1997. Stochastic inversion transduction grammars and bilingual parsing of parallel corpora. Computational Linguistics, 23(3):377–404.
- Deyi Xiong, Shuanglong Li, Qun Liu, and Shouxun Lin. 2005. Parsing the Penn Chinese Treebank with semantic knowledge. In Proceedings of IJCNLP 2005, pages 70–81, Jeju Island, South Korea. OpenAlex ↗ · Scholar ↗
- Hao Zhang, Liang Huang, Daniel Gildea, and Kevin Knight. 2006. Synchronous binarization for machine translation. In Proceedings of HLT-NAACL, New York, NY.
This page in Markdown https://md.research.elamur.ai/free/en/papers/mi-2008-forest-based-translation/