Feature Selection for a Rich HPSG Grammar Using Decision Trees
Paper · 2002 · Kristina Toutanova and Christopher D. Manning
Summary
A detailed grammar can explain several ways of reading the same sentence. A practical parser also needs to decide which reading to return. Toutanova and Manning study that choice for Head-driven Phrase Structure Grammar, or HPSG, a formalism that puts detailed linguistic constraints in lexical entries and the rules that combine them. The grammar supplies the candidate analyses. The authors use annotated examples to learn how to rank those candidates, an approach to disambiguation within parsing.
The Redwoods treebank gives the authors access to rich grammatical descriptions. They work with derivation trees, which record the lexical entries and rules used to build an analysis, and semantic dependency trees, which record relations between heads in the analysis of meaning. Each representation offers several possible clues to a preferred reading. A decision tree selects which clues to consult when estimating the probability of a local grammatical choice. The authors then train several decision trees with different subsets of the clues. Each tree can discover useful distinctions that might be bypassed when all the clues compete in a single tree.
The experiments compare two ways of turning those distinctions into a sentence-level ranking. A generative scorer assigns probabilities to the local choices in a candidate tree. A conditional log-linear scorer counts occurrences of the same choices in the same contexts and learns how much those counts should influence the ranking among alternatives for a sentence. On held-out Redwoods sentences, the generative scorer for derivations rises from 75.57% whole-sentence parse selection accuracy with a single decision tree to 78.97% with the feature-subspace ensemble. Its conditional counterpart rises from 81.82% to 82.24%. The paper highlights a 14% reduction in parse selection error for its ensemble approach.
Adding semantic dependency information to the derivation ensemble brings held-out accuracy to 80.10% for the generative approach and 83.32% for the conditional approach. Semantic dependencies help resolve some choices about meaning that the derivations alone get wrong. They also give identical representations to some competing analyses, placing a ceiling on what a scorer can do with that information alone. The larger gains from feature selection accrue to the generative approach. The conditional approach starts from a stronger simple baseline and achieves the highest accuracy, while gaining less from the additional distinctions among derivations.
Deep dive: Feature Selection for a Rich HPSG Grammar Using Decision Trees
How decision trees select features for HPSG parse ranking, and how combining trees improves the choice among analyses licensed by the grammar. · about 36 minutes to read
The problem and its context
A grammar supplies candidates for a separate decision
In the task studied here, a grammatical analysis has already been constructed for each reading that the grammar licenses. A statistical scorer has to put the analysis that a human annotator prefers at the top of that list. Consider a phrase that could describe the time of an entire appointment or belong to one endpoint of a time range. The grammar can give an account of each attachment. Selecting an attachment calls for evidence about the sentence and about how similar sentences were interpreted in the past. A grammar that offers detailed accounts of both readings makes this selection consequential. It can pass a substantially different interpretation downstream depending on which analysis wins.
The paper treats the hand-built grammar as a source of both constraints and evidence. A constraint can rule out a combination during analysis. Among the combinations that survive, properties of those analyses can still make some readings more plausible than others. The statistical task begins with those surviving alternatives. Its supervision comes from a human judgment identifying the preferred analysis. Richer grammatical descriptions extend the range of evidence the scorer could use, and they increase the number of choices involved in designing the scorer.
HPSG is lexicalist in the sense that lexical entries carry information that the grammar consults when combining expressions. Its analyses are expressed as structured descriptions called signs. Unification is the operation through which compatible information in those descriptions can be combined. A sign thus contains information beyond a conventional phrase label. This distinction matters to the authors because they want to exploit some of the detailed information that a hand-built grammar makes available without having to decide in advance which combinations of details should predict which grammatical choices. The question belongs to the interaction between grammar design and statistical disambiguation. Syntax & grammar formalisms
Redwoods connects those representations to examples of actual sentences. A treebank is a collection of sentences paired with structured analyses. This one associates sentences with analyses produced by the LinGO ERG grammar and makes the signs available. The Penn Treebank serves in the paper as a point of comparison for the kind of representation available and for earlier statistical parsing work. The authors describe the Redwoods analyses as offering greater syntactic and semantic depth. That depth creates opportunities for ranking. It also changes the statistical problem because a relation that appears within a local phrase configuration in one representation may stretch across several rule applications in another. Treebanks
What a local choice can see
One familiar way to score a tree is to multiply the probabilities of its local expansions. In an ordinary context-free grammar, each expansion specifies how a category can be rewritten. The probabilistic version assigns probabilities to these choices, and the simplest estimator asks only what category is being expanded. The paper uses a corresponding idea on HPSG derivations, where the node labels identify constructions. This gives the authors a straightforward point of departure. They can then see what happens when the probability of an expansion depends on features farther away in the derivation. Context-free grammar
The geometry of a LinGO ERG derivation makes that extension especially relevant. Its rule applications combine at most two constituents at a time. A head may acquire complements and adjuncts over a succession of applications. The grammar also often uses rules with a single child to change an expression's grammatical type. As a consequence, a useful clue can sit above the immediate neighborhood where an expansion is scored. The paper points to earlier work that added information about the parent to a category, commonly called grandparent annotation because of where that information sits relative to the children being predicted. Johnson's study is among the precedents it names. PCFG Models of Linguistic Tree Representations
Earlier branching-process approaches described in the paper likewise estimated the next choice using a history of features. A history here is a collection of contextual observations, such as the label at a node or information about one of its relatives. In the work of Charniak and Collins discussed by the authors, a small number of features were selected by hand. That gives the estimator a specified context to use at each relevant choice. A richer context could preserve evidence that a small hand-selected set misses, but making every probability depend jointly on every available detail would leave many finely specified contexts with little data. Three Generative, Lexicalised Models for Statistical Parsing
Decision trees offer a way to use different histories in different situations. An initial question splits training events according to a feature. A later question can differ from branch to branch, depending on what separates the events in each group. The paper cites earlier applications of decision trees to statistical parsing by Magerman and by Haruno and colleagues. It also describes the work of Hermjakob and Mooney on inducing decisions for a deterministic parser from a large collection of contextual features. The examples motivate automatic selection even though the outcome being predicted can differ across systems. Here the immediate outcome is a local expansion, and the final choice is a preferred complete analysis. Statistical Decision-Tree Models for Parsing
Choosing features for a conditional scorer
The paper also starts from prior work that assigns probabilities directly to competing analyses of a sentence using a log-linear formulation. Such a formulation can attach a weight to a feature that describes a property of an entire analysis or counts several occasions on which a local pattern appears. Training adjusts the weights to favor the preferred analyses over their rivals. Earlier work applied log-linear estimators to analyses from unification grammars. With the range of evidence available in HPSG, the authors see a practical obstacle in searching for useful features inside that conditional training process. Estimators for Stochastic “Unification-Based” Grammars
Their response is to search in the simpler local probability problem and carry the resulting feature definitions into the conditional scorer. This uses a local prediction question to identify potentially valuable patterns for a global ranking question. A history that helps predict an expansion in preferred derivations may also help distinguish a preferred derivation from the alternatives for its sentence. The goals provide a reason for the transfer, and their difference gives a reason to check it empirically. A context can be reliably predictive among preferred trees even when it changes little about the ordering of the specific competing trees.
A second design issue is how best to represent the selected history. A single decision tree repeatedly partitions the data. Once a question has assigned an event to a branch, everything the tree learns about that event farther down is based on the events in that branch. The authors identify greedy search and partitioning as possible reasons that a tree might make limited use of rich, overlapping evidence. An individually attractive split can influence the rest of the search, and accumulating evidence from several features can require a fine partition. Each point matters when the available predictors overlap.
The paper situates its response among earlier efforts to combine decision trees. Bagging and boosting are precedents for using a collection of predictors to address limitations of an individual tree. The approach closest to the authors' design is Ho's use of random feature subspaces, motivated by settings with many relevant features and redundancy among them. Toutanova and Manning construct overlapping feature subsets using their own heuristic. The resulting trees differ in which questions they can ask. Haruno and colleagues' use of boosting for parsing is part of this context, while Breiman supplies the bagging precedent. Bagging Predictors
The method, step by step
Represent each candidate in two ways
An HPSG sign can encode more detail than the experiments use. The authors take two views of each analysis. The derivation tree records how the analysis was put together. The semantic dependency tree records which semantic heads depend on which others. The first view supports judgments about the sequence and context of grammatical operations. The second supports judgments about relations between interpretations of expressions. Both views belong to candidates already licensed by the same grammar.
From annotated analyses to a ranked parse
The steps in order.
A derivation tree records the identity of the lexical entries and the grammatical constructions that combined them. Its internal nodes identify rule schemas, the general rules instantiated in building the analysis. Immediately above the words are preterminals, here labels for the lexical entries used. The grammar can reconstruct the complete analysis from the derivation. The scorer, in turn, can use a restricted set of observations about the tree. The recoverability of the sign and the amount of information actually examined by the scorer are separate properties of this representation.
Lexical labels are especially fine-grained. The paper reports about 8, 000 such labels in the treebank and compares them to the detailed lexical categories used in work on supertagging. In this setting, a supertagging strategy would try to reduce ambiguity by identifying the lexical label sequence. Several grammatical analyses can still share that sequence. Even an oracle given the right labels would have to choose among the analyses that fit them if it relied only on those labels. The experiments therefore retain the constructions above the preterminals as evidence. Supertagging: An Approach to Almost Parsing
The semantic dependency tree groups evidence differently. The nodes carry labels for relations, and most of those labels correspond to words in the sentence. Some labels pool information across expressions. The paper gives the names of weekdays as one class and numbers as another. This pooling can allow events involving different words to share statistical evidence when the semantic labels agree. The dependencies then indicate which semantic heads are connected. These are relations in the grammar's analysis of meaning. Semantics
The two views can be seen in the authors' example, Let us see. The derivation traces the grammatical construction of that reading. The corresponding semantic tree has let_rel as its head and includes pron_rel and see_understand_rel as dependents. The last label identifies an interpretation of see in the semantic analysis. For the derivation scorer, the relevant evidence is available through construction labels, lexical labels, and the other selected properties of nodes. For the semantic scorer, the evidence concerns the labels and their positions relative to the head. A scorer can learn a preference for a configuration at either level.
Turn a derivation into expansion events
The generative approach considers a derivation as a collection of choices to expand nodes. The history of a node is the set of contextual features made available when estimating its expansion. The authors name the available features as follows.
{f₁, …, fₘ}
Each f is a candidate feature, and its subscript identifies its position in the collection. The subscript m gives the size of the collection. The braces enclose the set, and the ellipsis stands for the intervening features. For the generative estimator, these features are questions about the context of a local event. Some will be used along the branch taken by that event, depending on which splits the decision tree learned.
The derivation features include the label of the current node and the labels of its parent and grandparent. A further feature asks about the top of the tree at the great-grandparent position. These observations address the distance between a local expansion and the grammatical context that may help predict it. For instance, two occurrences of the same construction can sit under different parents. Grouping all occurrences by construction alone pools the evidence. A split on the parent can distinguish the contexts when the training distribution supports doing so.
The node direction feature indicates which of three roles the current node has: left child, right child, or only child. The parent has a corresponding direction feature. These questions describe structural positions instead of the identity of the construction occupying them. The tree can also consult the label of a left sister. These features are useful to distinguish evidence at different levels. The direction of a node is a coarse description, whereas the label of a particular mother or sister can distinguish among many constructions.
Two more features look at left preterminals. One concerns the left preterminal, and the other looks at the preterminal immediately to its left. The authors also annotate derivation nodes with the main part of speech of the lexical head. That final kind of information allows a question such as whether the head is a verb, noun, or preposition. It gives the estimator a coarser view of a head than the identity of a fine-grained lexical entry. The paper makes the two left-preterminal features available much less widely across its ensemble than it does the direction features.
The probability of a derivation combines the estimated probabilities of the local expansion events.
P(t) = ∏ₙ∈ₜ P(expansion(n) | history(n))
P denotes probability, and t is a candidate derivation tree. In the product, n denotes a node and n ∈ t says to range over the nodes in that tree. expansion(n) is the expansion recorded at node n, and history(n) is the contextual information available there. The vertical bar means that the expansion probability is conditional on that history. The product symbol ∏ tells the scorer to multiply the local probabilities. The equals sign defines the score on the left in terms of those events.
This factorization provides a specific role for feature selection. A history can include several ways of identifying an expansion context. The scorer needs a distribution over possible expansions for the contexts it uses, and the decision tree learns how to group those contexts. Once trained, that grouping is applied at each node of a candidate. The complete tree's probability reflects all its scored choices. A preference at a single choice can matter to the final ranking, and several local differences can contribute to the ordering of two candidates.
Learn which questions to ask
Training for the generative derivation scorer starts from the derivations of preferred analyses. Each local event provides an observed expansion and the feature values of the surrounding history. At a node in the decision tree, the learning algorithm evaluates possible questions about those histories and selects a split using gain ratio. In practical terms, the split criterion looks for a question that produces groups with informative differences in their expansion distributions, taking account of the partition that the question creates.
The decision tree and the grammatical derivation are different kinds of tree. A derivation has nodes representing the constructions that built a sentence's analysis. A decision tree has nodes representing tests used to sort expansion events. A single decision tree can be consulted repeatedly when scoring a derivation, once for each local event in the product. At each consultation, the feature values for that event determine the path to a leaf. The leaf provides a distribution from which the probability of the observed expansion can be read.
A path fixes a conjunction of conditions only for the questions actually encountered on that path. A different path can use different questions and can stop after considering a different set of features. A contextual clue can therefore be important in one branch and absent in another. This is how the authors let the available history vary with the situation. The full input inventory defines what questions may be asked, while the learned path determines what conditions define a particular estimate.
The authors grow their decision trees fully. For each leaf, they obtain the final expansion probabilities by linear interpolation with the estimates one level above it. Interpolation blends estimates by giving each a share of the resulting probability. The leaf accounts for the more specific context defined by the complete path. Its parent pools the events before the last division, giving the scorer a broader estimate to draw on. The paper describes this smoothing as a more limited version of the procedure used by Magerman. It gives the level from which the broader estimate is taken, while leaving the interpolation weights unspecified.
The order of questions helps explain the move to feature subspaces. Suppose a feature divides events very finely and is selected early. A useful coarser relation may then be difficult to learn from the smaller groups formed by that split. Denying the tree access to the first feature changes what it can learn from the same events. A split that earlier had to compete with a stronger local choice may now be selected. The result is a different set of context definitions, even if most of the candidate features are shared.
Construct the feature subspaces
On derivations, the main ensemble has 11 decision trees. Features numbered 2, 3, and 5 are available to all of them. These are the two direction features and the great-grandparent top indicator. The authors retain them because they take relatively few values and are therefore expected to partition the events less rapidly. By comparison, construction and preterminal labels can make finer distinctions. Omitting some of those distinctions gives the remaining questions a chance to organize the evidence.
The left-preterminal features, numbered 7 and 8, participate in only one member. For each of the other 10 trees, the authors first exclude those preterminal features and then drop a pair from features 0, 1, 4, 6, and 9. Those choices concern the node label, parent label, grandparent label, left sister label, and the category of the lexical head. This constructs a set of overlapping alternatives. A particular context feature may be absent from one tree and available in others, alongside different partners.
This setup changes the histories the learner can consider. It leaves the underlying grammatical events and the representation of a licensed derivation in place. The same expansion of the same node can be routed through several decision trees and land in leaves that make different distinctions. The generative experiments use each decision tree to rank the candidates on its own. The votes from those rankings are then combined by simple majority vote for the derivation ensemble. The combined derivation and semantic ensemble uses a weighted majority, with the semantic members receiving smaller weights.
The paper's introductory account describes combining predictions by averaging. Its description of the reported generative ranking experiments specifies the voting procedure. Those accounts give different levels of detail about the output being combined. The reported experiments describe votes from separately ranked candidate parses, so the outcomes are best read as results for that ensemble ranking procedure. Multiplying local probabilities still defines the ranking made by each individual generative member.
Generate the semantic dependents
A semantic node can have several dependents on either side of its head. For this representation, an expansion is broken into separate generation events, one for each dependent and an event to end each side. The scorer generates left dependents from the nearest outward, moving from right to left. It then generates right dependents from the nearest outward, moving from left to right. The process uses a stop symbol to signal that a side has no further dependents. This makes the choice to end part of the probability of the proposed tree.
The semantic history has 5 features. It includes the current head's relation label, the side on which a dependent is generated, a count of dependents already generated on that side, the parent's label, and the label of the adjacent previously generated dependent. On the left, the latter is a right sister. On the right, it is a left sister. This ordering lets evidence from a nearer dependent inform the choice of a farther one. The parent label also lets the same head relation have different dependent distributions under different higher heads. The authors relate this structure to Collins's use of rule probabilities that depend on a limited history.
The paper's example gives a concrete sequence for the dependents of the head in Let us see.
P(stop | let_rel, left, 0, top, none) ×
P(pron_rel | let_rel, right, 0, top, stop) ×
P(see_understand_rel | let_rel, right, 1, top, pron_rel) ×
P(stop | let_rel, right, 2, top, see_understand_rel)
P denotes a conditional probability, with the event before | and its history after it. The parentheses enclose that event and its conditioning values, and the commas separate the values. × multiplies the probabilities to obtain the probability of the shown sequence of dependent choices for the head. let_rel is the head's label, and top indicates its parent context. left and right identify the side being generated. The counts 0, 1, and 2 record how many dependents have already been generated on the current side. none marks the absence of a preceding label in the first history shown. pron_rel and see_understand_rel are dependent labels, and stop ends a side when used as an outcome. As a history value in the first rightward event, stop is the starting context shown in the example.
The first factor gives the probability that the left side ends without producing a dependent. The next factor begins the right side with the pronoun relation. By the time the scorer generates the relation for the interpretation of see, the pronoun relation is available in the history. The final factor scores ending the right side after that relation. In another candidate with different attachments, the dependent events, their histories, or both can change. These changes give the scoring method a way to favor one candidate's semantic configuration.
The authors train estimators on semantic dependency trees separately from those on derivations. They also use a feature-subspace ensemble for semantic dependencies, with 5 members in the final combination. This smaller feature inventory has fewer obvious opportunities for dropping redundant questions. It can still yield different context partitions when questions are withheld. The derivation and dependency rankings meet at the candidate analysis, since each candidate has a corresponding representation in both views.
Transfer the selected patterns into conditional training
A generative estimator learns how likely a tree's local choices are under its history definitions. The conditional scorer uses those same definitions to measure features of competing analyses. To make the transfer, the authors take each root-to-leaf path in a decision tree. For every expansion observed in training for that path, they create a feature for the conjunction of the path conditions and that expansion. They carry out this procedure with the decision trees of the ensemble when building the corresponding conditional scorer.
The notation fₑₕ(t) denotes one such feature. The subscript e denotes the expansion, h denotes the history defined by the path, and t is the candidate tree whose events are being counted. The value is the number of occasions in the candidate on which expansion e occurs with a history that follows path h. The count can register repeated evidence within the same analysis. A feature is defined by the observed pattern. Its influence on parse selection is determined by the weight learned during conditional training.
A local event can contribute to several features when several decision trees describe its history in different ways. The conditional approach can give those features different weights and can use them together. Its normalization takes place over the available analyses of the sentence, after their feature counts have been combined with the learned weights. The resulting probability is given by the paper's conditional log-linear expression.
P(tᵢ | s) = exp(∑ⱼ₌₁ᵐ fⱼ(tᵢ) λⱼ) / ∑ᵣ₌₁ᵏ exp(∑ⱼ₌₁ᵐ fⱼ(tᵣ) λⱼ)
P(tᵢ | s) means the conditional probability of candidate analysis tᵢ for sentence s. The subscript i identifies the candidate being scored. fⱼ(tᵢ) is the value of feature j on that candidate, and λⱼ is the corresponding learned weight. Juxtaposition multiplies the feature value and its weight. The inner sum ∑ ranges over feature indices j from 1 through m, where m is the total number of features. exp takes the exponential of the weighted sum. In the denominator, k is the number of analyses available for s, and r indexes those analyses from 1 through k. tᵣ is the analysis at that index. The slash divides the target candidate's exponential score by the sum of the candidates' exponential scores. The equals sign specifies the normalized probability.
For a sentence whose candidates have identical values for a particular feature, that feature supplies no basis for ordering them. When their values differ, its weight can affect the ranking through the weighted sums. Conditional training exploits this property. It learns from the preferred analysis together with the alternatives for its sentence, setting weights to maximize the conditional likelihood of the preferred analyses. This gives it access to the distribution of contrasts that it is expected to resolve at evaluation time.
The authors smooth the conditional estimator with a Gaussian prior on the weights. The prior moderates how far the weights move to explain the training choices. They use conjugate gradient, a numerical optimization procedure, to fit the weights. In the combined conditional scorer, the features from the derivation decision trees and the semantic decision trees enter the same weighted calculation. The generative comparison combines separate preferences by voting. The two comparisons therefore keep the feature definitions related while allowing the scoring approaches to use them differently.
Experiments and results
Data, evaluation, and baselines
The preliminary Redwoods treebank contains 10,000 sentences of spoken dialogue drawn from the Verbmobil project. The experiments use annotated sentences for which a human selected exactly one preferred analysis. The dataset table gives 7.0 as the mean sentence length, 4.1 as the mean lexical ambiguity, and 7.3 as the mean structural ambiguity. These last two measures describe different sources of choice. Lexical ambiguity concerns the alternatives associated with lexical entries, while structural ambiguity concerns complete analyses. The count of sentences in the particular annotated evaluation set is unavailable, so the size of the preliminary treebank and the size of the evaluation set should be read separately.
The authors average accuracy across ten-fold cross-validation. This means that the annotated data is divided into folds and the role of held-out evaluation data rotates. The paper gives both training and test accuracy for the basic derivation comparisons. Training accuracy describes how often a fitted scorer ranks the preferred analyses first on the examples used for learning. Test accuracy measures the same decision on held-out sentences. The later ensemble results are reported as parse ranking accuracy.
The unit of evaluation is the complete sentence. A top-ranked candidate receives credit when it is the analysis selected by the annotator. This measure is exacting because an analysis can agree with many parts of the preferred reading while differing at a single attachment or lexical choice. The procedure evaluates success directly at the decision the ranker is asked to make. If multiple analyses are tied at the top, the scorer receives fractional credit when the preferred analysis appears in that group.
credit = 1/m
credit is the contribution of the sentence to accuracy under that tie. m is the number of analyses sharing the highest score, 1 is full credit for the preferred analysis, and / divides that credit across the equally ranked alternatives. The equals sign specifies the credit assigned when the preferred analysis is in the tied group. A sentence whose preferred analysis falls below that group contributes no credit. The tie rule gives the expected success of choosing uniformly among the top candidates.
The random baseline is the expected accuracy of selecting a candidate at random from the grammar's available analyses. It is 26.00% in the reported training and test comparisons. The simplest probabilistic derivation baseline, PCFG-S, estimates expansions with the node label as its only history feature. PCFG-GP gives the estimator the current node label and the parent's label. PCFG-DTAll uses a single decision tree with all derivation features available. The paper pairs these generative configurations with conditional scorers that use the corresponding features.
Ranked derivations with and without more context
The basic derivation comparison shows how the two scoring approaches respond when the context becomes richer. The random baseline establishes that the task involves genuine competition among analyses under the experimental setup. The rule-based feature set in PCFG-S already gives the generative estimator a preference among trees based on observed derivations. The conditional version of the same simple feature set makes a larger improvement over random ranking and starts closer to the performance of the richer configurations.
Held-out Redwoods parse selection accuracy with derivation features
The conditional scorer with simple rule features already exceeds the generative scorer with access to the full decision-tree history.
The numbers
| System or setting | accuracy % |
|---|---|
| Random selection | 26.00 |
| Generative PCFG-S | 67.27 |
| Generative PCFG-GP | 72.39 |
| Generative PCFG-DTAll | 75.57 |
| Conditional PCFG-S features | 79.34 |
| Conditional PCFG-GP features | 81.52 |
| Conditional PCFG-DTAll features (this paper) | 81.82 |
For the generative scorer, held-out accuracy rises from 67.27% with PCFG-S to 72.39% with PCFG-GP, then to 75.57% with PCFG-DTAll. The authors report a 25.36% error reduction from PCFG-S to PCFG-DTAll. That figure is a reduction relative to the starting error rate. It expresses the change in the fraction of sentences scored as errors under the evaluation rule.
The conditional scorer reaches 79.34% test accuracy with PCFG-S features. It reaches 81.52% with PCFG-GP features and 81.82% with the full single-tree feature set. The paper reports a 12% error reduction between the simplest and richest of these conditional configurations. Most of the held-out gain in that progression is already present when the parent context is added. The final expansion of the feature set still produces the best test score among the single-tree derivation configurations.
Training results show how strongly the richer configurations can fit the preferred trees in the training data. In the order PCFG-S, PCFG-GP, and PCFG-DTAll, the generative training accuracies are 72.23%, 83.89%, and 96.51%. The conditional counterparts reach 85.31%, 91.56%, and 97.61%. A rich set of contexts allows both approaches to score the training choices much more successfully. The last step from parent conditioning to the full tree is particularly different in training and test behavior for the conditional scorer.
The comparison with simple rule features also illustrates the role of the learning objective. The generative baseline is built from probabilities of expansions in preferred trees. Its estimates are subject to the limited history in PCFG-S. The conditional baseline uses the observed expansion counts to learn preferences among the supplied candidates. It can use a count effectively when that count repeatedly distinguishes preferred analyses from their competitors. The paper offers this difference as a partial explanation for the conditional advantage visible even on the training data with simple features.
Ensembles and additional semantic evidence
In the generative comparison, the derivation ensemble reaches 78.97% held-out accuracy, compared with 75.57% for the single decision tree that can consult the full derivation inventory. Given semantic dependency trees alone, the feature-subspace ensemble reaches 68.88%, compared with 67.38% for the single semantic decision tree. Both representations benefit from allowing different members to learn different partitions. On the semantic representation, the standalone scorer has a smaller inventory of possible context features and a lower starting accuracy.
Generative configurations by Redwoods parse selection accuracy
Feature-subspace voting improves the ranking within each representation, and combining both representations gives the highest accuracy.
The numbers
| System or setting | accuracy % |
|---|---|
| Derivation single decision tree | 75.57 |
| Derivation feature-subspace ensemble | 78.97 |
| Semantic dependency single decision tree | 67.38 |
| Semantic dependency feature-subspace ensemble | 68.88 |
| Combined derivation and semantic ensembles (this paper) | 80.10 |
The generative combination of the derivation and semantic ensembles reaches 80.10% test accuracy. This is the setting in which the 11 derivation members vote alongside the 5 semantic members, with lower weights on the semantic votes. The authors report about 5.4% error reduction from the stronger derivation ensemble to the combined setting. The semantic ensemble thus contributes to ranking even though its own choices are less reliable than those of the derivation ensemble by the same aggregate metric.
The conditional results inherit the histories selected by those trees. Derivation features from the ensemble give 82.24% test accuracy, compared with 81.82% for features from the full single tree. Semantic dependency features give 73.50% with feature subspaces and 69.91% with the single tree. The conditional combination reaches 83.32%, the highest reported test accuracy. The paper attributes a 6.1% error reduction to adding semantic dependency features to the derivation ensemble features in the conditional setting.
Conditional configurations by Redwoods parse selection accuracy
The combined derivation and semantic feature set ranks highest, with a smaller ensemble gain for derivations alone.
The numbers
| System or setting | accuracy % |
|---|---|
| Derivation features from one decision tree | 81.82 |
| Derivation features from multiple subspaces | 82.24 |
| Semantic dependency features from one decision tree | 69.91 |
| Semantic dependency features from multiple subspaces | 73.50 |
| Combined derivation and semantic features (this paper) | 83.32 |
The results give two views of how much the selected histories matter. With the generative derivation scorer, enriching or varying the histories makes the estimated local distributions substantially more effective for parse selection. The conditional derivation scorer performs well with simple rule features, so it gains less from the richer inventories studied here. Semantic histories show a different pattern. The conditional scorer using semantic dependencies alone obtains more benefit from the transfer of subspace features than the derivation-only conditional scorer does. The reported gains therefore depend on the representation as well as on how the selected patterns are scored.
What the ablations show
Restricting the context changes the approaches differently
The simplest comparison changes what the scorer can know about its local event. PCFG-S gives it the category of the node being expanded. PCFG-GP adds the parent label. The full decision tree can select that context and other features depending on which path a history follows. Held-out gains for the generative estimator support the premise that more than the current node label matters in these derivations. Information about where a grammatical operation occurs helps the local probabilities produce a better ordering of complete analyses.
The parent comparison is particularly direct because it adds a specified relation to the initial baseline. It provides evidence for making that ancestor available. The move from PCFG-GP to PCFG-DTAll changes more things together. It expands the inventory and learns partitions automatically, with a context that can vary by branch. This means the final gain supports the richer procedure as a package. The results leave open which individual ancestor, sister, direction, lexical, or category features account for particular gains.
The conditional comparisons illustrate the difference between better estimation of local observed choices and better ranking of alternative whole trees. The conditional objective can learn a useful weight for a rule count with limited context when that count already distinguishes the preferred candidate. A more specific count can improve the fit on training sentences while occurring too selectively to guide held-out comparisons as often. The authors interpret the small test gain and the stronger training fit in the full decision-tree condition as suggestive of overfitting for this scorer. Because several changes come together, that pattern leaves room for both the effects of noisy annotation and the effects of sparse features.
The training accuracies also provide context for the advantage of the simple conditional approach. With the same simple rule information, the generative estimator ranks preferred trees much less successfully even among the sentences used for fitting. The paper's explanation looks to the assumptions of the generative factorization. It must estimate likelihoods for preferred trees through limited local conditionals. Conditional training can use the same rule evidence to favor each preferred candidate relative to its actual competitors. The result identifies a difference in what the two training problems ask of the information.
Comparing one available history inventory with several
The full derivation inventory makes every tabulated derivation feature available to a single decision tree. The subspace ensemble repeatedly withholds some of those features, trains separate trees, and aggregates their rankings. The improvement shows that making every question available to an individual greedy learner is an incomplete way to exploit that inventory. Some of the questions become more effective as part of alternative partitions, as measured by the accuracy of the resulting ensemble.
The comparison changes both the partitions and the way their predictions are combined. One plausible mechanism described by the authors is that removing a feature leads the tree to use another relevant clue. A second is that a set of trees can pool evidence across partitions that a single tree would have to build jointly. The experiments support using the two mechanisms together. They do not distinguish an improvement due to the choice of subspaces from improvement due to combining several ranked predictions. An ensemble in which all trees had the same available features would be a different comparison.
There is a separate comparison between two ways of constructing subspaces. The authors also try removing every pair of features from the inventory numbered 0–8. This produces 36 subspaces and a reported accuracy of 78.52% in that derivation experiment. Their selected 11-tree generative derivation ensemble gives 78.97%. The paper favors the smaller ensemble for computational reasons. The comparison shows that covering more pair omissions did not improve on the selected construction. The alternatives use different inventories and omission rules, so they leave the effect of ensemble size by itself unresolved.
For the conditional scorer, the same comparison between single and multiple trees concerns the features extracted from the trees. Multiple partitions expose several definitions of useful context. These yield several feature counts that can be learned jointly. Test accuracy rises with those counts in both representations, and the derivation improvement is small. This illustrates an important distinction in the method. Evidence that subspace voting works well for a generative scorer is evidence for a particular way of pooling estimates. Evidence that path features help a conditional scorer concerns the utility of the patterns selected by that search.
The semantic dependency comparison extends the same idea to a small inventory. The authors see less obvious redundancy among its 5 questions. A single tree might therefore have fewer strong alternatives to lose by taking a particular early split. The ensemble still improves test accuracy in both scoring approaches on semantic dependencies. This shows that the procedure can help on the semantic representation used in these experiments. The way each individual semantic feature interacts with those subspaces remains unmeasured.
Separating derivation evidence from semantic evidence
Comparisons using derivations alone, semantic dependencies alone, and both together test the value of adding information about meaning. Both combined approaches outperform their respective derivation-only ensembles. Since the semantic-only approaches are weaker, the improvement indicates that semantic features can help precisely where the stronger evidence leaves a close or mistaken choice. The semantic contribution is especially intelligible when two readings differ in which relations they contain or which heads they connect.
A bound reported in the paper helps interpret the weaker standalone semantic results. The semantic dependency representation has a 90.9% ceiling on parse ranking accuracy in this corpus. Several analyses of a sentence can have the same dependency tree. Whenever they do, a scorer that sees only those semantic dependencies has identical evidence for those candidates. For evaluation, the candidates still count as distinct analyses, and the preferred one receives only its share of the credit if it is in the tied group at the top.
The lexical-label diagnostic reveals an analogous limitation for a different representation. The paper reports a ceiling below 55 percent parse selection accuracy for its corpus when an oracle knows the correct sequence of lexical labels and chooses at random among analyses that share it. An oracle in this context is a diagnostic that is given the correct tags. The result shows why fine-grained labels, despite their richness, leave much of the structural decision open. The semantic bound and the supertagging bound describe distinct kinds of indistinguishability under the paper's preferred-parse evaluation.
The authors find the benefits of adding semantic information smaller than they expected. The result applies to the semantic dependency trees they use, with their limited history and their relation labels. In the generative setting, the combination also depends on the smaller weights assigned to semantic members. In the conditional setting, it depends on how the transferred feature counts receive their weights. These experiments measure the semantic contribution under those choices. They leave open how much more the full semantic representation in Redwoods could contribute.
Inspecting the errors and corrected readings
The authors inspect a selection of errors from the best combined conditional scorer on one of the cross-validation splits. They attribute about 40% of the inspected errors to annotation errors or inconsistencies. They attribute about 15% to limitations of the grammar and about 45% to decisions they consider genuine ranking errors that could potentially be corrected. These are approximate shares of the inspected errors. They describe judgments about why cases failed under the experimental conditions.
Annotation can affect ranking at two points. When a training sentence is assigned an inappropriate preferred analysis, the learner can reward patterns that select the inappropriate reading. When the held-out preference is inappropriate, an otherwise plausible choice can lose credit. Inspecting a held-out mistake can expose a problem in the second case. It gives less direct access to the effect of inconsistent judgments elsewhere in training. The authors emphasize that difficulty when presenting their approximate breakdown.
Prepositional phrase attachment makes up a substantial portion of the errors judged genuine. The paper describes a scheduling question about whether a range of hours on Thursday would be suitable. The scorer attaches the day to the closing time alone. The preferred interpretation treats Thursday as the day of the entire interval. The distinction depends on how the endpoints of the time range fit together and on how people commonly understand such scheduling questions. The authors suggest common knowledge or features describing parallel constructions as possible sources of evidence. They connect the latter possibility to the parallelism features in the earlier work on stochastic unification grammars.
Other examples show what the semantic dependencies already contribute. In one scheduling question, the derivation-only scorer interprets an ordinal adjacent to Monday as counting Mondays. The semantic evidence favors a calendar date that is both the indicated day of the month and a Monday. The paper notes that punctuation is absent from the corpus. In a dialogue turn about getting a cab and leaving, the derivation scorer favors an interpretation in which the speakers become a cab. Semantic dependencies help the combined scorer choose the reading in which they obtain one.
These examples show the type of distinction the semantic labels can support. The possible readings are available for ranking, and they differ in the relations expressed by the ordinal or verb. The semantic scorer can alter the relative standing of those readings even when the grammatical operations provide too little guidance. The authors also find that the large majority of errors made by the combined scorer are shared with the derivation-only conditional scorer. The correction examples thus illustrate identifiable cases of complementary evidence within a broader error pattern that persists after combination.
Limitations
Limits identified by the authors
The experiments use a preliminary stage of Redwoods in which one person made all the annotation judgments. The authors expect some noise and find indications of inconsistency when inspecting errors. They also point out that a flexible conditional scorer can adjust its parameters to training noise, especially as the feature set expands. This is their proposed explanation for part of the gap between training gains and held-out gains. The experiments give accuracy against the recorded preference, with the benefits and limitations of that supervision.
The authors make only limited use of the full HPSG signs. For syntax, the feature inventory leaves out subcategorization, which describes the kinds of complements a lexical item can take. It also leaves out lexical types, a set of about 500 syntactic types in the grammar, and individual properties such as tense, aspect, and gender. The grammar's type hierarchy could group related types to share evidence in estimation. The paper identifies that possibility without assessing it in the experiments.
The semantic analysis is also selective. The semantic dependency trees give access to relations between heads and to some abstraction over lexical items. The treebank provides more detailed semantic representations in Minimum Recursion Semantics, which the authors leave largely unexplored. Their discussion identifies those representations and possible clustering of semantic types as future directions. The measured semantic gains belong to the dependency projection used here.
The authors also point to long-distance dependencies as a direction for further work. Ancestor features already let a local estimate see higher in the derivation, and the semantic generator remembers the preceding dependent on the side it is generating. Those histories supply specific contextual relations. The remaining error cases include parallel structures and relations spanning larger parts of the sentence. The examples illustrate why locality matters, while the experiments leave the value of new long-distance features open.
Grammar limitations form a separate category in the error analysis. The statistical choice depends on what the grammar licenses for a sentence. When the desired reading is unavailable, rescoring the candidates cannot recover it. The paper estimates the extent of that difficulty in its inspected sample. It evaluates the preference among offered analyses, so overall parsing performance in a setting with different grammar coverage would involve an additional question.
Limits visible in the experimental design
The data comes from spoken dialogues in the collection used for Redwoods. Cross-validation estimates performance on held-out sentences drawn from the annotated set. It gives no direct measure of transfer to another dialogue collection, another genre, or another grammar. This matters in particular for features defined by construction and lexical labels. They obtain their meaning from the inventory that produced these candidates and their reliability from occurrences in this training material.
The exact-match measure is well aligned with the goal of returning the preferred analysis. It compresses different kinds of divergence into the same ranking outcome. A candidate that differs only in the scope of a day phrase and a candidate with several incorrect choices both lose credit if the preferred reading ranks lower. The relative severity of those errors, or the quality of partial analyses, would require measures beyond the reported whole-sentence accuracy. The annotation audit provides examples of the kinds of errors hidden inside the aggregate.
The ensemble comparison bundles changes in what the trees can ask with changes in how they are used. For the generative approach, the experimental system constructs several estimates and applies voting. In the conditional approach, the ensemble yields a larger pool of individually weighted patterns. There is no comparison that varies only the aggregation rule, and the feature-subspace experiments do not measure the separate effect of deleting each possible feature. Consequently the evaluation supports the complete design and gives more limited evidence about why particular members help.
Likewise, the transfer experiment evaluates a practical route to obtaining features for conditional training. A leaf that predicts a local expansion reliably under the generative objective need not identify a distinction that occurs frequently between rival parses of the same sentence. The conditional objective can learn how much to use the transferred counts. The comparison leaves open the performance of a search that selects contexts directly for conditional likelihood or directly for ranking accuracy. The paper's results indicate that the indirect search can be useful under the computational conditions that motivated it.
The tables give cross-validation averages. They leave the variation among folds and the uncertainty around individual differences unspecified. Small held-out differences, such as the conditional derivation gain from the ensemble, can therefore be described by their reported magnitude. The manually inspected errors have a narrower scope still. They are drawn from one split, and judging their causes involves interpretation of the sentences and the annotations. Their strongest use is to identify where the system struggles and to show concrete readings affected by the semantic evidence.
What came after
Miyao's later work returns to the problem of assigning probabilities to analyses in HPSG. Its title identifies feature forests as the representation it studies for probabilistic HPSG parsing, and the work cites Toutanova and Manning's study. The documented connection is the research problem shared by the two papers. Both concern the use of features in probabilistic parsing with HPSG analyses, while the later title identifies a different representation as its focus. Feature Forest Models for Probabilistic HPSG Parsing
Toutanova and Manning use a collection of decision trees to discover context distinctions. A path identifies conditions under which a local event can be scored or counted, and several trees can contribute distinct views of that event. The later citation places that study within continuing work on how to represent features for a probabilistic HPSG parser. It establishes a connection at that level. The citation and title leave open which parts of the decision-tree procedure, if any, were carried into the later system and how the two approaches would compare on the Redwoods ranking experiment.
Cite
Cite as Kristina Toutanova and Christopher D. Manning. 2002. Feature Selection for a Rich HPSG Grammar Using Decision Trees. COLING-02: The 6th Conference on Natural Language Learning 2002 (CoNLL-2002).
@inproceedings{toutanova2002feature,
title = {{Feature Selection for a Rich HPSG Grammar Using Decision Trees}},
author = {Kristina Toutanova and Christopher D. Manning},
booktitle = {COLING-02: The 6th Conference on Natural Language Learning 2002 (CoNLL-2002)},
year = {2002},
doi = {10.3115/1118853.1118883},
url = {https://doi.org/10.3115/1118853.1118883}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/toutanova-2002-feature-selection-rich-hpsg-grammar/