Comparing the Accuracy of CCG and Penn Treebank Parsers
Paper · 2009 · Stephen Clark and James R. Curran
Summary
Two parsers can analyze the same sentence and produce trees that express its syntax in different ways. To compare their accuracy, researchers need a scoring procedure that can tell an error in the analysis from a difference in how the analysis is written down. Stephen Clark and James R. Curran examine this problem by comparing their Combinatory Categorial Grammar (CCG) parser with the Berkeley parser, which produces Penn Treebank (PTB) phrase structures directly. The two systems draw on the same original collection of Wall Street Journal sentences. That shared source makes the comparison appealing and gives the authors a way to measure what happens when an analysis crosses from one format to the other.
The authors translate CCG derivations into PTB trees with rules that act on words and small pieces of a derivation. They develop the rules by inspecting paired analyses in section 00 and reserve section 23 for testing. To measure the loss due to conversion, they start with reference analyses from CCGbank and score the resulting trees against the corresponding PTB references. On all of section 23, even these reference inputs yield a bracketing F-score of 94.40. The converter recovers a complete match on 39.93% of that section. Differences in tree shape and missing PTB labels make conversion considerably more demanding than relabeling nodes.
The direct comparison therefore uses the 961 sentences in section 23 for which converting the reference CCG derivation gives a complete match under the scoring procedure. With reference part-of-speech tags, the CCG parser scores 93.83 in bracketing F and Berkeley scores 93.38. With automatically assigned tags, the CCG parser scores 92.86 and Berkeley scores 93.37. The reported difference is statistically nonsignificant at p=0.05. Sentences in this subset average 18.1 words, compared with 21.4 words in the standard comparison set of sentences with 40 words or less.
The CCG parser is competitive with Berkeley on that subset. Its measured scores on the full test section, 86.36 with reference tags and 85.50 with automatic tags, also reflect errors introduced by the conversion. The authors estimate that with perfect conversion the scores could be 91.20 and 90.29, respectively. Those figures are projections whose interpretation depends on how well the parser handles sentences that are harder to convert. The broader finding concerns the benchmark itself. When one system must reproduce the annotation conventions of another through an imperfect mapping, even a common corpus and a common score can leave the accuracy comparison unresolved.
Deep dive: Comparing the Accuracy of CCG and Penn Treebank Parsers
A comparison of CCG and Penn Treebank parsers shows how converting syntax trees affects accuracy scores and where the two systems perform comparably. · about 31 minutes to read
The problem and its context
Different answers to the same parsing task
In parsing, a system assigns a grammatical analysis to a sentence it receives as input. A phrase-structure tree describes the analysis in terms of nested groups of words, called constituents. The label on a constituent says what sort of phrase or clause the group forms. For example, a noun phrase can itself sit inside a larger clause. A treebank provides sentences paired with human-established reference analyses, so an evaluator can compare a parser's output with an expected structure. The comparison depends on what that resource asks its annotators to mark, how it defines constituent boundaries, and which labels it uses for those constituents.
The paper describes an established line of statistical work in which the target was the Penn Treebank's phrase structure for unseen Wall Street Journal sentences. The parser had to predict the grouping and labeling conventions of the resource from which the task was defined. The authors cite Collins as a formative example. Evaluation used the Parseval metrics, which reward agreement between the labeled constituents in a parser's tree and those in the reference tree. The Berkeley parser comes from this line of work. Its native output can be scored against PTB trees with the same procedure used to evaluate other parsers designed for the task.
A separate line of work began with a linguistic formalism that specifies how grammatical analyses can be built. The grammar could be written by hand or recovered from a treebank prepared for that formalism. The authors give examples from HPSG, LFG, TAG and CCG. In this tradition, an evaluation might check the relationships between predicates and their arguments, such as a verb and the phrases that fill roles required by it. It might instead check a set of manually annotated grammatical relations. The paper cites a Wall Street Journal parsing study using Lexical-Functional Grammar as an example of formalism-based work.
A constituent and a grammatical relation answer different questions about the same sentence. A constituent records which words form a group and gives that group a category. A grammatical relation identifies the grammatical connection between elements. A predicate can have an argument whose relationship to it is important even when the phrase structures used by different formalisms place that argument in different configurations. Consequently, a score on grammatical relations and a score on PTB constituents describe different aspects of the outputs. The paper focuses on systems that produce phrase structure in some form and sets aside dependency parsing as a separate approach.
The two phrase-structure traditions had substantial research of their own, but the authors saw little direct comparison between them. The Berkeley and CCG parsers offered a particularly close pairing. CCGbank was built from the Penn Treebank, so there is a corresponding analysis of the same sentence in each representation. The interesting question is what effect that change of representation has on the accuracy a parser can achieve. A direct comparison requires choosing what the systems should agree about and checking how much of that information survives when the outputs are put into a shared form.
Why it is hard to go back to the original trees
It is tempting to treat the construction of CCGbank as a change of notation. Under that interpretation, reversing the original transformation would recover the PTB tree for each sentence, and the same reversal could be applied to a CCG parser's output. The paper explains why the source relationship between the corpora does not make the reverse transformation straightforward. CCGbank reorganizes some constructions as part of representing them in CCG, and the resulting derivation can have a different arrangement of branches from the corresponding PTB tree. A conversion that leaves the branches where they are and changes the labels will miss those differences.
Coordination and control are examples the paper names. Coordination joins expressions such as phrases or clauses into a larger construction. Control involves an understood participant in a clause whose interpretation depends on an element elsewhere in the sentence. Both constructions can give rise to differently shaped trees in the two resources. This matters because a constituent scorer examines the span under a node as well as the node's label. Even a label that is appropriate in isolation can produce a mismatch when its node groups the wrong span for PTB purposes.
Differences in the available labels pose a separate problem. PTB includes QP, a label for a quantifier phrase, and CCGbank does not contain that label. A converter has to identify the places where the PTB uses QP, insert the node, and give it the appropriate coverage over the words. It cannot recognize those places by looking for a CCGbank node already called QP. Shared provenance supplies paired examples for studying the problem. It does not by itself specify how to infer a target distinction from the structure of the source derivation.
These two difficulties can occur together. A target grouping may require a new parent and a rearrangement of the subtrees that go beneath it. A correct CCG analysis can therefore produce an incorrect PTB bracket when the mapping is incomplete. Scoring only the finished tree gives no direct indication of whether the bracket was lost during parsing or during conversion. That possibility is consequential in a line of work where small changes in Parseval scores are used to distinguish systems.
Earlier attempts at a common evaluation
Earlier work had already translated parsers' usual outputs into other representations to make comparison possible. Clark and Curran's earlier CCG evaluation translated reference CCG derivations into the grammatical relations used by DepBank. Starting with reference derivations led to an F-score of only 85% on that relation benchmark. As the authors interpret it, the evaluation procedure itself imposed a substantial limit on the score attainable by recovering the intended CCG analyses. The difficulty with conversion therefore arose before the present effort to recover PTB constituent trees.
The authors also discuss Matsuzaki and Tsujii's comparative parser analysis with synchronous grammars. That work used an HPSG grammar extracted from the PTB and learned to convert HPSG analyses into Penn Treebank structures. A synchronous grammar describes corresponding pieces in a source and target representation, so it can learn how trees in one format should translate into trees in another. This treatment makes correspondence between representations part of the task to be learned. Clark and Curran take a manual approach for CCGbank, attaching conversion instructions to categories and local pieces of its derivations.
The two precedents help distinguish the goals of the paper. The parser comparison asks how accurately each system can reproduce PTB phrase structure when scores are comparable. The conversion study asks how far the PTB can serve as a shared reference when systems were built to make different grammatical distinctions. A shared measure is valuable because it lets researchers inspect agreement on the same task. Its suitability depends on how much of that agreement the evaluation can recover from each system's usual representation.
The method, step by step
What the converter starts with
A CCG derivation shows how parts of a sentence combine. At the bottom are lexical categories, categories assigned to individual words. A category can describe a self-contained phrase, or it can describe an expression that is still looking for something to combine with. As the derivation proceeds upward, a rule can combine neighboring expressions or recategorize a single expression. Each interior step records the category that results. The converter uses that record to decide which Penn Treebank nodes to build and how to join the pieces it has already built.
The Berkeley parser already produces a tree in the format needed for scoring, so it takes a shorter route through the experiment. The CCG parser produces a derivation that must pass through the converter before the two outputs can be judged by the same scorer. The authors also run a separate experiment in which they bypass CCG prediction and feed the converter reference derivations from CCGbank. These two uses of the same converter give distinct measurements. The reference run evaluates the transformation, while the parser run evaluates the result of predicting and then transforming a derivation.
The authors considered putting most of the conversion information in the lexicon. In that design, a lexical category would come with a small PTB tree. As CCG combined categories, the corresponding small trees would be joined into a larger tree. The paper compares this design to the use of elementary trees in lexicalized Tree Adjoining Grammar. It instead adopts a design in which conversion depends on local trees in the derivation. A local tree gives the immediate parent and its child or children. This lets the converter use the categories involved in a particular combination when deciding how to construct the target phrase.
There is still a lexical component. The word and its category give the converter a place to begin, and a lexical instruction can contribute a PTB node immediately. The local rules then determine what to do when the derivation moves beyond that word. This division matters for a construction whose final PTB grouping depends on the phrase a word combines with. The lexical instruction can leave the target unwrapped at that point, and the surrounding rule can decide how to attach it once both relevant pieces are available.
From a CCG derivation to a scored PTB tree
The steps in order.
Reading the categories
The paper's examples use slashes to express the direction in which a category looks for an argument. An example from its lexical rules is the category used to introduce a verb phrase for a transitive verb.
(S[dcl]\NP)/NP
S denotes a sentence category. The brackets mark a feature on that category, and dcl identifies the declarative form. NP is a noun phrase. In an expression with a forward slash, /, the category on the right is the argument sought to the right, and the category on the left is the result. A backslash, \, specifies that the argument is sought on the left. The parentheses group the category to the left of the outer slash. Here a noun phrase to the right fills the object position, leaving a category that can combine with a noun phrase to its left to produce a declarative sentence. The corresponding lexical schema introduces a PTB VP, or verb phrase, node.
For a converter, a category and the target fragment made from it have different jobs. The category states what kind of combination the CCG derivation can make. The fragment records how much of the target tree has been built at that location. In the example above, a verb can contribute a VP fragment while the CCG derivation still represents its expectation for an object and a subject. A lexical item with category NP can contribute an NP node. In other cases the category is important to the derivation and the lexical schema adds no PTB node at that word.
The determiner category illustrates the last case and shows why decisions at lexical and binary steps are related. At the lexical step, the converter has seen the determiner's category. Once the derivation combines the determiner with the noun, the binary rule has enough information to place the determiner within the noun phrase fragment. The paper shows this local combination with the following notation.
NP[nb]/N N → NP[nb]
NP stands for noun phrase and N for noun. Square brackets enclose the feature nb on the NP category, distinguishing the marked category in this rule. The slash says that the determiner combines with an N to its right to produce the marked NP. The space between NP[nb]/N and the second N separates the categories of the two daughters. The arrow → points from the combining daughters to the parent category in the CCG derivation. The paper uses the feature to identify the applicable category and does not expand the feature name in this example.
The conversion for this binary rule uses the operation >. That symbol means the left fragment is attached beneath the right fragment. The lexical instruction for the determiner introduced no extra node. At the combination step, the attachment incorporates it into the target noun phrase that is already available. The process shows how the converter can honor a PTB grouping without assigning a PTB counterpart to each intermediate node encountered in CCG.
Rules for one child and rules for two
A unary rule has a single child. Its converter receives a fragment from that child and decides whether to add structure or pass the fragment onward. The paper gives a reduced relative construction as an example of insertion. A reduced relative modifies a noun through a clause expressed without the full relative-clause wording. The conversion adds SBAR, the PTB label used here for that clause. The unary schema for the target fragment is written as follows.
(SBAR l)
The parentheses delimit a tree fragment, with the parent label first. SBAR is the new parent. The placeholder l denotes the available child fragment, which is placed under the new parent. The schema therefore adds a labeled bracket around a piece whose internal PTB structure was already assembled below this step. The converter can create a needed constituent even where the derivation combines no new words at that node.
A different kind of unary operation in CCG is type-raising. This changes how an expression can participate in subsequent grammatical combinations. The example in the paper begins with PP, a prepositional phrase. Its new category can combine with a phrase that expects a PP as a complement. The converter's action in this example is to return the child fragment unchanged at the unary step. The changed CCG category still matters for the rest of the derivation. On the PTB side there is no corresponding new constituent to add there. This is the counterpart of the reduced-relative case, where a unary step does call for a new target bracket.
A binary rule receives fragments corresponding to left and right daughters. It can put a parent above both, attach one under the other, or build a more elaborate arrangement. An example occurs when a verb phrase combines with its subject.
(S l r)
The parentheses delimit the target subtree. S is the label for the newly added sentence node. The placeholders l and r refer to the current left and right fragments, respectively. In this construction the left fragment supplies the subject and the right fragment supplies the verb phrase. The operation groups them directly under S. By comparison, the determiner rule changes the structure by attaching into an existing fragment. The reverse attachment operation, written <, places the right fragment beneath the left one.
The schema notation can also put a new grouping inside another new grouping. One of the paper's binary examples combines a category that expects a declarative verb phrase on its right with the phrase that satisfies that expectation. The target schema in that example is as follows.
(SBAR l (S r))
The outer parentheses enclose the fragment headed by SBAR. The l placeholder is the fragment on the left. The inner parentheses make S a child of SBAR and place r, the fragment on the right, beneath that S. This expresses both an outer clause grouping and an inner structure for part of its content. The converter can produce that structure at a single step because the schema operates on whole fragments already constructed for the daughters.
A bottom-up pass makes each of these operations local to the current stage of the derivation. The lexical entries produce the initial fragments. A unary instruction can use the completed fragment underneath it. When a binary instruction runs, both of its inputs are already available. The converter's output at that point can then serve as an input higher up. By the time the process reaches the root, the succession of insertions and attachments has produced a candidate PTB tree for the sentence.
These operations explain why conversion quality cannot be read off from a list of equivalent labels. An inserted parent changes the set of brackets even if its daughters stay in order. Attaching a fragment below an existing node changes which words that node covers. Preserving a child through a unary step avoids a bracket that the CCG derivation might otherwise suggest. Each operation has consequences for what the evaluation will count, and a rule's effect depends on the fragments passed up from earlier steps.
How the authors develop the rules
Section 00 supplies the paired material for developing the converter. The authors manually inspect CCGbank derivations alongside corresponding PTB trees, identify lexical categories and local rule instances that need conversion instructions, and write schemas specifying the desired operations. A rule instance in this context is a particular pattern of categories at a parent and its immediate daughters. It is the pattern to which the schema applies whenever the converter encounters it. The counts in the paper describe this inventory of patterns, rather than a tally of the individual sentence occurrences that use them.
The authors write schemas for 32 unary and 776 binary rule instances, with 2853 possible instances reported for the rule inventory. They also specify lexical schemas for 162 of the 425 lexical categories. They provide general fallback cases for common CCG combinations and punctuation rules. These defaults extend coverage to most of the 2853 rule instances, including instances without an individually written schema. Coverage in this sense means the converter has a way to handle an encountered pattern. The output still has to be scored to determine whether that handling recovers the intended PTB structure.
The authors use section 00 to see where reference conversions succeed and where they disagree with the PTB. Section 23 remains uninspected while the conversion schemas are developed. Keeping it separate makes the test of the mapping more informative. A schema written after inspecting a reference disagreement in section 00 may handle that example well. A conversion on section 23 tests what the resulting rule set does when applied to a separate set of paired derivations and trees.
This development procedure concerns the converter. The CCG parser is the existing system based on CCGbank, and Berkeley is the publicly available system described in Improved Inference for Unlexicalized Parsing. The comparison runs Berkeley in its accurate mode with the settings supplied for the available version. The paper concentrates its technical detail on building and evaluating the mapping. It directs readers to the earlier parser studies for the internals of the parsing systems.
How the scores arise
The authors use EVALB to measure agreement in constituent bracketing. A bracket in this evaluation associates a category with a span in the sentence. A matching bracket agrees with the reference on the span and the category. Bracketing precision asks what share of the candidate brackets match, while bracketing recall asks what share of the reference brackets the candidate recovers. The proportions can be written as follows.
P = M / C
P is bracketing precision, M counts the matching brackets, and C counts the candidate brackets included in the comparison. The slash denotes division. In a conversion run, the candidate brackets come from the PTB tree returned by the converter. In a Berkeley run, the candidate brackets come from Berkeley's output.
R = M / G
R is bracketing recall. M again counts matches. G counts the reference brackets included in the comparison, and the slash denotes division. The two proportions answer different questions about an error. For instance, inserting an extra bracket can lower precision even if the candidate recovers the appropriate reference brackets elsewhere in the tree.
F = 2 × P × R / (P + R)
F is the bracketing F-score. P and R are precision and recall on the same scale. The multiplication signs combine them with the constant 2, and the parentheses group the sum used as the denominator. Taking the harmonic mean of precision and recall gives this value. The experiments also report complete sentence matches for the conversion of reference derivations. That measure asks whether all scored brackets agree for a sentence. An isolated discrepancy can make a sentence fail the complete-match check while leaving many of its individual brackets correct.
The reference-input evaluation is called an oracle conversion. The oracle supplies the intended CCG derivation, taking the CCG parser's predictions out of the pipeline. The converter still has to produce a candidate PTB tree using its fixed rules. Disagreement in this run gives the authors a way to study how much of the target annotation their mapping can recover when it starts from the intended source analysis. It also lets them define subsets by the quality of reference conversion before examining which parser performs better.
On those subsets, the parser experiments report results with gold and automatic part-of-speech tags. A part-of-speech tag describes a word's grammatical class. Gold tags are the reference tags supplied for the words, whereas automatic tags are assigned by a system. Neither condition supplies the parsers with a complete reference derivation. The oracle comparison supplies that derivation to determine which sentences can be converted cleanly, and the parser comparisons score predictions on the sentences selected that way.
Experiments and results
Measuring the conversion before comparing the parsers
The oracle experiment pairs CCGbank derivations with PTB references for sections 00 and 23. The authors report results for the full sections and for sentences with 40 words or less. This latter condition is a standard way of reporting Parseval results in the work they discuss. It provides a point of comparison for the way sentence length figures in the later selection of sentences suitable for a direct parser comparison.
For all of section 00, converting reference CCG derivations gives a bracketing precision of 93.37, recall of 95.15 and F-score of 94.25. The percentage of complete sentence matches is 39.68. On the section 00 sentences with 40 words or less, the corresponding precision is 94.11, recall is 95.65 and F-score is 94.88, with 42.11% complete matches. Precision and recall can be high across brackets while complete matches remain less common. Many converted trees can be close to their references even when the mapping leaves a discrepancy somewhere in the sentence.
For all of the held-out section 23, precision is 93.68, recall is 95.13 and bracketing F is 94.40. EVALB finds complete matches for 39.93% of the sentences. For section 23 sentences with 40 words or less, precision is 93.75, recall is 95.23 and F is 94.48, with 42.15% complete matches. The section-wide scores identify a problem for the intended comparison. Even when the input is a reference derivation, the converter does not reproduce enough of the PTB annotation for the authors to regard a full-section parser ranking as fair.
Reference CCG conversion to PTB trees across sections and sentence lengths
The strongest oracle F-score comes from the development section under the sentence length limit.
The numbers
| System or setting | F1 |
|---|---|
| Section 00, all sentences | 94.25 |
| Section 00, length ≤ 40 (this paper) | 94.88 |
| Section 23, all sentences | 94.40 |
| Section 23, length ≤ 40 | 94.48 |
The conversion result has a different interpretation from the same score on normal parser output. In the oracle run, the authors already know the CCG derivation that the parser is intended to recover. They can attribute the remaining disagreement to what happens in passing from that reference analysis to the PTB target under the chosen mapping. In the parser run, disagreement can originate in the choice of derivation as well. This distinction motivates the search for sentences on which the oracle conversion has full agreement.
The development subsets
The development comparison covers only the CCG parser. Of the 1913 sentences in section 00, 759 qualify for the exact-conversion group, or 39.7% in the parser results. The aggregate oracle F-score for this group is 100.00. When the parser predicts a derivation for these sentences, the resulting converted trees score 94.19 in bracketing F with gold tags and 93.41 with automatic tags. This is a measurement of predictions on the selected sentences. Perfect reference conversion does not supply the parser with the correct derivation or give it an automatic match.
The authors also allow some reference-conversion loss by broadening the sample. At the table's oracle F threshold of 95, section 00 includes 1164 sentences, or 60.8% of the section, with a bracketing F of 98.49 for conversion of reference derivations. Actual CCG parser F is 91.08 with gold tags and 89.93 with automatic tags. At the oracle threshold of 92, the sample includes 1430 sentences, or 74.6% of the section. The reference-conversion F-score is 97.41, while the CCG parser's measured F-scores are 89.73 with gold tags and 88.47 with automatic tags.
On all of section 00, the CCG parser scores 87.00 with gold tags and 85.60 with automatic tags. The associated reference-conversion result is 94.25. The subset results give context for the full-section measurements. The sentences on which the mapping recovers everything in the scoring target are also a set on which the CCG system obtains higher observed accuracy. As the selection admits sentences with more conversion loss, the comparison encompasses a broader part of the section and loses the ability to attribute every bracket disagreement clearly.
The paper provides projections for the broader development samples as well. At the oracle threshold of 95, the projected CCG F-scores are 92.46 with gold tags and 91.29 with automatic tags. At the threshold of 92, they are 92.05 and 90.76. On the full development section, they are 92.00 and 90.52. Each projection estimates what CCG performance might look like if the conversion could recover the intended target structure for the sentences entering that sample. The actual scores come from scored trees. The projected ones express a conditional estimate about the score under improved conversion.
The comparison on held-out sentences
The paper's direct comparison uses exact reference conversion on the held-out section 23. This leaves 961 sentences from a total of 2407. The test results report the selected group as 39.9% of the section, and the reference-conversion F-score on it is 100.0. The selection rule uses the reference derivations and corresponding PTB trees. It does not need to look at the relative success of CCG and Berkeley predictions to decide which sentences belong in the comparison.
On these selected sentences, Berkeley attains 93.38 in bracketing F with gold tags and 93.37 with automatic tags. The CCG parser attains 93.83 with gold tags and 92.86 with automatic tags. CCG has the higher observed score with reference tags, and Berkeley has the higher observed score with automatic tags. The paper reports that the score difference is statistically nonsignificant at p=0.05 using Dan Bikel's stratified shuffling test. The result supports comparable performance on the selected data, with the direction of the numerical comparison depending on the tagging condition.
Parser bracketing F on the exact-conversion subset of section 23
CCG scores higher with gold tags and Berkeley scores higher with automatic tags.
The numbers
| System or setting | F1 |
|---|---|
| Berkeley, gold tags | 93.38 |
| CCG, gold tags (this paper) | 93.83 |
| Berkeley, automatic tags | 93.37 |
| CCG, automatic tags | 92.86 |
The shared criterion on this subset is straightforward. The target tree contains the same scored brackets as the converted reference CCG analysis. The converter can therefore recover the reference PTB structures on these sentences if the parser supplies the intended analyses. From Berkeley's point of view, evaluation remains the ordinary comparison of its output against the PTB reference. From the CCG parser's point of view, its output still goes through the converter, with the oracle check supplying evidence that a completely matching result is available.
The authors investigate whether this exact-conversion group consists mainly of unusually short and easy sentences. Its mean length is 18.1 words. They compare that value with the mean of 21.4 words for sentences with 40 words or less, the standard length-limited comparison set they discuss. They regard the length figures as support for the practical relevance of the comparison. At the same time, the result they measure comes from choosing by conversion success. A sentence's length is one characteristic of that selected group.
Broader test samples and the full section
At the oracle F threshold of 95, the test sample contains 1401 sentences, or 58.2% of section 23. Reference conversion achieves an aggregate F-score of 98.61 there. Berkeley F is 91.66 with gold tags and 91.63 with automatic tags. The observed CCG scores are 90.82 and 89.84 in the same conditions. The CCG projection for this sample is 92.08 with gold tags and 91.09 with automatic tags. In this sample, the oracle already shows some loss for the CCG route, so the authors present the comparison alongside that evidence about the converter.
Admitting sentences down to the oracle F threshold of 92 brings the test sample to 1733 sentences, or 72.0% of the section. Reference-conversion F is 97.44. Berkeley obtains 91.01 with gold tags and 90.88 with automatic tags, while actual CCG F is 89.53 and 88.54. The CCG projections are 91.82 with gold tags and 90.81 with automatic tags. The scores on this broader sample describe performance under a progressively less restrictive selection condition. They also combine progressively more sources of disagreement in the CCG output.
On the entire test section, Berkeley F is 89.67 with gold tags and 89.47 with automatic tags. Actual CCG F is 86.36 with gold tags and 85.50 with automatic tags. The full-section CCG projections are 91.20 and 90.29, respectively. The oracle F-score of 94.40 accompanies those results. Reading the actual and projected columns together shows how the evaluation problem persists on the full section. The observed CCG scores include loss admitted by the converter, and the higher projections depend on assumptions about how much of that loss a perfect conversion would remove.
Measured and projected parser bracketing F on all of section 23
Berkeley leads the measured comparison while the CCG projections put CCG ahead under both tagging conditions.
The numbers
| System or setting | F1 |
|---|---|
| Berkeley, gold tags | 89.67 |
| CCG measured, gold tags (this paper) | 86.36 |
| CCG projected, gold tags | 91.20 |
| Berkeley, automatic tags | 89.47 |
| CCG measured, automatic tags | 85.50 |
| CCG projected, automatic tags | 90.29 |
The projections answer a question the observed comparison cannot settle. They ask how high the CCG scores might be if a successful conversion extended to sentences where the present mapping falls short, under the paper's assumption that the parser would retain its accuracy on sentences that cannot be converted successfully. The authors expect that assumption to favor CCG because the harder-to-convert sentences may also be harder to parse. The exact-conversion subset remains the evidence behind the comparative accuracy claim. The wider samples quantify what happens as more of the test section is included under weaker guarantees about the mapping.
What the ablations show
Isolating conversion from prediction
The paper reports no component-removal ablation of the converter. Its controlled comparisons instead vary whether the converter receives reference or predicted derivations, which sentences count toward scoring, and whether the parsers receive gold or automatic tags. It also checks sentence length to help interpret the selected test sample. These analyses address the sources of uncertainty in the benchmark. The examples of lexical, unary and binary schemas explain what each type can do, while the experiments assess their combined effect.
The reference-input control is the clearest separation of causes. In section 23, feeding the converter the intended CCG analyses gives an F-score of 94.40. That run does not depend on the parser's ability to select lexical categories and combinations for a sentence. The remaining discrepancy establishes that the conversion pipeline alone is capable of producing substantial disagreement with the PTB. The comparison with parser outputs shows performance when both prediction and conversion are in play, but it does not identify a fixed penalty that could be taken off every observed CCG score.
One reason is that different derivations can give the converter different local structures to work with. A predicted analysis might invoke a schema different from the one used for the reference analysis. Its eventual brackets can then agree or disagree with the PTB for reasons specific to that prediction. The oracle analysis sets a reference point by asking what the mapping does on the intended derivations. It does not label every error in the predicted trees as originating in one stage or the other.
The oracle experiments also compare conversion on all sentences with conversion on sentences under the standard length cutoff. On section 23, reference-conversion F is 94.40 on the entire section and 94.48 under the cutoff. The complete-match share rises from 39.93 to 42.15. On section 00, the corresponding all-sentence and length-limited F-scores are 94.25 and 94.88. These comparisons show what the standard restriction achieves in this setting. The mapping remains lossy across a substantial portion of the length-limited data, so a commonly used sentence-length restriction alone does not supply the condition needed for the direct comparison.
Relaxing the selection criterion
The nested samples give a different view of conversion difficulty. The exact subset admits sentences whose converted reference matches everything EVALB checks. The threshold samples admit increasing amounts of reference-conversion loss. As the samples broaden, their aggregate oracle F-scores fall and the observed CCG F-scores also fall. The results show the cost of extending the evaluation with the available converter. They do not measure how much a particular schema type, or a particular revision to the converter, would recover.
Berkeley's results on those same samples help clarify what the changes in the CCG columns mean. In the gold-tag test condition, Berkeley moves from 93.38 on the exact group to 91.66 at the oracle threshold of 95, then to 91.01 at the threshold of 92 and 89.67 on the full section. Berkeley goes straight to the PTB scoring stage, so the change in its scores cannot be explained by CCG conversion errors in its output. The samples differ in difficulty for the direct PTB parser as well. For CCG, a change across rows can therefore reflect changes in the difficulty of prediction and changes in how faithfully the mapping recovers the target annotation.
This is why the broader rows cannot serve as experiments in which the authors hold the sentences fixed and switch a converter component on or off. Changing the cutoff changes the sentences being scored. It admits additional constructions and contexts together with more conversion loss. The analyses show how well each system does under each observed condition. They leave the separate contributions of sentence difficulty and conversion difficulty unresolved where both change together.
The projected values use those broader samples to explore a hypothetical converter that would recover the PTB structures without the observed loss. The projections remain higher than the measured CCG values in those rows. This shows how the conclusion one might draw from the full-section ranking depends on how one treats the conversion errors. It cannot show that changing the converter would bring about the exact projected scores, because the authors do not test a converter that satisfies the hypothetical condition.
Changing the tagging condition
The gold and automatic tag comparisons vary the information the parsers use about the words. On the exact-conversion subset of section 23, the CCG score with gold tags is 93.83 and the score with automatic tags is 92.86. Berkeley obtains 93.38 and 93.37 in those conditions. The CCG parser shows a larger observed change between conditions on that subset. The direction of the observed parser ranking also changes. This makes it important to identify the tagging condition whenever the comparison is quoted.
The tagging comparison does not locate the individual tagging errors that lead to parser disagreements. The reported F-scores are for final trees, and the experiments do not break those scores down by tag error, construction or conversion schema. The results establish how each complete pipeline behaves with each kind of tagging input. They support reading the gold-tag and automatic-tag runs as distinct views of performance rather than treating one score as an unconditional property of the parser.
Checking the role of sentence length
The length analysis responds to a specific concern about which sentences survive exact conversion. If the converter did well almost exclusively on very short inputs, comparable F-scores there would say less about ordinary PTB evaluation. The authors' comparison of mean lengths places the selected set against the standard length-limited set. The exact set averages 18.1 words, and sentences within the standard cutoff average 21.4. This comparison gives readers a scale on which to assess the concern and is the basis for the authors' judgment that the result is informative.
The Berkeley scores supply complementary evidence. Its observed F is higher on the exact-conversion group than on the larger groups, consistent with the authors' concern that the chosen sentences are easier. The length comparison indicates how much shorter the selected group is in terms of its reported mean. Since the sample is chosen by convertibility, constructions that the schemas handle well are also more likely to appear there. The paper's controls address the comparability of scores within that sample more directly than they address how well the sample represents all of section 23.
Limitations
Limits identified by the authors
The authors identify the imperfect conversion as the chief limit on the full-test comparison. Even the intended CCG derivations recover less than 95% in bracketing F on the complete test section. Their concern is tied to how Parseval scores are used. A field that treats changes of a few tenths of a percentage point as meaningful needs to account for a mapping that can change scores on a larger scale. The reference-conversion result is a measure of that problem for the converter they built. It also explains why their strongest parser comparison uses fewer sentences than the full benchmark.
They make the same point about the stronger conversion reported in the earlier HPSG work. An upper bound of around 98% still allows a loss consequential for ranking parsers by small score changes. They leave open why the earlier HPSG mapping recovers more of the PTB. The source analyses may be structurally closer to the PTB, the learned conversion method may be more effective, or both factors may matter. The study does not apply the learned approach to CCGbank, so its findings do not establish which factor accounts for the difference between the two studies.
The authors also acknowledge the concern that exact conversion selects shorter, possibly easier sentences. They argue from the reported means that the subset remains informative. Their full-section projections carry a related assumption. They approximate the scores CCG might obtain if the system could sustain its accuracy when processing the sentences the converter handles less successfully. The authors judge these estimates likely to be optimistic because difficulty in conversion may accompany difficulty in parsing. The projections therefore give the reader a sense of the possible scale of conversion loss without resolving the full-section ranking.
The study's purpose is comparison against a PTB parser. The authors point to grammatical relations and predicate–argument structures as plausible evaluation targets for the CCG system in its own right. They also leave open how well PTB parsers would fare if evaluated using grammatical relations. The comparison is asymmetric in its choice of target. It asks CCG output to be expressed in the PTB scheme and studies the resulting accuracy. It does not run the reverse experiment with both systems judged in a relation scheme well suited to the CCG parser.
Limits visible in the study design
Perfect reference conversion is defined through the scorer. It means the converted CCGbank derivation matches the corresponding PTB tree on the scored brackets. It does not establish that the CCG and PTB representations encode all the same information. It also does not verify how the converter behaves on every alternative derivation a parser could propose for a sentence in the exact subset. The reference check establishes that the intended analysis has a successful route through the mapping. That is the condition the authors need for their comparison, with a narrower scope than general equivalence of the two representations.
The reported oracle scores likewise describe what happens when the mapping is applied to reference CCGbank derivations. The authors use that performance as an upper bound for evaluation with the existing conversion. A predicted analysis can depart from the CCG reference and still happen to produce brackets compatible with the PTB. The oracle's role is to show how well the evaluation can reward recovery of the intended CCG analysis. Interpreting it this way keeps the reference conversion distinct from an exhaustive search over every possible output the parser might produce.
Selection by exact conversion also limits the external reach of the direct comparison. The paper reports sentence length and scores on progressively broader samples. It does not report how often the exact subset includes each of the constructions that pose difficulties, such as coordination, control or quantifier phrases. The mean length cannot establish that the selected and unselected sentences have similar mixes of those constructions. The strongest comparison generalizes directly to the sample defined by the oracle criterion. Generalizing it to the whole section would require further evidence about what the excluded sentences contain and how the parsers handle them.
Finally, statistical nonsignificance at the stated threshold leaves the magnitude of the underlying difference unresolved. The result supports describing the parsers as competitive on the selected test data and under the reported scoring procedure. It does not establish equality across tag conditions, sentence types, corpora or evaluation representations. The study concerns a particular CCG parser, a particular PTB parser, and the recoverability of PTB phrase structures from one treebank conversion. Its implications for cross-framework evaluation follow from that concrete setup.
What came after
The paper leaves two continuations open. One is to test on CCG analyses the learned synchronous conversion that Matsuzaki and Tsujii had already used for HPSG. Applying that method to the same CCG source would help separate the effect of the conversion procedure from the effect of how closely the source analyses follow PTB structure. The other is to evaluate PTB parsers through grammatical relations, where the target would place different demands on each system. The subsequent outcomes of those comparisons are undocumented here.
Cite
Cite as Stephen Clark and James R. Curran. 2009. Comparing the Accuracy of CCG and Penn Treebank Parsers. Proceedings of the ACL-IJCNLP 2009 Conference Short Papers.
@inproceedings{clark2009comparing,
title = {{Comparing the Accuracy of CCG and Penn Treebank Parsers}},
author = {Stephen Clark and James R. Curran},
booktitle = {Proceedings of the ACL-IJCNLP 2009 Conference Short Papers},
year = {2009},
doi = {10.3115/1667583.1667601},
url = {https://doi.org/10.3115/1667583.1667601}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/clark-2009-comparing-accuracy-ccg-penn-treebank/