Elamur Research

Comparative Parser Performance Analysis across Grammar Frameworks through Automatic Tree Conversion using Synchronous Grammars

Paper · 2008 · Takuya Matsuzaki and Jun'ichi Tsujii

Summary

Two parsers can agree on how a sentence is put together and still draw different trees for it. In syntactic parsing, each grammar framework determines what the parser records and how it organizes that information. A direct comparison can therefore mistake a difference in notation or annotation practice for a difference in accuracy. The authors propose evaluating parsers in a shared format, using simplified phrase trees in the style of the Penn Treebank. Their aim is to compare how well parsers resolve structural ambiguities while keeping the errors introduced by conversion small enough to interpret the results.

The converter learns from treebanks that give the same sentences analyses in both frameworks. It locates phrases that cover the same stretches of a sentence, cuts the paired trees at those points, and learns which fragments tend to correspond. The fragments can include several levels of structure, so a rule can change where a word or phrase attaches even when the original and desired boundaries cross. The authors use this method to compare Enju, a parser based on Head-driven Phrase Structure Grammar, with parsers that produce trees based on context-free grammar. Converting reference Enju-style trees to Penn Treebank-style trees gave a labeled bracketing F1 of 98.24 on the shared portion of the test set. In the reverse direction, conversion gave 97.49 on the same sentences.

In the parser comparison, Enju scored 86.82 F1 after conversion to the Penn Treebank format on section 23. Charniak and Johnson’s reranking parser scored 91.33 there and also led when its output was converted to Enju’s simplified tree format on the shared subset. Across the different evaluations and in light of the measured conversion errors, the authors judge Enju broadly comparable to the Collins and Stanford lexicalized parsers. A closer look at word-to-word attachments on section 22 exposed a specific problem behind some of Enju’s errors. When its separate tagger mistook a main verb for a noun, Enju could fail to identify the verb as the root of the sentence and sometimes selected the subject instead.

The common representation makes those comparisons possible by omitting distinctions that some parsers record, including long-distance relations and the distinction between control and raising. The results describe recovery of phrase structure and of dependencies extracted from those phrases. They leave open how the same parsers would compare on richer relations or on the requirements of a particular application.

Deep dive: Comparative Parser Performance Analysis across Grammar Frameworks through Automatic Tree Conversion using Synchronous Grammars

Automatic tree conversion puts parsers from different grammar frameworks on a common scale and helps explain where their analyses diverge. · about 32 minutes to read

The problem and its context

Different grammars describe the same sentence differently

When a parser chooses a structure for a sentence, it makes decisions about which words belong together and how the resulting phrases relate. A phrase containing a preposition, for example, might modify a noun or describe the action expressed by a verb. A parser can resolve the ambiguity by placing that phrase under the noun phrase or by attaching it in the part of the tree headed by the verb. How the tree makes that decision visible depends on the grammar framework. A comparison needs to account for how each framework expresses a decision before it can count the decisions as right or wrong.

The distinction matters even when both systems produce phrase trees with familiar labels. A tree can put a determiner and noun together early and attach a following modifier higher up. Another tree can first combine the noun with its modifier and attach the determiner to that larger unit. The same words appear in the same order, but the intermediate phrases cover different stretches of the sentence. Comparing those brackets directly would charge a system for following its own grammar’s conventions. Merely renaming phrase categories would leave the disagreement in the structure intact.

The problem becomes greater when the output used for evaluation includes a framework’s semantic representation. The paper describes work on parsers for large lexicalized grammars in which accuracy was often measured using the semantic structures the systems returned. Such measurements can answer questions about each parser within its own framework. A score in one framework and a score in another, however, may count different units or require different distinctions. A higher number in one evaluation gives little basis for deciding which system was better at resolving a particular ambiguity shared by both.

Why lexicalized grammars made the question practical

A lexicalized grammar distributes grammatical knowledge between rules and lexical entries. The rules give general ways to combine expressions. Entries encode properties associated with particular words, such as the kinds of phrases a word can combine with. A derivation starts with entries for the words of a sentence and records the rule applications that assemble them into larger units. For grammar development, this shifts much of the work toward obtaining an inventory of lexical entries with enough coverage for unrestricted text.

The paper describes a way to acquire that inventory from a corpus with existing linguistic annotation. Developers specify the grammar rules and decide what information belongs in a lexical entry. They then reanalyze annotated sentences in the new grammar, using the existing parse to guide the reanalysis. Once they have a derivation in the target framework, they can recover the entries the words need in order to participate in it. The resulting resource provides grammar developers with a lexicon and gives the converter in this paper something equally important: two analyses tied to the same sentence.

The authors situate their work alongside advances in parsing with lexicalized grammars and in acquiring those grammars from corpora. They cite work on wide-coverage CCG parsing and give CCGbank as an example of a resource derived from the Penn Treebank. CCG is Combinatorial Categorial Grammar, one of the frameworks considered in earlier efforts to evaluate dissimilar parsers. Enju’s reanalysis of Penn Treebank sentences supplies the corresponding paired data for the experiment in this paper. This common origin is part of what makes a learned conversion feasible.

Earlier efforts to create a common target

The paper describes earlier efforts to evaluate parsers against shared grammatical relations. A relation makes explicit how units in a sentence are connected. If different frameworks can express the same relations in a common notation, a comparison can focus on the relations and set aside some differences in how the grammars build their analyses. That approach preserves information of potential interest to applications, but the evaluation depends on whether the rules that map into the shared format can actually recover what the reference annotation calls for.

Clark and Curran’s mapping from CCG analyses to Grammatical Relations is the paper’s concrete example. The mapping was written manually and covered 85% of the relations in the reference corpus. Even starting with reference CCG analyses, 15% of the reference relations remained beyond the mapping’s coverage. Those figures concern the mapping from annotated input, so they expose a source of error that would still be present if the parser returned the expected CCG analysis every time. A downstream score could penalize the parser for a relation that its route into the common representation failed to deliver.

The authors choose a shallower target for a different evaluation purpose. Their Penn Treebank-style trees retain simple phrase labels and the spans those phrases cover. They omit function tags, which qualify the role of a constituent, and empty nodes and co-indexing, which can record relations involving positions without an overt word. The simplified trees retain enough structure to compare where phrases begin, where they end, and how they are grouped. The target also makes it possible to bring parsers developed directly from Penn Treebank trees into the experiment without translating their output for that part of the comparison.

This choice puts a specific question within reach: how much of the reference phrase structure can each system recover when judged in the same format? Its usefulness depends on how accurately trees can be converted and on which parsing decisions remain visible after simplification. The paper develops the converter and measures its error separately to give the reader a basis for answering both questions.

The method, step by step

Build paired analyses from the same sentences

The authors start with two collections of analyses for Penn Treebank sentences. On one side is the Penn Treebank tree simplified to use ordinary phrasal categories. The paper calls this a PTB-CFG tree, using PTB for Penn Treebank and CFG for context-free grammar. On the other side is an analysis in Enju’s Head-driven Phrase Structure Grammar, abbreviated HPSG. Each usable pair has the same sentence underneath both trees. The shared word positions supply a way to line up parts of the analyses even when the trees themselves have different shapes.

The authors reproduce the HPSG treebank with Mayz, the program distributed with the Enju English HPSG grammar. Mayz reanalyzes Penn Treebank trees in the Enju grammar. The lexicon for that grammar was extracted from the resulting HPSG treebank. For the conversion study, the benefit of the reanalysis procedure is that it yields a corresponding HPSG tree for each Penn Treebank sentence it covers, so the authors can learn where the framework changes the structure.

An Enju phrase node carries a typed feature structure. This is a structured description of the phrase’s syntactic and semantic properties. The converter works with a simpler version of that tree. It replaces the feature structure at each node with an atomic category such as PP, NP, or NX, using 33 symbols in total for this mapping. PP identifies a prepositional phrase and NP a noun phrase. The simplified tree also omits empty categories, co-indexing, and function tags. This reduces what the converter must handle while retaining the pattern of branches and phrase spans that it needs to transform.

There are structural differences left after this simplification. Mayz turns branching into unary or binary branching, so each nonterminal in the HPSG treebank has either a single child or a pair of children. It chooses heads using a modified version of Collins’ head-finding rules. A head is the daughter that serves as the structural center of the phrase. Decisions about where to insert intermediate nodes depend in part on which daughter serves that role. A flat configuration in the Penn Treebank can therefore correspond to a series of smaller groupings in the Enju analysis.

Some changes reach beyond the addition of intermediate nodes. In the paper’s example of a noun phrase with a following modifier, the article attaches at different heights in the paired trees. The HPSG analysis groups the noun with the following modifier before combining that material with the article. The Penn Treebank-style analysis groups the article with the noun below the point where the following modifier attaches. Those intermediate constituents overlap without either one containing the other. The conversion has to replace one grouping with another across a region of the tree.

Mayz produces its output through successive local transformations. Their combined effect can be considerably more complex than any individual change. The authors learn from the original and transformed trees, treating the correspondence between them as evidence for how to recover Penn Treebank-style structure. They also train a converter for the opposite direction so the parser comparison can be run in either representation.

Learning and applying the tree converter

The steps in order.

Learning and applying the tree converterStep 1: Pair analyses of the same training sentences1. Pair analyses of the same training sentencesStep 2: Simplify categories and prepare the tree shapes2. Simplify categories and prepare the tree shapesStep 3: Find nodes covering the same sentence spans3. Find nodes covering the same sentence spansStep 4: Cut paired trees and link their fragments4. Cut paired trees and link their fragmentsStep 5: Estimate rule weights from training counts5. Estimate rule weights from training countsStep 6: Find the highest-scoring derivation for the input6. Find the highest-scoring derivation for the inputStep 7: Use back-off rules when coverage fails7. Use back-off rules when coverage failsStep 8: Return the target tree in evaluation format8. Return the target tree in evaluation format

Learn rules that expand both trees together

A synchronous grammar builds two trees in parallel. Each production specifies an expansion on each side and links any nonterminal positions that must be expanded together. A nonterminal is a category that can receive further structure. In a linked pair, the category on one side can differ from its partner. A later rule fills both positions in the same derivation step. The accumulated expansions describe why a particular piece of one tree corresponds to a particular piece of the other.

The authors draw on prior uses of synchronous grammars in machine translation, where the paired trees can describe different sentences. This converter has a special constraint. Both sides analyze the same sentence, so the terminal sequences must agree. In the experimental grammar, the terminal symbols are the part-of-speech tags that the two representations share. These are categories assigned to individual words, such as noun or verb. The converter changes the tree above the sequence of terminal positions while keeping the paired analyses tied to those positions.

The rules form a stochastic synchronous tree-substitution grammar, or STSG. “Stochastic” refers to the probabilities assigned to the rules. “Tree substitution” means that a production can supply a fragment extending across several levels of a tree. The fragment may contain a branching decision and the structure below that decision, leaving selected positions along its lower edge to be filled later. The paper’s example grammar for prepositionally modified noun phrases illustrates this use of fragments. A single paired production can describe the region containing the conflicting attachments and leave unchanged stretches available for further synchronized expansion.

That flexibility is essential for the article-attachment example. There is no way to match the crossing intermediate brackets by equating their spans. There can still be matching spans above and below the region of disagreement. A production can start at the shared outer span, include each side’s grouping inside that span, and link only the lower constituents that agree in coverage. The rule thereby accommodates a structural disagreement without requiring a direct correspondence between every node in one tree and a node in the other.

A sequence of synchronous rule applications is a derivation. The paper assigns a probability to the derivation by multiplying the probability of choosing the paired roots by the probabilities of the paired productions it uses.

P(D) = P(⟨R¹, R²⟩) × ∏ᵢ∈ᴰ P(⟨tᵢ¹, tᵢ²⟩)

Here P denotes probability and D denotes a derivation of the paired trees. R¹ and R² are the root symbols on the respective sides, with the superscripts identifying the sides. ⟨ , ⟩ groups the symbols or fragments into an ordered pair. The product sign ∏ means to multiply a factor for each rule application i in D. At application i, tᵢ¹ and tᵢ² are the local tree fragments on each side of the synchronous production. The multiplication sign separates the initial root choice from the subsequent production factors.

Find the places where the trees can be cut

The extraction procedure uses the idea of a span. A node spans the stretch of the sentence covered by the terminals below it. A common-span pair contains a nonterminal from each tree covering the same stretch. The labels can differ. The relevant evidence for a cut is that the two nodes enclose the same terminal positions and can therefore serve as a pair of insertion points when the enclosing fragments are assembled again.

{(Nᵢ¹, Nᵢ²) | Nᵢ¹ ∈ T¹, Nᵢ² ∈ T², i = 1, …, k}

The braces enclose the set of selected common-span pairs, and the vertical bar introduces the conditions on their members. T¹ and T² are the two analyses of the sentence s. Nᵢ¹ and Nᵢ² are the nonterminal nodes in the selected pair indexed by i. The symbol ∈ means that each node belongs to its indicated tree. The range from 1 through k enumerates the selected pairs, with k denoting how many are selected. Each pair is subject to the common-span condition described above.

Where neither tree contains unary productions, the authors cut at all the common-span pairs. The shared spans then determine the decomposition. By cutting at every such boundary, the procedure separates reusable pieces wherever the tree shapes allow a shared division. The fragments left between the cuts retain as much internal structure as is necessary to connect matching boundaries. A region with conflicting brackets stays together in the fragment pair that spans it.

Unary productions complicate the decomposition. A chain of nodes with a single child at each step can give several distinct category nodes exactly the same span. A span match by itself then leaves several possible pairs of cuts. When both sides have unary chains over that span, the authors choose cut points that preserve the longest chains together as a paired fragment. When only one side has a chain, they pair its uppermost node with the corresponding node in the other tree. This convention determines how the training trees are factored into rule applications and therefore affects the rule counts.

At the lower edge of a fragment, the nodes are either terminals or nonterminals selected as cut points. The authors place links between the paired cut points. A linked pair again covers the same original stretch, and terminal material appearing directly on the two fragment edges agrees between the sides. If further productions preserve that agreement at the linked positions, the enclosing production preserves it as well. This recursive property accounts for how the extracted grammar can change bracketings while producing paired analyses with identical terminal sequences.

The training procedure treats the chosen decomposition of each pair as its synchronous derivation. It counts how frequently a given pair of fragments was used and normalizes that count by how frequently productions with that pair of root categories were used.

P(⟨t¹, t²⟩) = Count(⟨t¹, t²⟩) / Count(⟨root of(t¹), root of(t²)⟩)

Here P is the estimated probability of the synchronous production formed by fragments t¹ and t². The superscripts mark the two sides. Count gives the number of occurrences in the training derivations. In the numerator it counts that exact pair of fragments. In the denominator root of selects the top category of each fragment, and Count gives the number of productions with that pair of categories at their roots. Angle brackets form the ordered pairs, and / divides the specific production count by the count of opportunities to use a production with the same roots. This is the maximum-likelihood estimate for a rule given the root pair under the chosen decomposition.

Prepare each direction separately

The paired training trees can be read in either direction. The authors fit a separate grammar for each direction because they use different preparations of the Penn Treebank side. In both cases the preparation makes regular correspondences easier to learn. Binarization, for instance, introduces intermediate nodes into a structure with wider branching. Which spans those nodes cover determines where the extraction procedure can find shared cut points.

For conversion from HPSG to PTB-CFG, the authors binarize the Penn Treebank training trees to maximize the number of common-span pairs with their known HPSG partners. This is a preparation of the parallel examples, where the desired tree is already available. An artificial node is given the label A∗, with A supplied by its nearest ancestor that belongs to the original tree. The marker lets the converter use the intermediate grouping while learning and decoding, and lets the post-processing step identify the extra node when it restores the evaluation format.

The authors also raise commas as far as possible in the Penn Treebank trees to approximate how Mayz positions them. They distinguish the adverb not with RB-not because its treatment in the Penn Treebank differs from that of other adverbs tagged RB. They mark base noun phrases with NP-B to make that class of noun phrases visible during conversion. After converting Enju output, they remove artificial nodes and restore RB-not to RB and NP-B to NP. Commas stay in their converted positions because the bracketing evaluation ignores them.

In the reverse direction, a Penn Treebank-style input at conversion time comes without a corresponding HPSG tree that could guide the placement of intermediate nodes. The authors use head-centered binarization with Collins’ head-finding rules for that direction. They apply the same comma, adverb, and base-noun-phrase preparations as before. Both the Penn Treebank side of the training pairs and the output of the CFG parsers receive this preprocessing before conversion to simplified HPSG trees. The rule extractor and decoder can then work with the same kind of source structure.

Choose a derivation for a new tree

Once the grammar has been learned, the converter receives a source tree and searches for a compatible tree on the other side. The natural probability objective is to return the target tree that is most probable given the fixed source tree.

f(S) = argmaxₜ P(T | S) = argmaxₜ P(S, T)

S is the source tree, T is a candidate target, and f denotes the conversion function. The subscript ₜ in argmaxₜ indicates a search over candidate trees T. An argmax returns the tree that attains the greatest value of the expression being evaluated. P(T | S) is the conditional probability of T given S, with | marking the conditioning. P(S, T) is the joint probability of the pair. Since S is fixed throughout the search, ordering targets by the conditional probability gives the same order as using the joint probability.

Computing that joint probability means adding the probabilities of all the derivations of the same tree pair. Tree fragments of different sizes can assemble the same structure. A large production may cover a region that could also be generated by applying smaller productions at successive levels. The resulting trees can be identical even though the derivations are distinct. The authors explain that the number of derivations can grow exponentially and report that they know of no polynomial-time method for optimizing the sum over derivations.

The converter uses the probability of the strongest individual derivation. It searches for the most probable derivation compatible with the input and returns the target tree produced by that derivation.

f(S) = argmaxₜ [ maxᴅ:⟨ˢ,ᵀ⟩ P(D) ]

f, S, T, and argmaxₜ have the same meanings as above. D is a synchronous derivation, and maxᴅ:⟨ˢ,ᵀ⟩ selects the highest P(D) among derivations that generate the pair ⟨S, T⟩. The square brackets group that inner score so the outer search can compare it across target trees. P(D) is the root-and-production probability defined earlier. The two objectives can choose different trees when several derivations together give a target substantial probability even though none of them is the strongest single derivation.

The authors use Eisner’s decoding algorithm, which they compare to Viterbi decoding. The relevant idea is to look for the best compatible sequence of local decisions. The fixed source tree constrains which source fragments can be used. The synchronous links determine how those decisions can be assembled on the target side. The decoder returns the opposing tree of the best derivation it finds under this criterion.

Supply a fallback for unseen configurations

A learned inventory of fragments can fail to cover an input tree. This happens when the source pattern cannot be built from the source sides of the available synchronous productions in a full derivation. The converter first tries the extracted grammar. If there is no complete derivation, it adds back-off rules built from local trees with only a root and its immediate children.

{⟨X → α, Y → β⟩ | X ∈ N₁, α ∈ (N₁ ∪ Σ)∗, Y ∈ N₂, β ∈ (N₂ ∪ Σ)∗}

The braces describe the rule family. ⟨X → α, Y → β⟩ pairs a source rule with a target rule. The arrows give the child sequences α and β for roots X and Y, respectively. The vertical bar introduces the restrictions on those symbols. N₁ and N₂ are the nonterminal inventories on the source and target sides, Σ is the shared terminal inventory, and ∈ indicates membership. The union sign ∪ permits terminal and nonterminal symbols in a child sequence, and ∗ denotes sequences over the resulting inventory.

The fallback ranks a local source expansion using its estimated frequency in the source trees. For each linked nonterminal child, it also uses the probability of replacing that child’s source label with its target label. A small constant reduces the contribution of every back-off rule.

score(⟨X → α, Y → β⟩) = ε × P(X → α) × ∏ᵢ P(Bᵢ | Aᵢ)

score is the weight of the paired back-off rule. X, Y, α, β, and the arrows retain their meanings from the rule family. ε is the small constant, and P(X → α) is the maximum-likelihood probability of the source production in the source treebank. The multiplication signs combine the penalty, the source probability, and the factors in the product ∏ᵢ. The index i ranges over linked nonterminal children. Aᵢ is the source category at one such link and Bᵢ is the corresponding target category. P(Bᵢ | Aᵢ) gives the probability of the target label conditional on the source label.

P(B | A) = Count(⟨A, B⟩) / Σᴮ′ Count(⟨A, B′⟩)

A is a source label and B is the candidate target label. P(B | A) is the estimated relabeling probability, and the conditioning bar identifies the fixed source label. Count here counts common-span node pairs selected as cuts during extraction. The numerator counts the ordered pair ⟨A, B⟩, while the sum Σᴮ′ in the denominator runs over possible target labels B′ paired with A. The slash divides the joint count by the total for A.

In a derivation that uses back-off, the decoder multiplies the ordinary production probabilities and the fallback scores. The authors choose ε small enough to favor derivations using the minimum number of fallback rules. A missing local correspondence can then be bridged while the rest of the derivation takes advantage of fragments learned from the paired training trees. The resulting target is the outcome of that combined search and still has to be judged against the reference analysis.

Experiments and results

Data, parsers, and evaluation formats

In the Penn Treebank, the authors extract synchronous grammars from sections 02–21 and reserve sections 22 and 23 for development and parser evaluation, respectively. Mayz supplies the corresponding HPSG analyses where the Enju grammar covers the sentences. The Penn Treebank’s section 23 contains 2,416 sentences. The HPSG section 23 contains 2,278 sentences. The paper calls the shared portion section 23∗. Conversion accuracy in both directions can be measured there because each sentence has a reference tree on each side.

Enju is the HPSG parser being compared. It uses a discriminative maximum-entropy component to select among possible analyses. The CFG baselines are the Stanford lexicalized parser, Collins’ parser, Charniak’s parser, and Charniak and Johnson’s reranking parser. The first three use probabilistic context-free grammars derived from the Penn Treebank. The reranking system uses Charniak’s parser to supply candidates and a maximum-entropy component to reorder them. The results distinguish the Collins settings labeled 3, 2, and 1. Enju and Collins require tagged sentences as input, and the authors use the tagger distributed with Enju for both.

In the Penn Treebank-style phrase evaluation, the CFG outputs are used directly and Enju’s output goes through the HPSG-to-PTB-CFG converter. In the simplified HPSG evaluation, Enju’s feature structures are mapped to atomic categories and the CFG outputs go through the reverse converter. The change in direction allows each family of parsers to be evaluated once in a format close to its native output. The sentence sets also differ between those evaluations. The Penn Treebank-style scores use section 23, while simplified HPSG scoring uses section 23∗.

The remaining evaluation uses unlabeled word-to-word dependencies. In dependency parsing, an analysis can be expressed through links between a head word and the words that depend on it. The authors obtain such links here from the Penn Treebank-style trees. They use Collins’ head-finding rules to determine which words head the relevant phrases and to extract the resulting head–modifier relations. A modifier’s attachment is correct when its predicted head is the reference head. The evaluation counts word pairs without relation labels and excludes dependencies whose modifier is punctuation. The authors use this simpler view because a tree conversion can alter a labeled phrase boundary while leaving the extracted word-to-word attachment intact.

Conversion accuracy with reference trees as input

Before comparing parser outputs, the authors test the converter on reference trees from section 23∗. They start from the reference tree on one side, perform the conversion, and compare the result against the paired reference on the other side. This procedure isolates discrepancies produced by conversion on clean inputs. In a parser run, the source tree can itself contain a wrong attachment or label. With reference trees as inputs, the authors can measure loss introduced by the path between the representations.

They use the PARSEVAL family of bracketing measurements. A labeled bracket identifies a phrase by its span and category. Labeled precision asks what share of proposed brackets match the reference, while labeled recall asks what share of reference brackets the output recovers. F1 combines precision and recall in a single score. These measurements give different views of the same result. A converter can omit a reference phrase and thereby hurt recall, or introduce an incompatible bracket and thereby hurt precision.

Reference-tree conversion on section 23∗, labeled bracketing F1

The learned converter scores higher when the target is the Penn Treebank phrase format.

Reference-tree conversion on section 23∗, labeled bracketing F1PTB-CFG to simplified HPSG: 97.49PTB-CFG to simplified HPSG97.49Simplified HPSG to PTB-CFG (this paper): 98.24Simplified HPSG to PTB-CFG (this paper)98.24
The numbers
System or settingF1
PTB-CFG to simplified HPSG97.49
Simplified HPSG to PTB-CFG (this paper)98.24

In conversion from simplified HPSG to PTB-CFG on section 23∗, labeled precision is 98.41 and labeled recall is 98.08. From PTB-CFG to simplified HPSG on that subset, precision is 97.54 and recall is 97.45. When the authors extract unlabeled word dependencies from the Penn Treebank-style trees converted from reference HPSG analyses, dependency accuracy on section 23∗ is 98.76%. This measures the particular route that feeds Enju’s dependency evaluation, starting from correct HPSG trees.

The authors also count crossing brackets. Two brackets cross when their spans overlap without either spanning the whole of the other. Before conversion, a simplified HPSG reference tree averages 0.89 brackets crossing brackets in its Penn Treebank counterpart, while a Penn Treebank reference tree averages 0.78 crossing brackets in the opposite comparison. Each average counts brackets from the indicated side. After HPSG-to-PTB-CFG conversion, the average is 0.01 against the target reference, and after the reverse conversion it is 0.13. The decrease shows that the converter recovers much of the target grouping in places where the original trees disagree structurally.

For HPSG-to-PTB-CFG conversion on section 23∗, the share of trees with no crossing brackets is 99.34, and the share with at most 2 is 100.00. For conversion to simplified HPSG, the corresponding percentages are 93.99 and 98.33. Back-off is used on 2.59% of trees going to PTB-CFG and 10.80% going to simplified HPSG. The reverse route thus has more frequent gaps in learned rule coverage as well as a lower bracketing score. The experiment reports both outcomes for the complete converters, with each direction using its own preparation.

Parser accuracy in Penn Treebank phrase structure

In section 23, Charniak and Johnson’s reranking parser leads the labeled bracketing results. The unreranked Charniak parser follows, then the Collins settings. Enju scores above the Stanford lexicalized parser in F1 after conversion to PTB-CFG. The systems in this comparison share the evaluation target. The conversion measurement supplies context for interpreting Enju’s place in the ranking because the other outputs enter this evaluation directly.

Parser comparison on Penn Treebank section 23, labeled bracketing F1 in PTB-CFG

The reranking parser leads, and converted Enju places between the Stanford parser and the Collins settings.

Parser comparison on Penn Treebank section 23, labeled bracketing F1 in PTB-CFGCharniak and Johnson reranking parser (this paper): 91.33Charniak and Johnson reranking parser(this paper)91.33Charniak parser: 89.13Charniak parser89.13Collins setting 3: 88.45Collins setting 388.45Collins setting 2: 88.31Collins setting 288.31Collins setting 1: 87.72Collins setting 187.72Enju with conversion: 86.82Enju with conversion86.82Stanford lexicalized parser: 86.41Stanford lexicalized parser86.41
The numbers
System or settingF1
Charniak and Johnson reranking parser (this paper)91.33
Charniak parser89.13
Collins setting 388.45
Collins setting 288.31
Collins setting 187.72
Enju with conversion86.82
Stanford lexicalized parser86.41

Enju’s labeled precision on section 23 is 87.18 and its labeled recall is 86.47. The Stanford lexicalized parser has precision of 86.36 and recall of 86.47 on the same evaluation. Charniak and Johnson’s parser records 91.79 precision and 90.88 recall. The match in recall between Enju and Stanford gives some detail about their proximity in F1. The stronger precision from Enju contributes to its higher combined score, while both recover the same reported share of reference brackets.

The authors interpret these scores in light of the conversion test. Reference-tree inputs still produce bracketing discrepancies, so parser-output results combine what the parser does with what the converter can recover from its output. The authors use the scale of that discrepancy to judge whether systems look broadly comparable. Their tables give the observed scores, without an adjustment that assigns a fixed loss to Enju’s conversions.

Parser accuracy in simplified HPSG structure

On section 23∗, simplified HPSG is the evaluation target and the CFG parsers’ outputs undergo tree conversion. Enju requires only the mapping from feature structures to the simplified symbols. In this representation it scores above the unreranked Charniak parser and the Collins and Stanford systems. Charniak and Johnson’s converter-equipped reranking parser still scores highest.

Parser comparison on section 23∗, labeled bracketing F1 in simplified HPSG

The reranking parser retains the lead when its output is converted and Enju is evaluated in its own simplified representation.

Parser comparison on section 23∗, labeled bracketing F1 in simplified HPSGCharniak and Johnson reranking parser with conversion (this paper): 91.37Charniak and Johnson reranking parserwith conversion (this paper)91.37Enju: 90.54Enju90.54Charniak parser with conversion: 90.02Charniak parser with conversion90.02Collins setting 3 with conversion: 88.58Collins setting 3 with conversion88.58Collins setting 1 with conversion: 88.54Collins setting 1 with conversion88.54Collins setting 2 with conversion: 88.53Collins setting 2 with conversion88.53Stanford lexicalized parser with conversion: 88.08Stanford lexicalized parser withconversion88.08
The numbers
System or settingF1
Charniak and Johnson reranking parser with conversion (this paper)91.37
Enju90.54
Charniak parser with conversion90.02
Collins setting 3 with conversion88.58
Collins setting 1 with conversion88.54
Collins setting 2 with conversion88.53
Stanford lexicalized parser with conversion88.08

Enju’s labeled precision is 90.79 and recall is 90.30 in simplified HPSG on section 23∗. For Charniak and Johnson’s parser after conversion, the corresponding values are 91.44 and 91.31. Charniak’s parser has 90.07 precision and 89.97 recall after conversion into the same representation. This scoring view matters because it changes which systems depend on the converter and changes the set of brackets being sought. The reranker’s lead is observed even when both of those conditions move away from the conditions of the Penn Treebank-style comparison.

The result also puts Enju’s higher placement in the simplified HPSG comparison into context. Its score is now based on matching the grouping and labels of Enju-derived reference trees, and the sentence set is limited to the shared portion. Its absolute score in that table therefore describes success at a different task from its absolute score in the Penn Treebank table. The most direct comparisons are between systems within a given representation and split.

Accuracy of the extracted dependencies

On section 23, unlabeled dependencies extracted from the Penn Treebank-style outputs yield accuracy of 93.66 for Charniak and Johnson’s reranking parser and 92.50 for Charniak’s parser. The Collins settings report 91.15 for 3, 91.12 for 2, and 90.66 for 1. The Stanford lexicalized parser scores 90.91, and Enju after tree conversion scores 90.77. In this view the reranker again leads, while Enju scores close to Stanford and the Collins settings. The Stanford and Enju order differs from their order under Penn Treebank-style bracketing F1.

The dependency results show how the choice of measurement changes what counts as an error. When two bracketings produce the same head for a modifier, they receive the same credit for that word in the dependency evaluation. A bracketing difference that changes the chosen head remains visible. The authors use this property to look past some of the conversion effects and compare specific attachment decisions. Together with the reference-tree conversion figures and the two bracketing evaluations, the dependency scores support their broad placement of Enju alongside Collins and Stanford. They also motivate a more focused investigation of where Enju and Charniak’s parser disagree.

What the ablations show

What the comparisons isolate

The paper offers no component-by-component ablation of the converter or parsers. Its analyses instead vary the source of the trees, the evaluation representation, and the class of decisions counted as errors. Each comparison puts a different part of the overall result under examination.

The reference-tree experiment probes the converter independently of a parser’s sentence-level decisions. Its bracketing and crossing measurements show that a large share of the structural differences between the paired annotations can be resolved by the learned mapping. This is especially relevant to the choice of tree fragments. The article-attachment example establishes that some mappings require replacing a connected region of structure. The reduction in crossing brackets shows that the completed system can accommodate such mismatches on held-out reference trees. The experiment leaves open how much each individual preprocessing choice contributes to that outcome.

The reverse-direction comparison changes which parser outputs are translated. It shows that Charniak and Johnson’s lead persists when its trees have to be converted and Enju’s do not. It also shows how much the placement of some other systems depends on the representation. Enju moves ahead of the unreranked Charniak parser in simplified HPSG. The sentence subset and definitions of the reference brackets change along with the conversion direction, so the change in ranking cannot be turned into a numerical estimate of the effect of translation alone.

The unlabeled dependency comparison changes the unit being evaluated. Each counted decision concerns a word’s head, and several distinct phrase structures can give the same answer. The overall dependency evaluation asks how often each parser selects the reference head. The error analysis asks a more local question: when systems differ, are there particular combinations of modifier and head types for which one of them succeeds more often?

Compare attachment errors on the same tokens

The authors compare Enju with the unreranked Charniak parser for this analysis on Penn Treebank section 22. They describe a potential ambiguity using the type of the modifier, the type of its true head, and the type of a word that could be picked in error. The paper denotes these types by tₘ, t꜀, and t𝓌, respectively. Types come from the reference part-of-speech tags. A tagging mistake by a system can therefore help cause an attachment error without also changing the reference category used to classify that error.

A prepositional attachment provides the example. Take a preposition whose head in the reference is a noun. An error that attaches it to a verb places it in a different grammatical relation to the surrounding sentence. Collecting such cases gives a way to ask which parser more frequently gets that decision right. The authors approximate the set of tokens where the ambiguity arises by selecting tokens with the specified modifier and true-head types for which either parser predicted a wrong head of the specified competing type. The observed outputs thus help define which tokens are examined.

McNemar’s test is used because the observations are paired. Each parser makes a prediction for the same token. To determine which parser has more difficulty with a type, the test uses the cases where one parser gets the head wrong and its partner gets it right. Cases where both behave the same way supply no directional evidence in that comparison. The table gives counts for errors made only by one parser and also gives that parser’s total wrong predictions in the selected group. Keeping those counts distinct matters because some groups include errors shared by the systems.

The authors list the types with the smallest p-values. The p-values describe evidence of an imbalance between the systems for those selected types. The counts give the direction of the imbalance. For example, in the group with a noun modifier, a verb as the reference head, and a noun as the competing type, Enju alone is wrong on 69 tokens and Charniak alone is wrong on 30. The total wrong counts within the group are 94 for Enju and 55 for Charniak, and the reported p-value on section 22 is 1.34e-4. The table also includes a group with the imbalance in the other direction. For a CD modifier, a CD reference head and an IN competitor, Enju alone is wrong on 0 tokens and Charniak alone on 11, with a reported p-value of 2.57e-3. The paper’s detailed explanation focuses on the root errors.

Trace the root errors to the tagging stage

The strongest reported root-related comparison concerns a token with reference tag VB that should be the sentence root but is assigned a noun head in the error type. On section 22, Enju alone is wrong on 20 of the selected tokens, and Charniak alone is wrong on 1. Their respective total counts in that group are 20 and 1, and the reported p-value is 8.57e-5. Another root-related group has an NN modifier with a VB reference head and an erroneous root assignment as its competing type. There Enju alone is wrong on 14 tokens and Charniak alone on 0. The total counts are 14 and 0, and the reported p-value is 5.12e-4.

The two patterns capture related ways a sentence can end up with the wrong root. The first starts with a verb whose correct role is to head the sentence. The second starts with a noun that should depend on a verb but is incorrectly treated as the root. Either error can follow when the system misidentifies the part of speech of the main verb. The paper gives costs as an example of a word that the tagger can treat as a noun when it functions as the main verb. Once that tag has been fixed, the verb can lose the analysis that would make it the root. The resulting tree can give that role to the subject.

By inspecting Enju outputs, the authors trace nearly all the Enju root-identification errors of the types they discuss to mistakes in tagging. Their explanation is architectural: Enju’s tagging stage is separate from parsing, so the structural decision is made with the tags already assigned. The paper notes that earlier work had identified this weakness. Its contribution here is to find the weakness through a comparison with another parser and to show where it appears in the shared dependency measurements. The result gives a concrete explanation for part of the performance difference, while the other low-p-value groups remain leads for further inspection.

Limitations

Limits identified by the authors

The shared phrase format deliberately retains a narrow part of an analysis. Long-distance dependencies can relate material across intervening structure, and the simplified tree omits the devices used to make some of those relations explicit. The control–raising distinction is also outside the direct representation. Both constructions can involve an understood subject in an embedded expression, while the grammatical connection of that subject to the higher expression differs. A comparison that counts the labels and spans of shallow constituents leaves such distinctions unresolved.

The authors connect this loss to the intended audience for the evaluation. A parser developer can use bracketing accuracy as evidence about structural disambiguation. An application developer may care about dependencies or semantic distinctions that the common tree leaves implicit or discards. Even the word-to-word evaluation begins with structure extracted from the shallow tree. Its accuracy describes recovery of the chosen unlabeled head links. The paper leaves the relationship between those scores and application success unmeasured.

The authors also identify a limit in the grammar’s ability to express transformations. They give the example of a list whose structure branches to the right in one analysis and to the left in the other. The extracted STSG cannot express the general conversion for lists of arbitrary length. A particular list or a bounded pattern can appear inside a paired fragment, but the two shapes supply too few matching internal spans to support the desired transformation in full generality. The authors suggest combining learned conversion with programmatic changes to handle cases of this kind. The reported experiments evaluate the synchronous converter and its back-off mechanism.

The decoding objective is another explicit qualification. The target returned is the one associated with the highest-probability derivation found for the input. If many derivations yield the same target, their total probability could favor a different target tree. The paper motivates the chosen objective by the difficulty of maximizing the summed probability. The experiments assess the converter operating with that choice, and provide no comparison with a decoder that optimizes the summed objective.

Limits visible in the experimental setup

The accuracy check for conversion uses reanalyses created from the same underlying Penn Treebank annotation. The original trees guide the creation of the HPSG treebank, and the conversion grammar is then learned from pairs of those original and derived trees. The test split holds out sentences, so the evaluation measures whether the learned correspondences carry over to held-out pairs produced by this process. Conversion between independently annotated resources could present a different range of discrepancies. The paper describes its method as applicable to manually developed grammars, with experimental evidence centered on Enju’s treebank-derived grammar.

Coverage also matters. The gold conversion results are available on section 23∗, where both reference trees exist. The Penn Treebank-style parser comparison includes the whole of section 23, while the simplified HPSG comparison uses the covered subset. Neither evaluation on its own determines how much a difference across those tables comes from the sentence selection, the target brackets, or the burden of conversion. For the same reason, differences in absolute F1 between those tables should be read within their respective evaluation conditions.

The clean-input conversion test establishes a scale for errors from conversion. It leaves open how the converter behaves on every kind of erroneous parser output. An incorrect source bracket might survive the conversion and count as a target error. The converter could also introduce an extra mismatch, or render a source difference invisible in the simpler target representation. The rarity of failures on reference input therefore provides grounds for the authors’ broad comparisons without supplying a universal correction for individual parser scores or errors.

The preprocessing and back-off results are also joint outcomes. The paper gives directions, settings, and measurements for the complete systems. It does not report runs that separately remove comma raising, special treatment of not, base noun phrase labels, or the direction-specific patterns of binarization. The back-off percentages identify how frequently the first grammar fails to supply a derivation. They do not measure the accuracy of back-off trees as a separate group or establish which change would be most effective for improving coverage.

Finally, the detailed error analysis concerns Enju and Charniak on section 22, the development section. Its groups are selected partly through wrong heads already predicted by one of the two systems. The reported p-values rank the contrasts found under that selection procedure, and the paper gives no adjustment for examining multiple types. The inspection of root errors supplies a specific account of the errors seen in Enju’s output. It does not quantify the improvement that a different tagging arrangement would yield, since the authors did not run that intervention, or establish that a specific grammar framework causes the difference.

What came after

The paper identifies a possible extension in which programmed transformations could handle structural changes that the learned grammar cannot express generally. It also leaves several of the attachment contrasts from its diagnostic analysis open for further investigation. These are directions the authors identify themselves. There are no documented follow-up studies to discuss here.

Cite

Cite as Takuya Matsuzaki and Jun'ichi Tsujii. 2008. Comparative Parser Performance Analysis across Grammar Frameworks through Automatic Tree Conversion using Synchronous Grammars. Proceedings of the 22nd International Conference on Computational Linguistics (Coling 2008).

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

@inproceedings{matsuzaki2008comparative,
  title = {{Comparative Parser Performance Analysis across Grammar Frameworks through Automatic Tree Conversion using Synchronous Grammars}},
  author = {Takuya Matsuzaki and Jun'ichi Tsujii},
  booktitle = {Proceedings of the 22nd International Conference on Computational Linguistics (Coling 2008)},
  year = {2008},
  doi = {10.3115/1599081.1599150},
  url = {https://doi.org/10.3115/1599081.1599150}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/matsuzaki-2008-comparative-parser-performance-analysis-across/