Elamur Research

Rule Markov Models for Fast Tree-to-String Translation

Paper · 2011 · Ashish Vaswani, Haitao Mi, Liang Huang et al.

Summary

A translation rule can work well in one sentence and give the wrong result in another. In statistical machine translation, one way to account for that difference is to combine small rules into larger ones. A larger rule can coordinate choices that would otherwise be scored independently, but storing many combinations makes the grammar grow and gives the decoder more alternatives to consider. This paper asks how much of that benefit can be recovered by keeping the small rules and changing how they are scored.

The authors study Chinese-to-English tree-to-string translation. The system starts from a syntactic tree for a Chinese sentence and builds an English string by applying rules to parts of that tree. The authors extract minimal rules, which cannot be assembled from other rules in the grammar. They estimate how likely each rule is given the rules that led to it in the derivation. These histories follow the branch from an enclosing rule to the rules applied inside it. A decoder that builds the English output from left to right already keeps track of the unfinished rules on that branch, so it has the information it needs when choosing the next rule.

On the newswire portion of the 2008 NIST evaluation, the minimal-rule baseline scores 24.2 on the case-insensitive BLEU score measure used by the authors. The best bigram setting reaches 25.7, and the best trigram setting reaches 26.5. That trigram result matches the best reported vertically composed grammar while taking 2.0 seconds per sentence against 2.9 and using fewer reported parameters. It also reaches the level of the more restricted fully composed baseline. On the development set, keeping selected histories gives better results than keeping every observed history in the corresponding bigram and trigram comparisons.

The strongest fully composed grammar reaches 27.5 on the test set. Adding trigram rule-history scores to that grammar raises the score to 28.0, the paper’s highest result, with additional decoding time. The speed and quality findings therefore apply to different operating points. Vertical history gives a compact way to recover the benefit of vertical composition in these experiments. The highest reported score still comes from a system that uses both composition and history-based scoring.

Deep dive: Rule Markov Models for Fast Tree-to-String Translation

Rule Markov Models for Fast Tree-to-String Translation tests whether scoring rules in context can preserve translation quality with smaller grammars. · about 33 minutes to read

The problem and its context

Why a rule needs context

A statistical translation system can describe a sentence translation in terms of smaller decisions. In phrase-based translation, a decision can use a pair of phrases. In tree-to-string translation, a decision uses a rule that recognizes a fragment of the source tree and specifies a piece of the target string. A rule can contain English words and placeholders for translations still to be supplied. The grammar provides the available rules, and the decoder searches for a sequence of applications that covers the input and produces a well-scored English sentence.

The tree determines where rules can apply, but compatibility with the tree is only part of the decision. Different rules can apply at the same place. A lexical rule might offer a different English rendering of a Chinese word from another rule with a matching source side. An enclosing rule can establish a syntactic arrangement in which one of those renderings is a better fit. If the lexical alternatives always receive the same relative scores wherever they apply, the rule statistics miss that relationship.

Tree structure makes the question of context more specific. The rule that introduces a site for further translation has a direct relationship to the rule that fills it. A rule that introduced the parent site is another possible source of information. These relationships are part of a translation derivation, the record of which rules were used and how they were assembled. They may connect decisions whose resulting English words are separated in the output. A score based on recently emitted words and a score based on enclosing translation rules can therefore give the decoder different information about the same choice.

How composition supplies that context

Composition makes a combination of smaller rules available as a single grammar entry. If an enclosing rule regularly takes a particular rule at one of its open sites, a larger rule can record that combination. The decoder can select and score it as a unit. The source fragment covered by the larger rule can also record a more specific structural environment. The relevant choices are packaged together in the item that the decoder matches and applies.

The paper uses minimal for a rule that cannot be built by combining other rules in the grammar. Minimality is about how the rule can be factored. It does not specify a universal size for a tree fragment or require every rule to translate an isolated word. A minimal rule can already express a translation decision with internal structure. The question is whether the dependencies across such rules require explicit entries for their combinations.

Larger entries carry a cost because a rule with open sites can participate in many possible combinations. The grammar can retain numerous entries that reuse the same component rules. Limits on the height of composed rules or the number of nodes they contain restrict this growth. Such limits still leave the decoder with alternatives at matching positions, and the grammar still needs to represent the larger entries that survived. The authors connect the size of this inventory to costs in both training and decoding, with decoding time and parameter counts forming the main efficiency measurements in their own comparisons.

The paper gives an earlier syntax-based result as evidence of why composition remained attractive. Galley and colleagues first used a grammar of minimal rules and then reported a gain of 3.6 BLEU points from composing them. In that earlier comparison, grammar size increased 60-fold and decoding time increased 15-fold. Those figures illustrate the tradeoff that motivated the present study. The larger grammar could produce a substantial gain, so a compact alternative needed to be evaluated against composition as well as against an independent minimal-rule baseline.

What earlier uses of history had established

The authors identify related work by Quirk and Menezes on translation with dependency treelets. That work used the context of a rule within a dependency-based translation framework. The paper also discusses a dependency approach by Ding and Palmer and a tree-to-string approach by Liu and Gildea. In the latter approaches, the rule-history dependency is a bigram, so the current rule depends on its immediate predecessor along a derivation branch. The paper treats these studies as precedents for using rule history and asks a further empirical question about whether it can cover the role played by composed rules.

A related idea appears in syntactic parsing. The work the authors cite by Johnson uses information from parent and grandparent nonterminals when estimating rule probabilities. A nonterminal identifies a syntactic category. The translation procedure here conditions on identities of rules, which record the actual operations used to match and translate fragments. The paper also draws an analogy between using larger composed entries and Data Oriented Parsing, where larger tree fragments are relevant to the comparison. PCFG Models of Linguistic Tree Representations

The authors situate their experiments within existing tree-to-string work, including the approach in Statistical Syntax-Directed Translation with Extended Domain of Locality. A crucial ingredient came from work on search. Huang and Mi had described an incremental decoder that starts at the root of the source tree and develops the English translation in output order. The active rule applications in that procedure already describe the branch the decoder is exploring. That gives the history-based method a place in the search where it can score a rule as soon as the decoder considers it. Efficient Incremental Decoding for Tree-to-String Translation

These strands give the paper a comparison more specific than asking whether syntax helps translation. The systems under comparison already use a source parse. The design choice is how to use evidence about the compatibility of translation rules. One representation incorporates compatibility through entries for larger fragments. The other retains the component rules and estimates a conditional score from the derivation. Vertical composition provides the closest comparison because the conditional score uses information along the same direction in the tree. Fully composed grammars provide a broader comparison because their entries can cover structure across branches as well.

The method, step by step

From the source tree to a derivation

A tree-to-string rule has a source side that matches a piece of the input parse and a target side that specifies part of the English output. Some positions on the target side can be filled immediately with words. Other positions are variables linked to nodes of the input tree. When the decoder reaches a variable, it visits the corresponding source node and chooses another rule. The English side determines the order in which these variables are visited, which allows the order of translation to follow the target string.

The paper distinguishes the derivation tree from the syntactic structure used as input. An input tree node identifies a constituent at a particular place in the source sentence. A derivation node identifies a rule application. Its children are the rules used at the substitution sites left open by that application. A rule can encompass more of the source tree than its root category, so ancestry in the derivation describes how translation operations were nested. This is the structure whose paths the authors count.

An enclosing rule can leave several sites to be filled. After the decoder finishes with one of those sites, it can move to another. The rule just used at the finished site and the rule about to be applied next may be consecutive in the search, yet belong to separate branches of the derivation. The paper’s vertical history follows the branch of the new application. An enclosing rule can therefore influence each of its children, while a rule used in one child does not enter the history of another child.

The distinction matters when comparing rule histories with n-grams of target words. A word history tracks the recent output sequence. A rule history tracks nesting decisions. In a rule bigram, the current rule is predicted from its parent rule. In a rule trigram, the current rule can use information from its parent and grandparent. Calling these histories bigrams or trigrams counts the rule being predicted as part of the sequence. An ancestor chain can be shorter when the derivation is close to its root.

Where the probabilities come from

The training input consists of paired Chinese and English sentences with links between words. The authors use GIZA++ for alignment and follow it with a link-deletion procedure. They parse the Chinese sentences using the Berkeley parser. Those steps supply the source tree and the bilingual correspondences needed for rule extraction. The link-deletion method and the parser come from earlier work. Using Syntax to Improve Word Alignment Precision for Syntax-Based Machine Translation · Improved Inference for Unlexicalized Parsing

The extraction procedure from Galley and colleagues produces a single derivation in minimal rules for each aligned sentence pair. The paper handles unaligned words by attaching them as high in the parse as the procedure allows. The placement matters because it determines which extracted rule contains the material. Once a sentence pair has been factored, the authors can read off parent–child and grandparent–parent–child occurrences directly from the resulting derivation. The histories used for estimation come from these chosen training derivations.

The counts concern particular rules following particular histories. An often-used rule may be common under one enclosing configuration and rare under another. At the same time, the inventory of possible histories grows when the score uses more ancestors. A reliable count at the parent level may have little evidence left once it is broken down by grandparent as well. The paper addresses this through smoothing, which mixes estimates from histories of different lengths, and pruning, which determines which histories are kept.

Training and decoding with vertical rule histories

The steps in order.

Training and decoding with vertical rule historiesStep 1: Align training pairs and parse Chinese sentences1. Align training pairs and parse Chinese sentencesStep 2: Extract minimal-rule derivations from aligned pairs2. Extract minimal-rule derivations from aligned pairsStep 3: Count rules along ancestral paths3. Count rules along ancestral pathsStep 4: Smooth estimates and retain selected contexts4. Smooth estimates and retain selected contextsStep 5: Match rules against the input parse5. Match rules against the input parseStep 6: Score predictions from active rule histories6. Score predictions from active rule historiesStep 7: Scan English words and complete rule applications7. Scan English words and complete rule applications

The end of this pipeline combines rule scoring with ordinary decoder operations. The learned history statistics enter at the point where the search predicts a rule. Once a target word has been specified by that rule or by a descendant, scanning it updates the English hypothesis. Finishing the rule returns control to the enclosing application. The training statistics and the decoder state refer to the same kind of relationship, so the decoder can retrieve a score from the branch it is already following.

How a derivation receives its probability

The authors write the parent of rule occurrence r as anc₁(r) and the grandparent as anc₂(r). Missing ancestry is represented by ε. A history with depth n is written as anc₁ⁿ(r), meaning the chain indexed from the parent through the ancestor at depth n. This notation specifies which ancestors enter the score. For the root, the conditional probability uses the empty context. Below the root, generation visits the leftmost open position of the developing English output and draws a rule conditioned on the available chain.

P(T) = ∏ᵣ∈T P(r | anc₁ⁿ(r))

P(T) is the probability assigned to the entire derivation tree T. The product sign ∏ multiplies the factors for all rule occurrences r in T, and ∈ expresses that membership. P(r | anc₁ⁿ(r)) is the probability of applying rule r given its ancestor chain, with the vertical bar separating the event from its conditioning history. The lower index 1 marks the parent as the starting point of the chain, and n gives its maximum extent. The factors describe a rule’s identity at a node of the derivation, even if the same rule identity occurs elsewhere in the tree.

This factorization assigns a separate contribution to each application. A large source fragment can consequently be covered by several minimal rules and still receive a score that reflects how those applications fit together. When parent context is used, changing an enclosing choice can change the score of its children. When grandparent context is also used, the surrounding decision can reach farther down the same branch. Each application still has an explicit place in the derivation and a corresponding factor in its probability.

The paper spells out the product for its example derivation. In the expanded expression, the conditional lists show the outer ancestor before the nearer one. The product illustrates the general formulation and includes a chain deeper than the context used in the trigram decoding example.

P(T) = P(r₁ | ε) · P(r₂ | r₁) · P(r₃ | r₁) ·
       P(r₄ | r₁, r₃) · P(r₆ | r₁, r₃, r₄) ·
       P(r₇ | r₁, r₃, r₄) · P(r₅ | r₁, r₃)

T is the example derivation and P assigns a probability either to T or to the application written before the vertical bar. Each subscript in r₁ through r₇ identifies a rule in the example. The dot denotes multiplication, and ε denotes the empty history of the root rule r₁. Commas separate rules in a conditioning chain. Rules r₂ and r₃ are children of r₁. The chains for r₄ and r₅ pass through r₃, and those for r₆ and r₇ also pass through r₄.

The recurring histories show what information is shared between branches. The terms for r₆ and r₇ each contain r₄ and its ancestors. Their histories contain those same enclosing choices even though the rules fill different sites. The later term for r₅ has the ancestry appropriate to its own site, without the rules used deeper in the preceding branch. The order in which factors are written follows the example’s derivation steps. The ancestry inside each factor is what determines the conditional probability.

How the authors share evidence across history lengths

A rule can occur in training without ever occurring under a particular observed combination of ancestors. Estimating probabilities solely from counts for the longest history would give such an event no direct contribution from that history, even when the immediate parent provides good evidence for it. Conversely, a frequent event under a long history may carry information worth preserving. The authors use interpolated absolute discounting to allow both sources of evidence to contribute.

Pₐᵦₛ(r | anc₁ⁿ(r)) =
    max{c(r | anc₁ⁿ(r)) − Dₙ, 0} / ∑ᵣ′ c(r′ | anc₁ⁿ(r′))
    + (1 − λₙ) Pₐᵦₛ(r | anc₁ⁿ⁻¹(r))

Pₐᵦₛ is the smoothed probability under absolute discounting. The event r is the current rule, anc₁ⁿ(r) is its history at depth n, and the vertical bar again means “given.” The function c counts occurrences of a rule after that history. Dₙ is the amount subtracted from the observed count at depth n. The maximum with 0 prevents a negative numerator. The slash divides by the total count for the same history, with ∑ summing over possible rule identities r′ and the count in each term taken under the conditioning history in question. The prime marks the rule used as the index of the sum. The shorter chain anc₁ⁿ⁻¹(r) omits the most distant ancestor of the longer one. The plus sign adds its weighted estimate, and the parenthesized 1 − λₙ is the weight that makes the probabilities over rules sum to one.

The discount removes some mass from the count-based part of the estimate. That mass supports the shorter-history distribution. For a trigram estimate, the parent-level distribution still contributes when the fuller chain has been observed. Near the root, or for a history removed by pruning, the available shorter evidence is particularly important. This is interpolation because the shorter estimate can participate even when there is training evidence for the longer context.

The paper examines a discount suggested by Ney and colleagues, as well as fixed alternatives. The suggested calculation uses counts of rare observed sequences. It supplies a separate discount for each context length under consideration.

Dₙ = n₁ / (n₁ + n₂)

Dₙ is the discount associated with context length n. For the relevant order, n₁ counts the observed n-grams whose occurrence count is exactly one, and n₂ counts those whose occurrence count is exactly two. The slash denotes division by the sum in parentheses. The paper reports that this calculation gives D₁ = 0.871 for its rule bigrams and D₂ = 0.902 for its rule trigrams. The authors also test discounts of 0.4 and 0.5. Development-set results determine which discounts and pruning settings are carried into the main comparisons.

Which histories are retained

The authors compare full history estimates with versions that retain selected contexts. RM-A keeps a context when the number of distinct rule identities observed under it is greater than a threshold P. The authors choose P = 12 on the development set. A context with many repetitions of the same continuation can have substantial total count and still fail this criterion. The test concerns the range of observed continuations, so repeated evidence for one continuation and evidence distributed across different continuations have different effects on retention.

RM-B uses the total number of observations of the context. It keeps a context whose frequency exceeds P, again set to 12 by development-set tuning. At the same threshold, any context eligible under RM-A is also eligible under RM-B, because each distinct continuation contributes at least one observation to the total. RM-B can additionally keep a context whose frequency comes from recurring uses of a smaller set of rules. The comparison tests different operational definitions of which histories have enough evidence to warrant keeping.

RM-C draws on work by Bejerano and Yona using a Prediction Suffix Tree. It begins at the empty history and considers adding more specific contexts. The criterion uses the probability of observing the candidate history and the Kullback–Leibler divergence between its predictive distribution and its parent’s. The divergence measures how much the next-rule distribution changes when the extra history is available. Both quantities must clear their respective thresholds. The parent in this comparison is the shorter history in the suffix tree, a different object from the parent rule in a translation derivation.

All of these decisions concern the scoring of contexts. A grammar of minimal rules still provides the operations available at matching input nodes. Removing a long context removes its specific statistics and leaves the decoder able to score the rule from shorter contexts. This separates the question of whether a rule can apply from the question of how finely to condition its probability. It also means that the smallest scoring inventory need not be the one that leaves the fewest possible English translations.

How a decoder carries the right history

The incremental search works with source-tree addresses. The notation X @η identifies a node labeled X at address η. The address ε identifies the root, and η.i identifies the ith child at address η. The category distinguishes such nodes as noun phrases and verb phrases. The address distinguishes occurrences of the same category in one sentence, allowing a target-side variable to specify exactly where the decoder must look in the input tree.

The decoder’s state contains a stack of rules that are still being processed. Each active application has a position marker in its English side, indicating the next symbol to handle. The state also stores the last n − 1 English words produced up to that point, with n denoting the order of the word language model. This use of n concerns target words. The ancestor depth denoted by n in the rule probability is a separate setting. The recent English words give the decoder what it needs to score the next word, and the active applications give it what it needs to score the next rule.

The example starts at the root by predicting r₁ under the empty history. The decoder pushes its English side, substituting addressed input nodes for the variables. In the notation of the example, x₁ becomes NP @1 and x₂ becomes VP @2. Here x₁ and x₂ are the rule’s open target variables. NP and VP are syntactic category labels, and the suffixes after @ identify the particular noun phrase and verb phrase nodes in the input. The marker is initially positioned before the noun phrase.

At an addressed node, the decoder performs a prediction. It selects a matching rule and uses the active chain to get its conditional rule probability. In the example it predicts the lexical rule r₂ for NP @1 under the history containing r₁. The English side of r₂ supplies Bush. When the next symbol is an English word, the decoder scans it, appending it to the current hypothesis and advancing the position marker. At the end of a rule’s English side, a completion step pops that rule from the stack. Scanning and completion require no new rule probability.

These operations maintain the link between the search state and the derivation. When the decoder descends into a new substitution site, the unfinished rules identify how it got there. When it comes back from the site, removing the completed rule prevents that application from being treated as the ancestor of the next branch. A rule score is therefore available at prediction time, when the search must decide which partial hypotheses to keep. This matters because the beam limits the number of candidates allowed to continue.

What the ancestral context contributes in the example

The example follows a Chinese word, yǔ, for which the grammar offers English alternatives with and and. The preposition with comes from rule r₆, and the competing conjunction comes from r₆′. At this point the English word history gives an insufficient basis for favoring the intended translation in the example. Since the beam can discard candidates before more of the sentence is produced, the ranking at that intermediate point can affect which complete translations are reachable.

The ancestry available at the lexical choice contains r₃ and r₄. The paper associates the relevant configuration, including the verb phrase at VP @2.2, with a preference for with. Training occurrences of the lexical rule under that ancestry make the conditional score favor r₆ over r₆′. The search can use that evidence while the two hypotheses are still competing, before the English output is complete. The example traces a particular mechanism by which an enclosing syntactic decision influences a lexical choice.

The general probability expression and the decoder illustration use different context depths for different purposes. The expanded expression shows how a product can use a longer chain when the formulation allows it. The decoding example demonstrates the trigram setting, whose lexical prediction uses the parent and grandparent. In the illustration, the word history has its own order. In the main experiments, the authors train a trigram word language model and vary the order of the rule history separately.

Search complexity and composed rules

The paper gives the following time bound for the incremental decoder with rule-history scoring. It uses the same asymptotic form as the incremental decoder’s original bound.

O(nc|V|ᵍ⁻¹)

O denotes the asymptotic time bound. Here, n denotes sentence length, V denotes the target vocabulary, and c denotes the largest number of hyperedges entering any one node in the translation forest. The bars in |V| give the number of vocabulary items. The exponent g − 1 is the size of the target-word history for word language model order g. Juxtaposing n, c, and the vocabulary term means multiplication. A hyperedge represents an available expansion in the forest and can connect the node being expanded to the sites that depend on that choice.

The authors also give the bound they expect if rule histories are added to conventional bottom-up decoding of the CKY style. Working from completed substructures gives the search a different relationship to the ancestors that will eventually enclose them. Carrying those histories in that setting requires more information in the search state.

O(nCᵐ⁻¹|V|⁴⁽ᵍ⁻¹⁾)

O again denotes an asymptotic time bound. The symbols n, V, and g denote sentence length, target vocabulary, and word language model order, respectively. The largest number of hyperedges leaving any one node in the translation forest is denoted by capital C. A rule Markov model of order m has a history consisting of m − 1 ancestor rules. The superscripts give the exponents of C and |V|, and the parentheses group g − 1 within the vocabulary exponent. This analysis makes the match between history and search order part of the efficiency argument. Measured decoding time can still change when a feature adds work within the incremental search.

The history score can also be used with a composed grammar. At prediction time, the decoder takes a composed rule, decomposes it into its minimal constituents, and multiplies the conditional probabilities of those constituent rules. The statistical evidence still comes from minimal-rule derivations. The grammar entry used in the search can nonetheless preserve the larger choice made available by composition. This combination lets the authors ask whether the history score can improve a system that already uses large entries, as well as whether it can replace some of those entries.

Experiments and results

Training data, evaluation, and baselines

The training corpus contains 1.5M Chinese–English sentence pairs. The Chinese side has 38M words and the English side has 32M. Development data consists of the 616 sentences in the newswire section of the test set for the 2006 NIST MT Evaluation. Test data consists of the 691 sentences in the newswire section of the test set for the 2008 NIST MT Evaluation. This assignment of roles matters because pruning thresholds, discounts, and feature weights can be chosen on development data, whereas the main quality comparisons are reported on the 2008 newswire set.

In addition to the rule-history estimates, the authors train a trigram word language model on the English side of the training corpus. They use SRILM with modified Kneser–Ney smoothing. The base feature set is similar to the one used in Forest-Based Translation. A log-linear score combines the features with learned weights. The authors use minimum error-rate training to adjust those weights toward higher development BLEU. This tuning concerns the score of a complete translation hypothesis. The counts of rules under ancestral histories come from the extracted training derivations.

At test time, the Berkeley parser supplies the Chinese input trees. Matching grammar rules against their patterns yields translation forests. A forest represents different derivation options for the input in a shared structure. The incremental decoder then searches the alternatives, using its rule stack and the target-word history. The authors evaluate the completed English translations using case-insensitive IBM Bleu-4, computed with the script mteval-v13a.pl. They also report decoding time in seconds per sentence and counts of parameters. The full inventory and the inventory filtered for development and test sentences use different columns in the main comparison.

The first baseline is the minimal-rule grammar without a rule-history feature. The authors add a bigram or trigram history feature to that grammar and compare the resulting scores. They also compare with vertical composition, which is the closest counterpart to scoring with ancestral history, and with fully composed grammars subject to different height limits. The main table reports a maximum rule height of 3 for the minimal configurations, 7 for the selected vertical grammar, and both 3 and 7 for full composition. These rows describe different grammar configurations as well as different ways of using context.

Quality with minimal rules and vertical composition

The minimal baseline scores 24.2 test BLEU. Adding the selected RM-B bigram score raises test BLEU to 25.7. With the selected RM-A trigram score, the minimal grammar reaches 26.5. The main results section reports gains of 1.5 BLEU points for the bigram configuration and 2.3 for the trigram configuration over the minimal baseline. The authors report statistical significance at p < 0.01 for these improvements, using bootstrap resampling with 1000 samples. The test uses the procedure associated with Statistical Significance Tests for Machine Translation Evaluation.

The introduction gives 2.2 BLEU as the trigram improvement. The detailed results and the conclusion report 2.3, and the main table gives the underlying test scores of 24.2 and 26.5. The figures here follow the detailed results. The larger gain is associated with the best setting the authors report for each history order, including the pruning choices selected on development data.

Rule histories and grammar composition on 2008 NIST newswire test BLEU

The minimal grammar with trigram history matches vertical composition and reaches the level of the height-limited fully composed grammar.

Rule histories and grammar composition on 2008 NIST newswire test BLEUMinimal rules: 24.2Minimal rules24.2Minimal rules with RM-B bigram: 25.7Minimal rules with RM-B bigram25.7Minimal rules with RM-A trigram (this paper): 26.5Minimal rules with RM-A trigram (thispaper)26.5Vertically composed rules: 26.5Vertically composed rules26.5Fully composed rules, height 3: 26.4Fully composed rules, height 326.4Fully composed rules, height 7: 27.5Fully composed rules, height 727.5
The numbers
System or settingBLEU
Minimal rules24.2
Minimal rules with RM-B bigram25.7
Minimal rules with RM-A trigram (this paper)26.5
Vertically composed rules26.5
Fully composed rules, height 326.4
Fully composed rules, height 727.5

The vertical result is the most direct test of the proposed substitution. The best reported vertical configuration and the minimal grammar with RM-A trigram both score 26.5 on the test set. The former encodes larger applications in the grammar. The latter uses smaller applications whose scores depend on ancestors. Agreement on corpus BLEU shows that those representations can achieve the same aggregate score in this setting, even though the score gives no accounting of which sentences or rule choices they handle in the same way.

Full composition gives a result that depends on the height limit. At maximum height 3, the fully composed grammar reaches 26.4 test BLEU, close to the 26.5 of the minimal grammar with trigram history. With a maximum height of 7, the fully composed baseline reaches 27.5. The comparison with the height 3 baseline supports the paper’s claim that a compact alternative can reach the level of some fully composed settings. The height 7 baseline establishes the quality available to the decoder from a larger inventory in this experiment.

What the grammar savings buy

The authors report a beam size of 50 for the main decoding comparisons and give separate beam information for the experiments that add history scoring to full composition. The minimal baseline takes 1.2 seconds per sentence in the main table. Adding the selected bigram score brings the time to 1.8 seconds per sentence, and the selected trigram score takes 2.0. Computing and using a history feature thus has a measured cost within the minimal grammar, even though the underlying incremental time bound stays the same.

Decoding time for minimal and composed grammars in the NIST newswire comparison

The minimal grammar with trigram history decodes faster than the vertical and height-limited full composition baselines.

Decoding time for minimal and composed grammars in the NIST newswire comparisonMinimal rules: 1.2Minimal rules1.2Minimal rules with RM-B bigram: 1.8Minimal rules with RM-B bigram1.8Minimal rules with RM-A trigram (this paper): 2.0Minimal rules with RM-A trigram (thispaper)2.0Vertically composed rules: 2.9Vertically composed rules2.9Fully composed rules, height 3: 2.2Fully composed rules, height 32.2
The numbers
System or settingseconds per sentence
Minimal rules1.2
Minimal rules with RM-B bigram1.8
Minimal rules with RM-A trigram (this paper)2.0
Vertically composed rules2.9
Fully composed rules, height 32.2

At the reported vertical-composition quality, the history-based configuration takes 2.0 seconds per sentence, compared with 2.9 for the vertical grammar. The authors characterize the speed advantage over vertical composition as 30% in their introduction. Against full composition at height 3, the reported times are 2.0 and 2.2 seconds per sentence. The authors give the time saving in that comparison as 0.2 seconds per sentence. The advantage in each case is measured against a composed configuration at a similar BLEU level.

The full minimal grammar has 4.9 million parameters in the main table. The corresponding entry for the configuration with the selected trigram feature is 4.9+7.6 million, with the additive notation keeping grammar entries and history parameters visible. The selected vertical grammar has 176.8 million full parameters. The full inventory for the fully composed grammar at height 3 has 17.5 million. This part of the comparison shows how much explicit composition can expand the full inventory of entries.

The main table also reports parameter counts after filtering for the concatenated development and test sets. The minimal grammar with trigram history is listed at 0.3+0.6 million filtered parameters. The selected vertical grammar has 1.3 million, and the height 3 fully composed grammar has 1.6 million. Filtering changes the scale of the comparison because it counts the material relevant to these particular inputs. The reported history parameters represent floating-point values, while a grammar count represents entries for entire rules. The authors therefore treat the difference in counts as understating the likely storage advantage of the history-based representation. The table gives parameter counts as its direct measurement.

The selected bigram configuration illustrates the difference between reducing the grammar and avoiding added scoring data. Its full parameter entry is 4.9+4.7 million, and its filtered entry is 0.3+0.5 million. The grammar portion stays at the minimal inventory in both the bigram and trigram configurations. The larger history order has more scoring parameters in the reported comparison. The test result and decoding time make it possible to see what the additional history costs and what it buys for this pairing of orders and pruning policies.

The highest-scoring configuration

The authors also apply the selected RM-A trigram score to fully composed rules of maximum height 7. The composed baseline scores 27.5 test BLEU, and the combination scores 28.0. The authors report a gain of 0.5 BLEU, significant at p < 0.05. They use a beam size of 100 for this experiment. With the composed grammar at the setting that produces this result, the time rises from 6.8 to 9.2 seconds per sentence when rule-history scoring is added.

The main table reports 448.7 million parameters for the full inventory of this composed grammar, and 448.7+7.6 million for the version with the trigram feature. After filtering for development and test, the entries are 3.3 and 3.3+1.0 million, respectively. The grammar continues to provide the larger applications, while the history feature scores their minimal constituents as part of the decoding process. The quality gain from this combination comes with both kinds of scoring information in use.

The speed result and the highest BLEU result answer distinct questions. A decoder using minimal rules can recover the performance of vertical composition with a smaller grammar and faster decoding. A decoder using a more extensive composed grammar can reach a higher BLEU score, and the reported best configuration improves it further with conditional rule scores. The comparison with the hybrid establishes that the feature can contribute even when composition is already available. The timing for the same comparison establishes the additional search cost observed in that configuration.

What the ablations show

History order and pruning

The comparison with the minimal baseline isolates the role of adding a history feature at the level of the system design. The grammar remains minimal, and the authors score the availability of a rule in the context of the steps enclosing it. The bigram result on the test set shows that the immediate parent carries useful information in their setup. The strongest trigram result shows that a configuration with a longer history can do better. The lexical example suggests how the feature can affect choices in search, while the corpus evaluation measures the result of applying it across sentences.

The best bigram and trigram rows use different pruning policies. The bigram uses RM-B, which tests frequency, and the trigram uses RM-A, which tests the number of distinct continuations. Their discounts also differ. The two rows therefore compare the best selected configurations of each order. They give evidence for the practical value of allowing a longer history, with the effect of history length entangled with the way each configuration estimates and retains those histories.

For bigrams, RM-B gives 29.9 development BLEU with D₁ = 0.4. The full bigram setting gives 29.7 with the same reported discount, and RM-B takes 1.8 seconds per sentence compared with 1.9 for the full setting. RM-C gives 29.8 development BLEU with D₁ = 0.871, while RM-A gives 29.2 with D₁ = 0.871. Both have reported times of 1.8 seconds per sentence. The comparison between RM-B and the full setting holds the discount fixed and favors retaining contexts by total frequency for this bigram configuration.

For trigrams, the best development score comes from RM-A with both discounts set to 0.5. RM-B and RM-C use those same discounts in their reported rows. The full trigram row uses 0.4 for D₁ and 0.5 for D₂. The pruned variants take 2.0 seconds per sentence, and the full trigram takes 2.2. The development scores show that the policies can behave differently even when they have the same reported time. The distinct-continuation criterion works best among the trigram settings in this comparison.

Trigram context pruning on 2006 NIST newswire development BLEU

Retaining contexts according to their number of distinct rule continuations gives the strongest reported development score.

Trigram context pruning on 2006 NIST newswire development BLEURM-A distinct continuations (this paper): 30.3RM-A distinct continuations (this paper)30.3RM-B context frequency: 29.9RM-B context frequency29.9RM-C suffix-tree criterion: 30.1RM-C suffix-tree criterion30.1RM-Full: 30.1RM-Full30.1
The numbers
System or settingBLEU
RM-A distinct continuations (this paper)30.3
RM-B context frequency29.9
RM-C suffix-tree criterion30.1
RM-Full30.1

The authors suggest overfitting as an explanation for the development advantage of pruning. A context that survives in the full estimate may record a specific pattern that occurred in training but makes for a poor distinction in new sentences. Dropping the context gives more responsibility to the shorter-history estimate. The results establish that pruning can improve the development score as well as reduce the retained inventory. The explanation in terms of overfitting remains the authors’ interpretation of that pattern.

The trigram discount comparison holds RM-A fixed and varies the amount of probability shifted toward shorter histories. With both discounts at 0.5, the configuration reaches 30.3 development BLEU. Several other tested settings give 30.0, and another gives 29.3. The authors interpret the results as showing that RM-A works fairly well across the discounts they tried. The tested range gives evidence about the sensitivity of that pruning policy on the development set. It does not establish that a common discount would work across other data or pruning policies.

The choice between RM-A and RM-B shows why “pruned” alone is too broad a description of the intervention. Frequency lets a context survive on repeated support for a narrow set of continuations. The distinct-continuation criterion favors contexts that help rank a broader observed set of candidate rules. The development winners differ by history order. The experiment therefore supports the use of selective context retention, while the best available selection rule depends on the conditions in which the history is estimated.

Changes to composition settings

The authors vary the vertical grammar while holding its maximum rule height at 7. The reported configurations have 1.2, 1.3, and 1.3 million parameters after filtering for development and test. Their development BLEU scores are 30.2, 30.1, and 30.1. Test BLEU is 26.1, 26.5, and 26.2, and their respective decoding times are 2.8, 2.9, and 3.2 seconds per sentence. The best test result comes from the configuration whose development score is 30.1 and whose decoding time is 2.9 seconds per sentence.

This comparison gives some context for the exact test tie between the selected vertical grammar and the trigram feature. The vertical baseline in the main table is chosen for its best test score among the displayed vertical settings, as the authors state. The configurations also show that similar filtered parameter counts can accompany different test outcomes and times. An inventory count does not specify which entries are available to the decoder or how their presence will affect the search.

The full-composition comparison varies grammar settings and shows results with and without the rule-history feature under a beam size of 100. At the setting listed with 2.6 million parameters for development and test, BLEU without the feature is 31.0 on development and 27.0 on test. With the feature, the scores are 31.4 and 27.3. The corresponding decoding times are 4.5 and 7.0 seconds per sentence. The estimate from minimal-rule histories can contribute even at this smaller fully composed setting.

At the setting with 2.9 million parameters, the development and test scores are 31.1 and 27.4 without history scoring, and 31.4 and 27.5 with it. The corresponding times are 5.6 and 8.1 seconds per sentence. The narrative describes a statistically nonsignificant drop for this setting, while the tabulated scores show an increase on both splits. The numerical results here follow the table. That discrepancy limits what can be said about the narrative’s characterization of this particular comparison.

At the setting with 3.3 million parameters, the development and test scores are 31.5 and 27.7 without the feature, and 31.4 and 28.0 with it. The corresponding times are 6.8 and 9.2 seconds per sentence. The development and test columns move in different directions here. The analysis table’s test baseline at this setting is 27.7, while the main table reports 27.5 for its baseline comparison with the 28.0 hybrid. The paper reports the significance claim for the main comparison, where it states a gain of 0.5 BLEU. The analysis rows show how the comparison looks across alternative settings under their stated beam.

Across the fully composed settings, history scoring takes longer in every reported timing pair. Its test results in the table are higher at each displayed setting, with the size of the improvement varying by setting. These comparisons suggest a contribution from conditional rule scoring even when the grammar already bundles decisions. The author-reported significance at p < 0.05 pertains to the main comparison, so the remaining rows are most useful as measurements of how scores and decoding time respond to different grammar settings.

Limitations

Limits the authors identify

The authors restrict the learned history to vertical ancestry. A rule can respond to the enclosing choices along its branch. An application in a neighboring branch is outside that context, even when the two choices could usefully inform one another. Fully composed entries can include structure that spans such branches. By the end of the paper, the authors identify horizontal context as a possible extension for recovering the benefits of full composition more consistently.

The experiments support replacement most directly for vertical composition. The minimal trigram configuration reaches the score of the chosen vertical system and is smaller and faster by the reported measures. The fully composed grammar with greater permitted height reaches a higher test score, and the hybrid reaches the highest test score. The authors accordingly limit their conclusion about fully composed rules to some conditions. Horizontal context is their proposed explanation for part of the remaining difference and a direction for further research.

The authors also tie their search result to the incremental algorithm. That decoder keeps the rule ancestry as part of the work it already performs. Integrating the same score into other search procedures is possible in their account, but it requires tracking derivation information that those procedures would otherwise use differently. Their complexity comparison describes a predicted cost of a conventional bottom-up integration. The measured time results concern the incremental implementation.

What the experiment leaves open

The empirical scope is Chinese-to-English translation with the specified training corpus, source parser, word-alignment procedure, and NIST newswire splits. The study does not include an evaluation in a different language direction or domain. It also relies on one extracted minimal derivation per training pair. The estimated dependencies consequently describe the rule histories recoverable with that extraction and alignment procedure. The experiments give no separate measurement of how the relative benefits would change if those derivations were produced another way.

The headline test comparison uses a corpus-level quality measure. Equal BLEU supports a claim about aggregate performance at the reported settings. It does not identify the errors shared by the two outputs, establish sentence-by-sentence equivalence, or measure human preferences. The yǔ example demonstrates the rationale for scoring ancestral context at a lexical decision. The paper offers no corpus-level breakdown of how frequently that type of decision accounts for the improvement.

The results of the pruning comparison concern the development split, on which thresholds and settings are selected. The reported test scores then use the selected bigram and trigram configurations. This procedure supports a test of those chosen configurations. It gives less information about how the full range of pruning methods would rank on unseen data, because the paper does not report the same test comparison for every development variant. The authors’ overfitting explanation remains plausible, with the development results serving as evidence for the practical effect of pruning in their setup.

Several comparisons change more than one factor. The best bigram and trigram use different pruning policies. The principal full-composition settings have different maximum rule heights. The combined setting is evaluated with a larger beam than the stated beam for the main decoding comparisons. These distinctions matter for causal interpretation. In particular, the gap between the minimal trigram system and a large fully composed system measures the difference between complete configurations. It cannot isolate how much of that difference comes from horizontal relationships.

The selected vertical row also uses the best result on the test set among the reported vertical settings. That makes the baseline a strong reported point of comparison. It also limits what the exact tie says about how a configuration chosen without consulting that test set would perform. The table gives the score of each displayed vertical setting, which allows the reader to judge how much the comparison depends on the choice of row.

Finally, parameter inventories and decoding time capture different costs. The table counts floats and full rule entries using the same parameter-count units, and it gives full and filtered inventories. Those figures indicate where the storage savings are likely to arise. The timing measurements show the practical decoding cost in the experiments, including the added cost of scoring histories. Direct measurements of memory in bytes and end-to-end training time are outside the reported comparisons, so the efficiency findings are most precise when expressed in the terms the paper measures.

What came after

No subsequent study is identified that builds on this method. The research question left open by the authors is whether conditioning on horizontal relationships as well as ancestry can preserve the quality of fully composed grammars while keeping the grammar minimal.

Cite

Cite as Ashish Vaswani, Haitao Mi, Liang Huang and David Chiang. 2011. Rule Markov Models for Fast Tree-to-String Translation. Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies.

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

@inproceedings{vaswani2011rule,
  title = {{Rule Markov Models for Fast Tree-to-String Translation}},
  author = {Ashish Vaswani, Haitao Mi, Liang Huang and David Chiang},
  booktitle = {Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies},
  year = {2011},
  url = {https://aclanthology.org/P11-1086/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/vaswani-2011-rule-markov-models-fast-tree/