Elamur Research

Bayesian Synchronous Tree-Substitution Grammar Induction and Its Application to Sentence Compression

Paper · 2010 · Elif Yamangil and Stuart M. Shieber

Summary

Shortening a sentence by deleting words can change its structure. A qualification may disappear from the beginning of a sentence, leaving the subject and verb in their original roles. A reporting phrase can also disappear, leaving a clause that was embedded inside it to stand on its own. Elif Yamangil and Stuart M. Shieber ask how a system can learn these changes from examples of original sentences paired with human compressions. Their aim is to learn rules that describe both what disappears and how the remaining parts fit together.

The authors use a synchronous tree-substitution grammar. Each rule pairs fragments of the original and shortened sentence trees. A fragment can span several levels of syntax and can include particular words, so a rule can express a change that depends on both grammatical structure and wording. The learning problem is deciding where to divide each pair of trees into fragments. Dividing them finely yields small rules that can recur in many places. Keeping more structure together yields richer rules that need evidence of repeated use. The authors use a Bayesian prior that favors simple new rules and gives previously used rules more weight. Gibbs sampling revisits the boundaries between fragments, allowing the grammar’s inventory to change during training.

On the 200-sentence Broadcast News test set, the Gibbs-sampling system reached a relational F1 of 61.64, compared with 57.67 for expectation maximization and 54.46 for the support vector machine system. The improvement over expectation maximization came chiefly from higher recall of the grammatical relations in the human compressions, with similar precision. The Gibbs system also retained a greater percentage of words than either baseline. Human readers on a smaller test sample gave its outputs higher average ratings for grammaticality and preservation of important information than they gave either baseline.

A variational Bayes comparison helps explain the gain. Adding a prior that favors a sparse grammar improved the fixed-inventory approach, while the sampler generally achieved higher relational F1 across the settings examined. The authors interpret this as evidence for addressing both parts of the learning problem, choosing which rules to use and allowing the set of possible rules to change. The experiments concern compression by deletion, where the surviving words can be aligned to the original sentence and retain their order.

Deep dive: Bayesian Synchronous Tree-Substitution Grammar Induction and Its Application to Sentence Compression

Bayesian tree-substitution grammar learns how to shorten sentences by deleting words and choosing reusable rules from paired syntactic trees. · about 35 minutes to read

The problem and its context

What remains after deletion

A sentence compression has to preserve enough of the original information to serve as a shortened version, and the words that survive have to form a grammatical sentence. The paper takes this task from the line of research represented by Jing’s work on sentence reduction. It considers an extractive version in which every output word comes from the input and the surviving words appear in their original order. Sentence-level reduction belongs to the broader task of text summarization. Sentence Reduction for Automatic Text Summarization

The paper’s running example is about the screen performance of ATM. The original sentence opens by comparing it with FaceLift, then says that much of the performance depends on the underlying application. The compression drops the comparison and the expression of quantity. The result makes the performance itself the subject of the statement about what it depends on. The opening phrase can be removed as a syntactic unit. Removing the quantity expression calls for a different structural adjustment, because a noun phrase contained inside a larger subject phrase supplies the subject of the compression. The changes can be described in terms of both surviving words and the constituents that contain them.

That distinction matters for supervised learning. The examples tell the system which original and shortened sentences belong together. Once they are analyzed, they also exhibit the structures on both sides of each transformation. They leave open how much of a successful transformation should be stored together as a rule. A common deletion might be learned as a broadly applicable pattern for an optional phrase. A different deletion might depend on a particular expression or on several syntactic relations coming together. Both are possible under the same task definition.

The authors distinguish this supervised setting from unsupervised compression. The unsupervised approaches they discuss use evidence such as the plausibility of a shortened sequence and constraints on its linguistic or discourse structure. They use dynamic programming to consider many candidate compressions efficiently. The authors point out that extending those procedures to more general paraphrasing can be harder, because the search in extractive compression is structured around words and order inherited from the input. Here the authors start with paired examples and use their analyses to learn how the source and target structures correspond.

Why the trees need different shapes

A parse tree records how words are grouped into phrases and clauses. Nodes stand for grammatical categories, and the paths from a phrase down to the words show which material it contains. In an aligned pair, the original sentence and the compression each have such a tree. The alignment tells us where surviving words came from. A grammar still needs to explain how larger structures on the two sides are related. Producing the trees and using their structure are both important to this paper’s treatment of parsing.

A synchronous grammar builds paired structures by expanding corresponding pieces together. One possible starting point is a synchronous context-free grammar. Its elementary expansions consist of a parent and its immediate children. This gives a natural pairing when both trees have the same branching structure. In a compression, material inside an embedded clause can become the main clause of the result. The two paths to corresponding words can then have different depths. The paper uses this kind of structural mismatch to motivate a formalism that can put several levels of one tree in correspondence with a differently shaped fragment of the other. Its starting point is the context-free grammar.

Tree substitution adds that freedom by allowing a rule to contain a larger fragment. Such a rule can cross levels of the parse and keep several grammatical decisions together. A rule can also contain a word at a place where it would otherwise contain a category to be filled in later. This is lexicalization. A word can identify the circumstances in which a larger operation has been observed, while the unfilled positions still allow the rule to apply to new phrases. The paper points to earlier work that emphasized the value of such word-specific information for compression. The question for grammar induction is how to discover which combinations are worth retaining.

Why extracting rules and weighting them are linked

One approach discussed in the paper uses word alignments to extract rules and then assigns weights to the extracted inventory. The alignments provide anchors for the extraction. They help establish which source and target fragments can be paired without stranding a word whose counterpart lies elsewhere in the other tree. Several compatible rules may still be available around the same aligned words. An extraction heuristic that prefers small rules makes one choice about the level of detail. Extraction that also admits larger combinations makes more of the evidence available, at the cost of a larger inventory. A weighting procedure can only learn preferences among the options the extraction has retained.

The paper describes discriminative approaches that optimize a criterion such as conditional likelihood or a classification margin. Such training can exploit features designed for the task and choose weights that help distinguish useful outputs from competing ones. The authors treat the choice of derivation as a difficulty for this approach. A derivation is the sequence of rule applications used to build a tree pair. Several derivations can produce the same observed pair, so training has to account for a structure that the examples leave implicit or make a separate decision about it. The comparison with a discriminative compressor in this paper keeps those differences in view.

A generative alternative is expectation maximization, or EM. The grammar gives probabilities to derivations. EM uses the derivations that could have generated each training pair to estimate counts for the grammar rules, then updates their weights and repeats the procedure. This allows uncertainty about the derivation to inform the weights. It also exposes a problem with fitting the training data. In a sufficiently expressive inventory, an entire training pair can be stored as an elementary rule. Treating the observed pairs this way gives a direct fit to the training examples while offering little incentive to learn smaller units that will recur in new ones.

The paper identifies a second difficulty, the cost of considering all possible rules in EM. Earlier solutions described by the authors begin with a predetermined subset and estimate weights within it. A useful restriction on depth can reduce the tendency to memorize large structures. The same restriction makes some potentially useful combinations unavailable. The authors call these two difficulties overfitting and narrowness. The first concerns which structures a learner prefers when it can choose among them. The second concerns whether those structures are available to the learner in the first place.

The paper draws on earlier Bayesian work on segmentation to put these decisions in one procedure. In word segmentation, the learner has to infer where units begin and end. A prior can favor simple candidates and also give a repeated unit a greater chance of being selected again. Related work discussed in the paper applies this kind of reasoning to parsing and machine translation. Here, the boundaries divide paired trees. Recurrence can justify treating several linked grammatical decisions as a unit, while rare structures can frequently be explained by combining simpler rules. Contextual Dependencies in Unsupervised Word Segmentation

The method, step by step

From paired trees to reusable rules

Start with the original and shortened sentences, their parse trees, and the correspondence between their surviving words. Imagine drawing a boundary across both trees near a phrase whose detailed content can vary. Above that boundary, a rule specifies what has to be present for a particular transformation. At the boundary, the rule leaves a position open. Material below the boundary is handled by another rule. Positions that are open on both sides are linked, so the next rule supplies the source and target fragments together. An open position can also be present on just one side, which allows the derivation to continue through an inserted or deleted subtree.

The parts of a rule above its open positions are elementary trees. Their open positions are called frontier nodes. To see how they work, consider the paper’s opening comparison with FaceLift. A rule for the sentence can contain enough of the original tree to identify the opening prepositional phrase. The target fragment can start with the subject and continue with the verb phrase. Matching frontier positions pass the subject and verb phrase to subsequent rules. A separate source-only expansion can account for the words inside the dropped part. A grammar can thus express the decision to remove a piece of structure and the internal derivation of the material that piece contains.

There are often several places at which the rules could join. A deletion can be stored with its surrounding punctuation, for example, or some of that material can be handled in other fragments. Keeping the punctuation in the same rule makes the operation specific to a configuration in which it is licensed. Leaving more of the structure open gives the rule a broader range of use. The learning procedure examines both possibilities by changing alignments between nodes. When an alignment creates a new boundary, the pieces on either side become separate rule applications. Removing a boundary merges those pieces.

Learning and applying the compression grammar

The steps in order.

Learning and applying the compression grammarStep 1: Parse original sentences and their human compressions1. Parse original sentences and their human compressionsStep 2: Use word alignments to constrain node correspondences2. Use word alignments to constrain node correspondencesStep 3: Initialize a derivation for each tree pair3. Initialize a derivation for each tree pairStep 4: Resample node alignments and update rule counts4. Resample node alignments and update rule countsStep 5: Estimate a grammar from the final derivations5. Estimate a grammar from the final derivationsStep 6: Add copy and deletion rules for coverage6. Add copy and deletion rules for coverageStep 7: Decode a new source tree by dynamic programming7. Decode a new source tree by dynamic programming

The paper writes a rule as a pair of root categories expanding into a pair of fragments. The alignment is part of the rule, since fragments with the same shape can have different correspondences at their frontiers.

cₛ / cₜ → eₛ / eₜ    with frontier alignment γ

The labels cₛ and cₜ are the source and target root nonterminals. A nonterminal here is a category such as a sentence or noun phrase that can have structure under it. The fragments eₛ and eₜ are the elementary trees on the source and target sides. The slash separates the sides, and the arrow indicates their expansion. The alignment γ pairs matching frontier positions. Square-bracketed indices in the paper’s tree examples mark the positions that receive a joint continuation.

An empty side is denoted by ε. A frontier node linked to ε has a continuation on its own side only. For example, a rule rooted at a source noun phrase and ε generates a source noun-phrase fragment without target words. If that fragment leaves open positions, each of them also continues on the source side only. The same convention works in the opposite direction for insertion. The formal grammar includes both cases. The compression inference procedure uses source-only continuations because the human compression task permits deletion.

The role of frontier alignment differs from that of the corpus-wide alignment used during training. Inside a synchronous rule, paired frontier positions are matched one to one. Across a derivation, the sampler considers source nodes that can correspond to the same target node. This allows a sequence of source-side structure to contract onto a smaller target structure. The local rule still tells the derivation how to continue at its own frontier. Keeping these levels of correspondence distinct is important when the two trees have different shapes.

A probability distribution for every pair of roots

The grammar groups rules by their root categories. When the current position requires a sentence fragment on both sides, the choice is made among rules with sentence roots on both sides. When it requires a source noun phrase with an empty target, the choice comes from a different group. The paper gives each group its own distribution drawn from a Dirichlet process.

G꜀ ∼ DP(α꜀, P₀(· | c))

Here c is a pair of root labels, with ε permitted on either side individually. G꜀ is the distribution of elementary tree pairs with that root pair. The symbol ∼ means that G꜀ is drawn from the distribution on the right. DP is the Dirichlet process, α꜀ is its concentration parameter, and P₀(· | c) is its base distribution. The dot denotes the argument for a candidate elementary tree pair, and the vertical bar indicates that the base distribution is specific to the root pair c.

This setup gives each group a distribution over a potentially infinite inventory of fragments. In a finite corpus, the learner uses a finite set of rule instances. The prior gives it a way to introduce rules outside that set when a new segmentation calls for them. The concentration parameter governs how readily a derivation uses the base distribution in relation to the accumulated counts. A lower concentration parameter gives repeated use more influence relative to the introduction of candidates through the base distribution. The paper uses fixed hyper-parameter values during inference and compares settings during development.

The distinction between α and the base distribution matters. The concentration parameter says how strongly the already observed rule uses compete with the prior contribution. The base distribution says which candidates receive that prior contribution. A candidate with a large fragment can be assigned a small base probability, while still becoming favored if it is used frequently enough. A small fragment can have a stronger starting position. The grammar therefore has a preference about adding structure and a mechanism by which repeated evidence can overcome that preference.

How the prior generates a fragment

For a synchronous rule with two nonempty roots, the base distribution generates the elementary tree on each side independently before it chooses the frontier alignment. At a nonterminal, it makes a decision about whether to expand or stop. The expansion probability is β꜀, with c indicating the relevant category setting for the expansion decision.

P(stop at the nonterminal) = 1 − β꜀

P denotes the probability of leaving the current nonterminal as a frontier node. The value 1 is the total probability of the alternatives, and the minus sign subtracts the expansion probability β꜀. The experiments tie the expansion hyper-parameters to a shared β, so the expansion setting is common in the reported Gibbs training runs for a given choice of hyper-parameters.

If a nonterminal is expanded, the children come from a probabilistic context-free grammar estimated ahead of time from the training corpus. This auxiliary grammar supplies probabilities for immediate expansions. The same decision is then made at newly generated nonterminal children. Stopping preserves a frontier position where another elementary rule can attach. Expanding puts more of the structure inside the current rule. The pressure towards smaller fragments comes from the repeated decisions needed to extend the tree.

Once the source and target fragments have been generated, the base distribution chooses uniformly among their possible frontier alignments. It leaves the correspondence of internal nodes to the structure implied by the chosen fragments and their frontier connections. For a source-only rule, it generates the source fragment by the same branching procedure and gives every frontier position an empty target. For a target-only rule, the construction is symmetric. This gives the paper a single account of the rule inventory, including the one-sided pieces that may be useful in other tree transformations.

This prior has a deliberately limited responsibility. The grammar estimated from the corpus makes ordinary local expansions more or less plausible, and the branching decision controls how much structure goes into one elementary tree. The training evidence determines which source and target configurations recur together strongly enough to receive substantial weight. Putting a detailed theory of internal correspondence into the base distribution would change what the prior could favor before that evidence was considered. The authors use the simpler arrangement to investigate the effect of controlling rule size.

What is observed and what must be inferred

For each tree pair, a derivation specifies a sequence of elementary rule pairs. The root labels at the current open position determine which G꜀ supplies the next rule. The corpus consists of N observed tree pairs, and a derivation for pair n has dₙ elementary rule applications. The paper uses eₙ for the sequence of those applications and tₙ for the resulting source and target tree pair. The same G꜀ can be consulted at many positions and in many sentences.

A complete derivation determines the trees that it produces. The observation probability consequently has a particularly simple form.

p(tₙ | eₙ) = 1 if eₙ derives tₙ, and 0 otherwise

The symbol p is a probability, tₙ is the observed tree pair for training item n, and eₙ is its candidate derivation. The vertical bar indicates conditioning on that derivation. The value 1 applies when the sequence produces the observed trees, and 0 applies when it produces a different pair. The uncertainty at training time is over the ways of deriving the observed pair.

Across the corpus, the posterior follows from Bayes’ rule.

p(e | t) ∝ p(t | e) p(e)

Here e denotes the collection of derivations and t the collection of observed tree pairs. The left-hand side is the posterior probability of the derivations given the corpus. The factor p(t | e) is the probability of the corpus under those derivations. The factor p(e) is their prior probability. The symbol ∝ means that the right-hand side gives weights proportional to the posterior, with a common normalization across candidate derivations. Among compatible derivations, it is their prior weight that distinguishes them under this expression. Compatibility incorporates what the observed analyses require, while the weights reflect how the derivations use the inventory.

The paper integrates out the rule distributions G꜀. This is called collapsing the distributions. Conditional on a particular G꜀, draws for the same root pair are independent. After averaging over G꜀, earlier draws provide evidence about where that distribution puts its mass. This gives the learner a direct way to score a candidate from rule counts.

p(eᵢ | e<ᵢ) = (n(eᵢ) + α꜀ P₀(eᵢ | c)) / (i − 1 + α꜀)

The candidate eᵢ is the elementary tree pair at draw i for root pair c. The notation e<ᵢ denotes all earlier draws with that root pair, and n(eᵢ) is how many of them used that exact rule. The term P₀(eᵢ | c) is the rule’s base probability, multiplied by the concentration α꜀. The expression i − 1 counts the earlier draws, so the denominator adds the group’s concentration to its total previous count. The slash indicates division. The probability of a previously unused rule comes entirely from the base term, while a rule already used in the derivation receives the additional count term.

The collapsed distribution is exchangeable within a root group. In this setting, exchangeability means that the probability assigned to a collection of rule uses is independent of the order in which those uses are listed. A sampler can therefore take out the uses involved in a local decision, keep the other counts, and evaluate possible replacements as if they were added next. The same calculation handles repeated fragments across sentence pairs and repeated fragments inside a pair.

What a Gibbs update changes

The sampler begins with a random derivation of the corpus. It visits the source nodes in random order and resamples the alignment at each one. A node can be unaligned, which places it inside a larger elementary fragment. It can instead align to an eligible target node or to ε, which creates a boundary at which a separate fragment begins. During each update, the other decisions are kept in place. This is a Gibbs update, a resampling of one part of the current derivation using its conditional probabilities.

The known word alignment makes many candidate node alignments impossible. For example, a source node whose span includes a deleted subspan cannot be paired as though that whole span corresponded directly to a target node. The current placement of nearby boundaries also constrains which correspondences can be realized in a derivation. That is why the sampler tests eligible target nodes in the context of the current state. The set of available choices can change after another node is updated.

The authors take the alignment direction to be from source to target. A source node can be left without a link, linked to an eligible target node, or linked to the empty side. Different source nodes can correspond to one target node, allowing structural contraction. The authors set aside the complication of unary branches when motivating the restriction on a source node corresponding to multiple target nodes. A unary branch is a step in the tree with a single child, so different nodes there can cover the same words. Insertion on the target side is excluded from the compression updates.

For the local probability calculation, suppose the node under consideration is i and its closest aligned ancestor is i′. If i is unaligned, the affected part is a merged rule rooted at i′. If i is aligned, there is an upper rule rooted at i′ and a lower rule rooted at i. The rule counts from those affected pieces are removed before scoring the alternatives. An equivalent way to write the paper’s unaligned weight is as follows.

w(unalign) = (n(eM) + α(cM) P₀(eM | cM)) / (n(cM) + α(cM))

The symbol w denotes a weight to be normalized over the allowed alternatives. The label unalign means that node i remains inside the upper fragment. The rule eM is the merged elementary pair, and cM is its root pair. The count n(eM) is the number of uses of that rule outside the affected pieces, while n(cM) is the total count for its root group there. The notation α(cM) denotes the group’s concentration parameter, and P₀(eM | cM) is the merged rule’s base probability. This is the collapsed predictive probability for adding the merged rule to the retained derivation.

The aligned alternative creates two rule uses, so its weight uses two predictive factors.

w(align with j) = [(n(eA) + α(cA) P₀(eA | cA)) / (n(cA) + α(cA))] × [(n⁺(eB) + α(cB) P₀(eB | cB)) / (n⁺(cB) + α(cB))]

Here j is a permissible target node or ε. The rule eA is the upper elementary pair, with root pair cA, and eB is the lower pair, with root pair cB. The counts n in the first factor describe the retained derivation before either piece has been added. The counts n⁺ in the second factor describe it after adding eA, hence the superscript plus. As in the merged weight, a count with a rule as its argument is for that rule, and a count with a root pair as its argument totals the uses of rules in the group. The expressions α(cA) and α(cB) are the corresponding concentration parameters. Each P₀ term gives the indicated rule’s base probability for its root group. The brackets group the factors and × takes their product.

The count adjustment for the lower rule matters when the two rules use the same group. The first rule then contributes to the denominator for the second choice. If the rule itself is repeated, it also contributes to the numerator. This accounts for the dependence between the two additions implied by the collapsed distribution. Giving both additions predictive probabilities from the same unchanged counts would miss that dependence.

Moving the boundary can also change the decomposition of a deleted subtree. The sampler can leave a piece inside a larger deletion or split it off into a source-only rule. In the paper’s illustration, alignment with an ordinary target node changes a synchronous boundary, while alignment with ε splits a deletion. Both operations change which elementary pairs are counted. They can therefore affect how attractive the same pieces will be when the sampler reaches another training example.

Why the sampler changes temperature

A sequence of merges and splits can connect different derivations. The authors give the example of merging the pieces and then segmenting the result again. Such a route can pass through large fragments with very small probabilities. In a practical run, a sampler can spend much of its time around one probable configuration because the intermediate states on the way to another one are unlikely. The authors use simulated annealing to make exploration easier early in a run and to favor high-weight decisions near its end.

wᵀ(a) ∝ w(a)^(1/T)

The symbol a denotes an available alignment choice, w(a) is its ordinary conditional weight, and wᵀ(a) is the weight used at temperature T. The caret denotes exponentiation, and 1/T is the reciprocal of the positive temperature. The proportionality sign indicates that the transformed weights are normalized over the available choices. At higher temperature the transformation flattens their differences. As temperature approaches zero it increasingly favors the choices with the largest weights. The terminal zero is understood through that limiting behavior.

The temperature falls linearly from T = 5 to T = 0. The final derivations are treated as an estimate of the maximum a posteriori configuration, or MAP. This takes the training procedure from exploration of alternatives to the selection of a corpus segmentation for prediction. The final grammar is constructed from the rule occurrences in that selected segmentation.

How a new sentence is decoded

A new sentence comes with a source tree. Each compatible derivation produces a target tree. Several derivations can produce the same target tree, so there are two possible objectives. The maximum probability tree uses the total probability of all derivations that produce a candidate target. The maximum probability derivation selects the individual derivation with the highest probability and takes its target as the answer. The paper uses the second objective for its main prediction procedure.

d* = argmax_d p(d | tₛ, t)

Here d is a candidate derivation for a new example, a symbol used to distinguish it from the training derivations e. The notation d* denotes the chosen derivation, with the star marking the maximizer. The operator argmax_d selects the value of d with the highest score. The probability p(d | tₛ, t) is conditional on the new source tree tₛ and the training corpus t. The comma separates the two conditioning inputs.

In the posterior prediction objective, a candidate test derivation receives contributions from possible derivations of the training corpus.

p(d | tₛ, t) = ∑ₑ p(d | tₛ, e) p(e | t)

The symbol ∑ₑ means to sum over the training derivations e. The factor p(e | t) gives their posterior weight after observing the corpus t. The factor p(d | tₛ, e) scores the new derivation d for source tree tₛ given those training derivations. Their product is the contribution for that training choice. The authors approximate the sum by placing the posterior mass on the selected MAP estimate. They then replace the corresponding infinite rule distribution with a finite grammar obtained by normalizing the observed rule counts.

A finite grammar built only from observed fragments can fail to cover new words or structures. The authors add zero-count context-free rules for copying structure across the trees and for continuing through a source-only structure. The paper illustrates this with a noun phrase that contains a noun phrase and a prepositional phrase. A copy rule preserves the immediate shape and leaves both children to be handled by subsequent rules. A deletion rule leaves both children on the source side. Laplace smoothing, adding 1 to the counts, gives the added rules weight. Dynamic programming then combines compatible subderivations to find the highest-probability derivation under this finite grammar.

Experiments and results

Corpus, splits, and training conditions

The Broadcast News compressions corpus contains 1370 original–compression pairs prepared by hand from transcribed stories. The authors use 1000 pairs for training, 170 for development, and 200 for testing. The Stanford parser supplies their syntactic analyses. The training examples provide the tree pairs and word correspondences from which rules can be induced. Development examples are used to choose settings. The test split supplies new source sentences and human reference compressions for the evaluation.

The support vector machine system, abbreviated SVM, is a discriminative tree-transduction system taken from prior work on a broader compression task. The system was designed to accommodate changes beyond deletion. In this experiment, the authors exclude its paraphrasal rules extracted from bilingual corpora. The supplied training pairs exhibit deletion. The test setting uses C = 0.001 for the tradeoff between the training error and the margin. The margin measures separation between the desired prediction and competitors under the trained scoring function. The system uses margin rescaling and a loss based on Hamming distance over bags of tokens with a brevity penalty. The loss concerns differences in token content, with length also entering the criterion used in training. Sentence Compression Beyond Word Deletion

The EM baseline estimates rule weights in a fixed inventory drawn from the SVM system’s extraction. It uses a subset which excludes rules that delete non-head material. The head is the grammatical element around which a phrase is organized. The baseline begins with uniform weights and uses maximum a posteriori EM with a Dirichlet parameter above 1. This gives an advantage to rules with expected uses while smoothing their estimated weights. Another parameter governs the treatment of rules added to the learned grammar from unseen data. The authors search the interval (1, 2] for both settings on the development split and select α = 1.0001 for the MAP-EM smoothing parameter and δ = 1.01 for augmentation. The augmentation uses add-(δ − 1) smoothing, so δ controls the count added through that procedure.

The Gibbs-sampling system, abbreviated GS, starts from random derivations and runs for 5000 iterations with annealing. The authors use a common α for the root groups and tie the expansion settings to a common β. The development search varies α over [10⁻⁶, 10⁶] and β over [10⁻³, 0.5]. The test setting is α = 100 and β = 0.1. This experiment changes sparsity and fragment generation through shared settings even though the formal grammar allows group-specific parameters. The reported automatic GS scores average five independent runs.

These conditions make EM a substantive comparison. Its inventory embodies depth and frontier restrictions that already help counter the tendency to memorize large training fragments. It has access to rule structures extracted for compression and can redistribute weight according to alternative derivations. The SVM comparison brings in a different training objective and a system established in the work the paper discusses. The three setups differ in more than the rule-weight estimation procedure. The later variational comparison addresses part of that difference.

The automatic measurements

The authors use the Stanford parser to extract grammatical relations for the predicted and reference trees. A relation records a grammatical connection between elements of the sentence. Comparing relations evaluates some of the syntactic content shared with the reference, beyond whether the same words appear. Precision measures the share of predicted relations found in the reference. Recall measures the share of reference relations recovered by the prediction. Relational F1 combines them, so a system needs both kinds of agreement to score well. The paper cites earlier compression work showing a reliable correlation between the relation-based measure and human judgments.

The other automatic measurement is the compression rate. In this paper it is the percentage of source words retained. A higher rate therefore means that the output is longer relative to its input. The rate is useful alongside recall because retaining more material can preserve more reference relations. Precision indicates whether the retained relations still agree with the reference. Length and grammatical agreement thus describe different aspects of the same output.

Relational F1 on the Broadcast News test set

Gibbs sampling has the highest relational F1 among the tested compressors.

Relational F1 on the Broadcast News test setSupport vector machine: 54.46Support vector machine54.46Expectation maximization: 57.67Expectation maximization57.67Gibbs sampling (this paper): 61.64Gibbs sampling (this paper)61.64
The numbers
System or settingRelational F1
Support vector machine54.46
Expectation maximization57.67
Gibbs sampling (this paper)61.64

EM improves on the SVM baseline in both components of relational F1. On the 200-sentence test set, SVM has relational precision of 55.60 and recall of 53.37. EM has precision of 58.80 and recall of 56.58. GS has precision of 58.94 and recall of 64.59. Thus the GS and EM systems recover different amounts of the reference content while keeping a similar share of their predicted relations in agreement with the reference. The authors emphasize this combination of recall gain and stable precision.

Grammatical relation recall on the Broadcast News test set

Gibbs sampling recovers more of the reference relations than either baseline.

Grammatical relation recall on the Broadcast News test setSupport vector machine: 53.37Support vector machine53.37Expectation maximization: 56.58Expectation maximization56.58Gibbs sampling (this paper): 64.59Gibbs sampling (this paper)64.59
The numbers
System or settingRelational recall
Support vector machine53.37
Expectation maximization56.58
Gibbs sampling (this paper)64.59

The test-set compression rate is 59.72% for SVM, 64.11% for EM, and 65.52% for GS. The human reference rate is 65.67%. The SVM output is the shortest in relative terms, and GS is closest to the reference length among the compared systems. The automatic comparison therefore covers outputs at different lengths. It establishes performance for the tested settings, and the authors also examine behavior across a range of settings to see how the result relates to the number of words retained.

What human judges saw

The human evaluation uses a random subsample of 20 sentences from the test split. The authors collect judgments through Amazon Mechanical Turk from 15 self-reported native English speakers. The judges rate the outputs of each system and the gold compressions on a scale from 1 to 5. One rating concerns grammaticality, described in terms of fluency. The other concerns importance, asking how much of the source meaning and important information the compressed sentence preserves. These judgments allow the evaluation to recognize a readable and informative sentence whose grammatical relations may differ from those of the particular reference.

Mean grammaticality rating on the Broadcast News human-evaluation sample

The Gibbs compressor receives the highest grammaticality rating among the automatic systems.

Mean grammaticality rating on the Broadcast News human-evaluation sampleSupport vector machine: 2.75Support vector machine2.75Expectation maximization: 2.85Expectation maximization2.85Gibbs sampling (this paper): 3.69Gibbs sampling (this paper)3.69Human reference: 4.25Human reference4.25
The numbers
System or settingMean grammaticality rating
Support vector machine2.75
Expectation maximization2.85
Gibbs sampling (this paper)3.69
Human reference4.25

The average importance rating is 2.85 for SVM, 2.67 for EM, and 3.41 for GS. The gold compressions average 3.82. The subset’s word retention rates are 68.18% for SVM, 64.07% for EM, 67.97% for GS, and 62.34% for the references. These are rates for the sentences read by judges. On those items, the GS output averages a higher importance rating than SVM despite their similar retention rates. The reference combines the highest average importance rating with the lowest retention rate on the subsample, which gives a direct illustration of why length alone cannot measure preservation of information.

The overall analysis of variance is significant at p < .01 for both rating dimensions. The authors use post-hoc Tukey tests for the individual comparisons marked in their results. For grammaticality, the SVM comparison with GS is marked at the stricter reported threshold of α < .01, and the EM comparison at α < .05. For importance, the EM comparison with GS is marked at α < .05. The SVM importance value is reported as a numerical difference without a significance mark. The same applies to the differences between GS and the human references in the table. The authors interpret the human ratings as evidence that the relation-based score understates the advantage they observed for the Gibbs system.

What the ablations show

Introducing sparsity while keeping the inventory fixed

The EM comparison leaves two explanations open. GS may benefit because its prior encourages a compact grammar. It may also benefit because it can move between segmentations that require different rules. The learned inventories show an important difference in the outcome of training. The authors report 4K-7K rules for GS, compared with about 35K for EM. Those sizes establish that the systems finish with quite different inventories. To investigate the performance implications, the authors add a variational Bayes comparison, abbreviated VB, that brings the Bayesian prior into training within a fixed rule inventory.

The difference can be seen in the update equations. The regularized EM update uses expected counts from the current distribution over derivations of the training examples.

θ⁽ᵗ⁺¹⁾(c,e) = (n(c,e) + α − 1) / (n(c,·) + Kα − K)

The symbol θ is the rule weight, and its superscript t + 1 indicates the next training iteration after t. The argument c is the root pair, and e is the elementary rule pair in that group. The quantity n(c,e) is the expected count of this rule. In n(c,·), the dot indicates the expected counts summed over all rules with root pair c. The symmetric Dirichlet parameter is α, and K is the number of ways to expand c in the fixed grammar. In the denominator, Kα is the product of K and α. The subtraction of 1 in the numerator and of K in the denominator gives the MAP adjustment associated with the prior.

VB uses the Dirichlet process base probabilities in a finite version of that prior. For the K alternatives of a root pair, the Dirichlet parameters are determined by the concentration and the base probabilities of the rules. The expectation used to score derivations then has the following form.

θ⁽ᵗ⁺¹⁾(c,e) = exp(Ψ(n(c,e) + α꜀ P₀(e | c))) / exp(Ψ(n(c,·) + α꜀))

Here θ is the weight used in the variational expectation step for rule e of group c, with t + 1 again indicating the next iteration. The quantities n(c,e) and n(c,·) are the expected individual and group counts. The group concentration is α꜀, and P₀(e | c) is the base probability of rule e conditional on c. The function Ψ is the digamma function, which supplies the expected logarithmic terms for the Dirichlet calculation. The function exp exponentiates those terms, and the slash divides the rule-specific expression by the group expression. The paper describes the resulting weights as subprobabilities. They come from exponentiating expectations of log probabilities, which gives a different update from dividing adjusted counts.

The authors examine a range of settings for this comparison. They fix β at 0.1 and vary α over [10⁻⁶, 10⁶] and δ over (1, 2]. They present the relationship between compression rate and relational F1, precision, and recall for GS, EM, and VB. Looking across settings helps put the headline recall gain in context. Some changes in recall can follow from the amount of material left in the sentence. The authors report that GS generally maintains approximately the precision of EM even at higher retention rates, with improved recall carrying through to relational F1.

VB approaches the GS results more closely than EM does in this comparison, while GS still reaches the higher level described by the authors. This supports a role for the sparse prior within an inventory that training takes as given. The remaining gap supports the authors’ interpretation that changing the available rules also matters. Their additional experiments with independent symmetric Dirichlet priors in VB yield results broadly similar to EM. The sparse settings there give smaller grammars and some improvement. That observation gives a narrower reason for attributing part of the gain to sparsity, since the improvement can appear even with a finite rule set.

Inspecting what the grammar learned

The paper also inspects high-probability rules from the sampler’s final state. This analysis shows what different rule sizes buy in grammatical terms. At the top of a sentence, several rules remove an opening conjunction, adverbial phrase, or prepositional phrase and preserve the subject and verb phrase. A distinction among these rules is whether punctuation is an explicit part of the operation or is left to a separate continuation. A sentence-level rule can also remove an interjection and its following comma while retaining the basic clause.

Other learned rules span more of the tree. One pattern removes an outer subject and reporting material and leaves the embedded subject and verb phrase as the main clause. A rule for this operation has to reach into the original sentence far enough to identify the clause that survives. At the same time, it can leave that clause’s subject and verb phrase open, so the particular words in those positions can vary. This connects the method’s ability to use deep fragments to a recognizable compression operation. A grammar restricted to immediate expansions would need to distribute the operation across its individual choices.

The authors single out a different kind of depth in a broadcast attribution pattern involving the verb reports. The source structure contains a possessive expression naming an organization before the reporter’s name. The learned rule removes the possessive but keeps the name and the reporting verb. It reaches from the noun phrase into the verb phrase, contains the possessive marker and the word reports, and leaves positions for the reporter’s name. This makes it specific to a construction while remaining reusable across individual names. The authors say the pattern recurs in the corpus and argue that discovering its useful extent calls for reasoning across examples. The listed rules establish that the sampler can retain a combination of punctuation, syntax, and particular words when the corpus supports a reusable fragment.

Checking the decoding objective

The authors also try the maximum probability tree objective using Monte Carlo integration over derivations. They report that the results are statistically similar to those from the maximum probability derivation objective. This comparison addresses the prediction stage. It suggests that, for these experiments, changing how the available derivations are combined into a tree-level decision did not produce a detectable gain. The sparse-prior comparison addresses a different question, because it changes how the grammar is trained. The examples of learned rules address a third question, showing the kinds of transformations represented in the final grammar.

Limitations

Limits the authors identify

The authors tailor the inference algorithm to an extractive corpus. The data supply word alignments, the surviving words keep their order, and the output is built by deletion. The general grammar includes ε on either side, so it can express insertions as well as deletions. The sampler used in the experiments relies on domain knowledge to constrain which alignments it considers. The authors discuss this distinction explicitly. They argue that putting the general rule inventory in the prior is compatible with restricting inference for a corpus whose annotation task permits only deletion, with an equivalence available through rescaling the concentration parameters. Their proposed extension is to infer over word alignments as well, allowing the approach to address less constrained transformations such as abstractive compression and paraphrasing.

The authors also identify a practical problem with mixing. A sequence of moves can connect derivations through states with large fragments, yet such a sequence can be very unlikely under the prior. The fact that a route exists supports the convergence argument for the posterior sampler. How readily the algorithm takes such routes in a finite run remains a practical concern. Annealing is the intervention they use to counter the problem, and the final low-temperature state supplies an estimate for prediction. The experiment gives performance for that procedure, with the distribution of quality across possible corpus segmentations still open.

There is a separate coverage problem at test time. A grammar obtained by normalizing the counts from a selected derivation can lack rules for novel words or unseen structure. Adding context-free copy and deletion options gives the decoder additional ways to cover a new tree. The paper presents this as a practical fix and reports using Laplace smoothing because it yielded interpretable results. The decoded output consequently reflects both the elementary fragments learned during Bayesian induction and the coverage provided by the added rules.

The paper qualifies the SVM comparison as well. The comparison system was designed for a broader task and still uses some decoding heuristics appropriate to that setting. The authors acknowledge that this could affect its performance on extractive compression. They expect a qualitatively similar result from the earlier extractive version on which it builds. That expectation remains distinct from the reported evaluation of the actual comparison system.

Limits visible in the experimental design

The evidence for transfer comes from a single corpus of manually compressed Broadcast News sentences. The corpus includes recurring conventions of that source, as the attribution example illustrates. The result demonstrates that the system can turn such repetitions into useful rules under the tested conditions. The behavior of those rules on another text genre or with different editorial conventions remains an empirical question. A structure common enough to be lexicalized in these sentences may have a different function or frequency in another collection.

The experiments also condition induction on parser outputs. Each compression and its source are committed to syntactic analyses before the sampler searches for fragment boundaries. A different analysis could change which pieces are eligible to align and which deletion is represented as a coherent syntactic unit. The study establishes the performance of rule induction with the parser and alignment setup used here. The separate contributions of parse quality and alignment reliability were outside the comparisons. This matters particularly for extending the algorithm to tasks in which the alignment is itself uncertain.

The variational comparison helps explain performance through sparsity and search, while leaving the size of their individual contributions unresolved. GS and VB use different inference procedures. GS also starts from and moves through particular derivations and produces a finite grammar from an annealed estimate. The fixed-inventory procedure has its own weighting behavior. The intermediate VB performance is consistent with the authors’ account of the two problems. An exact decomposition of the improvement into effects attributable solely to the prior and solely to the inventory would require closer control of those coupled decisions.

The before-and-after trees encode grammatical relations, and automatic agreement is measured against the reference available for each sentence. A different grammatical compression can make another reasonable choice about what to keep. The automatic measure rewards agreement with the chosen reference in these cases. The human ratings broaden the evidence by asking directly about fluency and retained meaning. Their scope is the 20-sentence subsample and the judges recruited for it, and the significance marks apply to the specified comparisons on that sample. The full test set and the human subset also have different retention-rate patterns, so their averages describe distinct sets of outputs.

Finally, the prediction procedure replaces the distribution over training derivations with an estimate from a selected segmentation. It also replaces the infinite rule distribution with a finite grammar that includes coverage rules. The reported main results therefore establish how well this practical combination compresses the test sentences. The comparison between tree-level and derivation-level decoding gives some evidence about the second-stage decision. The effect of carrying more uncertainty about the learned grammar into prediction remains open.

What came after

A later citing study takes up sentence simplification as a tree-transduction problem. Its stated formulation carries forward the view that a rewrite can be understood as a mapping between syntactic trees. In Yamangil and Shieber’s compression task, this view makes it possible to describe what happens to a clause after surrounding material is deleted and to identify recurring conditions for such a change. The later study’s title places tree transduction in the service of simplification. Sentence Simplification as Tree Transduction

The documented connection is the formulation of the transformation at the level of trees and the later study’s citation of the compression work. The details of its rule inventory, alignment procedure, and training objective are unspecified here, so the particular inheritance of the Dirichlet process prior or the Gibbs updates remains undetermined. In the compression paper, learning the boundaries of reusable fragments is the concrete contribution within that broader tree-transduction formulation.

Cite

Cite as Elif Yamangil and Stuart M. Shieber. 2010. Bayesian Synchronous Tree-Substitution Grammar Induction and Its Application to Sentence Compression. Proceedings of the 48th Annual Meeting of the Association for Computational Linguistics.

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

@inproceedings{yamangil2010bayesian,
  title = {{Bayesian Synchronous Tree-Substitution Grammar Induction and Its Application to Sentence Compression}},
  author = {Elif Yamangil and Stuart M. Shieber},
  booktitle = {Proceedings of the 48th Annual Meeting of the Association for Computational Linguistics},
  year = {2010},
  url = {https://aclanthology.org/P10-1096/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/yamangil-2010-bayesian-synchronous-tree-substitution-grammar/