Elamur Research

Prototype-Driven Grammar Induction

Paper · 2006 · Aria Haghighi and Dan Klein

Summary

A parser has to decide which words belong together and what kind of phrase they form. When the training sentences lack parse trees, those decisions can be difficult to learn at the same time. A learner might discover a recurring group of words while giving it a category that means something quite different to a human annotator. Aria Haghighi and Dan Klein investigate whether a short list of familiar examples can give those categories a stable meaning. Their aim is to learn a grammar that produces labeled trees in a specified annotation scheme without asking someone to parse a training corpus by hand. Parsing

The examples, or prototypes, are sequences of part-of-speech tags. A determiner followed by a noun can illustrate a noun phrase. The learner can extend that example to a determiner, adjective and noun if the longer sequence tends to occur between similar neighboring tags. Such similarities provide evidence about a phrase’s label when it is included in a tree. Deciding whether a sequence should be included in the first place requires additional evidence. The authors obtain it from an earlier method that learns constituent boundaries by comparing the contents and surroundings of spans that it treats as phrases with those of spans it leaves out. They combine that evidence with a grammar that describes how phrases fit inside one another. Part-of-speech tagging

On short sentences from the English Penn Treebank, the best configuration reaches a labeled F1 of 65.1 and an unlabeled F1 of 78.2. The labeled score requires the parser to get both the span and its category right. The unlabeled score checks the span alone. The paper also isolates the labeling problem by requiring trees to respect reference brackets. Under that condition, the grammar with distributional prototype features reaches 71.1 labeled F1. With the same kind of prototype features and no bracketing assistance, it reaches 53.1 labeled F1. The comparison explains why the authors combined the approaches even after finding a way to extend the influence of their examples across the corpus. The Penn Treebank

A Chinese Treebank experiment also favors the combined approach with prototype features. Its labeled F1 is 39.0, compared with 18.0 for the combination without prototypes. The Chinese prototypes came from annotated examples, and the distributional estimates had less text available than in English. Across the experiments, the paper shows how sparse examples can make the labels of an induced grammar interpretable and improve agreement with a reference annotation scheme. The amount of agreement still depends on the evidence used to find boundaries, the shape of tree the grammar can produce, and the data available to estimate similarities. Building a Large-Scale Annotated Chinese Corpus

Deep dive: Prototype-Driven Grammar Induction

Prototype-Driven Grammar Induction learns where phrases begin and end and what to call them using a few examples of each phrase type. · about 39 minutes to read

The problem and its context

A tree contains boundaries and categories

A constituent is a stretch of a sentence that the analysis treats as a unit. A tree records such units by nesting smaller stretches inside larger ones. The same sentence can support several plausible groupings. A prepositional phrase following a noun, for example, might be part of the larger noun phrase or might connect to a verb higher in the tree. The choice changes which stretches count as constituents. Even after settling that choice, a parser still has to attach category names to the groups it finds.

Bracketing is the boundary part of this job. An unlabeled tree says where each constituent starts and ends and how the resulting spans nest. A labeled tree also identifies the constituents as noun phrases, verb phrases or other categories. Those categories matter when a tree is meant to follow a particular annotation scheme. A parser can agree with a human annotator on the boundaries of a group and still misunderstand the job the group is doing under that scheme. In the opposite direction, a parser may recognize the type of phrase suggested by some words while failing to place a bracket at the right boundary. Syntax & grammar formalisms

The paper presents grammar induction as a problem with both scientific and engineering motivations. A learner that reconstructs syntax from limited information offers a way to investigate how structure might be acquired. For someone building a parser, the practical question is how much annotation must be supplied before the system can produce usable trees. The authors characterize earlier unsupervised work as having made progress on recovering phrase boundaries. Their objective adds a requirement to that line of work. The names on the induced phrases should identify the categories the user asked the learner to discover.

This matters even when the learner finds coherent regularities. An automatically learned symbol can be used consistently throughout a corpus and still divide the phrases differently from the reference treebank. It may group together constructions that annotators distinguish, or divide constructions that annotators place under the same name. Changing the names after learning can remedy a simple permutation. It cannot change which constituents the grammar groups under a symbol. Recovering a regularity in a corpus and reproducing a chosen annotation are therefore separate achievements. Linguistic annotation

What an unanchored grammar can learn

The paper starts with a probabilistic context-free grammar, abbreviated PCFG. Its rules describe how a phrase with a given label can divide into smaller units. The probabilities weight the available expansions of that label. A tree is a record of the rules used to make those divisions, so the grammar can assign different probabilities to alternative analyses of the same sentence.

The difficulty is that sentences alone do not identify the hidden category names. Suppose the grammar has distinct symbols for noun phrases and verb phrases. If both symbols can play the relevant roles in its rules, renaming the symbols throughout a grammar and its trees preserves the underlying analysis. Even starting with the names used in a treebank leaves the learner free to give them very different uses. The problem also extends beyond renaming. With no reference labels in the learning objective, the learner can prefer category boundaries that make the observed tag sequences probable while cutting across the human categories.

The conventional procedure described in the paper begins with an initial set of rule probabilities, then repeatedly estimates which rules may have produced the observed sentences. Uniform initial values can leave the learner in a symmetric configuration, with no tendency to specialize one category differently from another. The approach discussed by the authors breaks this symmetry through small random changes at initialization. Randomness gives the categories a chance to develop different uses. It supplies no reason for a category’s emerging use to correspond to the meaning of its name.

An evaluation can make some allowance for this problem by mapping the discovered symbols to the reference labels. The paper uses that procedure for its unanchored comparisons. It is a useful diagnostic because it asks whether any induced category can stand in for a familiar category under favorable naming. Its effect is limited to the evaluation. A collection of phrases that is internally mixed remains mixed after it receives a new name. The authors want the user’s categories to matter earlier, when the grammar is deciding how to analyze the data.

Where earlier approaches offer leverage

One line of work, exemplified by Pereira and Schabes, uses available brackets to restrict the trees considered during rule estimation. A supplied bracket can guide learning even if the category of the phrase is unknown. This gives the authors a way to study structure and category assignment separately. They can ask how well a grammar identifies phrase types after the reference boundaries have ruled out many of the competing trees. A linguistically meaningful category system is still needed because a boundary can tell the learner where evidence should be considered without telling it what the enclosed phrase should be called. Inside-Outside Reestimation From Partially Bracketed Corpora

Another source of evidence is substitutability. Phrases with similar grammatical roles tend to occur in similar surroundings. A noun phrase with an adjective, for instance, can often occupy a position also available to a noun phrase without one. The paper traces this observation through linguistic accounts and earlier attempts to group words or sequences by their distribution of contexts. For grammar induction, the important opportunity is to measure those contexts without already having a tree for every sentence. The important difficulty is that collecting instances by their visible tag sequence also collects occurrences where that sequence is only a piece of a phrase.

The constituent-context method of Klein and Manning uses distributional evidence for a different question. It looks for the properties of spans that behave as constituents, including both what is inside a span and what appears next to it. It learns where brackets plausibly belong, while leaving phrase categories unnamed. The prototype method can ask a complementary question of a span that a tree has chosen to include. It asks which familiar type the span resembles. The authors bring these approaches together while retaining the grammar’s account of how nested pieces combine. A Generative Constituent-Context Model for Improved Grammar Induction

What the learner is told

The authors liken their input to part of the specification that must exist before a treebank can be annotated. An annotator needs to know what a category means in the intended scheme. A prototype list supplies that orientation through recognizable examples. It tells the grammar which sequences are typical of a category, without giving a full set of recursive rules or showing how whole sentences are to be analyzed. The authors characterize the total input as being on the order of dozens of examples.

A fully parsed example would communicate several kinds of information together. It would specify how large phrases are built, how deeply the constituents nest and where an ambiguous phrase attaches, as well as what labels to use. A prototype generally supplies just a category and the sequence visible inside a representative phrase. A user can therefore express a preference about which category a construction belongs to without committing to a tree for every context in which it might occur. The surrounding corpus still has to supply evidence for the grammar’s internal organization.

This is why the paper describes the approach as primarily unsupervised and, in principle, a form of semisupervised learning. The corpus in the induction setup lacks the full parses the learner is meant to discover. The target label vocabulary, the choices of canonical examples and the starting part-of-speech sequences all contribute information. What the experiments test is how much the system can reconstruct from those inputs, including whether the learned categories agree with the intended scheme and whether the brackets themselves are plausible.

The method, step by step

From tags to candidate trees

The grammar works with tag sequences, so its terminals are categories such as determiner, noun and adjective. The paper uses DT, NN and JJ for those tags. Its phrase labels are nonterminals. NP, for instance, denotes a noun phrase that can contain terminals or other phrases. This distinction lets the learner start from a visible sequence of tags and consider different hidden groupings and labels over it. The tags need to be supplied before this procedure begins.

The candidate space consists of binary trees. In such a tree, an internal node divides the part of the sentence it covers into a left and a right child. Each child can be a tag or another phrase. The allowed rule forms can be written as follows.

X → Y Z, X → t Y, X → Y t, X → t t′

Here X, Y and Z are nonterminal categories. t and t′ denote terminals, with the prime distinguishing the notation for the other terminal. The arrow separates the phrase being expanded from the ordered children it generates. For the form with nonterminals on both sides of the division, at least one of Y and Z must differ from X. The grammar can still use a category within a larger instance of itself when the other child is different.

An occurrence of a rule in a tree is associated with a span. The span’s endpoints are positions in the sentence, and its split point divides the left child’s tags from the right child’s tags. The same rule type may be used at many different spans and split points. The grammar uses a shared probability for that rule type across those uses. A tree receives a score by multiplying the probabilities of its rule occurrences.

P_PCFG(T, S) = ∏[X(i,j) → α ∈ T] P(α | X)

P_PCFG is the joint probability under the base probabilistic grammar. T is a labeled tree and S is the sentence, represented here by its tag sequence. X(i,j) means that category X covers the span with boundaries i and j. α denotes the right-hand side of the rule in this formula. It is the ordered pair of child symbols. ∈ T restricts the product to the rule occurrences in the tree, and ∏ instructs the reader to multiply their factors. P(α | X) is the conditional probability of choosing the expansion α given the parent X. The vertical bar denotes conditioning. In the distributional part of the paper, the same letter α also denotes a whole terminal yield, which can extend beyond the immediate children of a rule.

During training, the sentence is observed and its tree is hidden. The inside-outside algorithm sums over compatible trees and calculates the expected use of each rule. A rule contributes fractional evidence whenever a tree containing that occurrence has some posterior probability. The learner re-estimates the probabilities of the expansions of each parent using the resulting counts and repeats the procedure. This is an instance of expectation maximization, or EM. Its updates converge on a point where the likelihood of the data reaches a local maximum or minimum. The starting probabilities and the restrictions on possible trees can affect what grammar is found.

There are separate uses for the tree scores during learning and when producing a parse. The expected counts used in an update gather evidence across alternative trees. The reported parses are Viterbi parses, which choose a single highest-scoring tree per sentence. That distinction matters for the prototype information. A preference can increase a label’s influence on the estimated grammar even at spans where the eventual highest-scoring tree uses a different analysis.

Learning labeled trees from prototype examples

The steps in order.

Learning labeled trees from prototype examplesStep 1: Start with sentences represented as tag sequences1. Start with sentences represented as tag sequencesStep 2: Specify typical tag yields for each target category2. Specify typical tag yields for each target categoryStep 3: Count neighboring tags around yields in the corpus3. Count neighboring tags around yields in the corpusStep 4: Assign a prototype feature to each candidate span4. Assign a prototype feature to each candidate spanStep 5: Combine rule scores with constituent boundary evidence5. Combine rule scores with constituent boundary evidenceStep 6: Reestimate parameters from expected counts over trees6. Reestimate parameters from expected counts over treesStep 7: Select the highest-scoring labeled tree for each sentence7. Select the highest-scoring labeled tree for each sentence

From canonical examples to label evidence

For the initial English setup, the authors prepare prototypes for the 7 most frequent phrase types in the Penn Treebank. The grammar also has an additional unconstrained type with no prototypes. The examples describe the yield of a phrase, meaning the complete sequence of tags at the leaves below it. A prototype consisting of DT NN describes what is inside a typical noun phrase. It does not specify the sentence in which that phrase should occur or a rule that must create it.

The authors first try a direct restriction. If a candidate tree makes a span with the prototype yield into a constituent, the tree must give that constituent its specified label. The condition makes a difference. A determiner and noun can form a noun phrase on their own, but the same tag pair can be the beginning of a longer DT NN NN noun phrase without forming a separate unit inside it. The restriction permits that span to be left out. It applies only to trees in which the span is selected as a constituent.

This anchors the category vocabulary by making the choice of a particular label have observable consequences. In the unanchored grammar, names such as NP could exchange roles without changing the predictions. With the direct restriction, a tree that includes the prototype span can lose eligibility if it uses the wrong label. The authors can then train without random perturbations for this purpose and evaluate the named categories directly. The constraint remains brittle where a yield legitimately takes different labels. The paper gives DT NN as a sequence that may also occur as QP, a quantifier phrase, in the English treebank.

There is also a coverage problem. A prototype is chosen because it is recognizable, so covering just the literal examples would leave many plausible instances of a phrase type without direct guidance. The paper uses neighboring tags to identify additional candidates for the same label. The sequence DT JJ NN is a useful case because its internal tags differ from DT NN, while its external contexts can support the same phrase category. The method compares those contexts, so the extra adjective does not by itself make the sequences dissimilar.

Estimating what similar phrases look like from the outside

For each occurrence of a yield, the authors look at the tag immediately before it and the tag immediately after it. They count the pair as a joint context. The signature of a yield is the distribution of those pairs across its occurrences. A pair that occurs commonly around that yield receives more weight than an unusual pair. The method compares distributions because one pair of neighbors in one sentence offers much less evidence about substitutability than the repeated use of the sequence across the corpus.

The signature uses every observed match to the yield. At this stage, no annotation tells the procedure which matches are genuine phrase occurrences. The paper distinguishes the accessible signature from the one that could be built by counting only occurrences belonging to constituents. It uses that inaccessible distribution to explain the quantity it would ideally like to estimate for each phrase category.

σᶜ(X) = E[p(α | X)] σᶜ(α)

σᶜ(X) is the context distribution for constituents of phrase category X. The superscript ᶜ indicates constituent-only evidence. E denotes an expectation, so the right-hand side averages the distributions σᶜ(α) with the weights given by p(α | X). Here α is a complete tag yield. p(α | X) is its probability for category X, and σᶜ(α) is the context signature that would be obtained by counting constituent occurrences of that yield. This describes the desired category signature in terms of hidden quantities. The prototype procedure gives an approximation that can be obtained from counts.

Distributional proximity is measured by skewed Kullback–Leibler divergence. The comparison mixes part of the source distribution into the comparison distribution before computing the divergence.

Dₛₖₗ(p, q) = Dₖₗ(p ‖ γp + (1 − γ)q)

Dₛₖₗ denotes the skewed divergence and Dₖₗ the ordinary Kullback–Leibler divergence. p is the source context distribution and q the distribution it is being compared with. The double bar separates the source from the distribution used as the reference in the ordinary divergence. γ is the weight of the source in the mixture and 1 − γ is the weight of the other distribution. The plus sign indicates that the weighted distributions are combined on the same set of context pairs. This mixing lets events that occur in the source retain some probability in the comparison distribution even if they are absent from q.

Given the unavailable constituent-only signatures, a straightforward classification rule would choose the nearest phrase category.

type(α) = arg min[X] Dₛₖₗ(σᶜ(α), σᶜ(X))

type(α) is the proposed category for the yield α. arg min[X] means to return the category X attaining the smallest value of the following expression. Dₛₖₗ is the skewed divergence, applied here with the constituent-only yield signature σᶜ(α) as its source and the constituent-only category signature σᶜ(X) as its comparison distribution. The rule is a starting point for the approximation. It would require information about which spans are constituents before the learner has induced the trees.

The authors replace the full yield distribution of a category with a small, equally weighted set of representative examples. They also replace constituent-only yield counts with the counts from all occurrences.

σ̃(X) = (1 / |proto(X)|) ∑[α ∈ proto(X)] σ(α)

σ̃(X) is the approximate signature for phrase category X, and proto(X) is the set of prototypes assigned to it. The vertical strokes around proto(X) give the number of examples in that set, and 1 / |proto(X)| is the equal weight given to each. ∑ adds the signatures for the yields α that belong to proto(X), as indicated by ∈. σ(α) is the observable distribution obtained from all matches to the yield. The averaging takes place over distributions, so a prototype contributes its share of the category signature even when its yield is less frequent in the corpus than another example.

The approximation can be imperfect in either of its ingredients. A few canonical yields may represent the ordinary uses of a category more clearly than its varied uses. The contexts of each yield can also reflect many occurrences in which the learner ought to leave the corresponding span out of the tree. The authors therefore allow a yield to receive no category suggestion. Their prose says to use NONE when the yield is farther than the threshold from every prototype signature. The displayed cases in the paper place NONE on the less-than branch, which conflicts with the surrounding explanation of conservative guessing. The rule below follows the prose.

type(α) = NONE if min[X] Dₛₖₗ(σ(α), σ̃(X)) > t,
          arg min[X] Dₛₖₗ(σ(α), σ̃(X)) otherwise

type(α) is the feature value assigned to the yield α. NONE indicates that the procedure abstains from suggesting a phrase category. min[X] returns the smallest divergence over categories X with prototype signatures, and arg min[X] returns the category that attains it. Dₛₖₗ compares the observable yield signature σ(α) with the approximate category signature σ̃(X). t is the divergence threshold and > tests whether even the nearest category falls beyond it. The English experiments described for this setting use t = 0.75 and γ = 0.1. The BLIPP corpus and the Penn Treebank’s Wall Street Journal section provide the context counts.

The rule operates on yield types. Each occurrence of the same yield uses the feature based on that yield’s aggregate context distribution. The feature can favor a label where a constituent is plausible, but it contains no observation about the internal split of a particular occurrence. The grammar and the bracketing component use information about the individual sentence to resolve such choices.

Adding the feature to the grammar

The authors compute a feature map for each sentence by applying the classification rule to its spans. Each span receives either a suggested category or NONE. This feature becomes an observation associated with the span. If a candidate tree includes the span under a particular label, its score contains both the probability of the rule it uses and a factor for generating the observed prototype feature from that label.

P_CFG⁺(T, F) = ∏[X(i,j) → α ∈ T] P(pᵢⱼ | X) P(α | X)

P_CFG⁺ is the score of the feature-augmented grammar. T is the labeled tree and F the observed map of prototype features. X(i,j) is a node of category X spanning i to j. α is again the immediate ordered expansion of that node. The arrow denotes the rule occurrence, and ∈ T indicates which occurrences enter the product ∏. pᵢⱼ is the observed prototype feature for that span. P(pᵢⱼ | X) is the probability of the feature conditional on the category, and P(α | X) is the rule probability conditional on the same category.

The authors use the following name for the contribution at a node.

φ_CFG⁺(X → α, pᵢⱼ) = P(pᵢⱼ | X) P(α | X)

φ_CFG⁺ is the local factor from the augmented grammar. Its arguments are the rule X → α and the feature pᵢⱼ at the candidate span. X is the parent category, α is the rule’s expansion, and i and j index the span boundaries. The two probabilities weight the observed feature and the chosen expansion given X, respectively. Multiplying the local factors yields the tree score above.

The feature probability is fixed in the experiments. The specification distinguishes the case in which the suggestion agrees with the label from the remaining cases.

P(pᵢⱼ | X) = 0.60 if pᵢⱼ = X,
             uniform otherwise

P(pᵢⱼ | X) is the probability of the observed feature conditional on the proposed constituent category X. The expression pᵢⱼ = X means the feature at boundaries i and j names exactly that category. The paper gives this case probability 0.60 and describes the other outcomes as uniform. The feature is consequently a preference in this version. A category can still be selected when a different category was suggested. The rule probabilities and the scores of the rest of the tree remain relevant to the choice.

A full treatment of the map F also has to account for the features of spans that do not appear in the tree. The paper takes the distribution of prototype features on these spans to be uniform. With the fixed binary tree shape in the sense of a fixed number of constituent nodes for a sentence, their factors can be absorbed into a constant for comparing trees of that sentence. The displayed product therefore retains the factors that affect which consistent tree is preferred. This convention is different from the one used by the bracketing component, where the observed properties of excluded spans are part of the distinction the learner is trying to make.

Learning how constituents differ from other spans

The constituent-context model, or CCM, starts with a matrix of span decisions. Each entry says whether the associated span is included in the unlabeled bracketing. The paper calls an excluded span a distituent. A distituent can have a recognizable tag sequence, perhaps because it overlaps a phrase or occurs inside a longer one. The question is whether the whole span should receive its own node. The possible matrices are constrained to represent binary trees, so independently plausible spans cannot all be included if their brackets would cross.

For the CCM, a span has two observed features. One is its yield, the tag sequence inside the span. The other is its context, the pair of adjacent tags used to describe what surrounds it. The grammar’s prototype feature condenses distributional similarity into a suggestion about a category. The CCM instead learns distributions over the yield and context observations for constituents and distituents. Its evidence is about the plausibility of the bracket itself.

P_CCM(B, F′) = P(B) ∏[(i,j)] P(yᵢⱼ | Bᵢⱼ) P(cᵢⱼ | Bᵢⱼ)

P_CCM is the joint score assigned by the constituent-context component. B is the bracketing matrix, and F′ is the map containing the yield and context features. P(B) is the bracketing probability, with support restricted to matrices corresponding to binary trees. ∏[(i,j)] multiplies one set of factors for each span with boundaries i and j. Bᵢⱼ is its status in the matrix. yᵢⱼ denotes its yield and cᵢⱼ its neighboring tag pair. The two conditional probabilities describe how likely these observations are given the span’s status. In this factorization, their product gives the joint contribution for the span.

For inference, the paper expresses the relevant comparison by a local factor on included spans. Conceptually, one can start with the contribution that would come from scoring all spans as distituents. For each constituent, the score has to replace that span’s distituent contribution with the corresponding constituent contribution. The ratio for that substitution is the local factor.

φ_CCM(yᵢⱼ, cᵢⱼ) = [P(yᵢⱼ | c) P(cᵢⱼ | c)] / [P(yᵢⱼ | d) P(cᵢⱼ | d)]

φ_CCM is the local bracketing factor. yᵢⱼ and cᵢⱼ are the observed yield and context of the span indexed by i and j. The standalone c denotes constituent status and d denotes distituent status. The numerator is the feature contribution under the constituent distributions and the denominator the contribution under the distituent distributions. The square brackets group the numerator and denominator. A span can thus gain weight because its observations fit the properties of constituents better than those of excluded spans. The use of c for status is separate from the use of cᵢⱼ for the observed context.

P_CCM(B, F′) ∝ ∏[(i,j): Bᵢⱼ = c] φ_CCM(yᵢⱼ, cᵢⱼ)

P_CCM(B, F′) is again the CCM score for the matrix B and the observed map F′. ∝ means proportional under the paper’s decomposition for a fixed observation and legal binary bracketings. The colon in the product index means that the span indexed by i and j is included only when its status Bᵢⱼ equals c, the constituent value. φ_CCM is the factor just defined for the yield yᵢⱼ and context cᵢⱼ. The contributions shared across the candidate trees need not be included separately in this local comparison.

Training both components on compatible structures

The augmented grammar and the CCM have different hidden variables. The grammar uses a complete labeled tree. The CCM uses a bracketing matrix, which records only the boundary decisions. The authors connect them by reading the matrix off each proposed tree. This lets the grammar and the CCM score the same constituent decisions even though the CCM does not score a phrase category. Both sets of scores can then influence the choice among labeled trees.

P(T, F, F′) = P_CFG⁺(T, F) P_CCM(B(T), F′)

P(T, F, F′) is the paper’s combined score. T is the proposed labeled tree, F the prototype feature map and F′ the yield and context map. P_CFG⁺ is the score from the augmented grammar and P_CCM the bracketing score. B(T) is the matrix obtained from the spans of tree T by retaining their boundaries and dropping their labels. The product gives weight to trees whose expansions and labels are plausible under the grammar and whose bracketings are plausible under the CCM.

The observable training objective sums the combined contribution across trees. It can equivalently be organized by bracketing, with the grammar’s contributions from all labelings of a bracketing collected together.

P(S, F, F′) = ∑[T ∈ 𝒯(S)] P_CCM(B(T), F′) P_CFG⁺(T, F)

P(S, F, F′) is the contribution of the observed sentence S and its feature maps F and F′ to the objective. 𝒯(S) is the set of candidate labeled trees for the sentence. T ∈ 𝒯(S) ranges over those trees and ∑ adds their contributions. B(T) is the bracketing of T. The two probabilities inside the sum weight that bracketing and the complete labeled tree through the CCM and the augmented grammar, respectively.

P(S, F, F′) = ∑[B] P_CCM(B, F′) ∑[T ∈ 𝒯(B,S)] P_CFG⁺(T, F)

The outer ∑[B] sums over possible bracketing matrices. P_CCM(B, F′) supplies the weight for a matrix B and the observed CCM features F′. 𝒯(B,S) is the set of labeled trees that have this matrix and yield the observed sentence S. The inner sum adds the augmented grammar scores P_CFG⁺(T, F) for the trees T in that set, using the prototype features F. This form shows the role of agreement. A heavily favored matrix contributes most when there is also substantial grammar weight on labeled trees compatible with it.

The product can be computed without enumerating all the complete trees. A candidate rule at a span has a contribution from each component. The binary tree permits the inference procedure to compose scores from smaller spans and to consider alternative splits.

φ(r, (i,j)) = φ_CCM(yᵢⱼ, cᵢⱼ) φ_CFG⁺(r, pᵢⱼ)

φ(r, (i,j)) is the combined local factor for rule r at the span bounded by i and j. r is a particular binary expansion with a parent category. φ_CCM uses the span’s yield yᵢⱼ and context cᵢⱼ. φ_CFG⁺ uses the rule and the span’s prototype feature pᵢⱼ. Any alternative label on the same span faces the same CCM factor. Its grammar factor can differ because both the expansion probabilities and the match with the suggested label depend on the category.

P(r, (i,j), k | S, F, F′)

This is the notation for the posterior expected occurrence of rule r at the span from i to j and at split point k, given sentence S, prototype map F and CCM feature map F′. The split point determines which tags are covered by each child. The inside-outside variant computes these expectations from the local factors. The paper uses the resulting expected counts to re-estimate the learnable parameters of the components. The prototype match probabilities remain fixed as specified above. This joint training gives the bracketing and grammar components a chance to settle on compatible decisions before the best trees are extracted.

Experiments and results

The sentences and the scoring rules

WSJ-10, which most experiments use, consists of 7,422 sentences drawn from the English Penn Treebank’s Wall Street Journal section. The length limit is 10 words after punctuation and null elements are removed. A null element is an annotation item without a corresponding overt word in the sentence. The authors use all or part of this collection depending on the experiment. They evaluate the trees for the sentences used to fit the grammar against the manually annotated trees for those same sentences. The initial unconstrained PCFG comparison explicitly uses the first 2000 sentences of WSJ-10.

The parser sees part-of-speech tags rather than word sequences. Its task is to recover constituent structure and phrase labels from these sequences. Unlabeled precision is the share of proposed brackets that match reference brackets, and unlabeled recall is the share of reference brackets recovered. Their F1 combines precision and recall with a harmonic mean. The labeled versions require a matching phrase category in addition to the correct boundaries. Brackets of size 1 are omitted in both kinds of scoring. For reference cases with more than one label, the authors follow the evaluation procedure they attribute to Collins.

This setup makes it possible to measure the effect of prototype information on category assignment and on whole trees. It also makes the choice of label inventory consequential. The authors score against all phrase types in the reference, including those outside the basic inventory of the induced grammar. A reference configuration that needs a unary chain or has several immediate children can also be impossible for their binary grammar to express. The paper gives an unlabeled F1 ceiling of 88.1% and a labeled F1 ceiling of 86.0 under the grammar restriction. These are representational ceilings in the English setup, rather than measurements of a fitted grammar.

How the baselines behave

For the initial unconstrained comparison, the authors randomly initialize 5 grammars, train each to convergence on the first 2000 WSJ-10 sentences and extract its best parses on those sentences. They greedily map the induced categories to reference categories to improve labeled F1. The mapping permits multiple induced symbols to receive the same reference label, which can favor common categories. Even with this advantage in the evaluation, the average labeled F1 is 26.3. Average unlabeled F1 is 45.7. On the unlabeled bracket metric, the comparison figures are 34.7 for choosing a tree at random and 61.7 for always using a right-branching tree.

The right-branching comparison helps interpret the unconstrained result. Choosing a tree recursively by splitting off material on the left gives a nested structure extending toward the right. It uses no learned rule probabilities for the individual sentence. Its bracket score places the learned grammar’s fit to the corpus in perspective. A grammar that finds recurring expansions and induces distinct categories can still recover fewer of the brackets used by the reference annotators than a simple structural preference does.

The authors then require the PCFG to respect the reference brackets. This setting reaches the unlabeled ceiling for the setup. The first discussion reports an average labeled F1 of 52.6 for PCFG × GOLD. A later passage gives 51.6 for the same named comparison. The paper does not explain the discrepancy in the prose. Both figures describe the result of giving the plain PCFG reference bracketing information, with its labels still learned without prototype anchors. Their difference does not affect the ordering of the subsequent gold-bracket comparisons.

Keeping those brackets and using exact prototype constraints produces 59.9 labeled F1. Switching to the distributional feature approach with reference brackets produces 71.1 labeled F1. The paper reports a 40.3% labeled error reduction for that setting relative to the plain PCFG with gold bracketing. These figures describe a structural diagnostic. The gold brackets narrow the set of possible trees and reveal how well the label evidence works when boundaries are mostly supplied. They do not give the performance expected from starting with tagged sentences alone.

Replacing reference brackets with learned evidence

With distributional prototype features and no bracketing aid, PROTO × NONE reaches 53.1 labeled F1 and 61.1 unlabeled F1 on English WSJ-10. The CCM used alone gives 71.9 unlabeled F1 on WSJ-10 and produces unlabeled trees. The combined experiments let the CCM favor plausible boundaries while the grammar recovers the constituent labels and their recursive expansions. The authors report the following progression under their English experimental setup.

Learned bracketing and prototype variants on English WSJ-10, labeled F1

The best result comes from extending the distributional prototypes to cover possessive and infinitival phrases.

Learned bracketing and prototype variants on English WSJ-10, labeled F1PCFG with CCM, no prototypes: 35.3PCFG with CCM, no prototypes35.3PCFG with CCM, exact prototype constraints: 48.9PCFG with CCM, exact prototypeconstraints48.9PCFG with CCM, distributional prototype features: 62.2PCFG with CCM, distributional prototypefeatures62.2BEST, with additional prototype categories (this paper): 65.1BEST, with additional prototypecategories (this paper)65.1
The numbers
System or settingF1
PCFG with CCM, no prototypes35.3
PCFG with CCM, exact prototype constraints48.9
PCFG with CCM, distributional prototype features62.2
BEST, with additional prototype categories (this paper)65.1

The comparison without prototypes, PCFG × CCM, uses random initialization and greedy label mapping. Exact prototype constraints raise the labeled result to 48.9, with unlabeled F1 of 73.3. The distributional version, PROTO × CCM, reaches 62.2 labeled F1 and 76.5 unlabeled F1. Against the exact-prototype setting, the paper gives error reductions of 26.0% on labeled F1 and 12.0% on unlabeled F1. Against PCFG × CCM, it gives overall reductions of 41.6% and 16.7% on those respective metrics. The change in unlabeled scores shows that the information used to favor phrase labels also changes which trees are selected.

The BEST setting adds prototypes for categories specific to possessive noun phrases and infinitival verb phrases. It reaches 78.2 unlabeled F1 along with its 65.1 labeled F1. The authors’ conclusion identifies 77.1 from Klein and Manning as the next highest English unlabeled F1 they compare with. That historical comparison concerns unlabeled constituent boundaries. The labeled scores address the paper’s additional aim of matching named treebank categories.

The Chinese Treebank experiment

CTB-10 contains 2,437 sentences from the Chinese Treebank, with a length limit of 10 after punctuation has been stripped. The authors use automatically extracted prototypes because they lack expertise in Chinese. They also lack a large auxiliary tagged corpus for this experiment, so they estimate the context distributions from the Chinese Treebank text alone. The structural comparison keeps the CCM in both configurations and changes whether the grammar uses the distributional prototype information.

Prototype features on Chinese CTB-10, labeled F1

Distributional prototypes improve agreement with the reference phrase labels when both systems use learned bracketing.

Prototype features on Chinese CTB-10, labeled F1PCFG with CCM, no prototypes: 18.0PCFG with CCM, no prototypes18.0PCFG with CCM, distributional prototype features (this paper): 39.0PCFG with CCM, distributional prototypefeatures (this paper)39.0
The numbers
System or settingF1
PCFG with CCM, no prototypes18.0
PCFG with CCM, distributional prototype features (this paper)39.0

The comparable unlabeled F1 figures are 43.4 without prototypes and 53.2 with them. The authors identify 46.7 from Klein and Manning as the next highest Chinese result they discuss for primarily unsupervised unlabeled induction. The labeled gain supports the claim that the procedure for using examples extends beyond the hand-written English list. The Chinese experiment does so with examples obtained from annotated data. Its conditions also differ from English in the size and origin of the corpus used to measure contexts.

What the ablations show

Providing boundaries exposes the labeling problem

Forcing the grammar to respect reference brackets is a way to reduce structural ambiguity while studying categories. The induced trees still have to be binary, and a flatter reference tree can allow alternative binary refinements. Within those constraints, the plain PCFG has far less freedom to put constituents at unrelated boundaries. The remaining labeled errors show that boundary supervision alone leaves a substantial part of the intended grammar unspecified. Greedy naming after training can align some classes to the reference, but it cannot supply the evidence about which occurrences should share a class during learning.

Adding exact prototypes with the same structural constraint asks whether explicit category anchors are helpful once many of the relevant spans are available. The improvement to 59.9 labeled F1 shows that these examples offer information beyond a treebank label inventory. Since they identify particular observable yields and the categories that should cover them, they affect the internal use of the symbols. Their conditional application still lets the grammar avoid making a bracket where the same tags are just a fragment of a larger unit.

The distributional version raises the labeled score further, to 71.1, under the same reference-bracketing condition. This comparison replaces the exact-prototype treatment with a feature that reaches other yields and gives a preference where it fires. It therefore changes both coverage and how rigidly the information is applied. The comparison supports the value of the distributional feature as a package. It does not separately measure the contribution of extending the vocabulary of covered yields and the contribution of using probabilistic preferences.

The paper also checks the feature more directly. At the stated settings of threshold 0.75 and skew weight 0.1, the yield classifier recovers a constituent type’s majority label with 83% precision and 23% recall over constituent types. This is a type-level diagnostic. It tests a rule that can abstain when no prototype signature is close enough. A parse-level evaluation has to decide which spans to include, and it counts their instances in trees. High precision among the classifier’s guesses can coexist with limited coverage and with mistakes at particular occurrences of a common yield.

Choosing the brackets calls for different evidence

The comparison between the distributional grammar with gold brackets and the same feature approach without them measures what happens when the structure must also be inferred. Its labeled result falls from 71.1 to 53.1, and its unconstrained unlabeled F1 is 61.1. A successful analogy between yields does not show that either yield forms a phrase at a given location in a given sentence. The classifier counts all occurrences of its source sequence, and the grammar still has to resolve the alternatives presented by each sentence. This is the weakness the CCM addresses with its explicit contrast between constituent and distituent distributions.

The joint English experiments provide a complementary comparison. With the CCM already present, the plain PCFG reaches 35.3 labeled F1. The exact-prototype and distributional versions successively increase labeled agreement. The unlabeled score also improves from 73.3 with exact prototypes to 76.5 with the distributional features. Because training combines both scores over the same trees, the grammar can shift probability toward a different set of spans even though its added feature was designed to suggest categories. A span with a persuasive label and expansion can help make an otherwise competitive tree preferable.

The contrast with the reference-bracket experiments puts those gains in context. The CCM competes with the other evidence when choosing a tree. Gold bracketing instead excludes trees inconsistent with the reference boundaries. The learned bracketing component therefore provides a way to use information about boundaries without assuming that it perfectly reconstructs the annotation. Its contribution is assessed through the resulting trees, while the reference-bracket experiment isolates a different question about naming spans under privileged structural information.

Targeting recurring errors with additional categories

The authors use the grammar’s errors to show what can be adjusted through prototypes. A recurring analysis error in PROTO × CCM is an artifact of binary branching. For DT JJ NN, the grammar can place a separate noun phrase over JJ NN inside the larger phrase. A flatter treebank noun phrase has no corresponding intermediate span. The extra bracket counts against precision even if the larger phrase is correctly identified. The example gives a concrete reason why the grammar can receive a penalty despite arriving at a fairly familiar grouping of the words.

Other errors reveal where the existing categories can attract constructions with partly similar contexts. In possessive noun phrases, the system sometimes groups the possessive marker and the following noun under PP, the prepositional phrase category. The authors consider the category assignment wrong, while observing that the grouping itself has a linguistic precedent. Another example concerns an unwanted grouping of tags inside an infinitival verb phrase. The paper also describes a more persistent tendency to attach prepositional phrases high to the verb when a longer noun phrase is present. That attachment can be wrong even if the system has recognized the prepositional phrase as such.

To address the possessive and infinitival patterns, the authors add NP-POS and VP-INF. These labels give the grammar dedicated categories for constructions whose distributions differ somewhat from those of ordinary noun phrases and verb phrases. The system uses the categories during learning and removes the extra distinctions in post-processing. The revised setting reaches 65.1 labeled F1 and 78.2 unlabeled F1. The example trees show improvements in the possessive and infinitival structures, while the prepositional attachment error in the example persists.

This experiment changes both how the examples describe the target constructions and which distinctions the grammar can make internally. Its result shows the combined effect of adding that information. The authors do not report separate runs that add each category alone. The examples illustrate why an explicit category may give the grammar a place to put a construction it previously assigned elsewhere. They also show that editing the category specification can leave an attachment preference outside those constructions intact.

The paper inspects recurring rules in the best induced grammar and reports precision, recall and F1 by phrase type. The rule inspection asks whether familiar parts of the reference grammar are recognizable in the learned expansions. The phrase-type evaluation shows where a single aggregate score can hide differences between categories. The noun phrase example connects the latter to the tree representation. A grammar required to add internal brackets has repeated opportunities to propose noun phrase nodes that the reference never contains, even when its outer noun phrase analyses are frequently plausible.

Keeping the learned grammar and removing the bracketer at parsing time

The authors train the BEST setting with the CCM and then remove the CCM when obtaining the parses for evaluation. In this condition, the grammar produces 65.1 labeled F1 and 76.8 unlabeled F1. With both components in use, the best setting gives 65.1 labeled F1 and 78.2 unlabeled F1. The comparisons use the same reported precision for the scores, so the matching labeled F1 establishes equality at the level reported. It does not establish that the predictions or their per-category results are identical.

The ablation tests how far the grammar can carry the work after it has learned with a separate source of boundary evidence. Its unlabeled performance declines when that source is omitted at parsing time. Much of the labeled performance is retained. The test thus distinguishes using the CCM to shape the learned rule probabilities from using its scores to choose every final tree. The grammar in this experiment already benefited from the CCM during estimation. The earlier PROTO × NONE run addresses the different question of learning without that help.

Replacing hand-written examples with extracted ones

The English automatic-prototype experiment responds to a concern about choosing examples after inspecting results. For each phrase category, the authors extract the three most frequent yields that differ in their first or last part-of-speech tag. Using the boundaries as a diversity criterion allows the list to include contextually distinct shapes while being based on observed frequencies. The selection requires a corpus where the constituent labels and yields can be counted. In the repeated PROTO × CCM experiment, this list gives 60.9 labeled F1 and 76.5 unlabeled F1, compared with 62.2 labeled and 76.5 unlabeled with the corresponding manual list.

The comparison shows that the effectiveness of the feature is not confined to the authors’ individual choice of English examples. It also separates two kinds of guidance. The target annotation categories intentionally determine what counts as an example of a phrase. Repeated manual edits to maximize an evaluation score can introduce another influence. Automatic extraction reduces the role of the latter in this comparison while using an annotated corpus to obtain the former. It demonstrates an alternative when labeled examples are available, and it is the procedure that supports the Chinese experiment.

Limitations

Limits identified by the authors

The authors identify binary branching as a major source of disagreement with the reference. The grammar has to divide a phrase into binary pieces even when the treebank groups the same children under a single node. The induced tree may place a new bracket within that phrase as a consequence of its form. Unary chains present a related representational mismatch. The treebank can have more than one label between a node and its descendant along a single-child path, which the allowed binary productions cannot reproduce. The English ceilings of 88.1% unlabeled F1 and 86.0 labeled F1 reflect the cost of the restriction in the scoring setup.

The hand-written prototypes are approximate examples of a target category. As the authors note, treating an exact match as obligatorily bearing one label whenever it is a constituent can be too strong. A short sequence of tags can occur as more than one phrase type. Distributional features make the category suggestion softer, and the threshold lets the procedure abstain on uncertain yields. The evidence still comes from aggregated neighboring tags. It has limited means to distinguish occurrences whose category depends on internal details or on a larger construction.

The authors also note that category signatures are only approximations to signatures built from true constituent instances. The counts include occurrences where a yield overlaps units or is embedded in a larger unit. Uniform prototype weighting substitutes a deliberately small set of examples for the full range of yields associated with a phrase type. The threshold is part of the response to that noise, and the reported type-level recall shows the coverage cost of requiring strong similarity. The grammar has to make decisions in many places where the prototype feature offers no direct suggestion.

The Chinese experiment has a further limitation identified by the authors. Its distributional signatures are estimated from less tagged material because there is no separate large auxiliary Chinese corpus in the setup. The authors also rely on extracted examples in place of examples written by someone familiar with Chinese. They suggest that more tagged text and a speaker’s expertise could help. The experiment does not vary these conditions independently, so the size of either contribution is unknown.

Limits visible in the evaluation

The results measure agreement with human annotations for the sentences used in estimation. This is informative about whether a learner can reconstruct trees over a collection whose tags and contexts it has observed. Generalization to held-out sentences would require a separate evaluation. The ablation described as removing the CCM at test time removes it during parse extraction. That change on its own does not establish performance on an unseen split. The English and Chinese collections also contain short sentences with punctuation removed. The reported scores leave open how the same configurations would handle longer sentences and the ambiguities those sentences contain.

The evaluation begins from part-of-speech sequences, with the benefits and limitations of that representation. Using tags reduces the need to learn separate patterns for individual words and makes it feasible to pool counts for recurring sequences. It also supplies prior grammatical information. The paper does not report a pipeline that induces the tags from raw text and then measures how errors or variation in those tags affect constituent induction. Its evidence concerns construction of labeled phrase trees from the given tags and prototype supervision.

The comparisons also use different ways of aligning predicted labels with the reference. The unanchored configurations get a greedy mapping based on labeled F1, including the possibility of mapping several induced classes to the same target. The prototype configurations are judged with category identities established through the examples. The gain shows that the examples improve agreement with the intended annotation in this experimental design. The comparison leaves open how the induced categories in either setup would be judged under an annotation scheme with different definitions, or under a criterion that rewards internal consistency independently of the treebank names.

The Chinese trial demonstrates that the procedure can be applied to another treebank and tag inventory. Its automatically extracted prototypes presuppose labeled material. The English trial with those prototypes has the same dependency. A claim about learning entirely without phrase annotations would require evidence from a different source of examples. A claim about why the Chinese scores are lower than the English scores would require closer controls over the auxiliary corpora, the available examples and the annotation schemes.

The category refinement in the English BEST setting follows inspection of errors, making it a demonstration of how the specification can be changed in response to observed behavior. An independent experiment would be needed to estimate how much of the gain survives when the revised list is evaluated on different data. The authors include automatically selected examples to address the concern about iterative selection, but that comparison concerns the ordinary PROTO × CCM configuration. It supplies related evidence about the dependence on manual choices rather than an independent evaluation of the added categories.

Finally, the aggregate scores combine several sources of disagreement. An extra bracket from binary branching, an incorrect label on a correct span and an attachment that changes several spans can have different consequences for someone using the trees. The paper’s examples and per-category analysis help interpret these differences. Its evaluation is still centered on bracket agreement with the treebanks. The experiments establish the extent of that agreement under their conditions. They do not directly measure the usefulness of the trees in a downstream task or the human time saved in constructing a larger annotated corpus.

What came after

The later citations place the paper alongside several ways of working with limited language annotation. The relationship is most direct in work explicitly concerned with guiding grammar induction. The titles of the citing papers identify their sources of guidance or their tasks. A citation alone leaves open whether the authors implemented the prototype method, compared against it or referred to it when describing earlier research.

Using Universal Linguistic Knowledge to Guide Grammar Induction takes up the question of what outside knowledge can guide a grammar learner. Haghighi and Klein use canonical examples picked for the categories of an intended annotation scheme. The later title points to universal linguistic knowledge as the guide. The connection is the role of prior information in constraining what grammar the learner should seek. The citation does not specify whether the later method uses the earlier paper’s yield signatures or its way of combining grammar and bracketing scores. Using Universal Linguistic Knowledge to Guide Grammar Induction

Syntactic Transfer Using a Bilingual Lexicon approaches syntax with a source of guidance that links languages. The prototype experiments give the learner examples expressed in the tag inventory of the language being analyzed. In the Chinese experiment, those examples come from that language’s own annotated treebank. Bilingual lexical information points to a different way of making existing linguistic resources available to a syntax task. The citation places the earlier work in that discussion, without establishing reuse of its specific approach to assigning phrase labels. Syntactic Transfer Using a Bilingual Lexicon

Language ID in the Context of Harvesting Language Data off the Web cites the paper from a task concerned with identifying the language of material collected online. Its connection is at the level of data availability. Haghighi and Klein estimate contexts from tagged text and explicitly discuss the shortage of auxiliary material for their Chinese experiment. Identifying which language a piece of web text belongs to addresses an earlier problem in assembling language data. The citation does not establish a transfer of the earlier grammar induction procedure to language identification. Language ID in the Context of Harvesting Language Data off the Web

Cite

Cite as Aria Haghighi and Dan Klein. 2006. Prototype-Driven Grammar Induction. Proceedings of the 21st International Conference on Computational Linguistics and 44th Annual Meeting of the Association for Computational Linguistics.

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

@inproceedings{haghighi2006prototype,
  title = {{Prototype-Driven Grammar Induction}},
  author = {Aria Haghighi and Dan Klein},
  booktitle = {Proceedings of the 21st International Conference on Computational Linguistics and 44th Annual Meeting of the Association for Computational Linguistics},
  year = {2006},
  doi = {10.3115/1220175.1220286},
  url = {https://doi.org/10.3115/1220175.1220286}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/haghighi-2006-prototype-driven-grammar-induction/