Elamur Research

Bayesian Learning of Phrasal Tree-to-String Templates

Paper · 2009 · Ding Liu and Daniel Gildea

Summary

A few mistaken word links can make a large part of a bilingual sentence pair hard to learn from. In syntax-based machine translation, the system learns rules that turn fragments of a source-language syntax tree into pieces of a target sentence. To find those rules, it usually starts with a word alignment, a set of proposed links between words in the two sentences. If a link crosses the wrong syntactic boundary, the extraction procedure can join several useful pieces into a single, highly specific rule. That rule may reproduce a region of its training example and rarely find a place in a new sentence. Ding Liu and Daniel Gildea ask whether those regions can be analyzed again to recover smaller rules that generalize.

The authors start with conventional alignment-based rules, called tree-to-string templates, and revisit the ones whose target side contains more than 8 symbols. Within such a template, they disregard the original links between words while keeping the correspondence between variables, which stand for pieces to be translated separately. They generate smaller candidates by pairing complete branches of the source fragment with contiguous stretches of its target sequence. Many of the pairings are implausible. The training procedure therefore compares the ways the candidates can work together to explain observed sentence pairs, using a Bayesian prior to regulate the weight given to individual rules. It also changes how rules compete during training and how their final scores are assigned for translation.

On the FBIS English-to-Chinese test set, the best alignment-only baseline scores 14.55 on BLEU-4, a version of the BLEU score that measures agreement with reference text using short sequences of words. The strongest system with the new templates scores 16.84. The paper reports a paired bootstrap significance level of p < 0.005. The extra candidates help with iterative re-estimation, whereas adding them using the starting counts directly lowers test scores. The best setting also ends training with a much smaller rule inventory than it started with. The evidence comes from one language direction and a relatively small training corpus. Within that setting, it shows that a word alignment can be a useful starting point for rule discovery even when some of its local decisions need to be reopened.

Deep dive: Bayesian Learning of Phrasal Tree-to-String Templates

Bayesian learning recovers reusable tree-to-string translation rules from noisy word alignments and improves English-to-Chinese translation. · about 35 minutes to read

The problem and its context

The paper concerns translation systems that use the structure of the source sentence explicitly. The source input is analyzed into a tree, with words at the leaves and labeled constituents above them. A constituent groups a part of the sentence that the parser treats as a unit. The target side is a string, an ordered sequence of words. A tree-to-string template associates part of the source tree with a sequence that can contribute to the target sentence. The tree provides the condition for applying the rule, and the sequence specifies what the rule produces.

A template can contain both fixed material and variables. A fixed source word is part of the pattern the system must find in the input. A fixed target word is inserted when the rule is used. A variable marks a part of the source tree whose translation will be supplied by another rule. The target side places that translation at a specified position, so a template can convey reordering as well as a choice of words. A derivation is the chain of rule applications that fills in these variables and produces a target string.

Consider what a rule extractor can see in its training data. It has a source tree and the corresponding target sentence. It does not directly observe a derivation connecting them. A word alignment supplies additional evidence by proposing which words correspond. The extractor looks for cuts that respect both the source tree and these links. If a subtree accounts for a coherent target stretch, it may be possible to give that subtree its own rule. A link from one of its words to a target position claimed by a neighboring constituent can invalidate such a cut. Then a larger fragment has to carry the correspondence.

The paper illustrates the effect by changing the links in a tree-and-string example. The alignment judged correct permits 5 small templates. Adding the problematic cross-boundary links leaves 1 large template. The difference is in the rule inventory produced from the example. In the first case, pieces of the example can be reused separately. In the second, the training sentence contributes a piece that requires more of its original syntactic and lexical context to recur before the rule applies.

That loss of reuse matters because a training example plays a different role at extraction time and at translation time. When the rule is extracted, the original source fragment is guaranteed to be present. When a new sentence is translated, a large fragment has to match a new input tree. A broad fragment can encode enough context to be useful when the match occurs. The particular broad fragments that motivate this paper often owe their size to alignment links that cross constituent boundaries. Their size can therefore reflect a constraint imposed by extraction instead of a translation pattern worth carrying into future sentences.

The authors contrast the effect with the way word-alignment errors influence phrase-based systems. In the phrase-based account they describe, an error affects the phrases involved in the links. A syntax-constrained extractor can have to move up the tree to find a fragment that encompasses the crossing. In that case the error can affect the decomposition of a larger region of the source tree. The familiar procedure of extracting phrase pairs from bilingual text provides the comparison. Statistical Phrase-Based Translation

Why the authors keep the alignment as a starting point

The standard extractor in the experiments is GHKM. It takes the source tree, target string and word alignment, and produces elementary templates that cannot be divided further while satisfying its extraction conditions. Restricting extraction to those templates keeps the inventory manageable. It also makes the word alignment consequential. The links help determine which pieces count as elementary, so they shape which contrasts the later rule estimator can consider.

The alignments used for this purpose are usually obtained independently of the source syntactic structure. The paper discusses the IBM family and hidden Markov approaches as examples of alignment methods that can make decisions the syntactic extractor finds awkward. Earlier work examined ways to bring syntax into the alignment process itself. DeNero and Klein used syntactic distance within a hidden Markov alignment approach to favor links that agree better with the tree. Tailoring Word Alignments to Syntactic Machine Translation

The authors also describe work that starts with existing GIZA++ links and learns to delete some of them using syntactic features. That procedure searches among subsets of the original links and requires examples with gold-standard word alignments to train the discriminative component. May and Knight instead represented alignment decisions through reorderings associated with tree-to-string rules and used them in hierarchical realignment. In the paper's account, the starting alignment still limits which rules are available to that procedure. Syntactic Re-Alignment Models for Machine Translation

Another line of work expanded the rule inventory by joining smaller rules and making decisions about unaligned target words. The expanded rules could then be re-estimated with expectation-maximization. That approach opened additional choices about how to account for target words that the original alignment had left unattached. Most of the established word links continued to constrain the resulting rules. Liu and Gildea open a different set of choices. Inside selected regions, the attachment of words to a smaller translation unit becomes an outcome of candidate generation and training.

The paper also draws on earlier Bayesian work that learned phrase pairs from bilingual sentences with limited reliance on precomputed alignments. That work made the translation units themselves part of the statistical inference problem. A tree-to-string system faces a larger search space. For a fixed paired example, the authors describe the potential set of tree-to-string templates as exponential, while the possible pairs of contiguous phrases are polynomial in number. Different choices about where to stop expanding branches can yield different source fragments, each of which can be considered alongside a target stretch. The size of that space gives a practical reason to retain some alignment information.

The paper uses syntax-based translation in a specific sense. It concentrates on rules derived from linguistic source trees. Hiero is discussed as an example of a formally syntactic approach outside that use of the term. The distinction concerns where the rule structure comes from, which is central here because constituent boundaries are what make noisy word links expensive. Hierarchical Phrase-Based Translation

Tree-to-string rules can also be used in systems with different search procedures. In synchronous parsing, the rules are used to construct coupled derivations from the input sentence, and the translation comes from that construction. A tree-to-string transducer instead starts from a source parse tree or forest and rewrites it into a target string. The paper describes synchronous parsing as computationally more demanding because it entertains more source structures. Its experiments use the transducer setting, where the source tree supplies the structure against which each learned fragment is matched. Earlier work gives examples of this direct transformation and of using source context beyond a single tree expansion. Tree-to-String Alignment Template for Statistical Machine Translation · Statistical Syntax-Directed Translation with Extended Domain of Locality

The resulting problem has two parts. First, the extractor needs a small enough search region to enumerate candidates while allowing alternatives to questionable word links. Second, the estimator needs to tell which of those alternatives deserve weight. Restricting the search solves the first problem only. The same relaxation that makes a good phrasal translation available also creates many candidates that merely happen to fit a source fragment and target span from the same training example.

The method, step by step

Finding regions to analyze again

Training begins with pairs of English and Chinese sentences. The English side is passed through a parser trained on the Penn Treebank. The output supplies the constituent tree whose fragments will become rule patterns. GIZA++ estimates alignments in both directions. The authors can then use either direction by itself or combine the resulting links. They use GHKM to turn these aligned tree-and-string pairs into a starting rule inventory. A Maximum-Entropy-Inspired Parser

The extraction procedure then selects a subset of those starting templates as hosts for further analysis. A host qualifies when its right-hand side has more than 8 symbols. A symbol on that side can be a word or a variable. The trigger concerns the size of the extracted rule, which is available without establishing which individual alignment link might be wrong. Large rules are candidates for reopening because they can contain regions fused by crossings and because their specificity limits their usefulness on unfamiliar input.

The large hosts can still provide sound information at their outer boundary. For instance, a broad fragment beginning near the top of a source tree may correspond to an appropriate target interval even when the words at the bottom are linked poorly. The authors call the correctness of that correspondence at the level of the whole rule its marginal accuracy. The smaller candidates use the enclosing source fragment and target sequence as their evidence. They can propose new correspondences inside that enclosure without reconsidering the boundaries of the entire sentence pair.

Learning tree-to-string rules from aligned sentence pairs

The steps in order.

Learning tree-to-string rules from aligned sentence pairsStep 1: Parse English and align words in both directions1. Parse English and align words in both directionsStep 2: Extract baseline templates from aligned pairs2. Extract baseline templates from aligned pairsStep 3: Select large templates as extraction sites3. Select large templates as extraction sitesStep 4: Match complete source branches with compatible target spans4. Match complete source branches with compatible target spansStep 5: Initialize original and newly extracted rules5. Initialize original and newly extracted rulesStep 6: Re-estimate weights over alternative derivations6. Re-estimate weights over alternative derivationsStep 7: Normalize final weights by source root7. Normalize final weights by source root

The branches in this procedure are complete relative to the host fragment. A node inside the host determines the root of a candidate source fragment. Starting there, the procedure retains the branches down to the host's own frontier. A frontier can include variables already standing in for omitted tree material. The extractor keeps those boundaries and avoids making further arbitrary cuts inside the new source fragment. This is how it limits each host node to a single candidate shape on the source side.

Which source fragments can pair with which target spans

The extraction rule places a second bound on the resulting fragment. Its left-hand side may have at most 6 leaves, where words and variables both count. To qualify as phrasal, the source side must also contain more than one word or nonterminal symbol in the sense used by the paper. The method is aimed at learning correspondences that depend on a group of source symbols. A candidate can capture a phrase translated as a shorter expression or a source group whose individual words are awkward to pair separately with target words.

Given an admissible source fragment, the algorithm enumerates contiguous spans of the host's right-hand side. A span is a candidate translation if it contains the same variables as the source fragment. The condition concerns variable identity. If two frontier variables carry the same syntactic label but belong to different positions, the labels alone cannot decide which target occurrence should receive which subtree's translation. The indexed variables in the paper's illustrations distinguish these positions. They preserve the connections established at the host's frontier while the words inside the host can be grouped differently.

The paper illustrates the checks with a host whose target side has 4 symbols. It serves as a compact illustration of the enumeration procedure. An illustrated candidate that stops partway down the source fragment fails the full-depth condition. A different candidate reaches the frontier but pairs with a target stretch whose variables do not correspond to the source variables. Yet another has too little source material to count as phrasal. The admissible example passes all of those tests. These checks are structural. A source fragment and a target span can pass them even when the words make a poor translation pair.

The size of the illustration also helps separate the site-selection rule from the candidate checks. In training, the threshold of more than 8 target-side symbols decides which original templates to reopen. The illustrated host is deliberately smaller so that the reader can see the alternatives. Within a qualifying host, the leaf bound and variable test decide which smaller templates can enter the candidate inventory. The host threshold and the candidate leaf bound measure different sides of different rules.

The running-time expression in the paper comes from the way source roots and target intervals are enumerated.

O(N M²)

Here O gives the order of growth reported for the extraction algorithm, N is the number of nodes on the host's source side, and M is the length of its target side. The square reflects the enumeration of target spans by choosing their start and end positions. Each of the source nodes supplies at most one full-depth source fragment. The 6-leaf cap can eliminate that fragment before its target spans are considered.

An important consequence of the span enumeration is that an English fragment can acquire several proposed Chinese realizations from the same host. Some will be too short in meaning even though they are legal sequences of symbols. Others can include nearby words that belong with a different fragment. A rule becomes useful only in combination with the other rules needed to cover the source tree and account for the full Chinese sentence. The next stage uses that competition when deciding where training evidence should go.

Seeding the candidate rules with lexical evidence

The original and newly extracted rules start with different kinds of evidence. A baseline rule is initialized from its observed frequency under alignment-based extraction. Its count records how often the initial procedure selected it. A newly proposed left-hand side can have many legal right-hand sides, so treating each legal pair as a separate observed translation would give the enumeration itself too much authority. Instead, the procedure distributes the count associated with the source fragment among the candidate translations, guided by lexical compatibility.

The authors use IBM Model 1 scores for this initialization. For the inside score, the words in the candidate's source and target portions are scored in both translation directions, and the two scores are multiplied. For the outside score, the calculation uses the remaining words in the host, after excluding the words assigned to the candidate on the source and target sides. The paper denotes these scores by wᵢₙ(g) and wₒᵤₜ(g, t). Here g is the candidate rule and t is the host. The inside score concerns the proposed local pairing. The outside score concerns the words that proposal leaves behind.

The outside calculation matters because a plausible partial translation can still be a bad division of the host. A target span might contain words that make sense with the proposed source fragment in isolation. If taking that span leaves the rest of the target poorly matched to the remaining source words, the complete proposal is weaker. Conversely, a pair with credible lexical evidence on both sides of the division is a better place to put the initial count. The method therefore relaxes the hard word links inside a host while retaining word-based evidence about the quality of a proposed split.

These outside scores belong to initialization. Later, an inside–outside-like dynamic program works over possible rule derivations to compute expected counts. The two uses of inside and outside divide the evidence at different levels. Initialization scores words belonging to a candidate and words outside it. Re-estimation reasons about the ways the entire observed tree and sentence can be assembled from compatible templates.

Finally, initial counts are converted into rule weights by normalization. The alternatives can be grouped by their whole source fragment or by the category of its root. The choice matters both for interpreting the numbers and for deciding which rules compete with one another.

Scoring ways to assemble a training example

The bilingual sentence pair and its source tree are observed. The decomposition into rules is hidden. Expectation-maximization, or EM, alternates between distributing credit among decompositions using the current rule weights and changing those weights using the resulting counts. A candidate that participates in several well-supported decompositions can receive evidence even if it was never directly extracted from the original alignment. A candidate with a good local initialization can lose weight if it rarely fits into a plausible explanation of a complete example.

The paper gives a common scoring equation for its normalization schemes. In using it for the scheme conditioned on the full left-hand side, the paper omits the probability of choosing the source decomposition itself.

Pr(T, S) = ∑ᵣ Pr(T, S, R) = ∑ᵣ ∏ₜ∈ᵣ Pr(t)

Here Pr denotes probability in the paper's notation, T is the observed source syntax tree, and S is the observed target string. R is a possible decomposition of that pair into rule applications, and each t is a template applied in the decomposition. The subscripts ᵣ and ₜ∈ᵣ index R and the template applications belonging to it. The product ∏ combines the weights of the applications within a derivation. The sum ∑ pools the scores of the derivations that yield the observed pair.

Computing credit from these derivations is the expectation step, or E-step. The paper describes an inside–outside-like dynamic program that shares work among derivations with common parts. The shared subproblems matter because the number of complete explanations can be large even when the set of allowable fragments in a given region is controlled. An expected count can then express partial credit from a sentence pair in which the choice of derivation is uncertain.

The annealed update shown in the paper can be written as follows.

EC(t) ← EC(t) + [∑ᵣ:ₜ∈ᵣ Pr(T, S, R)ᵝ] / [∑ᵣ′ Pr(T, S, R′)ᵝ]

Here EC(t) is the accumulated expected count for template t, and ← replaces that count with the value on the right. T and S refer to the current training pair. R and R′ range over decompositions of that pair, with R′ serving as the independent index in the denominator. The numerator in the paper's displayed update collects derivations containing t, as indicated by ₜ∈ᵣ. The denominator collects all derivations, which scales the contribution relative to the evidence available for that pair. The superscript ᵝ raises the scores to β, the inverse of the annealing temperature.

During deterministic annealing, training starts at a high temperature. At that stage, exponentiation makes the relative weights of competing derivations less concentrated on the ones with the strongest current scores. As the temperature falls, the current rule weights have more influence on how credit is allocated. The authors use this schedule to make it easier for small templates to survive the early iterations, when a large rule inherited from the baseline can already have an advantage. The paper relates its use of annealing to earlier work on word segmentation. Contextual Dependencies in Unsupervised Word Segmentation

Which rules compete for the same probability

In left-hand-side normalization, abbreviated LHSN, alternatives share a denominator when they have exactly the same source fragment. The associated generative account first chooses a source subtree and then chooses its target realization. With expected counts in ordinary EM, the rule update is the fraction of the competing group's total count assigned to the template.

Pr(t) = EC(t) / ∑ₜ′: lhs(t′)=lhs(t) EC(t′)

Here Pr(t) is the updated rule weight and EC(t) is the expected count of template t. The dummy index t′ ranges over templates. The function lhs returns the complete left-hand-side tree fragment, and the condition below ∑ includes only templates whose fragment equals lhs(t). The denominator is therefore the total expected count of translations of that fragment.

Root normalization, abbreviated ROOTN, groups templates more broadly. In its generative account, the source root is given, and the source fragment and target string are chosen together. Two rules can then compete even when one accounts for a much larger part of the tree, provided the root labels are the same.

Pr(t) = EC(t) / ∑ₜ′: root(t′)=root(t) EC(t′)

Here Pr(t) and EC(t) have the same roles as in the previous update. The index t′ again ranges over templates. The function root returns the category at the top of a template's source fragment. The denominator sums counts for all templates with that root category, including rules with different shapes or different fixed words.

The authors ascribe a different strength to each scheme. Grouping by the full source fragment is useful while discovering smaller rules. A derivation assembled from them can receive more relative credit under LHSN than it would under ROOTN. The product of several rule weights has to compete against a large rule that covers the region directly, and the denominators affect that competition. Root normalization is useful in the finished system because a decoder must compare analyses that use different source fragments. The paper cites earlier work showing that full-fragment normalization has difficulty recovering the conditional probabilities of target sentences given source sentences, even in the training corpus.

Their mixed scheme, MIXN, uses the two groupings at different times. Most iterations train with weights normalized by the entire left-hand side. The final maximization update groups the resulting counts by root. The change concerns the weights handed to the transducer. Small rules can accumulate evidence while they are being discovered, and the final scores put rules with the same root on a common scale for translation.

Adding the Bayesian prior

A wide candidate search creates opportunities to fit accidental patterns in the training data. Even after limiting candidate fragment sizes, the original inventory can include broad templates that fit their training pairs very closely. The newly generated rules add many more alternatives. The authors use a Dirichlet process prior to influence how the estimator distributes weight. They describe each distinct template as a cluster, with repeated uses of a template supplying evidence for the same unit. The base distribution provides an expectation about what a rule might look like independently of its expected count in the current training pass.

The paper states the root-conditioned generative account in three lines. The first draws a distribution over templates for a root category.

θᵣ | {αᵣ, G₀ᵣ} ∼ DP(αᵣ, G₀ᵣ)

Here r, shown as ᵣ in the subscripts, is a root category, and θᵣ is its distribution over templates. The bar | indicates conditioning on the quantities in braces. αᵣ is the concentration parameter controlling the influence of the prior, and G₀ᵣ is the base distribution of template choices for that root. DP denotes the Dirichlet process, and ∼ means that the quantity on the left is drawn from the distribution on the right. The subscript ₀ identifies the base distribution.

t | θₜ.root ∼ θₜ.root

Here t is a template, and θₜ.root denotes the distribution for the root of that template's source fragment. The notation t.root identifies the root category associated with t. The bar again denotes conditioning, and ∼ denotes a draw. Once a root category is at issue in a derivation, its distribution supplies the choice of the rule to use.

(T, S) | {SG, {t}, θ} ∼ SG({t}, θ)

Here (T, S) is the observed pair of source tree and target string. SG is the paper's designation for the generative account that combines template applications to produce such a pair. {t} denotes the available templates, and θ denotes the collection of category-specific template distributions. The braces collect the conditioning information on the left and identify the template inventory on both sides. The symbol ∼ links the pair to the derivation process written on the right.

The implementation uses variational Bayesian inference, abbreviated VB. This approximates the Bayesian calculation by using manageable distributions and updates. The authors mention sampling by Markov chain Monte Carlo as another approximate option and choose VB for running-time reasons. The variational procedure uses the same E-step structure as ordinary EM. Its maximization update transforms the counts and adds the prior contribution before the next round of derivation scoring.

The two versions of that update can be written by using a single symbol for the competing group.

Pr(t) = exp(ψ(EC(t) + αG₀(t))) / exp(ψ(∑ₜ′∈ᴄ⁽ᵗ⁾ EC(t′) + α))

Here Pr(t) is the weight assigned to template t for use in derivation scoring, and EC(t) is its expected count. α is the concentration parameter. G₀(t) is the base distribution's probability for the template, so αG₀(t) is the template-specific prior contribution. ψ is the digamma function, and exp exponentiates its output. C(t), written as ᴄ⁽ᵗ⁾ in the subscript of the sum, is the set of templates competing with t. The index t′ ranges over that set. With LHSN the group shares the full source fragment, and with ROOTN it shares the root label. The denominator uses total expected evidence in the group together with the overall prior term α.

The base distribution is built using the root-based generative account. In the experiment its calculation draws on baseline templates with 1 level. The paper uses that choice to penalize large templates. The group used for an update and the way the base distribution is constructed are distinct decisions. The prior can take its information from a root-based account while an early MIXN update still groups the expected counts by full left-hand side.

Both the ordinary and variational update procedures begin with the same kind of initialized inventory and can be run with the same annealing schedule. This makes the variational update, the normalization scheme and access to the new candidates independently visible in the experimental comparisons. The finished weights and rules then go into the transducer, where they contribute alongside a statistical score for the Chinese word sequence.

Experiments and results

Data, translation system and metric

The experiment translates from English into Chinese using FBIS. The training set contains 73,597 sentence pairs. The development and test sets each contain 500 pairs, with Chinese sentences limited to 25 words on those splits. Across the splits, the 74,597 sentence pairs used come from the portion of the corpus whose English side could be parsed with the authors' parser. The parser supplies the tree given to the rule extractor and, for translation, the structure the transducer works over.

The Chinese side of the training corpus also supplies data for a trigram score. The authors train it with modified Kneser–Ney estimation in SRILM. It supplies evidence about local sequences of Chinese words when the transducer evaluates proposed translations. The rule inventory supplies a different kind of evidence, linking fragments of the English input tree to Chinese output. The authors tune the weights of the transducer on the development set by a grid-based line search.

Translations are evaluated using word-based BLEU-4 and a single Chinese reference. The score reflects agreement between the output and reference at the level of words and short word sequences, with the BLEU procedure accounting for output length. The single-reference condition matters to the scale of the scores. The authors point out that scores calculated with multiple references can be substantially higher. They also explain why they use word-based evaluation even though prior work had used characters to deal with inconsistent Chinese word segmentation. The data in their training, development and test sets come from the same source. Bleu: a Method for Automatic Evaluation of Machine Translation

What the original alignments yield

For the baseline systems, the directional GIZA++ alignments and combinations of those alignments are each used to extract rules with GHKM. The E2C direction groups multiple English words with a Chinese word, and C2E permits the reverse many-to-one relation. The union combination accepts a link from either direction. The diagonal growing heuristic uses a more selective combination. The authors also try the intersection, which they report as worse than either directional alignment. They attribute its poor output to low coverage and incomplete translations.

The scale of large-rule extraction varies with this choice. The Chinese-to-English directional alignment assigns 28.6% of the measured training material to large templates, and the English-to-Chinese alignment assigns 33.0%. The union puts 45.9% in large templates, while the diagonal growing heuristic puts 20.1% there. These percentages are based on the distribution of target words. They do not measure the percentage of distinct rule types or the percentage of test sentences that need a large rule.

Very large templates account for a substantial share of the words within the selected large-rule material. In the union condition, the group of rules with at least 21 right-hand-side symbols accounts for 75.1% of those words. In the heuristic condition, the corresponding share is 47.5%. The directional figures are 64.4% for Chinese-to-English and 63.4% for English-to-Chinese. The authors describe the characteristic very large rule as a skeleton rooted high in the source tree, with many problematic word links near its frontier. Those broad hosts give the proposed extraction procedure room to search.

The strongest baseline uses the union. Under root normalization, it scores 14.55 test BLEU-4 with the large templates and 14.53 after those templates are removed. The heuristic combination scores 14.28 with them and 14.21 without them. E2C scores 13.37 and 13.20 in those two conditions, and C2E scores 12.66 and 12.62. The small changes across the removal comparisons are consistent with the authors' proposal that the oversized rules have limited usefulness as rules in the test transducer, even when they encompass considerable material in training.

Learning with the additional templates

The learning experiments pool the GHKM rules from E2C, C2E and the union, yielding 0.98M baseline templates. The authors use the union's large templates as hosts for additional extraction. The union gives them more links and larger hosts, which expands the region inside which competing word groupings can be proposed. This creates 10.92M new phrasal templates, called NEW-PHR. The initialization starts with lexical scores for these alternatives and observed extraction counts for the baseline rules.

For the comparison between annealed EM and annealed VB, the inverse temperature β starts at 0.1 and increases to 1. In the variational experiments, the same prior specification is used across the root categories. On the development set, the preferred values of α are 1 for ROOTN and 100 for both LHSN and MIXN. The paper interprets those choices through the balance between expected counts and the base distribution. Since the groupings allocate different amounts of expected count to the new templates, a single concentration value need not behave comparably under all of them.

The chart places the strongest alignment-only baseline beside the annealed systems trained with NEW-PHR. The baseline uses the union alignment. The other systems start with the pooled inventory and include candidates reopened from union hosts. The chart therefore compares complete systems. The within-training comparisons in the next section isolate access to NEW-PHR more directly.

Alignment-only and learned systems on the FBIS test set, BLEU-4

Variational training with mixed normalization gives the strongest result.

Alignment-only and learned systems on the FBIS test set, BLEU-4GHKM union baseline: 14.55GHKM union baseline14.55Annealed EM, LHSN with NEW-PHR: 15.33Annealed EM, LHSN with NEW-PHR15.33Annealed EM, ROOTN with NEW-PHR: 16.06Annealed EM, ROOTN with NEW-PHR16.06Annealed EM, MIXN with NEW-PHR: 16.37Annealed EM, MIXN with NEW-PHR16.37Annealed VB, LHSN with NEW-PHR: 16.15Annealed VB, LHSN with NEW-PHR16.15Annealed VB, ROOTN with NEW-PHR: 16.12Annealed VB, ROOTN with NEW-PHR16.12Annealed VB, MIXN with NEW-PHR (this paper): 16.84Annealed VB, MIXN with NEW-PHR (thispaper)16.84
The numbers
System or settingBLEU-4
GHKM union baseline14.55
Annealed EM, LHSN with NEW-PHR15.33
Annealed EM, ROOTN with NEW-PHR16.06
Annealed EM, MIXN with NEW-PHR16.37
Annealed VB, LHSN with NEW-PHR16.15
Annealed VB, ROOTN with NEW-PHR16.12
Annealed VB, MIXN with NEW-PHR (this paper)16.84

The best complete system uses NEW-PHR, annealed VB and MIXN. Its 16.84 test BLEU-4 compares with 14.55 for the union baseline, an absolute improvement reported by the authors as 2.29% in BLEU-4. They assess the comparison using 2000 iterations of paired bootstrap resampling on the test set and report p < 0.005. The pairing preserves the matched test examples when comparing the systems. The significance result concerns that test comparison. Statistical Significance Tests for Machine Translation Evaluation

The authors also record how the template inventory changes. At the start of the variational experiments the inventory contains 11.9M templates, of which 91.8% are NEW-PHR. With ROOTN, the final inventory is 408.0K templates and the newly extracted share is 21.9%. With LHSN, it is 557.2K and 29.8%. With MIXN, it is 500.5K and 27.6%. These figures describe the rule sets at the beginning and end of training. They complement BLEU-4 by showing how the newly extracted material occupies a much smaller share of the inventory that remains available for translation.

Final template inventories after annealed VB on FBIS training data

Mixed normalization retains an inventory between the root-only and left-hand-side-only settings in size.

Final template inventories after annealed VB on FBIS training dataROOTN: 408.0ROOTN408.0LHSN: 557.2LHSN557.2MIXN, highest test BLEU-4 setting (this paper): 500.5MIXN, highest test BLEU-4 setting (thispaper)500.5
The numbers
System or settingK templates
ROOTN408.0
LHSN557.2
MIXN, highest test BLEU-4 setting (this paper)500.5

The direction on this chart concerns inventory size alone. ROOTN yields the smallest ending inventory, while MIXN produces the strongest translation score. Together, the comparisons show why the role of variational training is better understood through both the output quality and the composition of the grammar it leaves behind. An inventory can be particularly small because it allocates less support to a class of rules that would have been valuable in translation.

What the ablations show

The new rules need to be re-estimated

The clearest ablation turns NEW-PHR on and off while keeping the training approach and normalization scheme fixed. In the condition labeled maximum likelihood, the rule counts are the same ones used to start the iterative methods. Under LHSN, using those counts gives 14.05 test BLEU-4 without the new rules and 13.16 with them. Under ROOTN, the corresponding scores are 14.50 and 13.49. The paper gives no MIXN entry for this condition. The comparison shows how a large candidate inventory can degrade translation when its lexical initialization determines the weights.

With annealed EM, the direction changes. LHSN scores 14.31 without NEW-PHR and 15.33 with it. ROOTN moves from 14.90 to 16.06. MIXN moves from 14.82 to 16.37. The same extra rules that cause trouble with the starting counts become useful after the iterative procedure reevaluates them in complete derivations. The comparison supports a contribution from the combination of search and re-estimation. It also establishes that ordinary annealed EM can benefit from the extra candidates.

The annealed VB results show a gain with NEW-PHR under each normalization. LHSN scores 14.82 without the candidates and 16.15 with them. ROOTN scores 14.76 and 16.12. MIXN scores 14.93 and 16.84. The largest observed score among these settings comes when both the new search space and the mixed scheme are available to the variational procedure. The maximum-likelihood comparison supplies an important control for that result. The new rules are possibilities discovered by enumeration, and the final performance depends on choosing how strongly to trust them.

NEW-PHR ablation under mixed normalization on the FBIS test set, BLEU-4

Both annealed trainers benefit from the new templates, and the variational setting with those templates scores highest.

NEW-PHR ablation under mixed normalization on the FBIS test set, BLEU-4Annealed EM without NEW-PHR: 14.82Annealed EM without NEW-PHR14.82Annealed EM with NEW-PHR: 16.37Annealed EM with NEW-PHR16.37Annealed VB without NEW-PHR: 14.93Annealed VB without NEW-PHR14.93Annealed VB with NEW-PHR (this paper): 16.84Annealed VB with NEW-PHR (this paper)16.84
The numbers
System or settingBLEU-4
Annealed EM without NEW-PHR14.82
Annealed EM with NEW-PHR16.37
Annealed VB without NEW-PHR14.93
Annealed VB with NEW-PHR (this paper)16.84

The comparison between VB and EM also depends on which inventory is available. Within the conditions using NEW-PHR, VB scores higher than EM with each of the normalization schemes on the test set. Without NEW-PHR, it scores higher under LHSN and MIXN, while EM scores higher under ROOTN. This pattern gives the Bayesian component a more specific interpretation. Its empirical advantage is clearest in the expanded search space, where many automatically generated rules need to be downweighted or discarded.

The training groups affect which candidates survive

The normalization comparisons give evidence about decisions made at two different points in training. In the development-set curves, MIXN improves on LHSN with both annealed procedures. Because these settings share the use of full-left-hand-side groups while accumulating evidence and differ in how the final weights are grouped, the improvement supports the authors' use of root normalization when delivering the rules to the translation system. It is also consistent with the concern about comparing derivations that use different source fragments.

The comparison with ROOTN throughout training addresses the other point. With ordinary annealed EM, the development results for ROOTN are close to MIXN and ahead of LHSN. With annealed VB, the authors report a clearer advantage for MIXN, and ROOTN falls slightly below LHSN. On the test set with NEW-PHR, the variational ROOTN and LHSN systems are also close, with 16.12 and 16.15 respectively, while MIXN reaches 16.84. The benefits associated with a grouping therefore depend on how the expected counts and prior interact during learning.

The changing inventories provide another view of that interaction. ROOTN ends variational training with the lowest share of NEW-PHR, while LHSN ends with the highest and MIXN lies between them. The authors interpret the ROOTN outcome as evidence that the new, smaller rules receive less expected credit when root groups are used throughout. A large original rule can then remain a strong explanation of its training example. MIXN gives smaller rules more scope to earn credit before the final normalization across root categories.

The development curves also let the authors examine training over successive iterations. They describe annealed VB as improving for more of the trajectory than ordinary annealed EM in the runs with the broad candidate inventory. They interpret this as better control of overfitting. This evidence concerns translation quality on held-out development examples over the course of training. The test-set comparisons qualify the pattern by showing the more mixed advantage of VB when the new inventory is withheld.

The development study of α similarly describes an interaction. The settings that allocate more expected count to small rules favor a larger prior concentration in the reported experiments. A stronger prior can then regulate a rule inventory that the E-step has given room to use. The preferred values are outcomes of tuning under each grouping, so the comparisons reflect the behavior of the complete trained choices, including their different selected concentrations.

Large baseline rules contribute little directly

The authors test the role of size in the original rule inventory in two ways. The first is to remove templates classified as large on the target side. The small test-score changes reported for the alignment baselines show that these rules contribute little directly in the transducer. The motivation for reopening them is to learn other rules from the bilingual regions they cover. A small score effect from deletion is compatible with a substantial gain from reusing the underlying examples.

The second check uses the union baseline and filters templates by the number of leaves on the source side. A limit of 5 leaves gives 14.27 test BLEU-4. Limits of 6, 7 and 8 give 14.42, 14.43 and 14.45 respectively. Using the full inventory yields 14.55. This comparison helps explain why newly extracted fragments can be capped at a modest size. Larger source fragments make some contribution in the alignment-only system, but the reported scores change little as the allowed size grows past 6 leaves. The check is on the baseline inventory, so it establishes the effect of those filters in that system.

The union result also complicates the use of the training coverage statistics. The union puts the most measured training material into oversized rules and nevertheless produces the strongest alignment baseline. The authors suggest that the numerous links in the union concentrate more of the damage in large rules that rarely match at test time. On their interpretation, other alignments may leave more unreliable links inside smaller rules that are easier to apply and more likely to harm a translation. The observed association is between the coverage lost to large rules and the baseline scores. The explanation about where noisy links accumulate is the authors' account of that association.

What changes in the learned translations

The paper checks whether the improvement can be explained by greater word coverage. The authors report that the test set’s out-of-vocabulary rate changes very little when they compare results with the learned rules to results without them. This supports an explanation centered on how familiar words are grouped and translated. It fits the extraction criterion, which aims for phrasal templates and avoids generating simple lexical pairs as the new units of interest.

The qualitative examples are organized around complicated correspondences, including many source words mapping to one target word and source and target groups that each contain multiple words. The paper observes that the English words in these examples are familiar enough to have translations outside the large hosts. The challenge is to recover a useful phrase translation when literal word-by-word links provide a poor account of the relationship. Reopening the host lets the candidate inventory include such a correspondence before inference assesses it.

A further example group shows tolerance of awkward Chinese word segmentation. When a usable Chinese expression appears as a sequence of tokens that makes the individual word links look questionable, a phrasal rule can assign that sequence to a suitable source fragment as a unit. The illustration explains a way a learned rule can remain useful under inconvenient token boundaries. The aggregate size of the segmentation effect is left open.

Limitations

Limits identified by the authors

The authors emphasize the size of the training corpus. The experiments use a relatively small subset of FBIS, and the authors leave open whether the same improvement would appear with a larger corpus. Additional examples could change how often an alignment-based extractor already finds useful small rules. They could also change the number and quality of alternatives offered by the reopened hosts. The paper argues that some nonliteral correspondences pose a structural problem for word alignment even when the words are familiar. That observation motivates testing at larger scale, while the measured gain belongs to the corpus used here.

The choice of a large template as a signal for questionable alignment is also explicitly heuristic. The authors note the difficulty of knowing which alignments are noisy in the first place. A template can be broad for reasons that are linguistically appropriate. A small template can carry an incorrect link and escape the trigger. The procedure identifies regions where reconsideration is promising, and the translation evaluation measures the outcome of doing so. Template size on its own supplies no annotation of alignment accuracy.

The paper acknowledges the simplicity of its prior and points to richer generative accounts as a possible direction. The experimental version shares the prior specification across root distributions and builds its base distribution from shallow templates found in the initial extraction. These choices favor a particular kind of compactness. Their success in this setting leaves open how alternative priors would behave, including priors that assign appropriate support to different kinds of larger rules.

Finally, the authors distinguish their experimental transducer from synchronous parsing systems. They suggest that the learning approach could be applied there too. Their reported translation results come from the transducer, whose source parse constrains rule application. A system that also entertains additional source analyses would face different search and inference demands. The paper's claim about applicability is therefore broader than its empirical test.

Limits visible in the experimental design

The scope of the main result is English-to-Chinese translation on the specified FBIS splits. The source trees come from a single parsing setup, and the usable corpus was selected according to whether the English side could be parsed. The development and test sets further restrict the length of the Chinese sentences. These conditions matter because the method uses properties of the parse tree at several points. The tree determines what can become a baseline template, which template can act as a host and which complete branches are available inside it. The behavior on input with other parsing characteristics or on longer examples remains undetermined.

The quality claim is supported by word-based BLEU-4 against one reference. The bootstrap test supports the score comparison under that evaluation setup. Human judgments of adequacy or fluency, and comparisons using other reference translations, are outside the reported evaluation. The paper's example rules can explain specific classes of correspondences that seem useful, but they do not establish how often those classes account for the measured improvement. Likewise, the out-of-vocabulary analysis addresses a possible explanation based on word coverage. It does not attribute the remaining gain to individual linguistic phenomena.

The main ablation isolates the availability of NEW-PHR. Other choices are held fixed within the comparisons of training methods and normalization schemes. The complete system also embodies several candidate-generation decisions, including the large-host trigger, the requirement to descend to the host frontier, the source leaf cap and the choice of union hosts. The source leaf filter on the union baseline offers indirect evidence about usable rule size. Separate estimates of the contribution of each extraction constraint in the full learning system remain unavailable. In particular, the use of union hosts is supported by their larger search regions and by the alignment measurements, while the effect of using the other alignments as hosts is left open.

The candidate inventory preserves limits inherited from the original analysis. A newly extracted rule stays within the host's source fragment and target sequence, and the existing variable identities must agree. On the source side it descends to the host frontier. On the target side it represents a single contiguous interval. These constraints make enumeration practical, but also determine which correspondences are expressible. A good rule that needs material outside the host, a different frontier or a discontinuous target realization lies outside this search. The strongest conclusion is about recovering some useful rules inside the chosen regions.

The fitted weights also depend on initialization, annealing, the available candidates and approximate inference. The authors discuss initialization because the iterative procedure seeks a local solution. The experiment compares ordinary and variational updates under a common annealing schedule. It does not separately measure how much the schedule itself contributes to the final score. The compact ending inventories are evidence that many candidates lose support during the reported procedure. Their counts alone leave training time, memory use and translation speed unresolved.

The paper presents the approach as a step towards learning translation units more directly from bilingual examples. Its baseline templates, host boundaries and lexical initialization still draw on the conventional alignment pipeline. The evidence is for a hybrid procedure that relaxes the most consequential word links in selected regions and re-estimates the resulting grammar. That scope is what makes the result informative about the use of alignments as a starting point for syntax-based learning.

What came after

The two citing works address different places where structure has to be inferred from examples. One makes syntactic alignment itself the subject of unsupervised learning. The other studies Bayesian induction of a grammar with trees on both sides and applies it to sentence compression. Their titles and citation relationship identify those connections. The extent to which either work adopted Liu and Gildea's particular candidate extractor, normalization scheme or prior remains unspecified.

Unsupervised Syntactic Alignment with Inversion Transduction Grammars concerns learning syntactic alignments without supervision using inversion transduction grammars. This places the alignment at the center of the inference problem. Liu and Gildea begin with a word alignment and use an existing source parse to decide where to reopen the analysis. Their primary object of learning is the translation template, and alternative word groupings become available through that template search. The later paper's stated focus connects to the same underlying question of how grammar structure can guide the choice of a correspondence. Its title establishes the use of a different grammar formalism for that question. A direct inheritance of the large-template trigger or the mixed normalization scheme cannot be established from the citation.

Bayesian Synchronous Tree-Substitution Grammar Induction and Its Application to Sentence Compression addresses Bayesian learning of paired tree fragments and names sentence compression as its application. A synchronous grammar connects choices in the analysis on both sides. The connection to Liu and Gildea is the treatment of fragments larger than a single local expansion as units that can be learned under a prior. The later work places that broad idea in a tree-to-tree grammar task. In Liu and Gildea's translation experiment, the corresponding output unit is a target string with positions where other translations can be inserted. The change in representation and application identifies the relationship between the problems while leaving the exact transfer of training procedures open.

The two citations thus situate the paper along separate lines of work. Syntactic alignment concerns how a grammar can constrain the correspondences inferred from data. Bayesian synchronous grammar induction concerns how to learn reusable structural units under uncertainty and apply them to another task. Liu and Gildea's empirical contribution is specific to the point where those questions meet in their English-to-Chinese system. Reconsidering the internal correspondences of selected alignment-derived rules produces useful candidates, and estimating those candidates jointly with the original inventory improves the reported translation score.

Cite

Cite as Ding Liu and Daniel Gildea. 2009. Bayesian Learning of Phrasal Tree-to-String Templates. Proceedings of the 2009 Conference on Empirical Methods in Natural Language Processing.

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

@inproceedings{liu2009bayesian,
  title = {{Bayesian Learning of Phrasal Tree-to-String Templates}},
  author = {Ding Liu and Daniel Gildea},
  booktitle = {Proceedings of the 2009 Conference on Empirical Methods in Natural Language Processing},
  year = {2009},
  doi = {10.3115/1699648.1699677},
  url = {https://doi.org/10.3115/1699648.1699677}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/liu-2009-bayesian-learning-phrasal-tree-string/